talon_one 9.0.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +39 -3
- data/docs/Account.md +1 -1
- data/docs/AccountAdditionalCost.md +1 -1
- data/docs/Achievement.md +2 -2
- data/docs/AchievementBase.md +1 -1
- data/docs/AchievementProgressWithDefinition.md +1 -1
- data/docs/AchievementStatusEntry.md +2 -2
- data/docs/AddPriceAdjustmentCatalogAction.md +19 -0
- data/docs/AddedDeductedPointsBalancesNotificationPolicy.md +19 -0
- data/docs/Application.md +1 -1
- data/docs/ApplicationCIF.md +1 -1
- data/docs/ApplicationCIFExpression.md +1 -1
- data/docs/ApplicationCustomer.md +2 -2
- data/docs/ApplicationEvent.md +1 -1
- data/docs/ApplicationSession.md +1 -1
- data/docs/Attribute.md +1 -1
- data/docs/Audience.md +1 -1
- data/docs/AudienceCustomer.md +2 -2
- data/docs/BaseNotificationWebhook.md +1 -1
- data/docs/Binding.md +9 -1
- data/docs/CampaignCollection.md +1 -1
- data/docs/CampaignCollectionWithoutPayload.md +1 -1
- data/docs/CampaignDeactivationRequest.md +17 -0
- data/docs/CampaignGroup.md +1 -1
- data/docs/CampaignSet.md +1 -1
- data/docs/CampaignStoreBudget.md +1 -1
- data/docs/CampaignTemplate.md +1 -1
- data/docs/CardAddedDeductedPointsBalancesNotificationPolicy.md +19 -0
- data/docs/CartItem.md +12 -2
- data/docs/Catalog.md +1 -1
- data/docs/CatalogItem.md +1 -1
- data/docs/Change.md +1 -1
- data/docs/Collection.md +1 -1
- data/docs/CollectionWithoutPayload.md +1 -1
- data/docs/Coupon.md +2 -2
- data/docs/CouponCreationJob.md +1 -1
- data/docs/CouponDeletionJob.md +1 -1
- data/docs/CouponEntity.md +19 -0
- data/docs/CreateAchievement.md +1 -1
- data/docs/CustomEffect.md +1 -1
- data/docs/CustomerProfile.md +2 -2
- data/docs/CustomerProfileEntity.md +19 -0
- data/docs/CustomerSessionV2.md +1 -1
- data/docs/Effect.md +6 -0
- data/docs/EffectEntity.md +7 -1
- data/docs/Entity.md +1 -1
- data/docs/Environment.md +4 -2
- data/docs/Event.md +1 -1
- data/docs/EventType.md +1 -1
- data/docs/Export.md +1 -1
- data/docs/ExtendLoyaltyPointsExpiryDateEffectProps.md +25 -0
- data/docs/Giveaway.md +1 -1
- data/docs/GiveawaysPool.md +1 -1
- data/docs/Import.md +1 -1
- data/docs/InlineResponse20048.md +2 -4
- data/docs/InlineResponse20049.md +2 -4
- data/docs/InlineResponse20050.md +19 -0
- data/docs/InlineResponse20051.md +19 -0
- data/docs/IntegrationApi.md +3 -3
- data/docs/IntegrationCoupon.md +2 -2
- data/docs/IntegrationCustomerProfileAudienceRequest.md +17 -0
- data/docs/IntegrationCustomerProfileAudienceRequestItem.md +21 -0
- data/docs/IntegrationEventV2Request.md +2 -0
- data/docs/InventoryCoupon.md +2 -2
- data/docs/InventoryReferral.md +1 -1
- data/docs/LedgerEntry.md +1 -1
- data/docs/LedgerInfo.md +2 -2
- data/docs/LoyaltyCard.md +1 -1
- data/docs/LoyaltyProgramBalance.md +2 -2
- data/docs/LoyaltyTier.md +1 -1
- data/docs/ManagementApi.md +792 -29
- data/docs/ModelReturn.md +1 -1
- data/docs/MultipleAudiencesItem.md +1 -1
- data/docs/NewPriceAdjustment.md +27 -0
- data/docs/NewPriceType.md +23 -0
- data/docs/NewWebhook.md +2 -0
- data/docs/Picklist.md +1 -1
- data/docs/PriceDetail.md +23 -0
- data/docs/PriceType.md +33 -0
- data/docs/Referral.md +1 -1
- data/docs/RevisionActivationRequest.md +19 -0
- data/docs/Role.md +1 -1
- data/docs/RoleV2.md +1 -1
- data/docs/Ruleset.md +1 -1
- data/docs/SamlConnection.md +1 -1
- data/docs/ScimBaseGroup.md +19 -0
- data/docs/ScimGroup.md +21 -0
- data/docs/ScimGroupMember.md +19 -0
- data/docs/ScimGroupsListResponse.md +21 -0
- data/docs/Store.md +1 -1
- data/docs/TemplateDef.md +1 -1
- data/docs/UpdateAchievement.md +1 -1
- data/docs/User.md +1 -1
- data/docs/Webhook.md +3 -1
- data/docs/WebhookAuthentication.md +33 -0
- data/docs/WebhookAuthenticationBase.md +21 -0
- data/docs/WebhookAuthenticationDataBasic.md +19 -0
- data/docs/WebhookAuthenticationDataCustom.md +17 -0
- data/docs/WebhookAuthenticationWebhookRef.md +21 -0
- data/docs/WebhookWithOutgoingIntegrationDetails.md +3 -1
- data/lib/talon_one/api/integration_api.rb +6 -6
- data/lib/talon_one/api/management_api.rb +879 -11
- data/lib/talon_one/models/account.rb +1 -1
- data/lib/talon_one/models/account_additional_cost.rb +1 -1
- data/lib/talon_one/models/achievement.rb +4 -4
- data/lib/talon_one/models/achievement_base.rb +3 -3
- data/lib/talon_one/models/achievement_progress_with_definition.rb +3 -3
- data/lib/talon_one/models/achievement_status_entry.rb +4 -4
- data/lib/talon_one/models/add_price_adjustment_catalog_action.rb +230 -0
- data/lib/talon_one/models/added_deducted_points_balances_notification_policy.rb +269 -0
- data/lib/talon_one/models/application.rb +1 -1
- data/lib/talon_one/models/application_cif.rb +1 -1
- data/lib/talon_one/models/application_cif_expression.rb +1 -1
- data/lib/talon_one/models/application_customer.rb +2 -2
- data/lib/talon_one/models/application_event.rb +1 -1
- data/lib/talon_one/models/application_session.rb +1 -1
- data/lib/talon_one/models/attribute.rb +1 -1
- data/lib/talon_one/models/audience.rb +1 -1
- data/lib/talon_one/models/audience_customer.rb +2 -2
- data/lib/talon_one/models/base_notification.rb +2 -2
- data/lib/talon_one/models/base_notification_webhook.rb +1 -1
- data/lib/talon_one/models/binding.rb +44 -4
- data/lib/talon_one/models/campaign_collection.rb +1 -1
- data/lib/talon_one/models/campaign_collection_without_payload.rb +1 -1
- data/lib/talon_one/models/campaign_deactivation_request.rb +214 -0
- data/lib/talon_one/models/campaign_group.rb +1 -1
- data/lib/talon_one/models/campaign_set.rb +1 -1
- data/lib/talon_one/models/campaign_store_budget.rb +1 -1
- data/lib/talon_one/models/campaign_template.rb +1 -1
- data/lib/talon_one/models/card_added_deducted_points_balances_notification_policy.rb +269 -0
- data/lib/talon_one/models/cart_item.rb +57 -5
- data/lib/talon_one/models/catalog.rb +1 -1
- data/lib/talon_one/models/catalog_action.rb +2 -2
- data/lib/talon_one/models/catalog_item.rb +1 -1
- data/lib/talon_one/models/change.rb +1 -1
- data/lib/talon_one/models/collection.rb +1 -1
- data/lib/talon_one/models/collection_without_payload.rb +1 -1
- data/lib/talon_one/models/coupon.rb +7 -7
- data/lib/talon_one/models/coupon_constraints.rb +5 -5
- data/lib/talon_one/models/coupon_creation_job.rb +6 -6
- data/lib/talon_one/models/coupon_deletion_job.rb +1 -1
- data/lib/talon_one/models/coupon_entity.rb +227 -0
- data/lib/talon_one/models/create_achievement.rb +3 -3
- data/lib/talon_one/models/custom_effect.rb +1 -1
- data/lib/talon_one/models/customer_profile.rb +2 -2
- data/lib/talon_one/models/customer_profile_entity.rb +227 -0
- data/lib/talon_one/models/customer_session_v2.rb +1 -1
- data/lib/talon_one/models/effect.rb +31 -1
- data/lib/talon_one/models/effect_entity.rb +34 -4
- data/lib/talon_one/models/entity.rb +1 -1
- data/lib/talon_one/models/environment.rb +17 -5
- data/lib/talon_one/models/event.rb +1 -1
- data/lib/talon_one/models/event_type.rb +1 -1
- data/lib/talon_one/models/export.rb +1 -1
- data/lib/talon_one/models/extend_loyalty_points_expiry_date_effect_props.rb +270 -0
- data/lib/talon_one/models/giveaway.rb +1 -1
- data/lib/talon_one/models/giveaways_pool.rb +1 -1
- data/lib/talon_one/models/import.rb +1 -1
- data/lib/talon_one/models/inline_response20048.rb +2 -16
- data/lib/talon_one/models/inline_response20049.rb +2 -21
- data/lib/talon_one/models/inline_response20050.rb +222 -0
- data/lib/talon_one/models/inline_response20051.rb +227 -0
- data/lib/talon_one/models/integration_coupon.rb +7 -7
- data/lib/talon_one/models/integration_customer_profile_audience_request.rb +208 -0
- data/lib/talon_one/models/integration_customer_profile_audience_request_item.rb +295 -0
- data/lib/talon_one/models/integration_event_v2_request.rb +13 -1
- data/lib/talon_one/models/inventory_coupon.rb +7 -7
- data/lib/talon_one/models/inventory_referral.rb +1 -1
- data/lib/talon_one/models/ledger_entry.rb +1 -1
- data/lib/talon_one/models/ledger_info.rb +0 -10
- data/lib/talon_one/models/loyalty_card.rb +1 -1
- data/lib/talon_one/models/loyalty_program_balance.rb +0 -10
- data/lib/talon_one/models/loyalty_tier.rb +1 -1
- data/lib/talon_one/models/model_return.rb +1 -1
- data/lib/talon_one/models/multiple_audiences_item.rb +1 -1
- data/lib/talon_one/models/new_coupon_creation_job.rb +5 -5
- data/lib/talon_one/models/new_coupons.rb +5 -5
- data/lib/talon_one/models/new_coupons_for_multiple_recipients.rb +5 -5
- data/lib/talon_one/models/new_message_test.rb +2 -2
- data/lib/talon_one/models/new_price_adjustment.rb +268 -0
- data/lib/talon_one/models/new_price_type.rb +270 -0
- data/lib/talon_one/models/new_webhook.rb +16 -1
- data/lib/talon_one/models/picklist.rb +1 -1
- data/lib/talon_one/models/price_detail.rb +237 -0
- data/lib/talon_one/models/price_type.rb +347 -0
- data/lib/talon_one/models/referral.rb +1 -1
- data/lib/talon_one/models/revision_activation_request.rb +224 -0
- data/lib/talon_one/models/role.rb +1 -1
- data/lib/talon_one/models/role_v2.rb +1 -1
- data/lib/talon_one/models/ruleset.rb +1 -1
- data/lib/talon_one/models/saml_connection.rb +1 -1
- data/lib/talon_one/models/scim_base_group.rb +220 -0
- data/lib/talon_one/models/scim_group.rb +235 -0
- data/lib/talon_one/models/scim_group_member.rb +218 -0
- data/lib/talon_one/models/scim_groups_list_response.rb +236 -0
- data/lib/talon_one/models/store.rb +1 -1
- data/lib/talon_one/models/template_def.rb +1 -1
- data/lib/talon_one/models/update_achievement.rb +3 -3
- data/lib/talon_one/models/update_coupon.rb +5 -5
- data/lib/talon_one/models/update_coupon_batch.rb +5 -5
- data/lib/talon_one/models/user.rb +1 -1
- data/lib/talon_one/models/webhook.rb +17 -2
- data/lib/talon_one/models/webhook_authentication.rb +365 -0
- data/lib/talon_one/models/webhook_authentication_base.rb +274 -0
- data/lib/talon_one/models/webhook_authentication_data_basic.rb +227 -0
- data/lib/talon_one/models/webhook_authentication_data_custom.rb +213 -0
- data/lib/talon_one/models/webhook_authentication_webhook_ref.rb +258 -0
- data/lib/talon_one/models/webhook_with_outgoing_integration_details.rb +17 -2
- data/lib/talon_one/version.rb +1 -1
- data/lib/talon_one.rb +24 -0
- data/spec/api/integration_api_spec.rb +3 -3
- data/spec/api/management_api_spec.rb +167 -3
- data/spec/models/achievement_base_spec.rb +1 -1
- data/spec/models/achievement_progress_with_definition_spec.rb +1 -1
- data/spec/models/achievement_spec.rb +1 -1
- data/spec/models/achievement_status_entry_spec.rb +1 -1
- data/spec/models/add_price_adjustment_catalog_action_spec.rb +47 -0
- data/spec/models/added_deducted_points_balances_notification_policy_spec.rb +51 -0
- data/spec/models/base_notification_spec.rb +1 -1
- data/spec/models/binding_spec.rb +24 -0
- data/spec/models/campaign_deactivation_request_spec.rb +41 -0
- data/spec/models/card_added_deducted_points_balances_notification_policy_spec.rb +51 -0
- data/spec/models/cart_item_spec.rb +30 -0
- data/spec/models/catalog_action_spec.rb +1 -1
- data/spec/models/coupon_entity_spec.rb +47 -0
- data/spec/models/create_achievement_spec.rb +1 -1
- data/spec/models/customer_profile_entity_spec.rb +47 -0
- data/spec/models/effect_entity_spec.rb +18 -0
- data/spec/models/effect_spec.rb +18 -0
- data/spec/models/environment_spec.rb +6 -0
- data/spec/models/extend_loyalty_points_expiry_date_effect_props_spec.rb +65 -0
- data/spec/models/inline_response20048_spec.rb +0 -6
- data/spec/models/inline_response20049_spec.rb +0 -6
- data/spec/models/inline_response20050_spec.rb +47 -0
- data/spec/models/inline_response20051_spec.rb +47 -0
- data/spec/models/integration_customer_profile_audience_request_item_spec.rb +57 -0
- data/spec/models/integration_customer_profile_audience_request_spec.rb +41 -0
- data/spec/models/integration_event_v2_request_spec.rb +6 -0
- data/spec/models/new_message_test_spec.rb +1 -1
- data/spec/models/new_price_adjustment_spec.rb +71 -0
- data/spec/models/new_price_type_spec.rb +59 -0
- data/spec/models/new_webhook_spec.rb +6 -0
- data/spec/models/price_detail_spec.rb +59 -0
- data/spec/models/price_type_spec.rb +89 -0
- data/spec/models/scim_base_group_spec.rb +47 -0
- data/spec/models/scim_group_member_spec.rb +47 -0
- data/spec/models/scim_group_spec.rb +53 -0
- data/spec/models/scim_groups_list_response_spec.rb +53 -0
- data/spec/models/update_achievement_spec.rb +1 -1
- data/spec/models/webhook_authentication_base_spec.rb +57 -0
- data/spec/models/webhook_authentication_data_basic_spec.rb +47 -0
- data/spec/models/webhook_authentication_data_custom_spec.rb +41 -0
- data/spec/models/webhook_authentication_spec.rb +93 -0
- data/spec/models/webhook_authentication_webhook_ref_spec.rb +53 -0
- data/spec/models/webhook_spec.rb +6 -0
- data/spec/models/webhook_with_outgoing_integration_details_spec.rb +6 -0
- metadata +100 -2
@@ -162,6 +162,20 @@ describe 'ManagementApi' do
|
|
162
162
|
end
|
163
163
|
end
|
164
164
|
|
165
|
+
# unit tests for create_campaign_store_budget
|
166
|
+
# Create campaign store budget
|
167
|
+
# Create a new store budget for a given campaign.
|
168
|
+
# @param application_id The ID of the Application. It is displayed in your Talon.One deployment URL.
|
169
|
+
# @param campaign_id The ID of the campaign. It is displayed in your Talon.One deployment URL.
|
170
|
+
# @param body body
|
171
|
+
# @param [Hash] opts the optional parameters
|
172
|
+
# @return [nil]
|
173
|
+
describe 'create_campaign_store_budget test' do
|
174
|
+
it 'should work' do
|
175
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
165
179
|
# unit tests for create_collection
|
166
180
|
# Create campaign-level collection
|
167
181
|
# Create a campaign-level collection in a given campaign.
|
@@ -360,6 +374,21 @@ describe 'ManagementApi' do
|
|
360
374
|
end
|
361
375
|
end
|
362
376
|
|
377
|
+
# unit tests for delete_campaign_store_budgets
|
378
|
+
# Delete campaign store budgets
|
379
|
+
# Delete the store budgets for a given campaign.
|
380
|
+
# @param application_id The ID of the Application. It is displayed in your Talon.One deployment URL.
|
381
|
+
# @param campaign_id The ID of the campaign. It is displayed in your Talon.One deployment URL.
|
382
|
+
# @param [Hash] opts the optional parameters
|
383
|
+
# @option opts [String] :action The action that this budget is limiting.
|
384
|
+
# @option opts [String] :period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`.
|
385
|
+
# @return [nil]
|
386
|
+
describe 'delete_campaign_store_budgets test' do
|
387
|
+
it 'should work' do
|
388
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
363
392
|
# unit tests for delete_collection
|
364
393
|
# Delete campaign-level collection
|
365
394
|
# Delete a given campaign-level collection.
|
@@ -540,6 +569,21 @@ describe 'ManagementApi' do
|
|
540
569
|
end
|
541
570
|
end
|
542
571
|
|
572
|
+
# unit tests for export_campaign_store_budgets
|
573
|
+
# Export campaign store budgets
|
574
|
+
# Download a CSV file containing the store budgets for a given campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following columns: - `store_integration_id`: The identifier of the store. - `limit`: The budget limit for the store.
|
575
|
+
# @param application_id The ID of the Application. It is displayed in your Talon.One deployment URL.
|
576
|
+
# @param campaign_id The ID of the campaign. It is displayed in your Talon.One deployment URL.
|
577
|
+
# @param [Hash] opts the optional parameters
|
578
|
+
# @option opts [String] :action The action that this budget is limiting.
|
579
|
+
# @option opts [String] :period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`.
|
580
|
+
# @return [String]
|
581
|
+
describe 'export_campaign_store_budgets test' do
|
582
|
+
it 'should work' do
|
583
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
584
|
+
end
|
585
|
+
end
|
586
|
+
|
543
587
|
# unit tests for export_campaign_stores
|
544
588
|
# Export stores
|
545
589
|
# Download a CSV file containing the stores linked to a specific campaign. **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). The CSV file contains the following column: - `store_integration_id`: The identifier of the store.
|
@@ -595,7 +639,7 @@ describe 'ManagementApi' do
|
|
595
639
|
|
596
640
|
# unit tests for export_customer_sessions
|
597
641
|
# Export customer sessions
|
598
|
-
# Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/
|
642
|
+
# Download a CSV file containing the customer sessions that match the request. **Important:** Archived sessions cannot be exported. See the [retention policy](https://docs.talon.one/docs/dev/server-infrastructure-and-data-retention). **Tip:** If the exported CSV file is too large to view, you can [split it into multiple files](https://www.makeuseof.com/tag/how-to-split-a-huge-csv-excel-workbook-into-seperate-files/). - `id`: The internal ID of the session. - `firstsession`: Whether this is a first session. - `integrationid`: The integration ID of the session. - `applicationid`: The ID of the Application. - `profileid`: The internal ID of the customer profile. - `profileintegrationid`: The integration ID of the customer profile. - `created`: The timestamp when the session was created. - `state`: The [state](https://docs.talon.one/docs/dev/concepts/entities/customer-sessions#customer-session-states) of the session. - `cartitems`: The cart items in the session. - `discounts`: The discounts in the session. - `total`: The total value of cart items and additional costs in the session, before any discounts are applied. - `attributes`: The attributes set in the session. - `closedat`: Timestamp when the session was closed. - `cancelledat`: Timestamp when the session was cancelled. - `referral`: The referral code in the session. - `identifiers`: The identifiers in the session. - `additional_costs`: The [additional costs](https://docs.talon.one/docs/product/account/dev-tools/managing-additional-costs) in the session. - `updated`: Timestamp of the last session update. - `store_integration_id`: The integration ID of the store. - `coupons`: Coupon codes in the session.
|
599
643
|
# @param application_id The ID of the Application. It is displayed in your Talon.One deployment URL.
|
600
644
|
# @param [Hash] opts the optional parameters
|
601
645
|
# @option opts [DateTime] :created_before Filter results comparing the parameter value, expected to be an RFC3339 timestamp string.
|
@@ -701,6 +745,8 @@ describe 'ManagementApi' do
|
|
701
745
|
# @param loyalty_program_id Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
|
702
746
|
# @param [Hash] opts the optional parameters
|
703
747
|
# @option opts [String] :batch_id Filter results by loyalty card batch ID.
|
748
|
+
# @option opts [DateTime] :created_before Only return loyalty cards created before this timestamp. **Note:** - This must be an RFC3339 timestamp string.
|
749
|
+
# @option opts [DateTime] :created_after Only return loyalty cards created after this timestamp. **Note:** - This must be an RFC3339 timestamp string.
|
704
750
|
# @option opts [String] :date_format Determines the format of dates in the export document.
|
705
751
|
# @return [String]
|
706
752
|
describe 'export_loyalty_cards test' do
|
@@ -1372,7 +1418,7 @@ describe 'ManagementApi' do
|
|
1372
1418
|
# @option opts [Integer] :skip The number of items to skip when paging through large result sets.
|
1373
1419
|
# @option opts [Integer] :achievement_id The ID of the achievement. You can get this ID with the [List achievement](https://docs.talon.one/management-api#tag/Achievements/operation/listAchievements) endpoint.
|
1374
1420
|
# @option opts [String] :title Filter results by the `title` of an achievement.
|
1375
|
-
# @return [
|
1421
|
+
# @return [InlineResponse20051]
|
1376
1422
|
describe 'get_customer_profile_achievement_progress test' do
|
1377
1423
|
it 'should work' do
|
1378
1424
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -1809,6 +1855,22 @@ describe 'ManagementApi' do
|
|
1809
1855
|
end
|
1810
1856
|
end
|
1811
1857
|
|
1858
|
+
# unit tests for import_campaign_store_budget
|
1859
|
+
# Import campaign store budgets
|
1860
|
+
# Upload a CSV file containing store budgets for a given campaign. Send the file as multipart data. The CSV file **must** only contain the following columns: - `store_integration_id`: The identifier of the store. - `limit`: The budget limit for the store. The import **replaces** the previous list of store budgets.
|
1861
|
+
# @param application_id The ID of the Application. It is displayed in your Talon.One deployment URL.
|
1862
|
+
# @param campaign_id The ID of the campaign. It is displayed in your Talon.One deployment URL.
|
1863
|
+
# @param [Hash] opts the optional parameters
|
1864
|
+
# @option opts [String] :action The action that this budget is limiting.
|
1865
|
+
# @option opts [String] :period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`.
|
1866
|
+
# @option opts [String] :up_file The file containing the data that is being imported.
|
1867
|
+
# @return [Import]
|
1868
|
+
describe 'import_campaign_store_budget test' do
|
1869
|
+
it 'should work' do
|
1870
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1871
|
+
end
|
1872
|
+
end
|
1873
|
+
|
1812
1874
|
# unit tests for import_campaign_stores
|
1813
1875
|
# Import stores
|
1814
1876
|
# Upload a CSV file containing the stores you want to link to a specific campaign. Send the file as multipart data. The CSV file **must** only contain the following column: - `store_integration_id`: The identifier of the store. The import **replaces** the previous list of stores linked to the campaign.
|
@@ -1884,6 +1946,7 @@ describe 'ManagementApi' do
|
|
1884
1946
|
# Upload a CSV file containing the loyalty points you want to import into a given loyalty program. Send the file as multipart data. Depending on the type of loyalty program, you can import points into a given customer profile or loyalty card. The CSV file contains the following columns: - `customerprofileid` (optional): For profile-based loyalty programs, the integration ID of the customer profile where the loyalty points are imported. **Note**: If the customer profile does not exist, it will be created. The profile will not be visible in any Application until a session or profile update is received for that profile. - `identifier` (optional): For card-based loyalty programs, the identifier of the loyalty card where the loyalty points are imported. - `amount`: The amount of points to award to the customer profile. - `startdate` (optional): The earliest date when the points can be redeemed. The points are `active` from this date until the expiration date. **Note**: It must be an RFC3339 timestamp string or string `immediate`. Empty or missing values are considered `immediate`. - `expirydate` (optional): The latest date when the points can be redeemed. The points are `expired` after this date. **Note**: It must be an RFC3339 timestamp string or string `unlimited`. Empty or missing values are considered `unlimited`. - `subledgerid` (optional): The ID of the subledger that should received the points. - `reason` (optional): The reason why these points are awarded. You can use the time zone of your choice. It is converted to UTC internally by Talon.One. **Note:** For existing customer profiles and loyalty cards, the imported points are added to any previous active or pending points, depending on the value provided for `startdate`. If `startdate` matches the current date, the imported points are _active_. If it is later, the points are _pending_ until the date provided for `startdate` is reached. **Note:** We recommend limiting your file size to 500MB. **Example for profile-based programs:** ```text customerprofileid,amount,startdate,expirydate,subledgerid,reason URNGV8294NV,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ``` **Example for card-based programs:** ```text identifier,amount,startdate,expirydate,subledgerid,reason summer-loyalty-card-0543,100,2009-11-10T23:00:00Z,2009-11-11T23:00:00Z,subledger1,appeasement ```
|
1885
1947
|
# @param loyalty_program_id Identifier of the loyalty program. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.
|
1886
1948
|
# @param [Hash] opts the optional parameters
|
1949
|
+
# @option opts [Boolean] :notifications_enabled Indicates whether the points import triggers notifications about its effects. For example, a notification is sent if the import upgrades a customer's tier or offsets their negative points balance. This parameter is optional and defaults to `true`.
|
1887
1950
|
# @option opts [String] :up_file The file containing the data that is being imported.
|
1888
1951
|
# @return [Import]
|
1889
1952
|
describe 'import_loyalty_points test' do
|
@@ -1956,7 +2019,7 @@ describe 'ManagementApi' do
|
|
1956
2019
|
# @option opts [Integer] :page_size The number of items in the response.
|
1957
2020
|
# @option opts [Integer] :skip The number of items to skip when paging through large result sets.
|
1958
2021
|
# @option opts [String] :title Filter by the display name for the achievement in the campaign manager. **Note**: If no `title` is provided, all the achievements from the campaign are returned.
|
1959
|
-
# @return [
|
2022
|
+
# @return [InlineResponse20050]
|
1960
2023
|
describe 'list_achievements test' do
|
1961
2024
|
it 'should work' do
|
1962
2025
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -1974,6 +2037,21 @@ describe 'ManagementApi' do
|
|
1974
2037
|
end
|
1975
2038
|
end
|
1976
2039
|
|
2040
|
+
# unit tests for list_campaign_store_budget_limits
|
2041
|
+
# List campaign store budget limits
|
2042
|
+
# Return the store budget limits for a given campaign.
|
2043
|
+
# @param application_id The ID of the Application. It is displayed in your Talon.One deployment URL.
|
2044
|
+
# @param campaign_id The ID of the campaign. It is displayed in your Talon.One deployment URL.
|
2045
|
+
# @param [Hash] opts the optional parameters
|
2046
|
+
# @option opts [String] :action The action that this budget is limiting.
|
2047
|
+
# @option opts [String] :period The period to which the limit applies. **Note**: For budgets with no period, set this to `overall`.
|
2048
|
+
# @return [InlineResponse20048]
|
2049
|
+
describe 'list_campaign_store_budget_limits test' do
|
2050
|
+
it 'should work' do
|
2051
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2052
|
+
end
|
2053
|
+
end
|
2054
|
+
|
1977
2055
|
# unit tests for list_catalog_items
|
1978
2056
|
# List items in a catalog
|
1979
2057
|
# Return a paginated list of cart items in the given catalog.
|
@@ -2083,6 +2161,18 @@ describe 'ManagementApi' do
|
|
2083
2161
|
end
|
2084
2162
|
end
|
2085
2163
|
|
2164
|
+
# unit tests for scim_create_group
|
2165
|
+
# Create SCIM group
|
2166
|
+
# Create a new Talon.One group using the SCIM Group provisioning protocol with an identity provider, for example, Microsoft Entra ID, and assign members from the payload to the new group. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role.
|
2167
|
+
# @param body body
|
2168
|
+
# @param [Hash] opts the optional parameters
|
2169
|
+
# @return [ScimGroup]
|
2170
|
+
describe 'scim_create_group test' do
|
2171
|
+
it 'should work' do
|
2172
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2173
|
+
end
|
2174
|
+
end
|
2175
|
+
|
2086
2176
|
# unit tests for scim_create_user
|
2087
2177
|
# Create SCIM user
|
2088
2178
|
# Create a new Talon.One user using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID.
|
@@ -2095,6 +2185,18 @@ describe 'ManagementApi' do
|
|
2095
2185
|
end
|
2096
2186
|
end
|
2097
2187
|
|
2188
|
+
# unit tests for scim_delete_group
|
2189
|
+
# Delete SCIM group
|
2190
|
+
# Delete a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role.
|
2191
|
+
# @param group_id The ID of the group.
|
2192
|
+
# @param [Hash] opts the optional parameters
|
2193
|
+
# @return [nil]
|
2194
|
+
describe 'scim_delete_group test' do
|
2195
|
+
it 'should work' do
|
2196
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2197
|
+
end
|
2198
|
+
end
|
2199
|
+
|
2098
2200
|
# unit tests for scim_delete_user
|
2099
2201
|
# Delete SCIM user
|
2100
2202
|
# Delete a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID.
|
@@ -2107,6 +2209,29 @@ describe 'ManagementApi' do
|
|
2107
2209
|
end
|
2108
2210
|
end
|
2109
2211
|
|
2212
|
+
# unit tests for scim_get_group
|
2213
|
+
# Get SCIM group
|
2214
|
+
# Retrieve data for a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role.
|
2215
|
+
# @param group_id The ID of the group.
|
2216
|
+
# @param [Hash] opts the optional parameters
|
2217
|
+
# @return [ScimGroup]
|
2218
|
+
describe 'scim_get_group test' do
|
2219
|
+
it 'should work' do
|
2220
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2221
|
+
end
|
2222
|
+
end
|
2223
|
+
|
2224
|
+
# unit tests for scim_get_groups
|
2225
|
+
# List SCIM groups
|
2226
|
+
# Retrieve a paginated list of groups created using the SCIM protocol with an identity provider, for example, Microsoft Entra ID. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role.
|
2227
|
+
# @param [Hash] opts the optional parameters
|
2228
|
+
# @return [ScimGroupsListResponse]
|
2229
|
+
describe 'scim_get_groups test' do
|
2230
|
+
it 'should work' do
|
2231
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2232
|
+
end
|
2233
|
+
end
|
2234
|
+
|
2110
2235
|
# unit tests for scim_get_resource_types
|
2111
2236
|
# List supported SCIM resource types
|
2112
2237
|
# Retrieve a list of resource types supported by the SCIM provisioning protocol. Resource types define the various kinds of resources that can be managed via the SCIM API, such as users, groups, or custom-defined resources.
|
@@ -2163,6 +2288,19 @@ describe 'ManagementApi' do
|
|
2163
2288
|
end
|
2164
2289
|
end
|
2165
2290
|
|
2291
|
+
# unit tests for scim_patch_group
|
2292
|
+
# Update SCIM group attributes
|
2293
|
+
# Update certain attributes of a group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing of specific group attributes while other attributes remain unchanged. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role.
|
2294
|
+
# @param group_id The ID of the group.
|
2295
|
+
# @param body body
|
2296
|
+
# @param [Hash] opts the optional parameters
|
2297
|
+
# @return [ScimGroup]
|
2298
|
+
describe 'scim_patch_group test' do
|
2299
|
+
it 'should work' do
|
2300
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2301
|
+
end
|
2302
|
+
end
|
2303
|
+
|
2166
2304
|
# unit tests for scim_patch_user
|
2167
2305
|
# Update SCIM user attributes
|
2168
2306
|
# Update certain attributes of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint allows for selective adding, removing, or replacing specific attributes while leaving other attributes unchanged.
|
@@ -2176,6 +2314,19 @@ describe 'ManagementApi' do
|
|
2176
2314
|
end
|
2177
2315
|
end
|
2178
2316
|
|
2317
|
+
# unit tests for scim_replace_group_attributes
|
2318
|
+
# Update SCIM group
|
2319
|
+
# Update the details of a specific group created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint replaces all attributes of the given group with the attributes provided in the request payload. In Talon.One, a `Group` corresponds to a [role](https://docs.talon.one/docs/product/account/account-settings/managing-roles), and `members` are the [users](https://docs.talon.one/docs/product/account/account-settings/managing-users) assigned to that role.
|
2320
|
+
# @param group_id The ID of the group.
|
2321
|
+
# @param body body
|
2322
|
+
# @param [Hash] opts the optional parameters
|
2323
|
+
# @return [ScimGroup]
|
2324
|
+
describe 'scim_replace_group_attributes test' do
|
2325
|
+
it 'should work' do
|
2326
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2327
|
+
end
|
2328
|
+
end
|
2329
|
+
|
2179
2330
|
# unit tests for scim_replace_user_attributes
|
2180
2331
|
# Update SCIM user
|
2181
2332
|
# Update the details of a specific Talon.One user created using the SCIM provisioning protocol with an identity provider, for example, Microsoft Entra ID. This endpoint replaces all attributes of the specific user with the attributes provided in the request payload.
|
@@ -2241,6 +2392,19 @@ describe 'ManagementApi' do
|
|
2241
2392
|
end
|
2242
2393
|
end
|
2243
2394
|
|
2395
|
+
# unit tests for summarize_campaign_store_budget
|
2396
|
+
# Get summary of campaign store budgets
|
2397
|
+
# Fetch a summary of all store budget information for a given campaign.
|
2398
|
+
# @param application_id The ID of the Application. It is displayed in your Talon.One deployment URL.
|
2399
|
+
# @param campaign_id The ID of the campaign. It is displayed in your Talon.One deployment URL.
|
2400
|
+
# @param [Hash] opts the optional parameters
|
2401
|
+
# @return [InlineResponse20049]
|
2402
|
+
describe 'summarize_campaign_store_budget test' do
|
2403
|
+
it 'should work' do
|
2404
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2405
|
+
end
|
2406
|
+
end
|
2407
|
+
|
2244
2408
|
# unit tests for transfer_loyalty_card
|
2245
2409
|
# Transfer card data
|
2246
2410
|
# Transfer loyalty card data, such as linked customers, loyalty balances and transactions, from a given loyalty card to a new, automatically created loyalty card. **Important:** - The original card is automatically blocked once the new card is created, and it cannot be activated again. - The default status of the new card is _active_.
|
@@ -71,7 +71,7 @@ describe 'AchievementBase' do
|
|
71
71
|
describe 'test attribute "recurrence_policy"' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["no_recurrence", "on_expiration"])
|
74
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["no_recurrence", "on_expiration", "on_completion"])
|
75
75
|
# validator.allowable_values.each do |value|
|
76
76
|
# expect { @instance.recurrence_policy = value }.not_to raise_error
|
77
77
|
# end
|
@@ -105,7 +105,7 @@ describe 'AchievementProgressWithDefinition' do
|
|
105
105
|
describe 'test attribute "achievement_recurrence_policy"' do
|
106
106
|
it 'should work' do
|
107
107
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
108
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["no_recurrence", "on_expiration"])
|
108
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["no_recurrence", "on_expiration", "on_completion"])
|
109
109
|
# validator.allowable_values.each do |value|
|
110
110
|
# expect { @instance.achievement_recurrence_policy = value }.not_to raise_error
|
111
111
|
# end
|
@@ -83,7 +83,7 @@ describe 'Achievement' do
|
|
83
83
|
describe 'test attribute "recurrence_policy"' do
|
84
84
|
it 'should work' do
|
85
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["no_recurrence", "on_expiration"])
|
86
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["no_recurrence", "on_expiration", "on_completion"])
|
87
87
|
# validator.allowable_values.each do |value|
|
88
88
|
# expect { @instance.recurrence_policy = value }.not_to raise_error
|
89
89
|
# end
|
@@ -83,7 +83,7 @@ describe 'AchievementStatusEntry' do
|
|
83
83
|
describe 'test attribute "recurrence_policy"' do
|
84
84
|
it 'should work' do
|
85
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["no_recurrence", "on_expiration"])
|
86
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["no_recurrence", "on_expiration", "on_completion"])
|
87
87
|
# validator.allowable_values.each do |value|
|
88
88
|
# expect { @instance.recurrence_policy = value }.not_to raise_error
|
89
89
|
# end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#Talon.One API
|
3
|
+
|
4
|
+
#Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
|
5
|
+
|
6
|
+
The version of the OpenAPI document:
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for TalonOne::AddPriceAdjustmentCatalogAction
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'AddPriceAdjustmentCatalogAction' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = TalonOne::AddPriceAdjustmentCatalogAction.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of AddPriceAdjustmentCatalogAction' do
|
31
|
+
it 'should create an instance of AddPriceAdjustmentCatalogAction' do
|
32
|
+
expect(@instance).to be_instance_of(TalonOne::AddPriceAdjustmentCatalogAction)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "sku"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "adjustments"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
=begin
|
2
|
+
#Talon.One API
|
3
|
+
|
4
|
+
#Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
|
5
|
+
|
6
|
+
The version of the OpenAPI document:
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for TalonOne::AddedDeductedPointsBalancesNotificationPolicy
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'AddedDeductedPointsBalancesNotificationPolicy' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = TalonOne::AddedDeductedPointsBalancesNotificationPolicy.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of AddedDeductedPointsBalancesNotificationPolicy' do
|
31
|
+
it 'should create an instance of AddedDeductedPointsBalancesNotificationPolicy' do
|
32
|
+
expect(@instance).to be_instance_of(TalonOne::AddedDeductedPointsBalancesNotificationPolicy)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "name"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "scopes"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["all", "campaign_manager", "management_api", "rule_engine"])
|
45
|
+
# validator.allowable_values.each do |value|
|
46
|
+
# expect { @instance.scopes = value }.not_to raise_error
|
47
|
+
# end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
@@ -59,7 +59,7 @@ describe 'BaseNotification' do
|
|
59
59
|
describe 'test attribute "type"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["campaign", "loyalty_added_deducted_points", "card_added_deducted_points", "coupon", "expiring_coupons", "expiring_points", "card_expiring_points", "pending_to_active_points", "strikethrough_pricing", "tier_downgrade", "tier_upgrade", "tier_will_downgrade"])
|
62
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["campaign", "loyalty_added_deducted_points", "card_added_deducted_points", "loyalty_added_deducted_points_balances", "loyalty_card_added_deducted_points_balances", "coupon", "expiring_coupons", "expiring_points", "card_expiring_points", "pending_to_active_points", "strikethrough_pricing", "tier_downgrade", "tier_upgrade", "tier_will_downgrade"])
|
63
63
|
# validator.allowable_values.each do |value|
|
64
64
|
# expect { @instance.type = value }.not_to raise_error
|
65
65
|
# end
|
data/spec/models/binding_spec.rb
CHANGED
@@ -56,4 +56,28 @@ describe 'Binding' do
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
+
describe 'test attribute "min_value"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "max_value"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe 'test attribute "attribute_id"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
describe 'test attribute "description"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
59
83
|
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#Talon.One API
|
3
|
+
|
4
|
+
#Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
|
5
|
+
|
6
|
+
The version of the OpenAPI document:
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for TalonOne::CampaignDeactivationRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CampaignDeactivationRequest' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = TalonOne::CampaignDeactivationRequest.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CampaignDeactivationRequest' do
|
31
|
+
it 'should create an instance of CampaignDeactivationRequest' do
|
32
|
+
expect(@instance).to be_instance_of(TalonOne::CampaignDeactivationRequest)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "user_ids"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
=begin
|
2
|
+
#Talon.One API
|
3
|
+
|
4
|
+
#Use the Talon.One API to integrate with your application and to manage applications and campaigns: - Use the operations in the [Integration API section](#integration-api) are used to integrate with our platform - Use the operation in the [Management API section](#management-api) to manage applications and campaigns. ## Determining the base URL of the endpoints The API is available at the same hostname as your Campaign Manager deployment. For example, if you access the Campaign Manager at `https://yourbaseurl.talon.one/`, the URL for the [updateCustomerSessionV2](https://docs.talon.one/integration-api#operation/updateCustomerSessionV2) endpoint is `https://yourbaseurl.talon.one/v2/customer_sessions/{Id}`
|
5
|
+
|
6
|
+
The version of the OpenAPI document:
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for TalonOne::CardAddedDeductedPointsBalancesNotificationPolicy
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'CardAddedDeductedPointsBalancesNotificationPolicy' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = TalonOne::CardAddedDeductedPointsBalancesNotificationPolicy.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of CardAddedDeductedPointsBalancesNotificationPolicy' do
|
31
|
+
it 'should create an instance of CardAddedDeductedPointsBalancesNotificationPolicy' do
|
32
|
+
expect(@instance).to be_instance_of(TalonOne::CardAddedDeductedPointsBalancesNotificationPolicy)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "name"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "scopes"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["all", "campaign_manager", "management_api", "rule_engine"])
|
45
|
+
# validator.allowable_values.each do |value|
|
46
|
+
# expect { @instance.scopes = value }.not_to raise_error
|
47
|
+
# end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
@@ -128,4 +128,34 @@ describe 'CartItem' do
|
|
128
128
|
end
|
129
129
|
end
|
130
130
|
|
131
|
+
describe 'test attribute "selected_price_type"' do
|
132
|
+
it 'should work' do
|
133
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
describe 'test attribute "adjustment_reference_id"' do
|
138
|
+
it 'should work' do
|
139
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
describe 'test attribute "adjustment_effective_from"' do
|
144
|
+
it 'should work' do
|
145
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
describe 'test attribute "adjustment_effective_until"' do
|
150
|
+
it 'should work' do
|
151
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
describe 'test attribute "prices"' do
|
156
|
+
it 'should work' do
|
157
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
131
161
|
end
|
@@ -35,7 +35,7 @@ describe 'CatalogAction' do
|
|
35
35
|
describe 'test attribute "type"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ADD", "PATCH", "PATCH_MANY", "REMOVE", "REMOVE_MANY"])
|
38
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ADD", "PATCH", "PATCH_MANY", "REMOVE", "REMOVE_MANY", "ADD_PRICE_ADJUSTMENT"])
|
39
39
|
# validator.allowable_values.each do |value|
|
40
40
|
# expect { @instance.type = value }.not_to raise_error
|
41
41
|
# end
|