Skip to content

Commit 3861fdf

Browse files
authored
Merge pull request voucherifyio#6 from voucherifyio/jk/api-reference-update-tests-fix
Fixed multiple tag and regenerated SDK.
2 parents bc3356a + 36e929f commit 3861fdf

File tree

690 files changed

+42585
-73577
lines changed

Some content is hidden

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

690 files changed

+42585
-73577
lines changed

ENDPOINTS-COVERAGE.md

Lines changed: 868 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 44 additions & 116 deletions
Large diffs are not rendered by default.

__tests__/src/test/java/org/example/StackableDiscountsTest.java renamed to __tests__/src/test/java/org/example/ValidationsTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import org.junit.jupiter.api.Test;
77
import voucherify.client.ApiClient;
88
import voucherify.client.ApiException;
9-
import voucherify.client.api.StackableDiscountsApi;
9+
import voucherify.client.api.ValidationsApi;
1010
import voucherify.client.model.*;
1111

1212
import java.util.ArrayList;
@@ -16,22 +16,22 @@
1616
import static org.junit.jupiter.api.Assertions.fail;
1717

1818
@org.junit.jupiter.api.Order(7) //Multiple Order type
19-
public class StackableDiscountsTest {
19+
public class ValidationsTest {
2020
public static ApiClient defaultClient = null;
21-
public static StackableDiscountsApi stackableDiscounts = null;
21+
public static ValidationsApi validationsApi = null;
2222

2323
@BeforeAll
2424
public static void beforeAll() {
2525
defaultClient = Utils.getClient();
26-
stackableDiscounts = new StackableDiscountsApi(defaultClient);
26+
validationsApi = new ValidationsApi(defaultClient);
2727
}
2828

2929
@Test
3030
public void validateStackedDiscountsTest() {
3131
ValidationsValidateRequestBody validationsValidateRequestBody = getValidationsValidateRequestBody();
3232

3333
try {
34-
ValidationsValidateResponseBody responseBody = stackableDiscounts.validateStackedDiscounts(validationsValidateRequestBody);
34+
ValidationsValidateResponseBody responseBody = validationsApi.validateStackedDiscounts(validationsValidateRequestBody);
3535

3636
assertNotNull(responseBody);
3737
} catch (ApiException | JsonSyntaxException e) {

api/openapi.yaml

Lines changed: 28006 additions & 29246 deletions
Large diffs are not rendered by default.

docs/ApplicableToResultList.md

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 20 additions & 5 deletions
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

Lines changed: 20 additions & 5 deletions
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

Lines changed: 16 additions & 0 deletions
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

0 commit comments

Comments
 (0)