voucherify 8.2.0 → 8.3.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/Dockerfile +1 -1
- data/ENDPOINTS-COVERAGE.md +17 -15
- data/Gemfile.lock +9 -9
- data/README.md +12 -0
- data/__tests__/lib/campaigns.rb +2 -2
- data/__tests__/spec/snapshots/campaigns/created_validation_rule_applicable_to.snap +1 -1
- data/__tests__/spec/snapshots/campaigns/created_validation_rule_more_than.snap +1 -1
- data/docs/AccessSettingsAssign.md +3 -3
- data/docs/AccessSettingsProductCollectionAssignmentsList.md +11 -0
- data/docs/AccessSettingsUnassign.md +3 -3
- data/docs/ApplicableTo.md +1 -1
- data/docs/AreaStoreProductCollectionAssignment.md +14 -0
- data/docs/Campaign.md +2 -2
- data/docs/CampaignBase.md +2 -2
- data/docs/CampaignsApi.md +4 -4
- data/docs/CampaignsCreateRequestBody.md +2 -2
- data/docs/CampaignsCreateResponseBody.md +2 -2
- data/docs/CampaignsGetResponseBody.md +2 -2
- data/docs/CampaignsUpdateRequestBody.md +2 -2
- data/docs/CampaignsUpdateResponseBody.md +2 -2
- data/docs/CardDailyReportEntry.md +3 -1
- data/docs/CardLifetimeBucketPoints.md +2 -0
- data/docs/CustomerLoyalty.md +2 -2
- data/docs/CustomerLoyaltyCampaignsEntry.md +1 -1
- data/docs/CustomersApi.md +4 -4
- data/docs/InapplicableTo.md +1 -1
- data/docs/LV2BenefitsApi.md +1 -1
- data/docs/LV2EarningRulesApi.md +1 -1
- data/docs/LV2ExamineApi.md +2 -2
- data/docs/LV2ProgramsApi.md +44 -44
- data/docs/LV2RewardsApi.md +1 -1
- data/docs/ListPublicationsItemVoucher.md +1 -1
- data/docs/LoyaltiesApi.md +6 -6
- data/docs/LoyaltiesCreateCampaignRequestBody.md +2 -2
- data/docs/LoyaltiesCreateCampaignResponseBody.md +2 -2
- data/docs/LoyaltiesGetCampaignResponseBody.md +2 -2
- data/docs/LoyaltiesListMembersResponseBody.md +1 -1
- data/docs/LoyaltiesMembersRedemptionRedeemResponseBodyChannel.md +1 -1
- data/docs/LoyaltiesRewardAssignmentsGetResponseBody.md +2 -2
- data/docs/LoyaltiesRewardAssignmentsGetResponseBodyParametersLoyalty.md +1 -1
- data/docs/LoyaltiesRewardAssignmentsRewardGetResponseBody.md +1 -1
- data/docs/LoyaltiesRewardsCreateAssignmentResponseBody.md +2 -2
- data/docs/LoyaltiesRewardsCreateAssignmentResponseBodyParametersLoyalty.md +1 -1
- data/docs/LoyaltiesRewardsGetResponseBody.md +2 -2
- data/docs/LoyaltiesRewardsGetResponseBodyParametersLoyalty.md +1 -1
- data/docs/LoyaltiesRewardsUpdateAssignmentRequestBodyParametersLoyalty.md +1 -1
- data/docs/LoyaltiesRewardsUpdateAssignmentResponseBody.md +2 -2
- data/docs/LoyaltiesRewardsUpdateAssignmentResponseBodyParametersLoyalty.md +1 -1
- data/docs/LoyaltiesTiersListResponseBody.md +1 -1
- data/docs/LoyaltiesUpdateCampaignRequestBody.md +2 -2
- data/docs/LoyaltiesUpdateCampaignResponseBody.md +2 -2
- data/docs/LoyaltyCampaign.md +2 -2
- data/docs/LoyaltyV2ActivityBenefitStockLimited.md +1 -1
- data/docs/LoyaltyV2ActivityEarningRuleEffectPointsExpirationCalendarExpirationDate.md +1 -1
- data/docs/LoyaltyV2ActivityEarningRuleEffectPointsExpirationRollingExpirationRounding.md +1 -1
- data/docs/LoyaltyV2ActivityEarningRulePointsProportionalEvery.md +1 -1
- data/docs/LoyaltyV2ActivityEarningRulePointsProportionalMetadata.md +1 -1
- data/docs/ManagementApi.md +2 -2
- data/docs/ManagementProjectsCreateRequestBodyUsersItem.md +2 -2
- data/docs/ManagementProjectsUsersAssignRequestBody.md +2 -2
- data/docs/MetadataSchemasApi.md +1 -1
- data/docs/ProductCollectionsApi.md +4 -4
- data/docs/ProductCollectionsCreateRequestBody.md +1 -0
- data/docs/ProductCollectionsCreateResponseBody.md +2 -0
- data/docs/ProductCollectionsGetResponseBody.md +2 -0
- data/docs/ProductCollectionsItem.md +2 -0
- data/docs/ProductCollectionsListResponseBody.md +1 -1
- data/docs/ProductsApi.md +1 -1
- data/docs/RedemptionChannel.md +1 -1
- data/docs/RedemptionRewardResult.md +1 -1
- data/docs/RedemptionRewardResultParametersCoin.md +1 -1
- data/docs/Reward.md +1 -1
- data/docs/RewardAssignment.md +2 -2
- data/docs/RewardAssignmentParametersLoyalty.md +1 -1
- data/docs/RewardType.md +1 -0
- data/docs/RewardTypeCoin.md +2 -2
- data/docs/RewardTypeLoyaltyPoints.md +11 -0
- data/docs/RewardsApi.md +5 -5
- data/docs/RewardsAssignmentsCreateRequestBody.md +2 -0
- data/docs/RewardsAssignmentsCreateRequestBodyParametersLoyalty.md +1 -1
- data/docs/RewardsAssignmentsCreateResponseBody.md +2 -2
- data/docs/RewardsAssignmentsCreateResponseBodyParametersLoyalty.md +1 -1
- data/docs/RewardsAssignmentsGetResponseBody.md +2 -2
- data/docs/RewardsAssignmentsGetResponseBodyParametersLoyalty.md +1 -1
- data/docs/RewardsAssignmentsUpdateRequestBodyParametersLoyalty.md +1 -1
- data/docs/RewardsAssignmentsUpdateResponseBody.md +2 -2
- data/docs/RewardsAssignmentsUpdateResponseBodyParametersLoyalty.md +1 -1
- data/docs/RewardsCreateRequestBody.md +1 -0
- data/docs/RewardsCreateRequestBodyParameters.md +1 -0
- data/docs/RewardsCreateRequestBodyParametersCoin.md +1 -1
- data/docs/RewardsCreateRequestBodyParametersLoyaltyPoints.md +11 -0
- data/docs/RewardsCreateResponseBody.md +1 -1
- data/docs/RewardsUpdateRequestBodyParameters.md +1 -0
- data/docs/RewardsUpdateRequestBodyParametersCoin.md +1 -1
- data/docs/RewardsUpdateRequestBodyParametersLoyaltyPoints.md +11 -0
- data/docs/RewardsUpdateResponseBody.md +1 -1
- data/docs/TemplatesApi.md +1 -1
- data/docs/TemplatesCampaignsCampaignSetupCreateRequestBody.md +2 -2
- data/docs/V2LoyaltiesBenefitsGetResponseBody.md +1 -1
- data/docs/V2LoyaltiesBenefitsGetResponseBodyPoints.md +1 -1
- data/docs/V2LoyaltiesBenefitsGetResponseBodyPointsProportional.md +2 -2
- data/docs/V2LoyaltiesEarningRulesGetResponseBody.md +1 -1
- data/docs/VouchersApi.md +6 -6
- data/lib/VoucherifySdk/api/campaigns_api.rb +6 -6
- data/lib/VoucherifySdk/api/customers_api.rb +4 -4
- data/lib/VoucherifySdk/api/loyalties_api.rb +8 -8
- data/lib/VoucherifySdk/api/lv2_benefits_api.rb +2 -2
- data/lib/VoucherifySdk/api/lv2_earning_rules_api.rb +2 -2
- data/lib/VoucherifySdk/api/lv2_examine_api.rb +4 -4
- data/lib/VoucherifySdk/api/lv2_programs_api.rb +88 -88
- data/lib/VoucherifySdk/api/lv2_rewards_api.rb +2 -2
- data/lib/VoucherifySdk/api/management_api.rb +4 -4
- data/lib/VoucherifySdk/api/metadata_schemas_api.rb +2 -2
- data/lib/VoucherifySdk/api/product_collections_api.rb +8 -8
- data/lib/VoucherifySdk/api/products_api.rb +2 -2
- data/lib/VoucherifySdk/api/rewards_api.rb +8 -8
- data/lib/VoucherifySdk/api/templates_api.rb +2 -2
- data/lib/VoucherifySdk/api/vouchers_api.rb +12 -12
- data/lib/VoucherifySdk/models/access_settings.rb +1 -1
- data/lib/VoucherifySdk/models/access_settings_assign.rb +4 -4
- data/lib/VoucherifySdk/models/access_settings_product_collection_assignments_list.rb +280 -0
- data/lib/VoucherifySdk/models/access_settings_unassign.rb +4 -4
- data/lib/VoucherifySdk/models/applicable_to.rb +1 -1
- data/lib/VoucherifySdk/models/area_store_product_collection_assignment.rb +302 -0
- data/lib/VoucherifySdk/models/benefit_points_proportional_custom_event_metadata.rb +1 -1
- data/lib/VoucherifySdk/models/benefit_points_proportional_customer_metadata.rb +1 -1
- data/lib/VoucherifySdk/models/benefit_points_proportional_order_amount.rb +1 -1
- data/lib/VoucherifySdk/models/benefit_points_proportional_order_metadata.rb +1 -1
- data/lib/VoucherifySdk/models/benefit_points_proportional_order_total_amount.rb +1 -1
- data/lib/VoucherifySdk/models/campaign.rb +2 -2
- data/lib/VoucherifySdk/models/campaign_base.rb +2 -2
- data/lib/VoucherifySdk/models/campaign_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/campaign_loyalty_card_expiration_rules.rb +1 -1
- data/lib/VoucherifySdk/models/campaigns_create_request_body.rb +2 -2
- data/lib/VoucherifySdk/models/campaigns_create_response_body.rb +2 -2
- data/lib/VoucherifySdk/models/campaigns_get_response_body.rb +2 -2
- data/lib/VoucherifySdk/models/campaigns_update_request_body.rb +2 -2
- data/lib/VoucherifySdk/models/campaigns_update_response_body.rb +2 -2
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_combined_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/campaigns_vouchers_create_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/card_daily_report_entry.rb +24 -2
- data/lib/VoucherifySdk/models/card_lifetime_bucket_points.rb +31 -5
- data/lib/VoucherifySdk/models/card_transaction.rb +1 -1
- data/lib/VoucherifySdk/models/client_events_create_request_body_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/customer_loyalty.rb +3 -2
- data/lib/VoucherifySdk/models/customer_loyalty_campaigns_entry.rb +2 -2
- data/lib/VoucherifySdk/models/customer_summary_redemptions_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/earning_rule.rb +1 -0
- data/lib/VoucherifySdk/models/events_create_request_body_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/inapplicable_to.rb +1 -1
- data/lib/VoucherifySdk/models/list_publications_item_voucher.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_create_campaign_request_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalties_create_campaign_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_custom_event.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_earning_rules_create_request_body_item_segment.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_earning_rules_list_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_earning_rules_update_request_body.rb +1 -0
- data/lib/VoucherifySdk/models/loyalties_get_campaign_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalties_list_campaigns_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_list_members_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_loyalty_tier_reward.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_members_create_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_members_get_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_channel.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_members_redemption_redeem_response_body_voucher_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_members_transfers_create_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_programs_members_benefits_transactions_list_request_query_benefit_id.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_reward_assignments_get_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalties_reward_assignments_get_response_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_reward_assignments_reward_get_response_body.rb +2 -2
- data/lib/VoucherifySdk/models/loyalties_rewards_create_assignment_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalties_rewards_create_assignment_response_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_rewards_get_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalties_rewards_get_response_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_request_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalties_rewards_update_assignment_response_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_tiers_list_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/loyalties_transfer_points.rb +1 -0
- data/lib/VoucherifySdk/models/loyalties_update_campaign_request_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalties_update_campaign_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/loyalty_campaign.rb +3 -2
- data/lib/VoucherifySdk/models/loyalty_campaign_voucher.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_holder_loyalty_tier.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_card_transaction_details_loyalty_tier.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_member.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_member_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_pending_points_details_holder_loyalty_tier.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_tier.rb +1 -0
- data/lib/VoucherifySdk/models/loyalty_tiers_expiration_all.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_v2_activity_benefit_stock_limited.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_effect_points_expiration_calendar_expiration_date.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_effect_points_expiration_rolling_expiration_rounding.rb +2 -2
- data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_points_proportional_every.rb +1 -1
- data/lib/VoucherifySdk/models/loyalty_v2_activity_earning_rule_points_proportional_metadata.rb +1 -1
- data/lib/VoucherifySdk/models/management_projects_create_request_body_users_item.rb +2 -2
- data/lib/VoucherifySdk/models/management_projects_users_assign_request_body.rb +2 -2
- data/lib/VoucherifySdk/models/member_activity.rb +1 -1
- data/lib/VoucherifySdk/models/parameter_filters_list_customer_redeemables_campaign_type.rb +1 -1
- data/lib/VoucherifySdk/models/product_collections_create_request_body.rb +10 -1
- data/lib/VoucherifySdk/models/product_collections_create_response_body.rb +21 -1
- data/lib/VoucherifySdk/models/product_collections_get_response_body.rb +21 -1
- data/lib/VoucherifySdk/models/product_collections_item.rb +21 -1
- data/lib/VoucherifySdk/models/product_collections_list_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/redeemable_voucher_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/redemption_channel.rb +1 -1
- data/lib/VoucherifySdk/models/redemption_reward_result.rb +2 -2
- data/lib/VoucherifySdk/models/redemption_reward_result_parameters_coin.rb +2 -2
- data/lib/VoucherifySdk/models/redemption_voucher_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/reward.rb +2 -2
- data/lib/VoucherifySdk/models/reward_assignment.rb +3 -3
- data/lib/VoucherifySdk/models/reward_assignment_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/reward_type.rb +15 -5
- data/lib/VoucherifySdk/models/reward_type_coin.rb +3 -3
- data/lib/VoucherifySdk/models/reward_type_loyalty_points.rb +284 -0
- data/lib/VoucherifySdk/models/rewards_assignments_create_request_body.rb +50 -5
- data/lib/VoucherifySdk/models/rewards_assignments_create_request_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/rewards_assignments_create_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/rewards_assignments_create_response_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/rewards_assignments_get_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/rewards_assignments_get_response_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/rewards_assignments_update_request_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/rewards_assignments_update_response_body.rb +3 -3
- data/lib/VoucherifySdk/models/rewards_assignments_update_response_body_parameters_loyalty.rb +1 -1
- data/lib/VoucherifySdk/models/rewards_create_request_body.rb +35 -1
- data/lib/VoucherifySdk/models/rewards_create_request_body_parameters.rb +15 -5
- data/lib/VoucherifySdk/models/rewards_create_request_body_parameters_coin.rb +2 -2
- data/lib/VoucherifySdk/models/rewards_create_request_body_parameters_loyalty_points.rb +284 -0
- data/lib/VoucherifySdk/models/rewards_create_response_body.rb +2 -2
- data/lib/VoucherifySdk/models/rewards_update_request_body_parameters.rb +15 -5
- data/lib/VoucherifySdk/models/rewards_update_request_body_parameters_coin.rb +2 -2
- data/lib/VoucherifySdk/models/rewards_update_request_body_parameters_loyalty_points.rb +284 -0
- data/lib/VoucherifySdk/models/rewards_update_response_body.rb +2 -2
- data/lib/VoucherifySdk/models/simple_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/templates_campaigns_campaign_setup_create_request_body.rb +2 -2
- data/lib/VoucherifySdk/models/v2_loyalties_benefits_get_response_body.rb +1 -1
- data/lib/VoucherifySdk/models/v2_loyalties_benefits_get_response_body_points.rb +1 -1
- data/lib/VoucherifySdk/models/v2_loyalties_benefits_get_response_body_points_proportional.rb +3 -3
- data/lib/VoucherifySdk/models/v2_loyalties_earning_rules_get_response_body.rb +2 -2
- data/lib/VoucherifySdk/models/voucher_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/voucher_transaction_details_holder_loyalty_tier.rb +1 -1
- data/lib/VoucherifySdk/models/voucher_transaction_details_loyalty_tier.rb +1 -1
- data/lib/VoucherifySdk/models/voucher_with_categories_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/vouchers_create_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/vouchers_disable_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/vouchers_enable_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/vouchers_get_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/models/vouchers_update_response_body_loyalty_card.rb +1 -1
- data/lib/VoucherifySdk/version.rb +1 -1
- data/lib/VoucherifySdk.rb +5 -0
- metadata +39 -29
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **points** | **Integer** | The number of points required to redeem the reward. | [optional] |
|
|
8
|
-
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`. | [optional] |
|
|
8
|
+
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`. | [optional] |
|
|
9
9
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
| **redeemed** | **Integer** | Defines the number of already invoked (successful) reward redemptions. | [optional] |
|
|
11
11
|
| **attributes** | [**LoyaltiesRewardAssignmentsRewardGetResponseBodyAttributes**](LoyaltiesRewardAssignmentsRewardGetResponseBodyAttributes.md) | | [optional] |
|
|
12
12
|
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the reward. A set of key/value pairs that you can attach to a reward object. It can be useful for storing additional information about the reward in a structured format. | [optional] |
|
|
13
|
-
| **type** | **String** | Reward type. | [optional] |
|
|
13
|
+
| **type** | **String** | Reward type. `LOYALTY_POINTS` credits points on a `v2/loyalties` (loyalty hub) card (for example from a referral tier). | [optional] |
|
|
14
14
|
| **parameters** | [**RewardType**](RewardType.md) | | [optional] |
|
|
15
15
|
| **created_at** | **Time** | Timestamp representing the date and time when the reward was created. The value is shown in the ISO 8601 format. | [optional] |
|
|
16
16
|
| **updated_at** | **Time** | Timestamp representing the date and time when the reward was updated. The value is shown in the ISO 8601 format. | [optional] |
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
| **created_at** | **Time** | Timestamp representing the date and time when the reward assignment was created. The value is shown in the ISO 8601 format. | [optional] |
|
|
10
10
|
| **updated_at** | **Time** | Timestamp representing the date and time when the reward assignment was updated. The value is shown in the ISO 8601 format. | [optional] |
|
|
11
11
|
| **object** | **String** | The type of the object represented by the JSON. This object stores information about the reward assignment. | [optional][default to 'reward_assignment'] |
|
|
12
|
-
| **related_object_id** | **String** | Related object ID to which the reward was assigned. | [optional] |
|
|
13
|
-
| **related_object_type** | **String** | Related object type to which the reward was assigned. | [optional][default to 'campaign'] |
|
|
12
|
+
| **related_object_id** | **String** | Related object ID to which the reward was assigned. For `related_object_type` `campaign`, this is the campaign ID. For `referral_tier`, this is the referral tier ID. | [optional] |
|
|
13
|
+
| **related_object_type** | **String** | Related object type to which the reward was assigned. Use `campaign` for **legacy loyalty** campaign rewards. Use `referral_tier` for `LOYALTY_POINTS` rewards that credit a `v2/loyalties` (loyalty hub) card from a referral tier. A `LOYALTY_POINTS` reward can only be assigned to a referral tier. | [optional][default to 'campaign'] |
|
|
14
14
|
| **parameters** | [**LoyaltiesRewardsCreateAssignmentResponseBodyParameters**](LoyaltiesRewardsCreateAssignmentResponseBodyParameters.md) | | [optional] |
|
|
15
15
|
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **points** | **Integer** | The number of points required to redeem the reward. | [optional] |
|
|
8
|
-
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`. | [optional] |
|
|
8
|
+
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`. | [optional] |
|
|
9
9
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
| **created_at** | **Time** | Timestamp representing the date and time when the reward assignment was created. The value is shown in the ISO 8601 format. | [optional] |
|
|
10
10
|
| **updated_at** | **Time** | Timestamp representing the date and time when the reward assignment was updated. The value is shown in the ISO 8601 format. | [optional] |
|
|
11
11
|
| **object** | **String** | The type of the object represented by the JSON. This object stores information about the reward assignment. | [optional][default to 'reward_assignment'] |
|
|
12
|
-
| **related_object_id** | **String** | Related object ID to which the reward was assigned. | [optional] |
|
|
13
|
-
| **related_object_type** | **String** | Related object type to which the reward was assigned. | [optional][default to 'campaign'] |
|
|
12
|
+
| **related_object_id** | **String** | Related object ID to which the reward was assigned. For `related_object_type` `campaign`, this is the campaign ID. For `referral_tier`, this is the referral tier ID. | [optional] |
|
|
13
|
+
| **related_object_type** | **String** | Related object type to which the reward was assigned. Use `campaign` for **legacy loyalty** campaign rewards. Use `referral_tier` for `LOYALTY_POINTS` rewards that credit a `v2/loyalties` (loyalty hub) card from a referral tier. A `LOYALTY_POINTS` reward can only be assigned to a referral tier. | [optional][default to 'campaign'] |
|
|
14
14
|
| **parameters** | [**LoyaltiesRewardsGetResponseBodyParameters**](LoyaltiesRewardsGetResponseBodyParameters.md) | | [optional] |
|
|
15
15
|
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **points** | **Integer** | The number of points required to redeem the reward. | [optional] |
|
|
8
|
-
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`. | [optional] |
|
|
8
|
+
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`. | [optional] |
|
|
9
9
|
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **points** | **Integer** | Defines how many points are required to obtain the reward. | [optional] |
|
|
8
|
-
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`. | [optional] |
|
|
8
|
+
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`. | [optional] |
|
|
9
9
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
| **created_at** | **Time** | Timestamp representing the date and time when the reward assignment was created. The value is shown in the ISO 8601 format. | [optional] |
|
|
10
10
|
| **updated_at** | **Time** | Timestamp representing the date and time when the reward assignment was updated. The value is shown in the ISO 8601 format. | [optional] |
|
|
11
11
|
| **object** | **String** | The type of the object represented by the JSON. This object stores information about the reward assignment. | [optional][default to 'reward_assignment'] |
|
|
12
|
-
| **related_object_id** | **String** | Related object ID to which the reward was assigned. | [optional] |
|
|
13
|
-
| **related_object_type** | **String** | Related object type to which the reward was assigned. | [optional][default to 'campaign'] |
|
|
12
|
+
| **related_object_id** | **String** | Related object ID to which the reward was assigned. For `related_object_type` `campaign`, this is the campaign ID. For `referral_tier`, this is the referral tier ID. | [optional] |
|
|
13
|
+
| **related_object_type** | **String** | Related object type to which the reward was assigned. Use `campaign` for **legacy loyalty** campaign rewards. Use `referral_tier` for `LOYALTY_POINTS` rewards that credit a `v2/loyalties` (loyalty hub) card from a referral tier. A `LOYALTY_POINTS` reward can only be assigned to a referral tier. | [optional][default to 'campaign'] |
|
|
14
14
|
| **parameters** | [**LoyaltiesRewardsUpdateAssignmentResponseBodyParameters**](LoyaltiesRewardsUpdateAssignmentResponseBodyParameters.md) | | [optional] |
|
|
15
15
|
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **points** | **Integer** | The number of points required to redeem the reward. | [optional] |
|
|
8
|
-
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`. | [optional] |
|
|
8
|
+
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`. | [optional] |
|
|
9
9
|
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **object** | **String** | The type of the object represented by JSON. This object stores information about loyalty tiers in a dictionary. | [optional][default to 'list'] |
|
|
8
8
|
| **data_ref** | **String** | Identifies the name of the attribute that contains the array of loyalty tier objects. | [optional][default to 'data'] |
|
|
9
|
-
| **data** | [**Array<LoyaltyTier>**](LoyaltyTier.md) | This is an object representing a loyalty tier. Loyalty tiers are used
|
|
9
|
+
| **data** | [**Array<LoyaltyTier>**](LoyaltyTier.md) | This is an object representing a loyalty tier. Loyalty tiers are used in a **legacy loyalty** campaign with different levels of membership and varied earning rules and rewards based on the customer's tiers. | [optional] |
|
|
10
10
|
| **total** | **Integer** | Total number of loyalty tier objects. | [optional] |
|
|
11
11
|
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
| **category_id** | **String** | Unique category ID that this campaign belongs to. Either pass this parameter OR the `category`. | [optional] |
|
|
17
17
|
| **access_settings** | [**AccessSettings**](AccessSettings.md) | | [optional] |
|
|
18
18
|
| **activity_duration_after_publishing** | **String** | Defines the amount of time the vouchers will be active after publishing. The value is shown in the ISO 8601 format. For example, a voucher with the value of P24D will be valid for a duration of 24 days. | [optional] |
|
|
19
|
-
| **join_once** | **Boolean** | If this value is set to `true`, customers will be able to join the campaign only once. It is always `false` for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always `true` for loyalty campaigns and it cannot be changed in them. | [optional] |
|
|
20
|
-
| **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
|
|
19
|
+
| **join_once** | **Boolean** | If this value is set to `true`, customers will be able to join the campaign only once. It is always `false` for generic (standalone) vouchers campaigns and it cannot be changed in them. It is always `true` for **legacy loyalty** campaigns and it cannot be changed in them. | [optional] |
|
|
20
|
+
| **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a **legacy loyalty** campaign if any earning rule is fulfilled. | [optional] |
|
|
21
21
|
| **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - `AUTO_UPDATE`: By choosing the auto update option you will create a campaign that can be enhanced by new vouchers after the time of creation (e.g. by publish vouchers method). - `STATIC`: vouchers need to be manually published. If the `type` of the campaign is `STANDALONE`, the type cannot be changed. Also, the `type` cannot be changed to `STANDALONE`. | [optional] |
|
|
22
22
|
| **loyalty_tiers_expiration** | [**LoyaltyTiersExpirationAll**](LoyaltyTiersExpirationAll.md) | | [optional] |
|
|
23
23
|
| **options** | [**LoyaltiesUpdateCampaignRequestBodyOptions**](LoyaltiesUpdateCampaignRequestBodyOptions.md) | | [optional] |
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
| **campaign_type** | **String** | Type of campaign. | [optional][default to 'LOYALTY_PROGRAM'] |
|
|
11
11
|
| **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published | [optional] |
|
|
12
12
|
| **voucher** | [**LoyaltyCampaignVoucher**](LoyaltyCampaignVoucher.md) | | [optional] |
|
|
13
|
-
| **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
|
|
14
|
-
| **join_once** | **Boolean** | Always set to `true` for loyalty campaigns, meaning customers can join the campaign only once. It can't be changed to `false`. | [optional] |
|
|
13
|
+
| **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a **legacy loyalty** campaign if any earning rule is fulfilled. | [optional] |
|
|
14
|
+
| **join_once** | **Boolean** | Always set to `true` for **legacy loyalty** campaigns, meaning customers can join the campaign only once. It can't be changed to `false`. | [optional] |
|
|
15
15
|
| **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema. | [optional] |
|
|
16
16
|
| **validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional] |
|
|
17
17
|
| **validity_day_of_week** | **Array<Integer>** | Integer array corresponding to the particular days of the week in which the voucher is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional] |
|
data/docs/LoyaltyCampaign.md
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
| **campaign_type** | **String** | Type of campaign. | [optional][default to 'LOYALTY_PROGRAM'] |
|
|
11
11
|
| **type** | **String** | Defines whether the campaign can be updated with new vouchers after campaign creation. - `AUTO_UPDATE`: the campaign is dynamic, i.e. vouchers will generate based on set criteria - `STATIC`: vouchers need to be manually published | [optional] |
|
|
12
12
|
| **voucher** | [**LoyaltyCampaignVoucher**](LoyaltyCampaignVoucher.md) | | [optional] |
|
|
13
|
-
| **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional] |
|
|
14
|
-
| **join_once** | **Boolean** | Always set to `true` for loyalty campaigns, meaning customers can join the campaign only once. It can't be changed to `false`. | [optional] |
|
|
13
|
+
| **auto_join** | **Boolean** | Indicates whether customers will be able to auto-join a **legacy loyalty** campaign if any earning rule is fulfilled. | [optional] |
|
|
14
|
+
| **join_once** | **Boolean** | Always set to `true` for **legacy loyalty** campaigns, meaning customers can join the campaign only once. It can't be changed to `false`. | [optional] |
|
|
15
15
|
| **use_voucher_metadata_schema** | **Boolean** | Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema. | [optional] |
|
|
16
16
|
| **validity_timeframe** | [**ValidityTimeframe**](ValidityTimeframe.md) | | [optional] |
|
|
17
17
|
| **validity_day_of_week** | **Array<Integer>** | Integer array corresponding to the particular days of the week in which the voucher is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional] |
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **quantity** | **Integer** |
|
|
7
|
+
| **quantity** | **Integer** | Remaining stock quantity. On create, this is the starting quantity. Each benefit purchase decreases it by one. | [optional] |
|
|
8
8
|
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **day** | **Integer** | Day of month (1-31; validated against the month length). | [optional] |
|
|
8
|
-
| **month** | **Integer** | Month number (1
|
|
8
|
+
| **month** | **Integer** | Month number (1–12). | [optional] |
|
|
9
9
|
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **type** | **String** | Rounding type. | [optional] |
|
|
8
|
-
| **value** | **Integer** | Month number (1
|
|
8
|
+
| **value** | **Integer** | Month number (1–12). Present only when `type` is `END_OF_PARTICULAR_MONTH`. | [optional] |
|
|
9
9
|
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **every** | **Integer** | The divisor
|
|
7
|
+
| **every** | **Integer** | The divisor - every this amount (e.g. in cents) awards `value` points. | [optional] |
|
|
8
8
|
| **value** | **Float** | Points awarded per `every` unit. | [optional] |
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **every** | **Integer** | The divisor
|
|
7
|
+
| **every** | **Integer** | The divisor - every this metadata value awards `value` points. | [optional] |
|
|
8
8
|
| **value** | **Float** | Points awarded per `every` unit. | [optional] |
|
|
9
9
|
| **property** | **String** | Metadata property name holding the numeric value. | [optional] |
|
|
10
10
|
|
data/docs/ManagementApi.md
CHANGED
|
@@ -236,7 +236,7 @@ end
|
|
|
236
236
|
|
|
237
237
|
Create Metadata Schema
|
|
238
238
|
|
|
239
|
-
Creates a new metadata (custom attribute) schema for a given resource. The schema consists of a set of key-value pairs to customize Voucherify resources. You can nest your object within a standard metadata schema, e.g. within a campaign or customer schema. However, your nested object cant include another nested object. The standard metadata schemas are: - Campaign - Voucher - Publication - Redemption - Product - Customer - Order - Order line item - Loyalty Tier - Promotion Tier - Earning rule - Reward Use this endpoint to define a metadata schema of a given resource for the first time. Once you configure a metadata schema for a given related_object, use the PUT [Update metadata schema](/api-reference/management/update-metadata-schema) endpoint to either update or add new metadata key-value pairs. For example, use this endpoint to define a metadata schema for related_object: campaign for the first time. If you want define a new metadata property for campaign, use the [PUT Update metadata schema](/api-reference/management/update-metadata-schema) endpoint. <Note> <Badge color blue>Metadata Documentation</Badge> Read [the Getting Started with Metadata](/prepare/metadata) and [Metadata Mapping](/guides/metadata-mapping) articles to learn how metadata work in Voucherify. </Note>
|
|
239
|
+
Creates a new metadata (custom attribute) schema for a given resource. The schema consists of a set of key-value pairs to customize Voucherify resources. You can nest your object within a standard metadata schema, e.g. within a campaign or customer schema. However, your nested object cant include another nested object. The standard metadata schemas are: - Campaign - Voucher - Publication - Redemption - Product - Customer - Order - Order line item - Loyalty Tier - Promotion Tier - Earning rule - Reward Use this endpoint to define a metadata schema of a given resource for the first time. Once you configure a metadata schema for a given related_object, use the PUT [Update metadata schema](/api-reference/management/update-metadata-schema) endpoint to either update or add new metadata key-value pairs. For example, use this endpoint to define a metadata schema for related_object: campaign for the first time. If you want define a new metadata property for campaign, use the [PUT Update metadata schema](/api-reference/management/update-metadata-schema) endpoint. <Note> <Badge color blue>Metadata Documentation</Badge> Read [the Getting Started with Metadata](/prepare/metadata) and [Metadata Mapping](/guides/metadata-mapping) articles to learn how metadata work in Voucherify. </Note> loyalty_tier / Loyalty Tier and earning_rule / Earning rule metadata schemas apply to **legacy loyalty** campaigns. Loyalty hub resources use Loyalty v2 metadata where configured.
|
|
240
240
|
|
|
241
241
|
### Examples
|
|
242
242
|
|
|
@@ -600,7 +600,7 @@ nil (empty response body)
|
|
|
600
600
|
|
|
601
601
|
Delete Metadata Schema
|
|
602
602
|
|
|
603
|
-
Deletes permanently the metadata schema. In standard metadata schemas, this endpoint removes permanently all definitions. The standard metadata schemas are: - Campaign - Voucher - Publication - Redemption - Product - Customer - Order - Order line item - Loyalty Tier - Promotion Tier - Earning rule - Reward If you want to delete only one definition, use the [Update Metadata Schema](/api-reference/management/update-metadata-schema) endpoint. In the request, provide the deleted: true pair in the definition object. This definition will be moved to Removed definitions. If you want to create a new standard metadata schema, use the [Create Metadata Schema](/api-reference/management/create-metadata-schema) endpoint. <Warning> <Badge color yellow>Metadata Purging</Badge> This endpoint deletes permanently the metadata schemas only. However, it does not purge the metadata from associated entities, so the metadata added to those entities will remain. If you want to purge metadata from the entities: 1. Remove all the definitions you want to purge. You can do this either in Voucherify Project Settings > Metadata Schema tab or with the [Update Metadata Schema](/api-reference/management/update-metadata-schema) endpoint. 2. In Voucherify Project Settings > Metadata Schema tab, go to the relevant metadata schema. 3. In Removed definitions, click the bin button next to the definitions whose metadata you want to purge from entities. Note: - This is an asynchronous action. You will be notified when it has been completed. - You cannot purge metadata for the Redemption and Publication schemas. 4. Use the Delete Metadata Schema request to delete the metadata schema from Voucherify. </Warning> <Note> <Badge color blue>Metadata Documentation</Badge> Read [the Getting Started with Metadata](/prepare/metadata) and [Metadata Mapping](/guides/metadata-mapping) articles to learn how metadata work in Voucherify. </Note>
|
|
603
|
+
Deletes permanently the metadata schema. In standard metadata schemas, this endpoint removes permanently all definitions. The standard metadata schemas are: - Campaign - Voucher - Publication - Redemption - Product - Customer - Order - Order line item - Loyalty Tier - Promotion Tier - Earning rule - Reward If you want to delete only one definition, use the [Update Metadata Schema](/api-reference/management/update-metadata-schema) endpoint. In the request, provide the deleted: true pair in the definition object. This definition will be moved to Removed definitions. If you want to create a new standard metadata schema, use the [Create Metadata Schema](/api-reference/management/create-metadata-schema) endpoint. <Warning> <Badge color yellow>Metadata Purging</Badge> This endpoint deletes permanently the metadata schemas only. However, it does not purge the metadata from associated entities, so the metadata added to those entities will remain. If you want to purge metadata from the entities: 1. Remove all the definitions you want to purge. You can do this either in Voucherify Project Settings > Metadata Schema tab or with the [Update Metadata Schema](/api-reference/management/update-metadata-schema) endpoint. 2. In Voucherify Project Settings > Metadata Schema tab, go to the relevant metadata schema. 3. In Removed definitions, click the bin button next to the definitions whose metadata you want to purge from entities. Note: - This is an asynchronous action. You will be notified when it has been completed. - You cannot purge metadata for the Redemption and Publication schemas. 4. Use the Delete Metadata Schema request to delete the metadata schema from Voucherify. </Warning> <Note> <Badge color blue>Metadata Documentation</Badge> Read [the Getting Started with Metadata](/prepare/metadata) and [Metadata Mapping](/guides/metadata-mapping) articles to learn how metadata work in Voucherify. </Note> loyalty_tier / Loyalty Tier and earning_rule / Earning rule metadata schemas apply to **legacy loyalty** campaigns. Loyalty hub resources use Loyalty v2 metadata where configured.
|
|
604
604
|
|
|
605
605
|
### Examples
|
|
606
606
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **id** | **String** | The unique identifier of the user who will be assigned to the project. It can be found in Team Settings > Team > Edit member.
|
|
8
|
-
| **login** | **String** | The login data of the user who will be assigned to the project.
|
|
7
|
+
| **id** | **String** | The unique identifier of the user who will be assigned to the project. It can be found in Team Settings > Team > Edit member. Required with the `role` string. Do **not** use with the `login` string. | [optional] |
|
|
8
|
+
| **login** | **String** | The login data of the user who will be assigned to the project. Required with the `role` string. Do **not** use with the `id` string. | [optional] |
|
|
9
9
|
| **role** | **String** | The role of the user to be added. It can be one of the following predefined roles: `ADMIN`, `USER`, `VIEWER`, `MERCHANT` or an ID of a custom role. | |
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **id** | **String** | The unique identifier of the user who will be assigned to the project. It can be found in Team Settings > Team > Edit member.
|
|
8
|
-
| **login** | **String** | The login data of the user who will be assigned to the project.
|
|
7
|
+
| **id** | **String** | The unique identifier of the user who will be assigned to the project. It can be found in Team Settings > Team > Edit member. Required with the `role` string. Do **not** use with the `login` string. | [optional] |
|
|
8
|
+
| **login** | **String** | The login data of the user who will be assigned to the project. Required with the `role` string. Do **not** use with the `id` string. | [optional] |
|
|
9
9
|
| **role** | **String** | The role of the user to be added. It can be one of the following predefined roles: `ADMIN`, `USER`, `VIEWER`, `MERCHANT`, or an ID of a custom role. | [optional] |
|
|
10
10
|
|
data/docs/MetadataSchemasApi.md
CHANGED
|
@@ -14,7 +14,7 @@ All URIs are relative to *https://api.voucherify.io*
|
|
|
14
14
|
|
|
15
15
|
Get Metadata Schema
|
|
16
16
|
|
|
17
|
-
Retrieves a metadata schema per resource type. # Resource types ## Standard You can retrieve metadata schemas for the standard metadata schema definitions listed below. Add one of these types as the resource path parameter. - campaign - customer - earning_rule - loyalty_tier - order - order_item - product - promotion_tier - publication - redemption - reward - voucher ## Custom If you have defined a [custom metadata schema](/prepare/metadata#add-metadata), provide its name in the resource field to retrieve its details. <Note> <Badge color blue>Management API</Badge> If you have Management API enabled, you can also use the [Get Metadata Schemas](/api-reference/management/get-metadata-schema) endpoint to retrieve a metadata schema using its ID. </Note>
|
|
17
|
+
Retrieves a metadata schema per resource type. # Resource types ## Standard You can retrieve metadata schemas for the standard metadata schema definitions listed below. Add one of these types as the resource path parameter. - campaign - customer - earning_rule - loyalty_tier - order - order_item - product - promotion_tier - publication - redemption - reward - voucher ## Custom If you have defined a [custom metadata schema](/prepare/metadata#add-metadata), provide its name in the resource field to retrieve its details. <Note> <Badge color blue>Management API</Badge> If you have Management API enabled, you can also use the [Get Metadata Schemas](/api-reference/management/get-metadata-schema) endpoint to retrieve a metadata schema using its ID. </Note> loyalty_tier / Loyalty Tier and earning_rule / Earning rule metadata schemas apply to **legacy loyalty** campaigns. Loyalty hub resources use Loyalty v2 metadata where configured.
|
|
18
18
|
|
|
19
19
|
### Examples
|
|
20
20
|
|
|
@@ -17,7 +17,7 @@ All URIs are relative to *https://api.voucherify.io*
|
|
|
17
17
|
|
|
18
18
|
Create Product Collection
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Creates a new product collection. To assign the collection to areas, stores, or all stores, send access_settings with assign. Assignments are available only when the Areas and Stores enterprise feature is enabled for product collections. <Note>A restricted user must assign the new collection to at least one area or store. Areas and stores that the restricted user isnt assigned to are ignored. If none are left, the request fails with a 400 error. A restricted user is a user with the Restricted user role, or with a custom role that has the Join areas and stores permission. An API key with the Restricted user role is also restricted. Users who cant join areas and stores can assign any area or store.</Note>
|
|
21
21
|
|
|
22
22
|
### Examples
|
|
23
23
|
|
|
@@ -77,7 +77,7 @@ end
|
|
|
77
77
|
|
|
78
78
|
Delete Product Collection
|
|
79
79
|
|
|
80
|
-
Deletes a product collection. <Warning>This endpoint performs database-heavy operations. It is not designed for highly frequent use.</Warning>
|
|
80
|
+
Deletes a product collection. <Note>If the Areas and Stores enterprise feature is enabled for product collections, the area and store assignments of the product collection are deleted with it. A restricted user cant delete a product collection that is read-only for them or that is not assigned to their areas and stores. Contact [Voucherify Sales](https://www.voucherify.io/contact-sales) to learn more.</Note> <Warning>This endpoint performs database-heavy operations. It is not designed for highly frequent use.</Warning>
|
|
81
81
|
|
|
82
82
|
### Examples
|
|
83
83
|
|
|
@@ -134,7 +134,7 @@ nil (empty response body)
|
|
|
134
134
|
|
|
135
135
|
Get Product Collection
|
|
136
136
|
|
|
137
|
-
Retrieves the product collection.
|
|
137
|
+
Retrieves the product collection. <Note>If the Areas and Stores enterprise feature is enabled for product collections, a restricted user receives a forbidden error when the product collection is not assigned to their areas and stores. Contact [Voucherify Sales](https://www.voucherify.io/contact-sales) to learn more.</Note>
|
|
138
138
|
|
|
139
139
|
### Examples
|
|
140
140
|
|
|
@@ -192,7 +192,7 @@ end
|
|
|
192
192
|
|
|
193
193
|
List Product Collections
|
|
194
194
|
|
|
195
|
-
This method returns a list of product collections.
|
|
195
|
+
This method returns a list of product collections. <Note>A restricted user sees only the product collections assigned to their areas and stores. A restricted user is a user with the Restricted user role, or with a custom role that has the Join areas and stores permission. An API key with the Restricted user role is also restricted.</Note>
|
|
196
196
|
|
|
197
197
|
### Examples
|
|
198
198
|
|
|
@@ -7,5 +7,6 @@
|
|
|
7
7
|
| **type** | **String** | | [optional] |
|
|
8
8
|
| **name** | **String** | Unique user-defined product collection name. | [optional] |
|
|
9
9
|
| **products** | [**Array<ProductCollectionsCreateRequestBodyProductsItem>**](ProductCollectionsCreateRequestBodyProductsItem.md) | Defines a set of products for a `STATIC` product collection type. | [optional] |
|
|
10
|
+
| **access_settings** | [**AccessSettings**](AccessSettings.md) | | [optional] |
|
|
10
11
|
| **filter** | **Object** | Defines a set of criteria and boundary conditions for an `AUTO_UPDATE` product collection type. | [optional] |
|
|
11
12
|
|
|
@@ -10,5 +10,7 @@
|
|
|
10
10
|
| **filter** | **Object** | Defines a set of criteria and boundary conditions for an `AUTO_UPDATE` product collection type. | [optional] |
|
|
11
11
|
| **products** | [**Array<ProductCollectionsCreateResponseBodyProductsItem>**](ProductCollectionsCreateResponseBodyProductsItem.md) | Defines a set of products for a `STATIC` product collection type. | [optional] |
|
|
12
12
|
| **created_at** | **Time** | Timestamp representing the date and time when the product collection was created. The value is shown in the ISO 8601 format. | [optional] |
|
|
13
|
+
| **readonly** | **Boolean** | Indicates whether the product collection can only be read by the caller in the Areas and Stores enterprise feature. Returned only when area and store visibility rules apply to the caller. A read-only product collection can't be updated or deleted. | [optional] |
|
|
14
|
+
| **access_settings_assignments** | [**AccessSettingsProductCollectionAssignmentsList**](AccessSettingsProductCollectionAssignmentsList.md) | | [optional] |
|
|
13
15
|
| **object** | **String** | The type of the object represented by JSON. This object stores information about the static product collection. | [optional][default to 'products_collection'] |
|
|
14
16
|
|
|
@@ -10,5 +10,7 @@
|
|
|
10
10
|
| **filter** | **Object** | Defines a set of criteria and boundary conditions for an `AUTO_UPDATE` product collection type. | [optional] |
|
|
11
11
|
| **products** | [**Array<ProductCollectionsGetResponseBodyProductsItem>**](ProductCollectionsGetResponseBodyProductsItem.md) | Defines a set of products for a `STATIC` product collection type. | [optional] |
|
|
12
12
|
| **created_at** | **Time** | Timestamp representing the date and time when the product collection was created. The value is shown in the ISO 8601 format. | [optional] |
|
|
13
|
+
| **readonly** | **Boolean** | Indicates whether the product collection can only be read by the caller in the Areas and Stores enterprise feature. Returned only when area and store visibility rules apply to the caller. A read-only product collection can't be updated or deleted. | [optional] |
|
|
14
|
+
| **access_settings_assignments** | [**AccessSettingsProductCollectionAssignmentsList**](AccessSettingsProductCollectionAssignmentsList.md) | | [optional] |
|
|
13
15
|
| **object** | **String** | The type of the object represented by JSON. This object stores information about the static product collection. | [optional][default to 'products_collection'] |
|
|
14
16
|
|
|
@@ -10,5 +10,7 @@
|
|
|
10
10
|
| **filter** | **Object** | Defines a set of criteria and boundary conditions for an `AUTO_UPDATE` product collection type. | [optional] |
|
|
11
11
|
| **products** | [**Array<ProductCollectionsItemProductsItem>**](ProductCollectionsItemProductsItem.md) | Defines a set of products for a `STATIC` product collection type. | [optional] |
|
|
12
12
|
| **created_at** | **Time** | Timestamp representing the date and time when the product collection was created. The value is shown in the ISO 8601 format. | [optional] |
|
|
13
|
+
| **readonly** | **Boolean** | Indicates whether the product collection can only be read by the caller in the Areas and Stores enterprise feature. Returned only when area and store visibility rules apply to the caller. A read-only product collection can't be updated or deleted. | [optional] |
|
|
14
|
+
| **access_settings_assignments** | [**AccessSettingsProductCollectionAssignmentsList**](AccessSettingsProductCollectionAssignmentsList.md) | | [optional] |
|
|
13
15
|
| **object** | **String** | The type of the object represented by JSON. This object stores information about the static product collection. | [optional][default to 'products_collection'] |
|
|
14
16
|
|
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **object** | **String** | The type of the object represented by JSON. This object stores information about product collections. | [optional][default to 'list'] |
|
|
8
8
|
| **data_ref** | **String** | Identifies the name of the JSON property that contains the array of product collections. | [optional][default to 'data'] |
|
|
9
|
-
| **data** | [**Array<ProductCollectionsItem>**](ProductCollectionsItem.md) | A dictionary that contains an array of product collections and their details. | [optional] |
|
|
9
|
+
| **data** | [**Array<ProductCollectionsItem>**](ProductCollectionsItem.md) | A dictionary that contains an array of product collections and their details. <Note>If the Areas and Stores enterprise feature is enabled for product collections, this list does not return `access_settings_assignments`. To get the areas and stores to which a product collection is assigned, use [GET Product Collection](/api-reference/product-collections/get-product-collection). Contact [Voucherify Sales](https://www.voucherify.io/contact-sales) to learn more.</Note> | [optional] |
|
|
10
10
|
| **total** | **Integer** | Total number of product collections. | [optional] |
|
|
11
11
|
|
data/docs/ProductsApi.md
CHANGED
|
@@ -448,7 +448,7 @@ end
|
|
|
448
448
|
|
|
449
449
|
Import SKUs using CSV
|
|
450
450
|
|
|
451
|
-
Import SKUs into the repository using a CSV file. The CSV file has to include headers in the first line. All properties which cannot be mapped to standard SKU fields will be added to the metadata object. You can find an example template [here](https://s3.amazonaws.com/helpscout.net/docs/assets/5902f1c12c7d3a057f88a36d/attachments/627b98d08c9b585083488a4c/Import_SKUS_template.csv). <Warning> <Badge color yellow>Import sequence</Badge> First import products using the [dedicated endpoint](/api-reference/products/import-products-using-csv), then import SKUs using this endpoint to properly match SKUs to products. </Warning> <Note> <Badge color blue>Standard SKU fields mapping</Badge> -
|
|
451
|
+
Import SKUs into the repository using a CSV file. The CSV file has to include headers in the first line. All properties which cannot be mapped to standard SKU fields will be added to the metadata object. You can find an example template [here](https://s3.amazonaws.com/helpscout.net/docs/assets/5902f1c12c7d3a057f88a36d/attachments/627b98d08c9b585083488a4c/Import_SKUS_template.csv). <Warning> <Badge color yellow>Import sequence</Badge> First import products using the [dedicated endpoint](/api-reference/products/import-products-using-csv), then import SKUs using this endpoint to properly match SKUs to products. </Warning> <Note> <Badge color blue>Standard SKU fields mapping</Badge> - Required fields are source_id and product_id. - Supported CSV file headers: product_id,sku,source_id,price,image_url,attributes - SKU **source_id** must be unique in the entire product catalog, no duplicates are allowed. - SKU attributes need to be in the form of a stringy-fied json, i.e.{color:blue}. These attributes must be defined in the **product** beforehand so you can import them to the SKU. - You can use this method to update the following parameters in bulk: **sku** and the sku **price**. - Columns that cannot be mapped to standard fields will be mapped to Custom attributes and added as product metadata. There is no limit on the number of custom attributes that you can import as metadata. </Note> This API request starts a process that affects Voucherify data in bulk. In case of small jobs (like bulk update) the request is put into a queue and processed once every other bulk request placed in the queue prior to this request is finished. However, when the job takes a longer time (like vouchers generation) then it is processed in small portions in a round-robin fashion. When there is a list of vouchers generation scheduled, then they will all have the IN_PROGRESS status shortly. This way, small jobs added just after scheduling big jobs of the same type will be processed in a short time window. The result will return the async ID. You can verify the status of your request via this [API request](/api-reference/async-actions/get-async-action).
|
|
452
452
|
|
|
453
453
|
### Examples
|
|
454
454
|
|
data/docs/RedemptionChannel.md
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **channel_id** | **String** | Unique channel ID of the user performing the redemption. This is either a user ID from a user using the Voucherify Dashboard or an X-APP-Id of a user using the API. For `AUTO_REDEEM`, it is the reward assignment ID. | [optional] |
|
|
8
|
-
| **channel_type** | **String** | The source of the channel for the redemption. A `USER` corresponds to the Voucherify Dashboard, `API` corresponds to the API, and `AUTO_REDEEM` corresponds to a loyalty campaign reward that has been redeemed automatically. | [optional] |
|
|
8
|
+
| **channel_type** | **String** | The source of the channel for the redemption. A `USER` corresponds to the Voucherify Dashboard, `API` corresponds to the API, and `AUTO_REDEEM` corresponds to a **legacy loyalty** campaign reward that has been redeemed automatically. | [optional] |
|
|
9
9
|
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
| **updated_at** | **Time** | Timestamp in ISO 8601 format indicating when the reward was updated. | [optional] |
|
|
18
18
|
| **parameters** | [**RedemptionRewardResultParameters**](RedemptionRewardResultParameters.md) | | [optional] |
|
|
19
19
|
| **metadata** | **Object** | A set of custom key/value pairs that you can attach to a reward. The metadata object stores all custom attributes assigned to the reward. | [optional] |
|
|
20
|
-
| **type** | **String** | Reward type. | [optional] |
|
|
20
|
+
| **type** | **String** | Reward type. `LOYALTY_POINTS` credits points on a `v2/loyalties` (loyalty hub) card (for example from a referral tier). | [optional] |
|
|
21
21
|
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **exchange_ratio** | **Float** | The cash equivalent of the points defined in the `points_ratio` property. | [optional] |
|
|
8
|
-
| **points_ratio** | **Integer** | The number of loyalty points that will map to the predefined cash amount defined by the `exchange_ratio` property. | [optional] |
|
|
8
|
+
| **points_ratio** | **Integer** | The number of loyalty points (**legacy loyalty**) that will map to the predefined cash amount defined by the `exchange_ratio` property. | [optional] |
|
|
9
9
|
|
data/docs/Reward.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
| **redeemed** | **Integer** | Defines the number of already invoked (successful) reward redemptions. | [optional] |
|
|
11
11
|
| **attributes** | [**RewardAttributes**](RewardAttributes.md) | | [optional] |
|
|
12
12
|
| **metadata** | **Object** | The metadata object stores all custom attributes assigned to the reward. A set of key/value pairs that you can attach to a reward object. It can be useful for storing additional information about the reward in a structured format. | [optional] |
|
|
13
|
-
| **type** | **String** | Reward type. | [optional] |
|
|
13
|
+
| **type** | **String** | Reward type. `LOYALTY_POINTS` credits points on a `v2/loyalties` (loyalty hub) card (for example from a referral tier). | [optional] |
|
|
14
14
|
| **parameters** | [**RewardType**](RewardType.md) | | [optional] |
|
|
15
15
|
| **created_at** | **Time** | Timestamp representing the date and time when the reward was created. The value is shown in the ISO 8601 format. | [optional] |
|
|
16
16
|
| **updated_at** | **Time** | Timestamp representing the date and time when the reward was updated. The value is shown in the ISO 8601 format. | [optional] |
|
data/docs/RewardAssignment.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
| **created_at** | **Time** | Timestamp representing the date and time when the reward assignment was created. The value is shown in the ISO 8601 format. | [optional] |
|
|
10
10
|
| **updated_at** | **Time** | Timestamp representing the date and time when the reward assignment was updated. The value is shown in the ISO 8601 format. | [optional] |
|
|
11
11
|
| **object** | **String** | The type of the object represented by the JSON. This object stores information about the reward assignment. | [optional][default to 'reward_assignment'] |
|
|
12
|
-
| **related_object_id** | **String** | Related object ID to which the reward was assigned. | [optional] |
|
|
13
|
-
| **related_object_type** | **String** | Related object type to which the reward was assigned. | [optional][default to 'campaign'] |
|
|
12
|
+
| **related_object_id** | **String** | Related object ID to which the reward was assigned. For `related_object_type` `campaign`, this is the campaign ID. For `referral_tier`, this is the referral tier ID. | [optional] |
|
|
13
|
+
| **related_object_type** | **String** | Related object type to which the reward was assigned. Use `campaign` for **legacy loyalty** campaign rewards. Use `referral_tier` for `LOYALTY_POINTS` rewards that credit a `v2/loyalties` (loyalty hub) card from a referral tier. A `LOYALTY_POINTS` reward can only be assigned to a referral tier. | [optional][default to 'campaign'] |
|
|
14
14
|
| **parameters** | [**RewardAssignmentParameters**](RewardAssignmentParameters.md) | | [optional] |
|
|
15
15
|
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **points** | **Integer** | The number of points required to redeem the reward. | [optional] |
|
|
8
|
-
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`. | [optional] |
|
|
8
|
+
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`. | [optional] |
|
|
9
9
|
|
data/docs/RewardType.md
CHANGED
|
@@ -7,4 +7,5 @@
|
|
|
7
7
|
| **campaign** | [**RewardTypeCampaign**](RewardTypeCampaign.md) | | [optional] |
|
|
8
8
|
| **coin** | [**RewardTypeCoin**](RewardTypeCoin.md) | | [optional] |
|
|
9
9
|
| **product** | [**RewardTypeProduct**](RewardTypeProduct.md) | | [optional] |
|
|
10
|
+
| **loyalty_points** | [**RewardTypeLoyaltyPoints**](RewardTypeLoyaltyPoints.md) | | [optional] |
|
|
10
11
|
|
data/docs/RewardTypeCoin.md
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **exchange_ratio** | **Float** | The cash equivalent of the points defined in the points_ratio property. | [optional] |
|
|
8
|
-
| **points_ratio** | **Integer** | The number of loyalty points that will map to the predefined cash amount defined by the exchange_ratio property. | [optional] |
|
|
7
|
+
| **exchange_ratio** | **Float** | The cash equivalent of the points defined in the `points_ratio` property. | [optional] |
|
|
8
|
+
| **points_ratio** | **Integer** | The number of loyalty points (**legacy loyalty**) that will map to the predefined cash amount defined by the `exchange_ratio` property. | [optional] |
|
|
9
9
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# VoucherifySdk::RewardTypeLoyaltyPoints
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **points** | **Integer** | Number of points to credit. Must be greater than `0`. | [optional] |
|
|
8
|
+
| **program_id** | **String** | Unique `v2/loyalties` (loyalty hub) program ID, assigned by Voucherify. | [optional] |
|
|
9
|
+
| **card_definition_id** | **String** | Unique card definition ID of the `v2/loyalties` (loyalty hub) card that receives the points. | [optional] |
|
|
10
|
+
| **on_missing_member** | **String** | Action when the customer is not a member of the program. `ENROLL` enrolls the customer and credits the points. `REJECT` rejects the award and the customer is not enrolled. | [optional] |
|
|
11
|
+
|
data/docs/RewardsApi.md
CHANGED
|
@@ -22,7 +22,7 @@ All URIs are relative to *https://api.voucherify.io*
|
|
|
22
22
|
|
|
23
23
|
Create Reward
|
|
24
24
|
|
|
25
|
-
Create a new reward.
|
|
25
|
+
Create a new reward. Use this endpoint for campaign-linked rewards (referral campaigns and **legacy loyalty**) and for LOYALTY_POINTS rewards that credit a v2/loyalties (loyalty hub) card from a referral tier. For Loyalty hub program rewards (a different resource), use POST /v2/loyalties/rewards.
|
|
26
26
|
|
|
27
27
|
### Examples
|
|
28
28
|
|
|
@@ -82,7 +82,7 @@ end
|
|
|
82
82
|
|
|
83
83
|
Create Reward Assignment
|
|
84
84
|
|
|
85
|
-
Assigns a reward to a
|
|
85
|
+
Assigns a reward to a related object. For **legacy loyalty** and digital or material rewards, send campaign with a loyalty or referral campaign ID. For a LOYALTY_POINTS reward (credits a v2/loyalties (loyalty hub) card), send related_object_type referral_tier and related_object_id set to the referral tier ID. A LOYALTY_POINTS reward cannot be assigned to a campaign. Assigning it with campaign (or any non-referral_tier related object) returns 400 with invalid_related_to. POST /v1/loyalties/{campaignId}/rewards also cannot assign a LOYALTY_POINTS reward to a campaign. For Loyalty hub program rewards, use /v2/loyalties reward endpoints.
|
|
86
86
|
|
|
87
87
|
### Examples
|
|
88
88
|
|
|
@@ -105,7 +105,7 @@ end
|
|
|
105
105
|
api_instance = VoucherifySdk::RewardsApi.new
|
|
106
106
|
reward_id = 'reward_id_example' # String | A unique reward ID.
|
|
107
107
|
opts = {
|
|
108
|
-
rewards_assignments_create_request_body: VoucherifySdk::RewardsAssignmentsCreateRequestBody.new # RewardsAssignmentsCreateRequestBody |
|
|
108
|
+
rewards_assignments_create_request_body: VoucherifySdk::RewardsAssignmentsCreateRequestBody.new # RewardsAssignmentsCreateRequestBody | For digital, material, and pay-with-points rewards, provide the campaign ID and, when required, the loyalty points cost. For a LOYALTY_POINTS reward, provide related_object_type referral_tier and the referral tier ID.
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
begin
|
|
@@ -122,7 +122,7 @@ end
|
|
|
122
122
|
| Name | Type | Description | Notes |
|
|
123
123
|
| ---- | ---- | ----------- | ----- |
|
|
124
124
|
| **reward_id** | **String** | A unique reward ID. | |
|
|
125
|
-
| **rewards_assignments_create_request_body** | [**RewardsAssignmentsCreateRequestBody**](RewardsAssignmentsCreateRequestBody.md) |
|
|
125
|
+
| **rewards_assignments_create_request_body** | [**RewardsAssignmentsCreateRequestBody**](RewardsAssignmentsCreateRequestBody.md) | For digital, material, and pay-with-points rewards, provide the campaign ID and, when required, the loyalty points cost. For a LOYALTY_POINTS reward, provide related_object_type referral_tier and the referral tier ID. | [optional] |
|
|
126
126
|
|
|
127
127
|
### Return type
|
|
128
128
|
|
|
@@ -442,7 +442,7 @@ end
|
|
|
442
442
|
|
|
443
443
|
List Rewards
|
|
444
444
|
|
|
445
|
-
Retrieve rewards.
|
|
445
|
+
Retrieve campaign-linked rewards (referral campaigns and **legacy loyalty**). For Loyalty hub rewards, use GET /v2/loyalties/rewards.
|
|
446
446
|
|
|
447
447
|
### Examples
|
|
448
448
|
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **campaign** | **String** | The campaign ID of the campaign to which the reward is to be assigned. | [optional] |
|
|
8
|
+
| **related_object_type** | **String** | | [optional] |
|
|
8
9
|
| **parameters** | [**RewardsAssignmentsCreateRequestBodyParameters**](RewardsAssignmentsCreateRequestBodyParameters.md) | | [optional] |
|
|
9
10
|
| **validation_rules** | **Array<String>** | | [optional] |
|
|
11
|
+
| **related_object_id** | **String** | Unique referral tier ID, assigned by Voucherify. | [optional] |
|
|
10
12
|
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **points** | **Integer** | Number of points that will be subtracted from the loyalty card points balance if the reward is redeemed. Must be positive integer. | [optional] |
|
|
8
|
-
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`. | [optional] |
|
|
8
|
+
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`. | [optional] |
|
|
9
9
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
| **created_at** | **Time** | Timestamp representing the date and time when the reward assignment was created. The value is shown in the ISO 8601 format. | [optional] |
|
|
10
10
|
| **updated_at** | **Time** | Timestamp representing the date and time when the reward assignment was updated. The value is shown in the ISO 8601 format. | [optional] |
|
|
11
11
|
| **object** | **String** | The type of the object represented by the JSON. This object stores information about the reward assignment. | [optional][default to 'reward_assignment'] |
|
|
12
|
-
| **related_object_id** | **String** | Related object ID to which the reward was assigned. | [optional] |
|
|
13
|
-
| **related_object_type** | **String** | Related object type to which the reward was assigned. | [optional][default to 'campaign'] |
|
|
12
|
+
| **related_object_id** | **String** | Related object ID to which the reward was assigned. For `related_object_type` `campaign`, this is the campaign ID. For `referral_tier`, this is the referral tier ID. | [optional] |
|
|
13
|
+
| **related_object_type** | **String** | Related object type to which the reward was assigned. Use `campaign` for **legacy loyalty** campaign rewards. Use `referral_tier` for `LOYALTY_POINTS` rewards that credit a `v2/loyalties` (loyalty hub) card from a referral tier. A `LOYALTY_POINTS` reward can only be assigned to a referral tier. | [optional][default to 'campaign'] |
|
|
14
14
|
| **parameters** | [**RewardsAssignmentsCreateResponseBodyParameters**](RewardsAssignmentsCreateResponseBodyParameters.md) | | [optional] |
|
|
15
15
|
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **points** | **Integer** | The number of points required to redeem the reward. | [optional] |
|
|
8
|
-
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`. | [optional] |
|
|
8
|
+
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`. | [optional] |
|
|
9
9
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
| **created_at** | **Time** | Timestamp representing the date and time when the reward assignment was created. The value is shown in the ISO 8601 format. | [optional] |
|
|
10
10
|
| **updated_at** | **Time** | Timestamp representing the date and time when the reward assignment was updated. The value is shown in the ISO 8601 format. | [optional] |
|
|
11
11
|
| **object** | **String** | The type of the object represented by the JSON. This object stores information about the reward assignment. | [optional][default to 'reward_assignment'] |
|
|
12
|
-
| **related_object_id** | **String** | Related object ID to which the reward was assigned. | [optional] |
|
|
13
|
-
| **related_object_type** | **String** | Related object type to which the reward was assigned. | [optional][default to 'campaign'] |
|
|
12
|
+
| **related_object_id** | **String** | Related object ID to which the reward was assigned. For `related_object_type` `campaign`, this is the campaign ID. For `referral_tier`, this is the referral tier ID. | [optional] |
|
|
13
|
+
| **related_object_type** | **String** | Related object type to which the reward was assigned. Use `campaign` for **legacy loyalty** campaign rewards. Use `referral_tier` for `LOYALTY_POINTS` rewards that credit a `v2/loyalties` (loyalty hub) card from a referral tier. A `LOYALTY_POINTS` reward can only be assigned to a referral tier. | [optional][default to 'campaign'] |
|
|
14
14
|
| **parameters** | [**RewardsAssignmentsGetResponseBodyParameters**](RewardsAssignmentsGetResponseBodyParameters.md) | | [optional] |
|
|
15
15
|
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **points** | **Integer** | The number of points required to redeem the reward. | [optional] |
|
|
8
|
-
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`. | [optional] |
|
|
8
|
+
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`. | [optional] |
|
|
9
9
|
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **points** | **Integer** | Defines how many points are required to obtain the reward. | [optional] |
|
|
8
|
-
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`. | [optional] |
|
|
8
|
+
| **auto_redeem** | **Boolean** | Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a **legacy loyalty** campaign, i.e. only one can have the value `true`. | [optional] |
|
|
9
9
|
|