Skip to content

Commit 36e929f

Browse files
committed
update sdk
1 parent f50eb45 commit 36e929f

File tree

682 files changed

+14171
-47114
lines changed

Some content is hidden

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

682 files changed

+14171
-47114
lines changed

README.md

+33-108
Large diffs are not rendered by default.

api/openapi.yaml

+1,570-2,828
Large diffs are not rendered by default.

docs/ApplicableToResultList.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
|------------ | ------------- | ------------- | -------------|
1010
|**data** | [**List<ApplicableTo>**](ApplicableTo.md) | Contains array of items to which the discount can apply. | |
1111
|**total** | **Integer** | Total number of objects defining included products, SKUs, or product collections. | |
12-
|**_object** | [**ObjectEnum**](#ObjectEnum) | The type of object represented by JSON. | |
13-
|**dataRef** | [**DataRefEnum**](#DataRefEnum) | The type of object represented by JSON. | |
12+
|**_object** | [**ObjectEnum**](#ObjectEnum) | The type of the object represented by JSON. | |
13+
|**dataRef** | [**DataRefEnum**](#DataRefEnum) | The type of the object represented by JSON. | |
1414

1515

1616

docs/BusValRuleAssignment.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Assignments of business validation rule
1212
|**ruleId** | **String** | The unique identifier for a rule | |
1313
|**relatedObjectId** | **String** | The unique identifier for a related object | |
1414
|**relatedObjectType** | **String** | The type of related object | |
15-
|**createdAt** | **OffsetDateTime** | Timestamp representing the date and time when the object was created in ISO 8601 format. | [optional] |
15+
|**createdAt** | **OffsetDateTime** | Timestamp representing the date and time when the object was created. The value is shown in the ISO 8601 format. | [optional] |
1616
|**updatedAt** | **OffsetDateTime** | Timestamp representing the date and time when the object was last updated in ISO 8601 format. | [optional] |
17-
|**_object** | [**ObjectEnum**](#ObjectEnum) | The type of object represented by JSON. | |
17+
|**_object** | [**ObjectEnum**](#ObjectEnum) | The type of the object represented by JSON. | |
1818
|**validationStatus** | [**ValidationStatusEnum**](#ValidationStatusEnum) | The validation status of the assignment | [optional] |
1919
|**validationOmittedRules** | **List<String>** | The list of omitted rules | [optional] |
2020

docs/Campaign.md

+20-5
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,23 @@
1717
|**joinOnce** | **Boolean** | If this value is set to `true`, customers will be able to join the campaign only once. | |
1818
|**useVoucherMetadataSchema** | **Boolean** | Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema. | |
1919
|**validityTimeframe** | [**CampaignBaseValidityTimeframe**](CampaignBaseValidityTimeframe.md) | | [optional] |
20-
|**validityDayOfWeek** | **List<Integer>** | Integer array corresponding to the particular days of the week in which the campaign is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional] |
20+
|**validityDayOfWeek** | [**List<ValidityDayOfWeekEnum>**](#List<ValidityDayOfWeekEnum>) | Integer array corresponding to the particular days of the week in which the campaign is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional] |
21+
|**validityHours** | [**ValidityHours**](ValidityHours.md) | | [optional] |
2122
|**activityDurationAfterPublishing** | **String** | Defines the amount of time the campaign will be active in ISO 8601 format after publishing. For example, a campaign with a `duration` of `P24D` will be valid for a duration of 24 days. | [optional] |
2223
|**vouchersCount** | **Integer** | Total number of unique vouchers in campaign. | [optional] |
2324
|**startDate** | **OffsetDateTime** | Activation timestamp defines when the campaign starts to be active in ISO 8601 format. Campaign is *inactive before* this date. | [optional] |
2425
|**expirationDate** | **OffsetDateTime** | Expiration timestamp defines when the campaign expires in ISO 8601 format. Campaign is *inactive after* this date. | [optional] |
2526
|**active** | **Boolean** | A flag to toggle the campaign on or off. You can disable a campaign even though it's within the active period defined by the `start_date` and `expiration_date`. - `true` indicates an *active* campaign - `false` indicates an *inactive* campaign | [optional] |
2627
|**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] |
27-
|**createdAt** | **OffsetDateTime** | Timestamp representing the date and time when the campaign was created in ISO 8601 format. | |
28-
|**updatedAt** | **OffsetDateTime** | Timestamp representing the date and time when the voucher was updated in ISO 8601 format. | [optional] |
28+
|**createdAt** | **OffsetDateTime** | Timestamp representing the date and time when the campaign was created. The value is shown in the ISO 8601 format. | |
29+
|**updatedAt** | **OffsetDateTime** | Timestamp representing the date and time when the campaign was last updated in ISO 8601 format. | [optional] |
2930
|**category** | **String** | Unique category name. | [optional] |
3031
|**creationStatus** | [**CreationStatusEnum**](#CreationStatusEnum) | Indicates the status of the campaign creation. | |
31-
|**vouchersGenerationStatus** | [**VouchersGenerationStatusEnum**](#VouchersGenerationStatusEnum) | Indicates the status of the campaign's vouchers. | |
32+
|**vouchersGenerationStatus** | [**VouchersGenerationStatusEnum**](#VouchersGenerationStatusEnum) | Indicates the status of the campaign's voucher generation. | |
3233
|**_protected** | **Boolean** | Indicates whether the resource can be deleted. | |
3334
|**categoryId** | **String** | Unique category ID that this campaign belongs to. | [optional] |
3435
|**categories** | [**List<Category>**](Category.md) | Contains details about the category. | |
35-
|**_object** | **String** | The type of object represented by JSON. This object stores information about the campaign. | |
36+
|**_object** | **String** | The type of the object represented by JSON. This object stores information about the campaign. | |
3637
|**referralProgram** | [**ReferralProgram**](ReferralProgram.md) | | [optional] |
3738
|**loyaltyTiersExpiration** | [**LoyaltyTiersExpirationAll**](LoyaltyTiersExpirationAll.md) | | [optional] |
3839
|**promotion** | [**PromotionTiersList**](PromotionTiersList.md) | | [optional] |
@@ -62,6 +63,20 @@
6263

6364

6465

66+
## Enum: List<ValidityDayOfWeekEnum>
67+
68+
| Name | Value |
69+
|---- | -----|
70+
| NUMBER_0 | 0 |
71+
| NUMBER_1 | 1 |
72+
| NUMBER_2 | 2 |
73+
| NUMBER_3 | 3 |
74+
| NUMBER_4 | 4 |
75+
| NUMBER_5 | 5 |
76+
| NUMBER_6 | 6 |
77+
78+
79+
6580
## Enum: CreationStatusEnum
6681

6782
| Name | Value |

docs/CampaignBase.md

+20-5
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,23 @@ This is an object representing a campaign.
1818
|**joinOnce** | **Boolean** | If this value is set to `true`, customers will be able to join the campaign only once. | |
1919
|**useVoucherMetadataSchema** | **Boolean** | Flag indicating whether the campaign is to use the voucher's metadata schema instead of the campaign metadata schema. | |
2020
|**validityTimeframe** | [**CampaignBaseValidityTimeframe**](CampaignBaseValidityTimeframe.md) | | [optional] |
21-
|**validityDayOfWeek** | **List<Integer>** | Integer array corresponding to the particular days of the week in which the campaign is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional] |
21+
|**validityDayOfWeek** | [**List<ValidityDayOfWeekEnum>**](#List<ValidityDayOfWeekEnum>) | Integer array corresponding to the particular days of the week in which the campaign is valid. - `0` Sunday - `1` Monday - `2` Tuesday - `3` Wednesday - `4` Thursday - `5` Friday - `6` Saturday | [optional] |
22+
|**validityHours** | [**ValidityHours**](ValidityHours.md) | | [optional] |
2223
|**activityDurationAfterPublishing** | **String** | Defines the amount of time the campaign will be active in ISO 8601 format after publishing. For example, a campaign with a `duration` of `P24D` will be valid for a duration of 24 days. | [optional] |
2324
|**vouchersCount** | **Integer** | Total number of unique vouchers in campaign. | [optional] |
2425
|**startDate** | **OffsetDateTime** | Activation timestamp defines when the campaign starts to be active in ISO 8601 format. Campaign is *inactive before* this date. | [optional] |
2526
|**expirationDate** | **OffsetDateTime** | Expiration timestamp defines when the campaign expires in ISO 8601 format. Campaign is *inactive after* this date. | [optional] |
2627
|**active** | **Boolean** | A flag to toggle the campaign on or off. You can disable a campaign even though it's within the active period defined by the `start_date` and `expiration_date`. - `true` indicates an *active* campaign - `false` indicates an *inactive* campaign | [optional] |
2728
|**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] |
28-
|**createdAt** | **OffsetDateTime** | Timestamp representing the date and time when the campaign was created in ISO 8601 format. | |
29-
|**updatedAt** | **OffsetDateTime** | Timestamp representing the date and time when the voucher was updated in ISO 8601 format. | [optional] |
29+
|**createdAt** | **OffsetDateTime** | Timestamp representing the date and time when the campaign was created. The value is shown in the ISO 8601 format. | |
30+
|**updatedAt** | **OffsetDateTime** | Timestamp representing the date and time when the campaign was last updated in ISO 8601 format. | [optional] |
3031
|**category** | **String** | Unique category name. | [optional] |
3132
|**creationStatus** | [**CreationStatusEnum**](#CreationStatusEnum) | Indicates the status of the campaign creation. | |
32-
|**vouchersGenerationStatus** | [**VouchersGenerationStatusEnum**](#VouchersGenerationStatusEnum) | Indicates the status of the campaign's vouchers. | |
33+
|**vouchersGenerationStatus** | [**VouchersGenerationStatusEnum**](#VouchersGenerationStatusEnum) | Indicates the status of the campaign's voucher generation. | |
3334
|**_protected** | **Boolean** | Indicates whether the resource can be deleted. | |
3435
|**categoryId** | **String** | Unique category ID that this campaign belongs to. | [optional] |
3536
|**categories** | [**List<Category>**](Category.md) | Contains details about the category. | |
36-
|**_object** | **String** | The type of object represented by JSON. This object stores information about the campaign. | |
37+
|**_object** | **String** | The type of the object represented by JSON. This object stores information about the campaign. | |
3738
|**referralProgram** | [**ReferralProgram**](ReferralProgram.md) | | [optional] |
3839
|**loyaltyTiersExpiration** | [**LoyaltyTiersExpirationAll**](LoyaltyTiersExpirationAll.md) | | [optional] |
3940

@@ -61,6 +62,20 @@ This is an object representing a campaign.
6162

6263

6364

65+
## Enum: List<ValidityDayOfWeekEnum>
66+
67+
| Name | Value |
68+
|---- | -----|
69+
| NUMBER_0 | 0 |
70+
| NUMBER_1 | 1 |
71+
| NUMBER_2 | 2 |
72+
| NUMBER_3 | 3 |
73+
| NUMBER_4 | 4 |
74+
| NUMBER_5 | 5 |
75+
| NUMBER_6 | 6 |
76+
77+
78+
6479
## Enum: CreationStatusEnum
6580

6681
| Name | Value |

docs/CampaignVoucher.md

+16
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,22 @@ Schema model for a campaign voucher.
1818
|**startDate** | **OffsetDateTime** | Activation timestamp defines when the campaign starts to be active in ISO 8601 format. Campaign is *inactive before* this date. | [optional] |
1919
|**expirationDate** | **OffsetDateTime** | Expiration timestamp defines when the campaign expires in ISO 8601 format. Campaign is *inactive after* this date. | [optional] |
2020
|**validityTimeframe** | [**CampaignBaseValidityTimeframe**](CampaignBaseValidityTimeframe.md) | | [optional] |
21+
|**validityDayOfWeek** | [**List<ValidityDayOfWeekEnum>**](#List<ValidityDayOfWeekEnum>) | 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] |
22+
|**validityHours** | [**ValidityHours**](ValidityHours.md) | | [optional] |
23+
24+
25+
26+
## Enum: List<ValidityDayOfWeekEnum>
27+
28+
| Name | Value |
29+
|---- | -----|
30+
| NUMBER_0 | 0 |
31+
| NUMBER_1 | 1 |
32+
| NUMBER_2 | 2 |
33+
| NUMBER_3 | 3 |
34+
| NUMBER_4 | 4 |
35+
| NUMBER_5 | 5 |
36+
| NUMBER_6 | 6 |
2137

2238

2339

docs/CampaignsApi.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public class Example {
256256
257257
Delete Campaign
258258

259-
Permanently deletes a campaign and all related vouchers. This action cannot be undone. Also, this method immediately removes any redemptions on the voucher. 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](ref:get-async-action).
259+
Deletes a campaign and all related vouchers. This action cannot be undone. Also, this method immediately removes any redemptions on the voucher. If the `force` parameter is set to `false` or not set at all, the campaign and all related vouchers will be moved to [the bin](ref:list-bin-entries). 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](ref:get-async-action).
260260

261261
### Example
262262
```java
@@ -287,7 +287,7 @@ public class Example {
287287

288288
CampaignsApi apiInstance = new CampaignsApi(defaultClient);
289289
String campaignId = "campaignId_example"; // String | You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value.
290-
Boolean force = true; // Boolean | If this flag is set to `true`, the campaign and related vouchers will be removed permanently. Going forward, the user will be able to create the next campaign with exactly the same name.
290+
Boolean force = true; // Boolean | If this flag is set to `true`, the campaign and related vouchers will be removed permanently. If it is set to `false` or not set at all, the campaign and related vouchers will be moved to the bin. Going forward, the user will be able to create the next campaign with exactly the same name.
291291
try {
292292
CampaignsDeleteResponseBody result = apiInstance.deleteCampaign(campaignId, force);
293293
System.out.println(result);
@@ -307,7 +307,7 @@ public class Example {
307307
| Name | Type | Description | Notes |
308308
|------------- | ------------- | ------------- | -------------|
309309
| **campaignId** | **String**| You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value. | |
310-
| **force** | **Boolean**| If this flag is set to `true`, the campaign and related vouchers will be removed permanently. Going forward, the user will be able to create the next campaign with exactly the same name. | [optional] |
310+
| **force** | **Boolean**| If this flag is set to `true`, the campaign and related vouchers will be removed permanently. If it is set to `false` or not set at all, the campaign and related vouchers will be moved to the bin. Going forward, the user will be able to create the next campaign with exactly the same name. | [optional] |
311311

312312
### Return type
313313

@@ -742,8 +742,8 @@ public class Example {
742742
//X-App-Token.setApiKeyPrefix("Token");
743743

744744
CampaignsApi apiInstance = new CampaignsApi(defaultClient);
745-
Integer limit = 56; // Integer | A limit on the number of objects to be returned. Limit can range between 1 and 100 items.
746-
Integer page = 56; // Integer | Which page of results to return.
745+
Integer limit = 56; // Integer | 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.
746+
Integer page = 56; // Integer | Which page of results to return. The lowest value is `1`.
747747
ParameterCampaignType campaignType = ParameterCampaignType.fromValue("PROMOTION"); // ParameterCampaignType | This attribute allows filtering by campaign type.
748748
ParameterExpandListCampaigns expand = ParameterExpandListCampaigns.fromValue("category"); // ParameterExpandListCampaigns | Include an expanded `categories` object in the response.
749749
ParameterOrderListCampaigns order = ParameterOrderListCampaigns.fromValue("created_at"); // ParameterOrderListCampaigns | Sorts the results using one of the filtering options, where the dash `-` preceding a sorting option means sorting in a descending order.
@@ -765,8 +765,8 @@ public class Example {
765765

766766
| Name | Type | Description | Notes |
767767
|------------- | ------------- | ------------- | -------------|
768-
| **limit** | **Integer**| A limit on the number of objects to be returned. Limit can range between 1 and 100 items. | [optional] |
769-
| **page** | **Integer**| Which page of results to return. | [optional] |
768+
| **limit** | **Integer**| 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] |
769+
| **page** | **Integer**| Which page of results to return. The lowest value is `1`. | [optional] |
770770
| **campaignType** | [**ParameterCampaignType**](.md)| This attribute allows filtering by campaign type. | [optional] [enum: PROMOTION, GIFT_VOUCHERS, REFERRAL_PROGRAM, DISCOUNT_COUPONS, LOYALTY_PROGRAM, LUCKY_DRAW] |
771771
| **expand** | [**ParameterExpandListCampaigns**](.md)| Include an expanded `categories` object in the response. | [optional] [default to category] [enum: category] |
772772
| **order** | [**ParameterOrderListCampaigns**](.md)| Sorts the results using one of the filtering options, where the dash `-` preceding a sorting option means sorting in a descending order. | [optional] [enum: created_at, -created_at, updated_at, -updated_at] |

0 commit comments

Comments
 (0)