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

v8.0.1 #75

Merged
merged 1 commit into from
Nov 5, 2024
Merged
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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 !!!
Expand Down
2 changes: 2 additions & 0 deletions docs/ClientValidationsValidateResponseBodyRedeemablesItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] |

2 changes: 2 additions & 0 deletions docs/ValidationsRedeemableInapplicable.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] |

2 changes: 2 additions & 0 deletions docs/ValidationsRedeemableSkipped.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] |

2 changes: 2 additions & 0 deletions docs/ValidationsValidateResponseBodyRedeemablesItem.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] |

Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -89,7 +97,9 @@ def self.openapi_types
:'inapplicable_to' => :'InapplicableToResultList',
:'result' => :'ClientValidationsValidateResponseBodyRedeemablesItemResult',
:'metadata' => :'Object',
:'categories' => :'Array<CategoryWithStackingRulesType>'
:'categories' => :'Array<CategoryWithStackingRulesType>',
:'campaign_name' => :'String',
:'campaign_id' => :'String'
}
end

Expand All @@ -99,7 +109,9 @@ def self.openapi_nullable
:'id',
:'object',
:'metadata',
:'categories'
:'categories',
:'campaign_name',
:'campaign_id'
])
end

Expand Down Expand Up @@ -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?
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
32 changes: 27 additions & 5 deletions lib/VoucherifySdk/models/validations_redeemable_inapplicable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -78,7 +86,9 @@ def self.openapi_types
:'object' => :'String',
:'result' => :'ValidationsRedeemableInapplicableResult',
:'metadata' => :'Object',
:'categories' => :'Array<CategoryWithStackingRulesType>'
:'categories' => :'Array<CategoryWithStackingRulesType>',
:'campaign_name' => :'String',
:'campaign_id' => :'String'
}
end

Expand All @@ -90,7 +100,9 @@ def self.openapi_nullable
:'object',
:'result',
:'metadata',
:'categories'
:'categories',
:'campaign_name',
:'campaign_id'
])
end

Expand Down Expand Up @@ -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?
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
32 changes: 27 additions & 5 deletions lib/VoucherifySdk/models/validations_redeemable_skipped.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -78,7 +86,9 @@ def self.openapi_types
:'object' => :'String',
:'result' => :'ValidationsRedeemableSkippedResult',
:'metadata' => :'Object',
:'categories' => :'Array<CategoryWithStackingRulesType>'
:'categories' => :'Array<CategoryWithStackingRulesType>',
:'campaign_name' => :'String',
:'campaign_id' => :'String'
}
end

Expand All @@ -90,7 +100,9 @@ def self.openapi_nullable
:'object',
:'result',
:'metadata',
:'categories'
:'categories',
:'campaign_name',
:'campaign_id'
])
end

Expand Down Expand Up @@ -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?
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand All @@ -89,7 +97,9 @@ def self.openapi_types
:'inapplicable_to' => :'InapplicableToResultList',
:'result' => :'ValidationsValidateResponseBodyRedeemablesItemResult',
:'metadata' => :'Object',
:'categories' => :'Array<CategoryWithStackingRulesType>'
:'categories' => :'Array<CategoryWithStackingRulesType>',
:'campaign_name' => :'String',
:'campaign_id' => :'String'
}
end

Expand All @@ -99,7 +109,9 @@ def self.openapi_nullable
:'id',
:'object',
:'metadata',
:'categories'
:'categories',
:'campaign_name',
:'campaign_id'
])
end

Expand Down Expand Up @@ -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?
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/VoucherifySdk/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
=end

module VoucherifySdk
VERSION = '8.0.0'
VERSION = '8.0.1'
end
Loading