Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Versions/5.0.3 #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 53 additions & 48 deletions ENDPOINTS-COVERAGE.md

Large diffs are not rendered by default.

46 changes: 44 additions & 2 deletions README.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/AccessSettingsAssign.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**areas_ids** | **List[str]** | List all area IDs to which the campaign will be assigned. | [optional]
**area_stores_ids** | **List[str]** | List all store IDs to which the campaign will be assigned. | [optional]
**area_all_stores_ids** | **List[str]** | List all area IDs where the campaign is assigned to all stores in the area. This assignment is not equal to the assignment to all `area_stores_ids` listed separately. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
3 changes: 2 additions & 1 deletion docs/AccessSettingsUnassign.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Unassigns the campaign from an area or a store. Provide the area and/or store ID
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**areas_ids** | **List[str]** | List all area IDs from which the campaign will be unassigned. | [optional]
**area_stores_ids** | **List[str]** | List all store IDs to which the campaign will be unassigned. | [optional]
**area_stores_ids** | **List[str]** | List all store IDs from which the campaign will be unassigned. | [optional]
**area_all_stores_ids** | **List[str]** | List all area IDs where the campaign will be unassigned from all stores in the area. This unassignment is not equal to the unassignment from all `area_stores_ids` listed separately. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
5 changes: 3 additions & 2 deletions docs/ApplicableTo.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ Name | Type | Description | Notes
**aggregated_quantity_limit** | **int** | The maximum number of units allowed to be discounted combined across all matched order line items. | [optional]
**amount_limit** | **int** | Upper limit allowed to be applied as a discount per order line item. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $6 maximum discount is written as 600. | [optional]
**aggregated_amount_limit** | **int** | Maximum discount amount per order. Value is multiplied by 100 to precisely represent 2 decimal places. For example, a $6 maximum discount on the entire order is written as 600. This value is definable for the following discount effects: - `APPLY_TO_ITEMS` (each item subtotal is discounted equally) - `APPLY_TO_ITEMS_BY_QUANTITY` (each unit of matched products has the same discount value) | [optional]
**order_item_indices** | **List[int]** | Determines the order in which the discount is applied to the products or SKUs sent in the `order` object in the request. The counting begins from `0`. | [optional]
**order_item_indices** | **List[int]** | Lists which order lines are (not) covered by the discount. The order in the array is determined by the sequence of applied discounts, while the numbers correspond to the order lines sent in the `order` object in the request. The first order line is assigned `0`, the second order line is assigned `1`, and so on. | [optional]
**order_item_units** | [**List[ApplicableToOrderItemUnitsItem]**](ApplicableToOrderItemUnitsItem.md) | Lists which units within order lines are covered by the discount. The order line items are listed according to sequence of applied discounts while the `index` corresponds to the order line sent in the `order` object in the request. | [optional]
**repeat** | **int** | Determines the recurrence of the discount, e.g. `\"repeat\": 3` means that the discount is applied to every third item. | [optional]
**skip_initially** | **int** | Determines how many items are skipped before the discount is applied. | [optional]
**target** | **str** | Determines to which kinds of objects the discount is applicable. `\"ITEM\"` includes products and SKUs. | [optional]
**target** | **str** | Determines to which kinds of objects the discount is applicable. `ITEM` includes products and SKUs. `UNIT` means particular units within an order line. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
13 changes: 13 additions & 0 deletions docs/ApplicableToOrderItemUnitsItem.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ApplicableToOrderItemUnitsItem


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**index** | **int** | Number assigned to the order line item in accordance with the order sent in the request. | [optional]
**units** | **List[int]** | Numbers of units in the order line covered by the discount; e.g. `2, 5, 8` for 10 units with the setting `\"skip_initially\": 1`, `\"repeat\": 3`. The counting of units starts from `1`. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


19 changes: 19 additions & 0 deletions docs/ApplicationDetailsItem.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ApplicationDetailsItem

Object representing item replacement.

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**source_index** | **int** | Index number of the source item that is replaced. The enumeration starts from `0`, which represents the first item in the request, e.g., if the replaced item is passed as the second in the request, `source_index` equals `3`. | [optional]
**source_applied_quantity** | **int** | Number of source units that are replaced. | [optional]
**source_applied_quantity_amount** | **int** | Amount equal to the price of the units that are replaced. Determines the change of the amount of the source item quantity. | [optional]
**target_index** | **int** | Index number of the target item that is a replacement of the source item. The enumeration continues the values for the order items, e.g. if there are three items in the request, `target_index` equals `3`, as enumeration starts from `0`. | [optional]
**target_applied_quantity** | **int** | Number of added target units that are replacements. | [optional]
**target_applied_quantity_amount** | **int** | Amount equal to the price of the units that are replacements. Determines the change in the amount of the target item quantity. | [optional]
**target_applied_discount_amount** | **int** | Discount amount applied to the target item with regard to the replacement. Equals the `target_applied_quantity_amount` minus `source_applied_quantity_amount`. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


1 change: 1 addition & 0 deletions docs/AreaStoreCampaignAssignment.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | Unique identifier of the campaign assignment. | [optional]
**area_id** | **str** | Unique identifier of the area to which the campaign is assigned. | [optional]
**all_stores** | **bool** | Determines if the campaign is assigned to all of the stores in the area, i.e. if an area ID is passed in the `access_settings.assign.area_all_stores_ids` in the request. | [optional]
**area_store_id** | **str** | Unique identifier of the store to which the campaign is assigned. | [optional]
**created_at** | **datetime** | Date and time when the assignment was made. The value is shown in the ISO 8601 format. | [optional]
**object** | **str** | The type of the object represented by JSON. This object stores information about the campaign assignment to areas or stores. | [optional] [default to 'area_store_campaign_assignment']
Expand Down
8 changes: 4 additions & 4 deletions docs/BinApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ with voucherify.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = voucherify.BinApi(api_client)
limit = 56 # int | Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items. (optional)
order = voucherify.ParameterOrderListBin() # ParameterOrderListBin | Orders the bin entries according the date and time when they were moved to the bin or according to the bin entry ID. The dash - preceding a sorting option means sorting in a descending order. (optional)
starting_after_id = 'starting_after_id_example' # str | A cursor for pagination. It retrieves the events starting after an event with the given ID. (optional)
order = voucherify.ParameterOrderListBin() # ParameterOrderListBin | Orders the bin entries according to the bin entry ID. The dash - preceding a sorting option means sorting in a descending order. (optional)
starting_after_id = 'starting_after_id_example' # str | A cursor for pagination. It retrieves the results starting after a result with the given ID. (optional)
filters = voucherify.ParameterFiltersListBin() # ParameterFiltersListBin | Filters for listing bin entries. (optional)

try:
Expand All @@ -160,8 +160,8 @@ with voucherify.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**limit** | **int**| Limits the number of objects to be returned. The limit can range between 1 and 100 items. If no limit is set, it returns 10 items. | [optional]
**order** | [**ParameterOrderListBin**](.md)| Orders the bin entries according the date and time when they were moved to the bin or according to the bin entry ID. The dash - preceding a sorting option means sorting in a descending order. | [optional]
**starting_after_id** | **str**| A cursor for pagination. It retrieves the events starting after an event with the given ID. | [optional]
**order** | [**ParameterOrderListBin**](.md)| Orders the bin entries according to the bin entry ID. The dash - preceding a sorting option means sorting in a descending order. | [optional]
**starting_after_id** | **str**| A cursor for pagination. It retrieves the results starting after a result with the given ID. | [optional]
**filters** | [**ParameterFiltersListBin**](.md)| Filters for listing bin entries. | [optional]

### Return type
Expand Down
2 changes: 1 addition & 1 deletion docs/Campaign.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ Name | Type | Description | Notes
**object** | **str** | The type of the object represented by JSON. This object stores information about the campaign. | [optional] [default to 'campaign']
**referral_program** | [**ReferralProgram**](ReferralProgram.md) | | [optional]
**loyalty_tiers_expiration** | [**LoyaltyTiersExpirationAll**](LoyaltyTiersExpirationAll.md) | | [optional]
**access_settings_assignments** | [**AccessSettingsCampaignAssignmentsList**](AccessSettingsCampaignAssignmentsList.md) | | [optional]
**promotion** | [**PromotionTiersList**](PromotionTiersList.md) | | [optional]
**validation_rules_assignments** | [**ValidationRulesAssignmentsList**](ValidationRulesAssignmentsList.md) | | [optional]
**access_settings_assignments** | [**AccessSettingsCampaignAssignmentsList**](AccessSettingsCampaignAssignmentsList.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
1 change: 1 addition & 0 deletions docs/CampaignBase.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Name | Type | Description | Notes
**object** | **str** | The type of the object represented by JSON. This object stores information about the campaign. | [optional] [default to 'campaign']
**referral_program** | [**ReferralProgram**](ReferralProgram.md) | | [optional]
**loyalty_tiers_expiration** | [**LoyaltyTiersExpirationAll**](LoyaltyTiersExpirationAll.md) | | [optional]
**access_settings_assignments** | [**AccessSettingsCampaignAssignmentsList**](AccessSettingsCampaignAssignmentsList.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
1 change: 1 addition & 0 deletions docs/CampaignsCreateRequestBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Name | Type | Description | Notes
**category_id** | **str** | Unique category ID that this campaign belongs to. Either pass this parameter OR the `category`. | [optional]
**category** | **str** | The category assigned to the campaign. Either pass this parameter OR the `category_id`. | [optional]
**metadata** | **object** | The metadata object stores all custom attributes assigned to the campaign. A set of key/value pairs that you can attach to a campaign object. It can be useful for storing additional information about the campaign in a structured format. | [optional]
**access_settings** | [**AccessSettings**](AccessSettings.md) | | [optional]
**validation_rules** | **List[str]** | Array containing the ID of the validation rule associated with the promotion tier. | [optional]
**campaign_type** | **str** | | [optional]
**voucher** | [**CampaignsCreateRequestBodyVoucher**](CampaignsCreateRequestBodyVoucher.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/CampaignsCreateResponseBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ Name | Type | Description | Notes
**object** | **str** | The type of the object represented by JSON. This object stores information about the campaign. | [optional] [default to 'campaign']
**referral_program** | [**ReferralProgram**](ReferralProgram.md) | | [optional]
**loyalty_tiers_expiration** | [**LoyaltyTiersExpirationAll**](LoyaltyTiersExpirationAll.md) | | [optional]
**access_settings_assignments** | [**AccessSettingsCampaignAssignmentsList**](AccessSettingsCampaignAssignmentsList.md) | | [optional]
**promotion** | [**PromotionTiersList**](PromotionTiersList.md) | | [optional]
**validation_rules_assignments** | [**ValidationRulesAssignmentsList**](ValidationRulesAssignmentsList.md) | | [optional]
**access_settings_assignments** | [**AccessSettingsCampaignAssignmentsList**](AccessSettingsCampaignAssignmentsList.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/CampaignsGetResponseBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ Name | Type | Description | Notes
**object** | **str** | The type of the object represented by JSON. This object stores information about the campaign. | [optional] [default to 'campaign']
**referral_program** | [**ReferralProgram**](ReferralProgram.md) | | [optional]
**loyalty_tiers_expiration** | [**LoyaltyTiersExpirationAll**](LoyaltyTiersExpirationAll.md) | | [optional]
**access_settings_assignments** | [**AccessSettingsCampaignAssignmentsList**](AccessSettingsCampaignAssignmentsList.md) | | [optional]
**promotion** | [**PromotionTiersList**](PromotionTiersList.md) | | [optional]
**validation_rules_assignments** | [**ValidationRulesAssignmentsList**](ValidationRulesAssignmentsList.md) | | [optional]
**access_settings_assignments** | [**AccessSettingsCampaignAssignmentsList**](AccessSettingsCampaignAssignmentsList.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
1 change: 1 addition & 0 deletions docs/CampaignsUpdateRequestBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Name | Type | Description | Notes
**metadata** | **object** | The metadata object stores all custom attributes assigned to the campaign. A set of key/value pairs that you can attach to a campaign object. It can be useful for storing additional information about the campaign in a structured format. | [optional]
**unset_metadata_fields** | **List[str]** | Determine which metadata should be removed from campaign. | [optional]
**category_id** | **str** | Unique category ID that this campaign belongs to. Either pass this parameter OR the `category`. | [optional]
**access_settings** | [**AccessSettings**](AccessSettings.md) | | [optional]
**activity_duration_after_publishing** | **str** | 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]
**join_once** | **bool** | If this value is set to `true`, customers will be able to join the campaign only once. It is always `false` for standalone voucher campaigns and it cannot be changed in them. | [optional]
**auto_join** | **bool** | Indicates whether customers will be able to auto-join a loyalty campaign if any earning rule is fulfilled. | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/CampaignsUpdateResponseBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ Name | Type | Description | Notes
**object** | **str** | The type of the object represented by JSON. This object stores information about the campaign. | [optional] [default to 'campaign']
**referral_program** | [**ReferralProgram**](ReferralProgram.md) | | [optional]
**loyalty_tiers_expiration** | [**LoyaltyTiersExpirationAll**](LoyaltyTiersExpirationAll.md) | | [optional]
**access_settings_assignments** | [**AccessSettingsCampaignAssignmentsList**](AccessSettingsCampaignAssignmentsList.md) | | [optional]
**promotion** | [**PromotionTiersList**](PromotionTiersList.md) | | [optional]
**validation_rules_assignments** | [**ValidationRulesAssignmentsList**](ValidationRulesAssignmentsList.md) | | [optional]
**access_settings_assignments** | [**AccessSettingsCampaignAssignmentsList**](AccessSettingsCampaignAssignmentsList.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ Object representing loyalty card parameters. Child attributes are present only i

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**points** | **int** | Total points incurred over the lifespan of the loyalty card. | [optional]
**points** | **int** | Total points incurred over the lifespan of the loyalty card, minus the expired points. | [optional]
**balance** | **int** | Points available for reward redemption. | [optional]
**next_expiration_date** | **date** | The next closest date when the next set of points are due to expire. | [optional]
**next_expiration_points** | **int** | The amount of points that are set to expire next. | [optional]
**pending_points** | **int** | Determines the number of pending points that will be added to the loyalty card after the predefined time. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
3 changes: 2 additions & 1 deletion docs/CampaignsVouchersCreateResponseBodyLoyaltyCard.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ Object representing loyalty card parameters. Child attributes are present only i

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**points** | **int** | Total points incurred over the lifespan of the loyalty card. | [optional]
**points** | **int** | Total points incurred over the lifespan of the loyalty card, minus the expired points. | [optional]
**balance** | **int** | Points available for reward redemption. | [optional]
**next_expiration_date** | **date** | The next closest date when the next set of points are due to expire. | [optional]
**next_expiration_points** | **int** | The amount of points that are set to expire next. | [optional]
**pending_points** | **int** | Determines the number of pending points that will be added to the loyalty card after the predefined time. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Loading