From 3430d476fdb5ce782e06876014c481e0d716b8d9 Mon Sep 17 00:00:00 2001 From: p-zielinski Date: Mon, 4 Nov 2024 10:47:23 +0100 Subject: [PATCH] v8.0.1 --- Dockerfile | 2 +- README.md | 2 ++ ...ionsValidateResponseBodyRedeemablesItem.md | 2 ++ docs/ValidationsRedeemableInapplicable.md | 2 ++ docs/ValidationsRedeemableSkipped.md | 2 ++ ...ionsValidateResponseBodyRedeemablesItem.md | 2 ++ ...validate_response_body_redeemables_item.rb | 32 ++++++++++++++++--- .../validations_redeemable_inapplicable.rb | 32 ++++++++++++++++--- .../models/validations_redeemable_skipped.rb | 32 ++++++++++++++++--- ...validate_response_body_redeemables_item.rb | 32 ++++++++++++++++--- lib/VoucherifySdk/version.rb | 2 +- 11 files changed, 120 insertions(+), 22 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd9c11ea..e46a718f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ WORKDIR /app COPY . . RUN gem build VoucherifySdk.gemspec -RUN gem install voucherify-8.0.0.gem +RUN gem install voucherify-8.0.1.gem RUN gem install dotenv RUN gem install rspec diff --git a/README.md b/README.md index 527b82d2..027eb424 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,8 @@ Remember that this SDK is auto generated (except of the tests) so changes made h ## 📅 Changelog +- **2024-11-04** - `8.0.1` + - Added support for returning `campaign_id` and `campaign_name` in stackable validation endpoint, when `redeemable` option is expanded - **2024-10-28** - `8.0.0` - Added missing `enums` in few filters models - !!! BREAKING CHANGES !!! diff --git a/docs/ClientValidationsValidateResponseBodyRedeemablesItem.md b/docs/ClientValidationsValidateResponseBodyRedeemablesItem.md index ef84d30d..376e6dfb 100644 --- a/docs/ClientValidationsValidateResponseBodyRedeemablesItem.md +++ b/docs/ClientValidationsValidateResponseBodyRedeemablesItem.md @@ -13,4 +13,6 @@ | **result** | [**ClientValidationsValidateResponseBodyRedeemablesItemResult**](ClientValidationsValidateResponseBodyRedeemablesItemResult.md) | | [optional] | | **metadata** | **Object** | The metadata object stores all custom attributes in the form of key/value pairs assigned to the redeemable. | [optional] | | **categories** | [**Array<CategoryWithStackingRulesType>**](CategoryWithStackingRulesType.md) | | [optional] | +| **campaign_name** | **String** | Campaign name | [optional] | +| **campaign_id** | **String** | Unique campaign ID assigned by Voucherify. | [optional] | diff --git a/docs/ValidationsRedeemableInapplicable.md b/docs/ValidationsRedeemableInapplicable.md index d100359b..664df4e8 100644 --- a/docs/ValidationsRedeemableInapplicable.md +++ b/docs/ValidationsRedeemableInapplicable.md @@ -10,4 +10,6 @@ | **result** | [**ValidationsRedeemableInapplicableResult**](ValidationsRedeemableInapplicableResult.md) | | [optional] | | **metadata** | **Object** | The metadata object stores all custom attributes in the form of key/value pairs assigned to the redeemable. | [optional] | | **categories** | [**Array<CategoryWithStackingRulesType>**](CategoryWithStackingRulesType.md) | | [optional] | +| **campaign_name** | **String** | Campaign name | [optional] | +| **campaign_id** | **String** | Unique campaign ID assigned by Voucherify. | [optional] | diff --git a/docs/ValidationsRedeemableSkipped.md b/docs/ValidationsRedeemableSkipped.md index 839463e8..2596d530 100644 --- a/docs/ValidationsRedeemableSkipped.md +++ b/docs/ValidationsRedeemableSkipped.md @@ -10,4 +10,6 @@ | **result** | [**ValidationsRedeemableSkippedResult**](ValidationsRedeemableSkippedResult.md) | | [optional] | | **metadata** | **Object** | The metadata object stores all custom attributes in the form of key/value pairs assigned to the redeemable. | [optional] | | **categories** | [**Array<CategoryWithStackingRulesType>**](CategoryWithStackingRulesType.md) | | [optional] | +| **campaign_name** | **String** | Campaign name | [optional] | +| **campaign_id** | **String** | Unique campaign ID assigned by Voucherify. | [optional] | diff --git a/docs/ValidationsValidateResponseBodyRedeemablesItem.md b/docs/ValidationsValidateResponseBodyRedeemablesItem.md index 3b489dc4..c1e62e26 100644 --- a/docs/ValidationsValidateResponseBodyRedeemablesItem.md +++ b/docs/ValidationsValidateResponseBodyRedeemablesItem.md @@ -13,4 +13,6 @@ | **result** | [**ValidationsValidateResponseBodyRedeemablesItemResult**](ValidationsValidateResponseBodyRedeemablesItemResult.md) | | [optional] | | **metadata** | **Object** | The metadata object stores all custom attributes in the form of key/value pairs assigned to the redeemable. | [optional] | | **categories** | [**Array<CategoryWithStackingRulesType>**](CategoryWithStackingRulesType.md) | | [optional] | +| **campaign_name** | **String** | Campaign name | [optional] | +| **campaign_id** | **String** | Unique campaign ID assigned by Voucherify. | [optional] | diff --git a/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item.rb b/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item.rb index 3ca98531..f2472c35 100644 --- a/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item.rb +++ b/lib/VoucherifySdk/models/client_validations_validate_response_body_redeemables_item.rb @@ -36,6 +36,12 @@ class ClientValidationsValidateResponseBodyRedeemablesItem attr_accessor :categories + # Campaign name + attr_accessor :campaign_name + + # Unique campaign ID assigned by Voucherify. + attr_accessor :campaign_id + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -69,7 +75,9 @@ def self.attribute_map :'inapplicable_to' => :'inapplicable_to', :'result' => :'result', :'metadata' => :'metadata', - :'categories' => :'categories' + :'categories' => :'categories', + :'campaign_name' => :'campaign_name', + :'campaign_id' => :'campaign_id' } end @@ -89,7 +97,9 @@ def self.openapi_types :'inapplicable_to' => :'InapplicableToResultList', :'result' => :'ClientValidationsValidateResponseBodyRedeemablesItemResult', :'metadata' => :'Object', - :'categories' => :'Array' + :'categories' => :'Array', + :'campaign_name' => :'String', + :'campaign_id' => :'String' } end @@ -99,7 +109,9 @@ def self.openapi_nullable :'id', :'object', :'metadata', - :'categories' + :'categories', + :'campaign_name', + :'campaign_id' ]) end @@ -148,6 +160,14 @@ def initialize(attributes = {}) self.categories = value end end + + if attributes.key?(:'campaign_name') + self.campaign_name = attributes[:'campaign_name'] + end + + if attributes.key?(:'campaign_id') + self.campaign_id = attributes[:'campaign_id'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -182,7 +202,9 @@ def ==(o) inapplicable_to == o.inapplicable_to && result == o.result && metadata == o.metadata && - categories == o.categories + categories == o.categories && + campaign_name == o.campaign_name && + campaign_id == o.campaign_id end # @see the `==` method @@ -194,7 +216,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [status, id, object, order, applicable_to, inapplicable_to, result, metadata, categories].hash + [status, id, object, order, applicable_to, inapplicable_to, result, metadata, categories, campaign_name, campaign_id].hash end # Builds the object from hash diff --git a/lib/VoucherifySdk/models/validations_redeemable_inapplicable.rb b/lib/VoucherifySdk/models/validations_redeemable_inapplicable.rb index e7009c42..4532f335 100644 --- a/lib/VoucherifySdk/models/validations_redeemable_inapplicable.rb +++ b/lib/VoucherifySdk/models/validations_redeemable_inapplicable.rb @@ -31,6 +31,12 @@ class ValidationsRedeemableInapplicable attr_accessor :categories + # Campaign name + attr_accessor :campaign_name + + # Unique campaign ID assigned by Voucherify. + attr_accessor :campaign_id + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -61,7 +67,9 @@ def self.attribute_map :'object' => :'object', :'result' => :'result', :'metadata' => :'metadata', - :'categories' => :'categories' + :'categories' => :'categories', + :'campaign_name' => :'campaign_name', + :'campaign_id' => :'campaign_id' } end @@ -78,7 +86,9 @@ def self.openapi_types :'object' => :'String', :'result' => :'ValidationsRedeemableInapplicableResult', :'metadata' => :'Object', - :'categories' => :'Array' + :'categories' => :'Array', + :'campaign_name' => :'String', + :'campaign_id' => :'String' } end @@ -90,7 +100,9 @@ def self.openapi_nullable :'object', :'result', :'metadata', - :'categories' + :'categories', + :'campaign_name', + :'campaign_id' ]) end @@ -129,6 +141,14 @@ def initialize(attributes = {}) self.categories = value end end + + if attributes.key?(:'campaign_name') + self.campaign_name = attributes[:'campaign_name'] + end + + if attributes.key?(:'campaign_id') + self.campaign_id = attributes[:'campaign_id'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -160,7 +180,9 @@ def ==(o) object == o.object && result == o.result && metadata == o.metadata && - categories == o.categories + categories == o.categories && + campaign_name == o.campaign_name && + campaign_id == o.campaign_id end # @see the `==` method @@ -172,7 +194,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [status, id, object, result, metadata, categories].hash + [status, id, object, result, metadata, categories, campaign_name, campaign_id].hash end # Builds the object from hash diff --git a/lib/VoucherifySdk/models/validations_redeemable_skipped.rb b/lib/VoucherifySdk/models/validations_redeemable_skipped.rb index 2acab647..cd4c0f22 100644 --- a/lib/VoucherifySdk/models/validations_redeemable_skipped.rb +++ b/lib/VoucherifySdk/models/validations_redeemable_skipped.rb @@ -31,6 +31,12 @@ class ValidationsRedeemableSkipped attr_accessor :categories + # Campaign name + attr_accessor :campaign_name + + # Unique campaign ID assigned by Voucherify. + attr_accessor :campaign_id + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -61,7 +67,9 @@ def self.attribute_map :'object' => :'object', :'result' => :'result', :'metadata' => :'metadata', - :'categories' => :'categories' + :'categories' => :'categories', + :'campaign_name' => :'campaign_name', + :'campaign_id' => :'campaign_id' } end @@ -78,7 +86,9 @@ def self.openapi_types :'object' => :'String', :'result' => :'ValidationsRedeemableSkippedResult', :'metadata' => :'Object', - :'categories' => :'Array' + :'categories' => :'Array', + :'campaign_name' => :'String', + :'campaign_id' => :'String' } end @@ -90,7 +100,9 @@ def self.openapi_nullable :'object', :'result', :'metadata', - :'categories' + :'categories', + :'campaign_name', + :'campaign_id' ]) end @@ -129,6 +141,14 @@ def initialize(attributes = {}) self.categories = value end end + + if attributes.key?(:'campaign_name') + self.campaign_name = attributes[:'campaign_name'] + end + + if attributes.key?(:'campaign_id') + self.campaign_id = attributes[:'campaign_id'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -160,7 +180,9 @@ def ==(o) object == o.object && result == o.result && metadata == o.metadata && - categories == o.categories + categories == o.categories && + campaign_name == o.campaign_name && + campaign_id == o.campaign_id end # @see the `==` method @@ -172,7 +194,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [status, id, object, result, metadata, categories].hash + [status, id, object, result, metadata, categories, campaign_name, campaign_id].hash end # Builds the object from hash diff --git a/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item.rb b/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item.rb index 72453786..9bce184f 100644 --- a/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item.rb +++ b/lib/VoucherifySdk/models/validations_validate_response_body_redeemables_item.rb @@ -36,6 +36,12 @@ class ValidationsValidateResponseBodyRedeemablesItem attr_accessor :categories + # Campaign name + attr_accessor :campaign_name + + # Unique campaign ID assigned by Voucherify. + attr_accessor :campaign_id + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -69,7 +75,9 @@ def self.attribute_map :'inapplicable_to' => :'inapplicable_to', :'result' => :'result', :'metadata' => :'metadata', - :'categories' => :'categories' + :'categories' => :'categories', + :'campaign_name' => :'campaign_name', + :'campaign_id' => :'campaign_id' } end @@ -89,7 +97,9 @@ def self.openapi_types :'inapplicable_to' => :'InapplicableToResultList', :'result' => :'ValidationsValidateResponseBodyRedeemablesItemResult', :'metadata' => :'Object', - :'categories' => :'Array' + :'categories' => :'Array', + :'campaign_name' => :'String', + :'campaign_id' => :'String' } end @@ -99,7 +109,9 @@ def self.openapi_nullable :'id', :'object', :'metadata', - :'categories' + :'categories', + :'campaign_name', + :'campaign_id' ]) end @@ -148,6 +160,14 @@ def initialize(attributes = {}) self.categories = value end end + + if attributes.key?(:'campaign_name') + self.campaign_name = attributes[:'campaign_name'] + end + + if attributes.key?(:'campaign_id') + self.campaign_id = attributes[:'campaign_id'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -182,7 +202,9 @@ def ==(o) inapplicable_to == o.inapplicable_to && result == o.result && metadata == o.metadata && - categories == o.categories + categories == o.categories && + campaign_name == o.campaign_name && + campaign_id == o.campaign_id end # @see the `==` method @@ -194,7 +216,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [status, id, object, order, applicable_to, inapplicable_to, result, metadata, categories].hash + [status, id, object, order, applicable_to, inapplicable_to, result, metadata, categories, campaign_name, campaign_id].hash end # Builds the object from hash diff --git a/lib/VoucherifySdk/version.rb b/lib/VoucherifySdk/version.rb index 547fd8ba..a1417cb6 100644 --- a/lib/VoucherifySdk/version.rb +++ b/lib/VoucherifySdk/version.rb @@ -11,5 +11,5 @@ =end module VoucherifySdk - VERSION = '8.0.0' + VERSION = '8.0.1' end