Skip to content

Commit

Permalink
v5.0.1: Fix Asynchronous calls authentication bug, introducing giveaw…
Browse files Browse the repository at this point in the history
…ays export, loyalty tiers import (#27)

## Summary

### Misc
- Fix bug that resulted in an authentication error when calling API functions via their asynchronous versions (i.e. `GetApplicationAsync`)

### Management API
- [Export giveaway codes of a giveaway pool
](https://docs.talon.one/management-api#tag/Giveaways/operation/exportPoolGiveaways)
- [Import customers into loyalty tiers](https://docs.talon.one/management-api#tag/Loyalty/operation/importLoyaltyCustomersTiers)
- [List items in a catalog](https://docs.talon.one/management-api#tag/Catalogs/operation/listCatalogItems)
  • Loading branch information
altJake authored Sep 1, 2023
1 parent 57c15cc commit caff13e
Show file tree
Hide file tree
Showing 160 changed files with 10,675 additions and 2,032 deletions.
39 changes: 23 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`

This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- SDK version: 5.0.0
- SDK version: 5.0.1
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen

<a name="frameworks-supported"></a>
Expand Down Expand Up @@ -58,7 +58,6 @@ using TalonOne.Model;

### Integration API

**Note:** The Integration API's V1 `Update customer session` and `Update customer profile` endpoints are now deprecated. Use their V2 instead. See [Migrating to V2](https://docs.talon.one/docs/dev/tutorials/migrating-to-v2) for more information.

```csharp
using System.Collections.Generic;
Expand Down Expand Up @@ -242,8 +241,7 @@ Class | Method | HTTP request | Description
*IntegrationApi* | [**ReopenCustomerSession**](docs/IntegrationApi.md#reopencustomersession) | **PUT** /v2/customer_sessions/{customerSessionId}/reopen | Reopen customer session
*IntegrationApi* | [**ReturnCartItems**](docs/IntegrationApi.md#returncartitems) | **POST** /v2/customer_sessions/{customerSessionId}/returns | Return cart items
*IntegrationApi* | [**SyncCatalog**](docs/IntegrationApi.md#synccatalog) | **PUT** /v1/catalogs/{catalogId}/sync | Sync cart item catalog
*IntegrationApi* | [**TrackEvent**](docs/IntegrationApi.md#trackevent) | **POST** /v1/events | Track event
*IntegrationApi* | [**TrackEventV2**](docs/IntegrationApi.md#trackeventv2) | **POST** /v2/events | Track event V2
*IntegrationApi* | [**TrackEventV2**](docs/IntegrationApi.md#trackeventv2) | **POST** /v2/events | Track event
*IntegrationApi* | [**UpdateAudienceCustomersAttributes**](docs/IntegrationApi.md#updateaudiencecustomersattributes) | **PUT** /v2/audience_customers/{audienceId}/attributes | Update profile attributes for all customers in audience
*IntegrationApi* | [**UpdateAudienceV2**](docs/IntegrationApi.md#updateaudiencev2) | **PUT** /v2/audiences/{audienceId} | Update audience name
*IntegrationApi* | [**UpdateCustomerProfileAudiences**](docs/IntegrationApi.md#updatecustomerprofileaudiences) | **POST** /v2/customer_audiences | Update multiple customer profiles' audiences
Expand Down Expand Up @@ -284,6 +282,7 @@ Class | Method | HTTP request | Description
*ManagementApi* | [**ExportLoyaltyCardBalances**](docs/ManagementApi.md#exportloyaltycardbalances) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/export_card_balances | Export all card transaction logs
*ManagementApi* | [**ExportLoyaltyCardLedger**](docs/ManagementApi.md#exportloyaltycardledger) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/export_log | Export card's ledger log
*ManagementApi* | [**ExportLoyaltyLedger**](docs/ManagementApi.md#exportloyaltyledger) | **GET** /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/export_log | Export customer's transaction logs
*ManagementApi* | [**ExportPoolGiveaways**](docs/ManagementApi.md#exportpoolgiveaways) | **GET** /v1/giveaways/pools/{poolId}/export | Export giveaway codes of a giveaway pool
*ManagementApi* | [**ExportReferrals**](docs/ManagementApi.md#exportreferrals) | **GET** /v1/applications/{applicationId}/export_referrals | Export referrals
*ManagementApi* | [**GetAccessLogsWithoutTotalCount**](docs/ManagementApi.md#getaccesslogswithouttotalcount) | **GET** /v1/applications/{applicationId}/access_logs/no_total | Get access logs for Application
*ManagementApi* | [**GetAccount**](docs/ManagementApi.md#getaccount) | **GET** /v1/accounts/{accountId} | Get account details
Expand Down Expand Up @@ -349,14 +348,17 @@ Class | Method | HTTP request | Description
*ManagementApi* | [**ImportCollection**](docs/ManagementApi.md#importcollection) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/collections/{collectionId}/import | Import data in existing collection
*ManagementApi* | [**ImportCoupons**](docs/ManagementApi.md#importcoupons) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/import_coupons | Import coupons
*ManagementApi* | [**ImportLoyaltyCards**](docs/ManagementApi.md#importloyaltycards) | **POST** /v1/loyalty_programs/{loyaltyProgramId}/import_cards | Import loyalty cards
*ManagementApi* | [**ImportLoyaltyCustomersTiers**](docs/ManagementApi.md#importloyaltycustomerstiers) | **POST** /v1/loyalty_programs/{loyaltyProgramId}/import_customers_tiers | Import customers into loyalty tiers
*ManagementApi* | [**ImportLoyaltyPoints**](docs/ManagementApi.md#importloyaltypoints) | **POST** /v1/loyalty_programs/{loyaltyProgramId}/import_points | Import loyalty points
*ManagementApi* | [**ImportPoolGiveaways**](docs/ManagementApi.md#importpoolgiveaways) | **POST** /v1/giveaways/pools/{poolId}/import | Import giveaway codes into a giveaway pool
*ManagementApi* | [**ImportReferrals**](docs/ManagementApi.md#importreferrals) | **POST** /v1/applications/{applicationId}/campaigns/{campaignId}/import_referrals | Import referrals
*ManagementApi* | [**ListAccountCollections**](docs/ManagementApi.md#listaccountcollections) | **GET** /v1/collections | List collections in account
*ManagementApi* | [**ListCatalogItems**](docs/ManagementApi.md#listcatalogitems) | **GET** /v1/catalogs/{catalogId}/items | List items in a catalog
*ManagementApi* | [**ListCollections**](docs/ManagementApi.md#listcollections) | **GET** /v1/applications/{applicationId}/campaigns/{campaignId}/collections | List collections
*ManagementApi* | [**ListCollectionsInApplication**](docs/ManagementApi.md#listcollectionsinapplication) | **GET** /v1/applications/{applicationId}/collections | List collections in application
*ManagementApi* | [**PostAddedDeductedPointsNotification**](docs/ManagementApi.md#postaddeddeductedpointsnotification) | **POST** /v1/loyalty_programs/{loyaltyProgramId}/notifications/added_deducted_points | Create notification about added or deducted loyalty points
*ManagementApi* | [**PostCatalogsStrikethroughNotification**](docs/ManagementApi.md#postcatalogsstrikethroughnotification) | **POST** /v1/catalogs/{applicationId}/notifications/strikethrough | Create strikethrough notification
*ManagementApi* | [**PostPendingPointsNotification**](docs/ManagementApi.md#postpendingpointsnotification) | **POST** /v1/loyalty_programs/{loyaltyProgramId}/notifications/pending_points | Create notification about pending loyalty points
*ManagementApi* | [**RemoveLoyaltyPoints**](docs/ManagementApi.md#removeloyaltypoints) | **PUT** /v1/loyalty_programs/{loyaltyProgramId}/profile/{integrationId}/deduct_points | Deduct points from customer profile
*ManagementApi* | [**ResetPassword**](docs/ManagementApi.md#resetpassword) | **POST** /v1/reset_password | Reset password
*ManagementApi* | [**SearchCouponsAdvancedApplicationWideWithoutTotalCount**](docs/ManagementApi.md#searchcouponsadvancedapplicationwidewithouttotalcount) | **POST** /v1/applications/{applicationId}/coupons_search_advanced/no_total | List coupons that match the given attributes (without total count)
Expand Down Expand Up @@ -421,6 +423,7 @@ Class | Method | HTTP request | Description
- [Model.AudienceIntegrationID](docs/AudienceIntegrationID.md)
- [Model.AudienceMembership](docs/AudienceMembership.md)
- [Model.AwardGiveawayEffectProps](docs/AwardGiveawayEffectProps.md)
- [Model.BaseCampaign](docs/BaseCampaign.md)
- [Model.BaseLoyaltyProgram](docs/BaseLoyaltyProgram.md)
- [Model.BaseNotification](docs/BaseNotification.md)
- [Model.BaseNotificationEntity](docs/BaseNotificationEntity.md)
Expand All @@ -440,19 +443,18 @@ Class | Method | HTTP request | Description
- [Model.CampaignDeletedNotification](docs/CampaignDeletedNotification.md)
- [Model.CampaignEditedNotification](docs/CampaignEditedNotification.md)
- [Model.CampaignEntity](docs/CampaignEntity.md)
- [Model.CampaignEvaluationGroup](docs/CampaignEvaluationGroup.md)
- [Model.CampaignEvaluationPosition](docs/CampaignEvaluationPosition.md)
- [Model.CampaignEvaluationTreeChangedNotification](docs/CampaignEvaluationTreeChangedNotification.md)
- [Model.CampaignGroup](docs/CampaignGroup.md)
- [Model.CampaignGroupEntity](docs/CampaignGroupEntity.md)
- [Model.CampaignNotification](docs/CampaignNotification.md)
- [Model.CampaignPrioritiesChangedNotification](docs/CampaignPrioritiesChangedNotification.md)
- [Model.CampaignPrioritiesV2](docs/CampaignPrioritiesV2.md)
- [Model.CampaignRulesetChangedNotification](docs/CampaignRulesetChangedNotification.md)
- [Model.CampaignSearch](docs/CampaignSearch.md)
- [Model.CampaignSet](docs/CampaignSet.md)
- [Model.CampaignSetBranchNode](docs/CampaignSetBranchNode.md)
- [Model.CampaignSetIDs](docs/CampaignSetIDs.md)
- [Model.CampaignSetLeafNode](docs/CampaignSetLeafNode.md)
- [Model.CampaignSetNode](docs/CampaignSetNode.md)
- [Model.CampaignSetV2](docs/CampaignSetV2.md)
- [Model.CampaignStateChangedNotification](docs/CampaignStateChangedNotification.md)
- [Model.CampaignTemplate](docs/CampaignTemplate.md)
- [Model.CampaignTemplateCollection](docs/CampaignTemplateCollection.md)
Expand Down Expand Up @@ -521,12 +523,12 @@ Class | Method | HTTP request | Description
- [Model.Export](docs/Export.md)
- [Model.FeatureFlag](docs/FeatureFlag.md)
- [Model.FeaturesFeed](docs/FeaturesFeed.md)
- [Model.FeedNotification](docs/FeedNotification.md)
- [Model.FrontendState](docs/FrontendState.md)
- [Model.FuncArgDef](docs/FuncArgDef.md)
- [Model.FunctionDef](docs/FunctionDef.md)
- [Model.Giveaway](docs/Giveaway.md)
- [Model.GiveawaysPool](docs/GiveawaysPool.md)
- [Model.IdentifiableEntity](docs/IdentifiableEntity.md)
- [Model.Import](docs/Import.md)
- [Model.ImportEntity](docs/ImportEntity.md)
- [Model.InlineResponse200](docs/InlineResponse200.md)
Expand Down Expand Up @@ -565,6 +567,7 @@ Class | Method | HTTP request | Description
- [Model.InlineResponse20039](docs/InlineResponse20039.md)
- [Model.InlineResponse2004](docs/InlineResponse2004.md)
- [Model.InlineResponse20040](docs/InlineResponse20040.md)
- [Model.InlineResponse20041](docs/InlineResponse20041.md)
- [Model.InlineResponse2005](docs/InlineResponse2005.md)
- [Model.InlineResponse2006](docs/InlineResponse2006.md)
- [Model.InlineResponse2007](docs/InlineResponse2007.md)
Expand Down Expand Up @@ -606,6 +609,7 @@ Class | Method | HTTP request | Description
- [Model.LoyaltyProgramBalance](docs/LoyaltyProgramBalance.md)
- [Model.LoyaltyProgramEntity](docs/LoyaltyProgramEntity.md)
- [Model.LoyaltyProgramLedgers](docs/LoyaltyProgramLedgers.md)
- [Model.LoyaltyProgramSubledgers](docs/LoyaltyProgramSubledgers.md)
- [Model.LoyaltyProgramTransaction](docs/LoyaltyProgramTransaction.md)
- [Model.LoyaltyStatistics](docs/LoyaltyStatistics.md)
- [Model.LoyaltySubLedger](docs/LoyaltySubLedger.md)
Expand Down Expand Up @@ -633,9 +637,9 @@ Class | Method | HTTP request | Description
- [Model.NewBaseNotification](docs/NewBaseNotification.md)
- [Model.NewCampaign](docs/NewCampaign.md)
- [Model.NewCampaignCollection](docs/NewCampaignCollection.md)
- [Model.NewCampaignEvaluationGroup](docs/NewCampaignEvaluationGroup.md)
- [Model.NewCampaignGroup](docs/NewCampaignGroup.md)
- [Model.NewCampaignSet](docs/NewCampaignSet.md)
- [Model.NewCampaignSetV2](docs/NewCampaignSetV2.md)
- [Model.NewCampaignTemplate](docs/NewCampaignTemplate.md)
- [Model.NewCatalog](docs/NewCatalog.md)
- [Model.NewCollection](docs/NewCollection.md)
Expand Down Expand Up @@ -665,6 +669,7 @@ Class | Method | HTTP request | Description
- [Model.NewReferralsForMultipleAdvocates](docs/NewReferralsForMultipleAdvocates.md)
- [Model.NewReturn](docs/NewReturn.md)
- [Model.NewRole](docs/NewRole.md)
- [Model.NewRoleV2](docs/NewRoleV2.md)
- [Model.NewRuleset](docs/NewRuleset.md)
- [Model.NewSamlConnection](docs/NewSamlConnection.md)
- [Model.NewTemplateDef](docs/NewTemplateDef.md)
Expand All @@ -674,14 +679,15 @@ Class | Method | HTTP request | Description
- [Model.NotificationWebhook](docs/NotificationWebhook.md)
- [Model.OutgoingIntegrationBrazePolicy](docs/OutgoingIntegrationBrazePolicy.md)
- [Model.OutgoingIntegrationConfiguration](docs/OutgoingIntegrationConfiguration.md)
- [Model.OutgoingIntegrationTemplate](docs/OutgoingIntegrationTemplate.md)
- [Model.OutgoingIntegrationTemplateWithConfigurationDetails](docs/OutgoingIntegrationTemplateWithConfigurationDetails.md)
- [Model.OutgoingIntegrationTemplates](docs/OutgoingIntegrationTemplates.md)
- [Model.OutgoingIntegrationType](docs/OutgoingIntegrationType.md)
- [Model.OutgoingIntegrationTypes](docs/OutgoingIntegrationTypes.md)
- [Model.OutgoingIntegrationWebhookTemplate](docs/OutgoingIntegrationWebhookTemplate.md)
- [Model.OutgoingIntegrationWebhookTemplates](docs/OutgoingIntegrationWebhookTemplates.md)
- [Model.PatchItemCatalogAction](docs/PatchItemCatalogAction.md)
- [Model.PatchManyItemsCatalogAction](docs/PatchManyItemsCatalogAction.md)
- [Model.PendingPointsNotificationPolicy](docs/PendingPointsNotificationPolicy.md)
- [Model.Picklist](docs/Picklist.md)
- [Model.PriorityPosition](docs/PriorityPosition.md)
- [Model.ProfileAudiencesChanges](docs/ProfileAudiencesChanges.md)
- [Model.RedeemReferralEffectProps](docs/RedeemReferralEffectProps.md)
- [Model.Referral](docs/Referral.md)
Expand All @@ -702,9 +708,10 @@ Class | Method | HTTP request | Description
- [Model.RoleMembership](docs/RoleMembership.md)
- [Model.RoleV2](docs/RoleV2.md)
- [Model.RoleV2ApplicationDetails](docs/RoleV2ApplicationDetails.md)
- [Model.RoleV2Base](docs/RoleV2Base.md)
- [Model.RoleV2PermissionSet](docs/RoleV2PermissionSet.md)
- [Model.RoleV2Permissions](docs/RoleV2Permissions.md)
- [Model.RoleV2PermissionsRoles](docs/RoleV2PermissionsRoles.md)
- [Model.RoleV2RolesGroup](docs/RoleV2RolesGroup.md)
- [Model.RollbackAddedLoyaltyPointsEffectProps](docs/RollbackAddedLoyaltyPointsEffectProps.md)
- [Model.RollbackCouponEffectProps](docs/RollbackCouponEffectProps.md)
- [Model.RollbackDeductedLoyaltyPointsEffectProps](docs/RollbackDeductedLoyaltyPointsEffectProps.md)
Expand Down Expand Up @@ -744,6 +751,7 @@ Class | Method | HTTP request | Description
- [Model.UpdateAudience](docs/UpdateAudience.md)
- [Model.UpdateCampaign](docs/UpdateCampaign.md)
- [Model.UpdateCampaignCollection](docs/UpdateCampaignCollection.md)
- [Model.UpdateCampaignEvaluationGroup](docs/UpdateCampaignEvaluationGroup.md)
- [Model.UpdateCampaignGroup](docs/UpdateCampaignGroup.md)
- [Model.UpdateCampaignTemplate](docs/UpdateCampaignTemplate.md)
- [Model.UpdateCatalog](docs/UpdateCatalog.md)
Expand All @@ -758,13 +766,12 @@ Class | Method | HTTP request | Description
- [Model.UpdateReferralBatch](docs/UpdateReferralBatch.md)
- [Model.UpdateRole](docs/UpdateRole.md)
- [Model.UpdateUser](docs/UpdateUser.md)
- [Model.UpdateUserLatestFeedTimestamp](docs/UpdateUserLatestFeedTimestamp.md)
- [Model.User](docs/User.md)
- [Model.UserEntity](docs/UserEntity.md)
- [Model.UserFeedNotifications](docs/UserFeedNotifications.md)
- [Model.Webhook](docs/Webhook.md)
- [Model.WebhookActivationLogEntry](docs/WebhookActivationLogEntry.md)
- [Model.WebhookLogEntry](docs/WebhookLogEntry.md)
- [Model.WebhookWithOutgoingIntegrationDetails](docs/WebhookWithOutgoingIntegrationDetails.md)
- [Model.WillAwardGiveawayEffectProps](docs/WillAwardGiveawayEffectProps.md)


Expand Down
4 changes: 2 additions & 2 deletions docs/AddLoyaltyPoints.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Points** | **decimal** | Amount of loyalty points. |
**Name** | **string** | Name / reason for the point addition. | [optional]
**ValidityDuration** | **string** | The time format is either: - &#x60;immediate&#x60; or, - an **integer** followed by one letter indicating the time unit. Examples: &#x60;immediate&#x60;, &#x60;30s&#x60;, &#x60;40m&#x60;, &#x60;1h&#x60;, &#x60;5D&#x60;, &#x60;7W&#x60;, &#x60;10M&#x60;. Available units: - &#x60;s&#x60;: seconds - &#x60;m&#x60;: minutes - &#x60;h&#x60;: hours - &#x60;D&#x60;: days - &#x60;W&#x60;: weeks - &#x60;M&#x60;: months You can round certain units up or down: - &#x60;_D&#x60; for rounding down days only. Signifies the start of the day. - &#x60;_U&#x60; for rounding up days, weeks and months. Signifies the end of the day, week, or month. If passed, &#x60;validUntil&#x60; should be omitted. | [optional]
**ValidityDuration** | **string** | The time format is either: - &#x60;immediate&#x60; or, - an **integer** followed by one letter indicating the time unit. Examples: &#x60;immediate&#x60;, &#x60;30s&#x60;, &#x60;40m&#x60;, &#x60;1h&#x60;, &#x60;5D&#x60;, &#x60;7W&#x60;, &#x60;10M&#x60;, &#x60;15Y&#x60;. Available units: - &#x60;s&#x60;: seconds - &#x60;m&#x60;: minutes - &#x60;h&#x60;: hours - &#x60;D&#x60;: days - &#x60;W&#x60;: weeks - &#x60;M&#x60;: months - &#x60;Y&#x60;: years You can round certain units up or down: - &#x60;_D&#x60; for rounding down days only. Signifies the start of the day. - &#x60;_U&#x60; for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. If passed, &#x60;validUntil&#x60; should be omitted. | [optional]
**ValidUntil** | **DateTime** | Date and time when points should expire. The value should be provided in RFC 3339 format. If passed, &#x60;validityDuration&#x60; should be omitted. | [optional]
**PendingDuration** | **string** | The amount of time before the points are considered valid. The time format is either: - &#x60;immediate&#x60; or, - an **integer** followed by one letter indicating the time unit. Examples: &#x60;immediate&#x60;, &#x60;30s&#x60;, &#x60;40m&#x60;, &#x60;1h&#x60;, &#x60;5D&#x60;, &#x60;7W&#x60;, &#x60;10M&#x60;. Available units: - &#x60;s&#x60;: seconds - &#x60;m&#x60;: minutes - &#x60;h&#x60;: hours - &#x60;D&#x60;: days - &#x60;W&#x60;: weeks - &#x60;M&#x60;: months You can round certain units up or down: - &#x60;_D&#x60; for rounding down days only. Signifies the start of the day. - &#x60;_U&#x60; for rounding up days, weeks and months. Signifies the end of the day, week, or month. | [optional]
**PendingDuration** | **string** | The amount of time before the points are considered valid. The time format is either: - &#x60;immediate&#x60; or, - an **integer** followed by one letter indicating the time unit. Examples: &#x60;immediate&#x60;, &#x60;30s&#x60;, &#x60;40m&#x60;, &#x60;1h&#x60;, &#x60;5D&#x60;, &#x60;7W&#x60;, &#x60;10M&#x60;, &#x60;15Y&#x60;. Available units: - &#x60;s&#x60;: seconds - &#x60;m&#x60;: minutes - &#x60;h&#x60;: hours - &#x60;D&#x60;: days - &#x60;W&#x60;: weeks - &#x60;M&#x60;: months - &#x60;Y&#x60;: years You can round certain units up or down: - &#x60;_D&#x60; for rounding down days only. Signifies the start of the day. - &#x60;_U&#x60; for rounding up days, weeks, months and years. Signifies the end of the day, week, month or year. | [optional]
**PendingUntil** | **DateTime** | Date and time after the points are considered valid. The value should be provided in RFC 3339 format. If passed, &#x60;pendingDuration&#x60; should be omitted. | [optional]
**SubledgerId** | **string** | ID of the subledger the points are added to. If there is no existing subledger with this ID, the subledger is created automatically. | [optional]
**ApplicationId** | **int** | ID of the Application that is connected to the loyalty program. It is displayed in your Talon.One deployment URL. | [optional]
Expand Down
Loading

0 comments on commit caff13e

Please sign in to comment.