Skip to content

Commit 42275b9

Browse files
authored
v3.0.0: Integration API V2 (#7)
- Replace code generator to [OpenAPITools [email protected]](https://github.com/OpenAPITools/openapi-generator/releases/tag/v4.2.3) - Add our new v2 integration api endpoint for customer sessions. Read more here: https://developers.talon.one/Getting-Started/APIV2 - Add v2-related management endpoints for managing [AdditionalCosts](https://developers.talon.one/Getting-Started/APIV2#additional-costs) Commit Summary ============= * Initial Commit * Update nunit version -> 3.11.0 * Align mono_unit_test script * Add APIv2 code example to README * Fix nuspec file's icon --> iconUrl tag * Add icon.png * Skip symbols generation for now
1 parent dad6c7b commit 42275b9

File tree

628 files changed

+19495
-6400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

628 files changed

+19495
-6400
lines changed

.swagger-codegen-ignore .openapi-generator-ignore

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Swagger Codegen Ignore
2-
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
33

44
# Use this file to prevent files from being overwritten by the generator.
55
# The patterns follow closely to .gitignore or .dockerignore.
66

77
# As an example, the C# client generator defines ApiClient.cs.
8-
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
99
#ApiClient.cs
1010

1111
# You can match any string of characters against a directory, file or extension with a single asterisk (*):

.openapi-generator/VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4.2.3

.swagger-codegen/VERSION

-1
This file was deleted.

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Generated by: https://github.com/swagger-api/swagger-codegen.git
2+
# Generated by: https://github.com/openapitools/openapi-generator.git
33
#
44
language: csharp
55
mono:

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Talon.One GmbH
3+
Copyright (c) 2020 Talon.One GmbH
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ endif
1515
-v $(PWD):/tmp/talon-client \
1616
-w "/tmp/talon-client/$(BUILD_DIR)" \
1717
mono:6 \
18-
nuget pack TalonOne.csproj -Build -Symbols -SymbolPackageFormat snupkg -Properties Configuration=Release -Version $(VERSION)
18+
nuget pack TalonOne.csproj -Build -Properties Configuration=Release -Version $(VERSION)
1919

2020
publish: clean
2121
ifeq ($(VERSION),)
@@ -31,7 +31,7 @@ endif
3131
-v $(PWD):/tmp/talon-client \
3232
-w "/tmp/talon-client/$(BUILD_DIR)" \
3333
mono:6 \
34-
/bin/bash -c "nuget pack TalonOne.csproj -Build -Symbols -SymbolPackageFormat snupkg -Properties Configuration=Release -Version $(VERSION) && \
34+
/bin/bash -c "nuget pack TalonOne.csproj -Build -Properties Configuration=Release -Version $(VERSION) && \
3535
nuget push TalonOne.$(VERSION).nupkg $(apiKey) -Source https://api.nuget.org/v3/index.json"
3636

3737
testenv:

README.md

+192-28
Large diffs are not rendered by default.

build.bat

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:: Generated by: https://github.com/swagger-api/swagger-codegen.git
1+
:: Generated by: https://github.com/openapitools/openapi-generator.git
22
::
33

44
@echo off

build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
#
3-
# Generated by: https://github.com/swagger-api/swagger-codegen.git
3+
# Generated by: https://github.com/openapitools/openapi-generator.git
44
#
55

66
frameworkVersion=net461

docs/APIError.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
12
# TalonOne.Model.APIError
3+
24
## Properties
35

46
Name | Type | Description | Notes
@@ -7,5 +9,7 @@ Name | Type | Description | Notes
79
**Details** | **string** | Longer description of this specific instance of the problem. | [optional]
810
**Source** | [**ErrorSource**](ErrorSource.md) | |
911

10-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
12+
[[Back to Model list]](../README.md#documentation-for-models)
13+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
14+
[[Back to README]](../README.md)
1115

docs/AcceptCouponEffectProps.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
# TalonOne.Model.AcceptCouponEffectProps
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**Value** | **string** | The coupon code that was accepted |
9+
10+
[[Back to Model list]](../README.md#documentation-for-models)
11+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
12+
[[Back to README]](../README.md)
13+

docs/AcceptReferralEffectProps.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
# TalonOne.Model.AcceptReferralEffectProps
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**Value** | **string** | The referral code that was accepted |
9+
10+
[[Back to Model list]](../README.md#documentation-for-models)
11+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
12+
[[Back to README]](../README.md)
13+

docs/AccessLogEntry.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1+
12
# TalonOne.Model.AccessLogEntry
3+
24
## Properties
35

46
Name | Type | Description | Notes
57
------------ | ------------- | ------------- | -------------
68
**Uuid** | **string** | UUID reference of request |
7-
**Status** | **int?** | HTTP status code of response |
9+
**Status** | **int** | HTTP status code of response |
810
**Method** | **string** | HTTP method of request |
911
**RequestUri** | **string** | target URI of request |
10-
**Time** | **DateTime?** | timestamp of request |
12+
**Time** | **DateTime** | timestamp of request |
1113
**RequestPayload** | **string** | payload of request |
1214
**ResponsePayload** | **string** | payload of response |
1315

14-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
16+
[[Back to Model list]](../README.md#documentation-for-models)
17+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
18+
[[Back to README]](../README.md)
1519

docs/Account.md

+19-15
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
1+
12
# TalonOne.Model.Account
3+
24
## Properties
35

46
Name | Type | Description | Notes
57
------------ | ------------- | ------------- | -------------
6-
**Id** | **int?** | Unique ID for this entity. |
7-
**Created** | **DateTime?** | The exact moment this entity was created. |
8-
**Modified** | **DateTime?** | The exact moment this entity was last modified. |
8+
**Id** | **int** | Unique ID for this entity. |
9+
**Created** | **DateTime** | The exact moment this entity was created. |
10+
**Modified** | **DateTime** | The exact moment this entity was last modified. |
911
**CompanyName** | **string** | |
1012
**DomainName** | **string** | Subdomain Name for yourcompany.talon.one |
11-
**State** | **string** | State of the account (trial, active, trial_expired) |
13+
**State** | **string** | State of the account (active, deactivated) |
1214
**BillingEmail** | **string** | The billing email address associated with your company account. |
1315
**PlanName** | **string** | The name of your booked plan. | [optional]
14-
**PlanExpires** | **DateTime?** | The point in time at which your current plan expires. | [optional]
15-
**ApplicationLimit** | **int?** | The maximum number of Applications covered by your plan. | [optional]
16-
**UserLimit** | **int?** | The maximum number of Campaign Manager Users covered by your plan. | [optional]
17-
**CampaignLimit** | **int?** | The maximum number of Campaigns covered by your plan. | [optional]
18-
**ApiLimit** | **int?** | The maximum number of Integration API calls covered by your plan per billing period. | [optional]
19-
**ApplicationCount** | **int?** | The current number of Applications in your account. |
20-
**UserCount** | **int?** | The current number of Campaign Manager Users in your account. |
21-
**CampaignsActiveCount** | **int?** | The current number of active Campaigns in your account. |
22-
**CampaignsInactiveCount** | **int?** | The current number of inactive Campaigns in your account. |
23-
**Attributes** | **Object** | Arbitrary properties associated with this campaign | [optional]
16+
**PlanExpires** | **DateTime** | The point in time at which your current plan expires. | [optional]
17+
**ApplicationLimit** | **int** | The maximum number of Applications covered by your plan. | [optional]
18+
**UserLimit** | **int** | The maximum number of Campaign Manager Users covered by your plan. | [optional]
19+
**CampaignLimit** | **int** | The maximum number of Campaigns covered by your plan. | [optional]
20+
**ApiLimit** | **int** | The maximum number of Integration API calls covered by your plan per billing period. | [optional]
21+
**ApplicationCount** | **int** | The current number of Applications in your account. |
22+
**UserCount** | **int** | The current number of Campaign Manager Users in your account. |
23+
**CampaignsActiveCount** | **int** | The current number of active Campaigns in your account. |
24+
**CampaignsInactiveCount** | **int** | The current number of inactive Campaigns in your account. |
25+
**Attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign | [optional]
2426

25-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
27+
[[Back to Model list]](../README.md#documentation-for-models)
28+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
29+
[[Back to README]](../README.md)
2630

docs/AccountAdditionalCost.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
# TalonOne.Model.AccountAdditionalCost
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**Id** | **int** | Unique ID for this entity. |
9+
**Created** | **DateTime** | The exact moment this entity was created. |
10+
**AccountId** | **int** | The ID of the account that owns this entity. |
11+
**Name** | **string** | The additional cost name that will be used in API requests and Talang. E.g. if `name == \"shipping\"` then you would set the shipping additional cost by including an `additionalCosts.shipping` property in your request payload. |
12+
**Title** | **string** | The human-readable name for the additional cost that will be shown in the Campaign Manager. Like `name`, the combination of entity and title must also be unique. |
13+
**Description** | **string** | A description of this additional cost. |
14+
**SubscribedApplicationsIds** | **List<int>** | A list of the IDs of the applications that are subscribed to this additional cost | [optional]
15+
16+
[[Back to Model list]](../README.md#documentation-for-models)
17+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
18+
[[Back to README]](../README.md)
19+

docs/AccountAnalytics.md

+20-16
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
1+
12
# TalonOne.Model.AccountAnalytics
3+
24
## Properties
35

46
Name | Type | Description | Notes
57
------------ | ------------- | ------------- | -------------
6-
**Applications** | **int?** | Total Number of Applications inside the account |
7-
**ActiveCampaigns** | **int?** | Total Number of Active Applications inside the account |
8-
**Campaigns** | **int?** | Total Number of campaigns inside the account |
9-
**Coupons** | **int?** | Total Number of coupons inside the account |
10-
**ActiveCoupons** | **int?** | Total Number of active coupons inside the account |
11-
**ExpiredCoupons** | **int?** | Total Number of expired coupons inside the account |
12-
**CustomAttributes** | **int?** | Total Number of custom attributes inside the account |
13-
**ReferralCodes** | **int?** | Total Number of referral codes inside the account |
14-
**ActiveReferralCodes** | **int?** | Total Number of active referral codes inside the account |
15-
**ExpiredReferralCodes** | **int?** | Total Number of expired referral codes inside the account |
16-
**Users** | **int?** | Total Number of users inside the account |
17-
**Roles** | **int?** | Total Number of roles inside the account |
18-
**Webhooks** | **int?** | Total Number of webhooks inside the account |
19-
**LoyaltyPrograms** | **int?** | Total Number of loyalty programs inside the account |
20-
**ActiveRules** | **int?** | Total Number of active rules in the account |
8+
**Applications** | **int** | Total Number of Applications inside the account |
9+
**ActiveCampaigns** | **int** | Total Number of Active Applications inside the account |
10+
**Campaigns** | **int** | Total Number of campaigns inside the account |
11+
**Coupons** | **int** | Total Number of coupons inside the account |
12+
**ActiveCoupons** | **int** | Total Number of active coupons inside the account |
13+
**ExpiredCoupons** | **int** | Total Number of expired coupons inside the account |
14+
**CustomAttributes** | **int** | Total Number of custom attributes inside the account |
15+
**ReferralCodes** | **int** | Total Number of referral codes inside the account |
16+
**ActiveReferralCodes** | **int** | Total Number of active referral codes inside the account |
17+
**ExpiredReferralCodes** | **int** | Total Number of expired referral codes inside the account |
18+
**Users** | **int** | Total Number of users inside the account |
19+
**Roles** | **int** | Total Number of roles inside the account |
20+
**Webhooks** | **int** | Total Number of webhooks inside the account |
21+
**LoyaltyPrograms** | **int** | Total Number of loyalty programs inside the account |
22+
**ActiveRules** | **int** | Total Number of active rules in the account |
2123

22-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
24+
[[Back to Model list]](../README.md#documentation-for-models)
25+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
26+
[[Back to README]](../README.md)
2327

docs/AccountEntity.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
12
# TalonOne.Model.AccountEntity
3+
24
## Properties
35

46
Name | Type | Description | Notes
57
------------ | ------------- | ------------- | -------------
6-
**AccountId** | **int?** | The ID of the account that owns this entity. |
8+
**AccountId** | **int** | The ID of the account that owns this entity. |
79

8-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
[[Back to Model list]](../README.md#documentation-for-models)
11+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
12+
[[Back to README]](../README.md)
913

docs/AccountLimits.md

+16-12
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
1+
12
# TalonOne.Model.AccountLimits
3+
24
## Properties
35

46
Name | Type | Description | Notes
57
------------ | ------------- | ------------- | -------------
6-
**LiveApplications** | **int?** | Total Number of allowed live applications in the account |
7-
**SandboxApplications** | **int?** | Total Number of allowed sandbox applications in the account |
8-
**ActiveCampaigns** | **int?** | Total Number of allowed active campaigns in the account |
9-
**Coupons** | **int?** | Total Number of allowed coupons in the account |
10-
**ReferralCodes** | **int?** | Total Number of allowed referral codes in the account |
11-
**LiveLoyaltyPrograms** | **int?** | Total Number of allowed live loyalty programs in the account |
12-
**SandboxLoyaltyPrograms** | **int?** | Total Number of allowed sandbox loyalty programs in the account |
13-
**Webhooks** | **int?** | Total Number of allowed webhooks in the account |
14-
**Users** | **int?** | Total Number of allowed users in the account |
15-
**ApiVolume** | **int?** | Total allowed api volume |
16-
**ActiveRules** | **int?** | Total allowed active rulesets | [optional]
8+
**LiveApplications** | **int** | Total Number of allowed live applications in the account |
9+
**SandboxApplications** | **int** | Total Number of allowed sandbox applications in the account |
10+
**ActiveCampaigns** | **int** | Total Number of allowed active campaigns in the account |
11+
**Coupons** | **int** | Total Number of allowed coupons in the account |
12+
**ReferralCodes** | **int** | Total Number of allowed referral codes in the account |
13+
**LiveLoyaltyPrograms** | **int** | Total Number of allowed live loyalty programs in the account |
14+
**SandboxLoyaltyPrograms** | **int** | Total Number of allowed sandbox loyalty programs in the account |
15+
**Webhooks** | **int** | Total Number of allowed webhooks in the account |
16+
**Users** | **int** | Total Number of allowed users in the account |
17+
**ApiVolume** | **int** | Total allowed api volume |
18+
**ActiveRules** | **int** | Total allowed active rulesets | [optional]
1719
**PromotionTypes** | **List<string>** | array of rulesets where webhook is used |
1820

19-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
21+
[[Back to Model list]](../README.md#documentation-for-models)
22+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
23+
[[Back to README]](../README.md)
2024

docs/AddFreeItemEffectProps.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
# TalonOne.Model.AddFreeItemEffectProps
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**Sku** | **string** | SKU of the item that needs to be added |
9+
**Name** | **string** | The name/description of the effect |
10+
11+
[[Back to Model list]](../README.md#documentation-for-models)
12+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
13+
[[Back to README]](../README.md)
14+

docs/AddLoyaltyPointsEffectProps.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
# TalonOne.Model.AddLoyaltyPointsEffectProps
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**Name** | **string** | The name/description of this loyalty point addition |
9+
**ProgramId** | **int** | The ID of the loyalty program where these points were added |
10+
**SubLedgerId** | **string** | The ID of the subledger within the loyalty program where these points were added |
11+
**Value** | **decimal** | The amount of points that were added |
12+
**RecipientIntegrationId** | **string** | The user for whom these points were added |
13+
**ExpiryCondition** | **string** | The amount of time (in days) these points are valid |
14+
15+
[[Back to Model list]](../README.md#documentation-for-models)
16+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
17+
[[Back to README]](../README.md)
18+

docs/AdditionalCost.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
# TalonOne.Model.AdditionalCost
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**Price** | **decimal** | |
9+
10+
[[Back to Model list]](../README.md#documentation-for-models)
11+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
12+
[[Back to README]](../README.md)
13+

docs/Application.md

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1+
12
# TalonOne.Model.Application
3+
24
## Properties
35

46
Name | Type | Description | Notes
57
------------ | ------------- | ------------- | -------------
6-
**Id** | **int?** | Unique ID for this entity. |
7-
**Created** | **DateTime?** | The exact moment this entity was created. |
8-
**Modified** | **DateTime?** | The exact moment this entity was last modified. |
9-
**AccountId** | **int?** | The ID of the account that owns this entity. |
8+
**Id** | **int** | Unique ID for this entity. |
9+
**Created** | **DateTime** | The exact moment this entity was created. |
10+
**Modified** | **DateTime** | The exact moment this entity was last modified. |
11+
**AccountId** | **int** | The ID of the account that owns this entity. |
1012
**Name** | **string** | The name of this application. |
1113
**Description** | **string** | A longer description of the application. | [optional]
1214
**Timezone** | **string** | A string containing an IANA timezone descriptor. |
1315
**Currency** | **string** | A string describing a default currency for new customer sessions. |
1416
**CaseSensitivity** | **string** | A string indicating how should campaigns in this application deal with case sensitivity on coupon codes. | [optional]
15-
**Attributes** | **Object** | Arbitrary properties associated with this campaign | [optional]
17+
**Attributes** | [**Object**](.md) | Arbitrary properties associated with this campaign | [optional]
1618
**Limits** | [**List<LimitConfig>**](LimitConfig.md) | Default limits for campaigns created in this application | [optional]
1719
**AttributesSettings** | [**AttributesSettings**](AttributesSettings.md) | | [optional]
18-
**Key** | **string** | Hex key for HMAC-signing API calls as coming from this application (16 hex digits) |
1920
**LoyaltyPrograms** | [**List<LoyaltyProgram>**](LoyaltyProgram.md) | An array containing all the loyalty programs to which this application is subscribed |
2021

21-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
22+
[[Back to Model list]](../README.md#documentation-for-models)
23+
[[Back to API list]](../README.md#documentation-for-api-endpoints)
24+
[[Back to README]](../README.md)
2225

0 commit comments

Comments
 (0)