wallee-ruby-sdk 2.2.3 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/lib/wallee-ruby-sdk.rb +63 -8
- data/lib/wallee-ruby-sdk/api/bank_account_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/charge_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/currency_bank_account_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/external_transfer_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/internal_transfer_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/payment_terminal_till_service_api.rb +170 -0
- data/lib/wallee-ruby-sdk/api/refund_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/refund_recovery_bank_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscriber_service_api.rb +62 -0
- data/lib/wallee-ruby-sdk/api/shopify_subscription_service_api.rb +124 -0
- data/lib/wallee-ruby-sdk/api/shopify_transaction_service_api.rb +213 -0
- data/lib/wallee-ruby-sdk/api/subscriber_service_api.rb +3 -3
- data/lib/wallee-ruby-sdk/api/subscription_service_api.rb +67 -0
- data/lib/wallee-ruby-sdk/api/token_service_api.rb +189 -0
- data/lib/wallee-ruby-sdk/api/transaction_terminal_service_api.rb +21 -32
- data/lib/wallee-ruby-sdk/api/web_app_service_api.rb +200 -0
- data/lib/wallee-ruby-sdk/api_client.rb +7 -4
- data/lib/wallee-ruby-sdk/configuration.rb +2 -2
- data/lib/wallee-ruby-sdk/models/abstract_account_update.rb +11 -1
- data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +15 -15
- data/lib/wallee-ruby-sdk/models/{abstract_shopify_subscription_product_active.rb → abstract_shopify_subscription_product_update.rb} +2 -12
- data/lib/wallee-ruby-sdk/models/abstract_space_update.rb +11 -1
- data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.rb +11 -1
- data/lib/wallee-ruby-sdk/models/abstract_transaction_pending.rb +59 -1
- data/lib/wallee-ruby-sdk/models/abstract_webhook_url_update.rb +24 -0
- data/lib/wallee-ruby-sdk/models/account.rb +31 -1
- data/lib/wallee-ruby-sdk/models/account_create.rb +11 -1
- data/lib/wallee-ruby-sdk/models/account_update.rb +11 -1
- data/lib/wallee-ruby-sdk/models/authenticated_card_data.rb +221 -0
- data/lib/wallee-ruby-sdk/models/{unencrypted_card_data.rb → authenticated_card_data_create.rb} +86 -12
- data/lib/wallee-ruby-sdk/models/bank_account.rb +291 -0
- data/lib/wallee-ruby-sdk/models/bank_account_environment.rb +35 -0
- data/lib/wallee-ruby-sdk/models/bank_account_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/bank_account_type.rb +227 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction.rb +387 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_flow_direction.rb +35 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_source.rb +215 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_state.rb +35 -0
- data/lib/wallee-ruby-sdk/models/bank_transaction_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/card_authentication_response.rb +38 -0
- data/lib/wallee-ruby-sdk/models/card_authentication_version.rb +35 -0
- data/lib/wallee-ruby-sdk/models/card_cryptogram.rb +201 -0
- data/lib/wallee-ruby-sdk/models/card_cryptogram_create.rb +211 -0
- data/lib/wallee-ruby-sdk/models/card_cryptogram_type.rb +34 -0
- data/lib/wallee-ruby-sdk/models/cardholder_authentication.rb +231 -0
- data/lib/wallee-ruby-sdk/models/cardholder_authentication_create.rb +241 -0
- data/lib/wallee-ruby-sdk/models/charge_attempt.rb +11 -1
- data/lib/wallee-ruby-sdk/models/charge_bank_transaction.rb +291 -0
- data/lib/wallee-ruby-sdk/models/currency_bank_account.rb +241 -0
- data/lib/wallee-ruby-sdk/models/debt_collection_case.rb +1 -1
- data/lib/wallee-ruby-sdk/models/debt_collection_case_create.rb +1 -1
- data/lib/wallee-ruby-sdk/models/external_transfer_bank_transaction.rb +251 -0
- data/lib/wallee-ruby-sdk/models/internal_transfer_bank_transaction.rb +231 -0
- data/lib/wallee-ruby-sdk/models/payment_adjustment.rb +231 -0
- data/lib/wallee-ruby-sdk/models/payment_adjustment_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/payment_connector_configuration.rb +13 -1
- data/lib/wallee-ruby-sdk/models/payment_contract.rb +1 -25
- data/lib/wallee-ruby-sdk/models/payment_link.rb +16 -40
- data/lib/wallee-ruby-sdk/models/payment_link_active.rb +15 -15
- data/lib/wallee-ruby-sdk/models/payment_link_address_handling_mode.rb +36 -0
- data/lib/wallee-ruby-sdk/models/payment_link_create.rb +16 -44
- data/lib/wallee-ruby-sdk/models/payment_link_update.rb +15 -15
- data/lib/wallee-ruby-sdk/models/payment_terminal.rb +11 -1
- data/lib/wallee-ruby-sdk/models/payment_terminal_address.rb +0 -60
- data/lib/wallee-ruby-sdk/models/payment_terminal_configuration_version.rb +11 -1
- data/lib/wallee-ruby-sdk/models/payment_terminal_location.rb +2 -22
- data/lib/wallee-ruby-sdk/models/payment_terminal_receipt_type.rb +215 -0
- data/lib/wallee-ruby-sdk/models/permission.rb +14 -4
- data/lib/wallee-ruby-sdk/models/recurring_indicator.rb +37 -0
- data/lib/wallee-ruby-sdk/models/refund_bank_transaction.rb +281 -0
- data/lib/wallee-ruby-sdk/models/refund_recovery_bank_transaction.rb +293 -0
- data/lib/wallee-ruby-sdk/models/rendered_terminal_receipt.rb +26 -6
- data/lib/wallee-ruby-sdk/models/role.rb +1 -1
- data/lib/wallee-ruby-sdk/models/role_state.rb +37 -0
- data/lib/wallee-ruby-sdk/models/sales_channel.rb +34 -4
- data/lib/wallee-ruby-sdk/models/shopify_additional_line_item_data.rb +35 -0
- data/lib/wallee-ruby-sdk/models/shopify_integration.rb +73 -31
- data/lib/wallee-ruby-sdk/models/shopify_integration_payment_app_version.rb +34 -0
- data/lib/wallee-ruby-sdk/models/{shopify_integration_app_version.rb → shopify_integration_subscription_app_version.rb} +3 -3
- data/lib/wallee-ruby-sdk/models/shopify_subscriber.rb +1 -1
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_active.rb +241 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_creation.rb +216 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +61 -7
- data/lib/wallee-ruby-sdk/models/shopify_subscription_address.rb +0 -60
- data/lib/wallee-ruby-sdk/models/{payment_terminal_contact_address.rb → shopify_subscription_address_create.rb} +152 -2
- data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +363 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +271 -0
- data/lib/wallee-ruby-sdk/models/{shopify_subscription_edit_model_item.rb → shopify_subscription_model_item.rb} +2 -2
- data/lib/wallee-ruby-sdk/models/{shopify_subscription_edit_model_tax_line.rb → shopify_subscription_model_tax_line.rb} +1 -1
- data/lib/wallee-ruby-sdk/models/shopify_subscription_product_create.rb +9 -14
- data/lib/wallee-ruby-sdk/models/{shopify_subscription_product_active.rb → shopify_subscription_product_update.rb} +2 -12
- data/lib/wallee-ruby-sdk/models/shopify_subscription_update_addresses_request.rb +211 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription_update_request.rb +11 -81
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version.rb +11 -1
- data/lib/wallee-ruby-sdk/models/space.rb +31 -1
- data/lib/wallee-ruby-sdk/models/space_create.rb +11 -1
- data/lib/wallee-ruby-sdk/models/space_update.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscriber.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscriber_create.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscription.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscription_affiliate.rb +1 -25
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_create.rb +1 -29
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleted.rb +1 -25
- data/lib/wallee-ruby-sdk/models/subscription_affiliate_deleting.rb +1 -25
- data/lib/wallee-ruby-sdk/models/subscription_charge.rb +49 -1
- data/lib/wallee-ruby-sdk/models/subscription_charge_create.rb +49 -1
- data/lib/wallee-ruby-sdk/models/subscription_create_request.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry.rb +12 -2
- data/lib/wallee-ruby-sdk/models/subscription_ledger_entry_create.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscription_product.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_active.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_component.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_component_update.rb +1 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_create.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_version.rb +11 -1
- data/lib/wallee-ruby-sdk/models/subscription_product_version_pending.rb +14 -4
- data/lib/wallee-ruby-sdk/models/subscription_update_request.rb +206 -0
- data/lib/wallee-ruby-sdk/models/tax_calculation.rb +35 -0
- data/lib/wallee-ruby-sdk/models/terminal_receipt_fetch_request.rb +221 -0
- data/lib/wallee-ruby-sdk/models/terminal_receipt_format.rb +35 -0
- data/lib/wallee-ruby-sdk/models/token.rb +1 -25
- data/lib/wallee-ruby-sdk/models/token_create.rb +1 -29
- data/lib/wallee-ruby-sdk/models/tokenized_card_data.rb +211 -0
- data/lib/wallee-ruby-sdk/models/{unencrypted_card_data_create.rb → tokenized_card_data_create.rb} +60 -5
- data/lib/wallee-ruby-sdk/models/transaction.rb +132 -4
- data/lib/wallee-ruby-sdk/models/transaction_completion.rb +26 -1
- data/lib/wallee-ruby-sdk/models/transaction_completion_behavior.rb +36 -0
- data/lib/wallee-ruby-sdk/models/transaction_completion_request.rb +26 -1
- data/lib/wallee-ruby-sdk/models/transaction_create.rb +59 -1
- data/lib/wallee-ruby-sdk/models/transaction_pending.rb +59 -1
- data/lib/wallee-ruby-sdk/models/web_app_confirmation_request.rb +206 -0
- data/lib/wallee-ruby-sdk/models/web_app_confirmation_response.rb +231 -0
- data/lib/wallee-ruby-sdk/models/webhook_url.rb +35 -1
- data/lib/wallee-ruby-sdk/models/webhook_url_create.rb +24 -0
- data/lib/wallee-ruby-sdk/models/webhook_url_update.rb +24 -0
- data/lib/wallee-ruby-sdk/version.rb +1 -1
- data/test/condition_type_service_test.rb +22 -0
- data/wallee-ruby-sdk.gemspec +3 -2
- metadata +93 -17
@@ -32,6 +32,9 @@ module Wallee
|
|
32
32
|
#
|
33
33
|
attr_accessor :billing_interval_unit
|
34
34
|
|
35
|
+
#
|
36
|
+
attr_accessor :billing_reference_date
|
37
|
+
|
35
38
|
#
|
36
39
|
attr_accessor :billing_weekday
|
37
40
|
|
@@ -108,6 +111,7 @@ module Wallee
|
|
108
111
|
:'billing_day_of_month' => :'billingDayOfMonth',
|
109
112
|
:'billing_interval_amount' => :'billingIntervalAmount',
|
110
113
|
:'billing_interval_unit' => :'billingIntervalUnit',
|
114
|
+
:'billing_reference_date' => :'billingReferenceDate',
|
111
115
|
:'billing_weekday' => :'billingWeekday',
|
112
116
|
:'created_by' => :'createdBy',
|
113
117
|
:'created_on' => :'createdOn',
|
@@ -141,6 +145,7 @@ module Wallee
|
|
141
145
|
:'billing_day_of_month' => :'Integer',
|
142
146
|
:'billing_interval_amount' => :'Integer',
|
143
147
|
:'billing_interval_unit' => :'ShopifySubscriptionBillingIntervalUnit',
|
148
|
+
:'billing_reference_date' => :'DateTime',
|
144
149
|
:'billing_weekday' => :'ShopifySubscriptionWeekday',
|
145
150
|
:'created_by' => :'Integer',
|
146
151
|
:'created_on' => :'DateTime',
|
@@ -191,6 +196,10 @@ module Wallee
|
|
191
196
|
self.billing_interval_unit = attributes[:'billingIntervalUnit']
|
192
197
|
end
|
193
198
|
|
199
|
+
if attributes.has_key?(:'billingReferenceDate')
|
200
|
+
self.billing_reference_date = attributes[:'billingReferenceDate']
|
201
|
+
end
|
202
|
+
|
194
203
|
if attributes.has_key?(:'billingWeekday')
|
195
204
|
self.billing_weekday = attributes[:'billingWeekday']
|
196
205
|
end
|
@@ -308,6 +317,7 @@ module Wallee
|
|
308
317
|
billing_day_of_month == o.billing_day_of_month &&
|
309
318
|
billing_interval_amount == o.billing_interval_amount &&
|
310
319
|
billing_interval_unit == o.billing_interval_unit &&
|
320
|
+
billing_reference_date == o.billing_reference_date &&
|
311
321
|
billing_weekday == o.billing_weekday &&
|
312
322
|
created_by == o.created_by &&
|
313
323
|
created_on == o.created_on &&
|
@@ -342,7 +352,7 @@ module Wallee
|
|
342
352
|
# Calculates hash code according to all attributes.
|
343
353
|
# @return [Fixnum] Hash code
|
344
354
|
def hash
|
345
|
-
[billing_address, billing_day_of_month, billing_interval_amount, billing_interval_unit, billing_weekday, created_by, created_on, currency, discharged_by, discharged_on, id, items, linked_space_id, maximal_billing_cycles, maximal_suspendable_cycles, minimal_billing_cycles, payment_gateway, shipping_address, shipping_rate, shop, state, store_order_confirmation_email_enabled, subscriber_suspension_allowed, subscription, termination_billing_cycles, token, version].hash
|
355
|
+
[billing_address, billing_day_of_month, billing_interval_amount, billing_interval_unit, billing_reference_date, billing_weekday, created_by, created_on, currency, discharged_by, discharged_on, id, items, linked_space_id, maximal_billing_cycles, maximal_suspendable_cycles, minimal_billing_cycles, payment_gateway, shipping_address, shipping_rate, shop, state, store_order_confirmation_email_enabled, subscriber_suspension_allowed, subscription, termination_billing_cycles, token, version].hash
|
346
356
|
end
|
347
357
|
|
348
358
|
# Builds the object from hash
|
@@ -29,6 +29,12 @@ module Wallee
|
|
29
29
|
# This property is true when all accounts in the hierarchy are active or restricted active.
|
30
30
|
attr_accessor :active_or_restricted_active
|
31
31
|
|
32
|
+
# The ID of the user who created this entity.
|
33
|
+
attr_accessor :created_by
|
34
|
+
|
35
|
+
# The date and time when this entity was created.
|
36
|
+
attr_accessor :created_on
|
37
|
+
|
32
38
|
# The database in which the space's data are stored in.
|
33
39
|
attr_accessor :database
|
34
40
|
|
@@ -41,6 +47,9 @@ module Wallee
|
|
41
47
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
42
48
|
attr_accessor :id
|
43
49
|
|
50
|
+
#
|
51
|
+
attr_accessor :last_modified_date
|
52
|
+
|
44
53
|
# The space name is used internally to identify the space in administrative interfaces. For example it is used within search fields and hence it should be distinct and descriptive.
|
45
54
|
attr_accessor :name
|
46
55
|
|
@@ -77,10 +86,13 @@ module Wallee
|
|
77
86
|
:'account' => :'account',
|
78
87
|
:'active' => :'active',
|
79
88
|
:'active_or_restricted_active' => :'activeOrRestrictedActive',
|
89
|
+
:'created_by' => :'createdBy',
|
90
|
+
:'created_on' => :'createdOn',
|
80
91
|
:'database' => :'database',
|
81
92
|
:'deleted_by' => :'deletedBy',
|
82
93
|
:'deleted_on' => :'deletedOn',
|
83
94
|
:'id' => :'id',
|
95
|
+
:'last_modified_date' => :'lastModifiedDate',
|
84
96
|
:'name' => :'name',
|
85
97
|
:'planned_purge_date' => :'plannedPurgeDate',
|
86
98
|
:'postal_address' => :'postalAddress',
|
@@ -100,10 +112,13 @@ module Wallee
|
|
100
112
|
:'account' => :'Account',
|
101
113
|
:'active' => :'BOOLEAN',
|
102
114
|
:'active_or_restricted_active' => :'BOOLEAN',
|
115
|
+
:'created_by' => :'Integer',
|
116
|
+
:'created_on' => :'DateTime',
|
103
117
|
:'database' => :'TenantDatabase',
|
104
118
|
:'deleted_by' => :'Integer',
|
105
119
|
:'deleted_on' => :'DateTime',
|
106
120
|
:'id' => :'Integer',
|
121
|
+
:'last_modified_date' => :'DateTime',
|
107
122
|
:'name' => :'String',
|
108
123
|
:'planned_purge_date' => :'DateTime',
|
109
124
|
:'postal_address' => :'SpaceAddress',
|
@@ -137,6 +152,14 @@ module Wallee
|
|
137
152
|
self.active_or_restricted_active = attributes[:'activeOrRestrictedActive']
|
138
153
|
end
|
139
154
|
|
155
|
+
if attributes.has_key?(:'createdBy')
|
156
|
+
self.created_by = attributes[:'createdBy']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.has_key?(:'createdOn')
|
160
|
+
self.created_on = attributes[:'createdOn']
|
161
|
+
end
|
162
|
+
|
140
163
|
if attributes.has_key?(:'database')
|
141
164
|
self.database = attributes[:'database']
|
142
165
|
end
|
@@ -153,6 +176,10 @@ module Wallee
|
|
153
176
|
self.id = attributes[:'id']
|
154
177
|
end
|
155
178
|
|
179
|
+
if attributes.has_key?(:'lastModifiedDate')
|
180
|
+
self.last_modified_date = attributes[:'lastModifiedDate']
|
181
|
+
end
|
182
|
+
|
156
183
|
if attributes.has_key?(:'name')
|
157
184
|
self.name = attributes[:'name']
|
158
185
|
end
|
@@ -241,10 +268,13 @@ module Wallee
|
|
241
268
|
account == o.account &&
|
242
269
|
active == o.active &&
|
243
270
|
active_or_restricted_active == o.active_or_restricted_active &&
|
271
|
+
created_by == o.created_by &&
|
272
|
+
created_on == o.created_on &&
|
244
273
|
database == o.database &&
|
245
274
|
deleted_by == o.deleted_by &&
|
246
275
|
deleted_on == o.deleted_on &&
|
247
276
|
id == o.id &&
|
277
|
+
last_modified_date == o.last_modified_date &&
|
248
278
|
name == o.name &&
|
249
279
|
planned_purge_date == o.planned_purge_date &&
|
250
280
|
postal_address == o.postal_address &&
|
@@ -266,7 +296,7 @@ module Wallee
|
|
266
296
|
# Calculates hash code according to all attributes.
|
267
297
|
# @return [Fixnum] Hash code
|
268
298
|
def hash
|
269
|
-
[account, active, active_or_restricted_active, database, deleted_by, deleted_on, id, name, planned_purge_date, postal_address, primary_currency, request_limit, restricted_active, state, technical_contact_addresses, time_zone, version].hash
|
299
|
+
[account, active, active_or_restricted_active, created_by, created_on, database, deleted_by, deleted_on, id, last_modified_date, name, planned_purge_date, postal_address, primary_currency, request_limit, restricted_active, state, technical_contact_addresses, time_zone, version].hash
|
270
300
|
end
|
271
301
|
|
272
302
|
# Builds the object from hash
|
@@ -20,6 +20,9 @@ require 'date'
|
|
20
20
|
module Wallee
|
21
21
|
#
|
22
22
|
class SpaceCreate
|
23
|
+
#
|
24
|
+
attr_accessor :last_modified_date
|
25
|
+
|
23
26
|
# The space name is used internally to identify the space in administrative interfaces. For example it is used within search fields and hence it should be distinct and descriptive.
|
24
27
|
attr_accessor :name
|
25
28
|
|
@@ -47,6 +50,7 @@ module Wallee
|
|
47
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
48
51
|
def self.attribute_map
|
49
52
|
{
|
53
|
+
:'last_modified_date' => :'lastModifiedDate',
|
50
54
|
:'name' => :'name',
|
51
55
|
:'postal_address' => :'postalAddress',
|
52
56
|
:'primary_currency' => :'primaryCurrency',
|
@@ -61,6 +65,7 @@ module Wallee
|
|
61
65
|
# Attribute type mapping.
|
62
66
|
def self.swagger_types
|
63
67
|
{
|
68
|
+
:'last_modified_date' => :'DateTime',
|
64
69
|
:'name' => :'String',
|
65
70
|
:'postal_address' => :'SpaceAddressCreate',
|
66
71
|
:'primary_currency' => :'String',
|
@@ -80,6 +85,10 @@ module Wallee
|
|
80
85
|
# convert string to symbol for hash key
|
81
86
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
82
87
|
|
88
|
+
if attributes.has_key?(:'lastModifiedDate')
|
89
|
+
self.last_modified_date = attributes[:'lastModifiedDate']
|
90
|
+
end
|
91
|
+
|
83
92
|
if attributes.has_key?(:'name')
|
84
93
|
self.name = attributes[:'name']
|
85
94
|
end
|
@@ -162,6 +171,7 @@ module Wallee
|
|
162
171
|
def ==(o)
|
163
172
|
return true if self.equal?(o)
|
164
173
|
self.class == o.class &&
|
174
|
+
last_modified_date == o.last_modified_date &&
|
165
175
|
name == o.name &&
|
166
176
|
postal_address == o.postal_address &&
|
167
177
|
primary_currency == o.primary_currency &&
|
@@ -181,7 +191,7 @@ module Wallee
|
|
181
191
|
# Calculates hash code according to all attributes.
|
182
192
|
# @return [Fixnum] Hash code
|
183
193
|
def hash
|
184
|
-
[name, postal_address, primary_currency, request_limit, state, technical_contact_addresses, time_zone, account].hash
|
194
|
+
[last_modified_date, name, postal_address, primary_currency, request_limit, state, technical_contact_addresses, time_zone, account].hash
|
185
195
|
end
|
186
196
|
|
187
197
|
# Builds the object from hash
|
@@ -20,6 +20,9 @@ require 'date'
|
|
20
20
|
module Wallee
|
21
21
|
#
|
22
22
|
class SpaceUpdate
|
23
|
+
#
|
24
|
+
attr_accessor :last_modified_date
|
25
|
+
|
23
26
|
# The space name is used internally to identify the space in administrative interfaces. For example it is used within search fields and hence it should be distinct and descriptive.
|
24
27
|
attr_accessor :name
|
25
28
|
|
@@ -50,6 +53,7 @@ module Wallee
|
|
50
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
54
|
def self.attribute_map
|
52
55
|
{
|
56
|
+
:'last_modified_date' => :'lastModifiedDate',
|
53
57
|
:'name' => :'name',
|
54
58
|
:'postal_address' => :'postalAddress',
|
55
59
|
:'primary_currency' => :'primaryCurrency',
|
@@ -65,6 +69,7 @@ module Wallee
|
|
65
69
|
# Attribute type mapping.
|
66
70
|
def self.swagger_types
|
67
71
|
{
|
72
|
+
:'last_modified_date' => :'DateTime',
|
68
73
|
:'name' => :'String',
|
69
74
|
:'postal_address' => :'SpaceAddressCreate',
|
70
75
|
:'primary_currency' => :'String',
|
@@ -85,6 +90,10 @@ module Wallee
|
|
85
90
|
# convert string to symbol for hash key
|
86
91
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
87
92
|
|
93
|
+
if attributes.has_key?(:'lastModifiedDate')
|
94
|
+
self.last_modified_date = attributes[:'lastModifiedDate']
|
95
|
+
end
|
96
|
+
|
88
97
|
if attributes.has_key?(:'name')
|
89
98
|
self.name = attributes[:'name']
|
90
99
|
end
|
@@ -176,6 +185,7 @@ module Wallee
|
|
176
185
|
def ==(o)
|
177
186
|
return true if self.equal?(o)
|
178
187
|
self.class == o.class &&
|
188
|
+
last_modified_date == o.last_modified_date &&
|
179
189
|
name == o.name &&
|
180
190
|
postal_address == o.postal_address &&
|
181
191
|
primary_currency == o.primary_currency &&
|
@@ -196,7 +206,7 @@ module Wallee
|
|
196
206
|
# Calculates hash code according to all attributes.
|
197
207
|
# @return [Fixnum] Hash code
|
198
208
|
def hash
|
199
|
-
[name, postal_address, primary_currency, request_limit, state, technical_contact_addresses, time_zone, id, version].hash
|
209
|
+
[last_modified_date, name, postal_address, primary_currency, request_limit, state, technical_contact_addresses, time_zone, id, version].hash
|
200
210
|
end
|
201
211
|
|
202
212
|
# Builds the object from hash
|
@@ -35,7 +35,7 @@ module Wallee
|
|
35
35
|
# The email address is used to communicate with the subscriber. There can be only one subscriber per space with the same email address.
|
36
36
|
attr_accessor :email_address
|
37
37
|
|
38
|
-
#
|
38
|
+
# A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
|
39
39
|
attr_accessor :external_id
|
40
40
|
|
41
41
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
@@ -50,7 +50,7 @@ module Wallee
|
|
50
50
|
#
|
51
51
|
attr_accessor :state
|
52
52
|
|
53
|
-
#
|
53
|
+
# A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
|
54
54
|
attr_accessor :external_id
|
55
55
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -29,6 +29,9 @@ module Wallee
|
|
29
29
|
#
|
30
30
|
attr_accessor :created_on
|
31
31
|
|
32
|
+
#
|
33
|
+
attr_accessor :current_product_version
|
34
|
+
|
32
35
|
#
|
33
36
|
attr_accessor :description
|
34
37
|
|
@@ -83,6 +86,7 @@ module Wallee
|
|
83
86
|
:'activated_on' => :'activatedOn',
|
84
87
|
:'affiliate' => :'affiliate',
|
85
88
|
:'created_on' => :'createdOn',
|
89
|
+
:'current_product_version' => :'currentProductVersion',
|
86
90
|
:'description' => :'description',
|
87
91
|
:'id' => :'id',
|
88
92
|
:'initialized_on' => :'initializedOn',
|
@@ -108,6 +112,7 @@ module Wallee
|
|
108
112
|
:'activated_on' => :'DateTime',
|
109
113
|
:'affiliate' => :'SubscriptionAffiliate',
|
110
114
|
:'created_on' => :'DateTime',
|
115
|
+
:'current_product_version' => :'SubscriptionProductVersion',
|
111
116
|
:'description' => :'String',
|
112
117
|
:'id' => :'Integer',
|
113
118
|
:'initialized_on' => :'DateTime',
|
@@ -147,6 +152,10 @@ module Wallee
|
|
147
152
|
self.created_on = attributes[:'createdOn']
|
148
153
|
end
|
149
154
|
|
155
|
+
if attributes.has_key?(:'currentProductVersion')
|
156
|
+
self.current_product_version = attributes[:'currentProductVersion']
|
157
|
+
end
|
158
|
+
|
150
159
|
if attributes.has_key?(:'description')
|
151
160
|
self.description = attributes[:'description']
|
152
161
|
end
|
@@ -263,6 +272,7 @@ module Wallee
|
|
263
272
|
activated_on == o.activated_on &&
|
264
273
|
affiliate == o.affiliate &&
|
265
274
|
created_on == o.created_on &&
|
275
|
+
current_product_version == o.current_product_version &&
|
266
276
|
description == o.description &&
|
267
277
|
id == o.id &&
|
268
278
|
initialized_on == o.initialized_on &&
|
@@ -290,7 +300,7 @@ module Wallee
|
|
290
300
|
# Calculates hash code according to all attributes.
|
291
301
|
# @return [Fixnum] Hash code
|
292
302
|
def hash
|
293
|
-
[activated_on, affiliate, created_on, description, id, initialized_on, language, linked_space_id, planned_purge_date, planned_termination_date, reference, state, subscriber, terminated_by, terminated_on, terminating_on, termination_scheduled_on, token, version].hash
|
303
|
+
[activated_on, affiliate, created_on, current_product_version, description, id, initialized_on, language, linked_space_id, planned_purge_date, planned_termination_date, reference, state, subscriber, terminated_by, terminated_on, terminating_on, termination_scheduled_on, token, version].hash
|
294
304
|
end
|
295
305
|
|
296
306
|
# Builds the object from hash
|
@@ -20,7 +20,7 @@ require 'date'
|
|
20
20
|
module Wallee
|
21
21
|
#
|
22
22
|
class SubscriptionAffiliate
|
23
|
-
#
|
23
|
+
# A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
|
24
24
|
attr_accessor :external_id
|
25
25
|
|
26
26
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
@@ -137,14 +137,6 @@ module Wallee
|
|
137
137
|
# @return Array for valid properties with the reasons
|
138
138
|
def list_invalid_properties
|
139
139
|
invalid_properties = Array.new
|
140
|
-
if !@external_id.nil? && @external_id.to_s.length > 100
|
141
|
-
invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 100.')
|
142
|
-
end
|
143
|
-
|
144
|
-
if !@external_id.nil? && @external_id.to_s.length < 1
|
145
|
-
invalid_properties.push('invalid value for "external_id", the character length must be great than or equal to 1.')
|
146
|
-
end
|
147
|
-
|
148
140
|
if !@name.nil? && @name.to_s.length > 255
|
149
141
|
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
|
150
142
|
end
|
@@ -167,8 +159,6 @@ module Wallee
|
|
167
159
|
# Check to see if the all the properties in the model are valid
|
168
160
|
# @return true if the model is valid
|
169
161
|
def valid?
|
170
|
-
return false if !@external_id.nil? && @external_id.to_s.length > 100
|
171
|
-
return false if !@external_id.nil? && @external_id.to_s.length < 1
|
172
162
|
return false if !@name.nil? && @name.to_s.length > 255
|
173
163
|
return false if !@name.nil? && @name.to_s.length < 3
|
174
164
|
return false if !@reference.nil? && @reference.to_s.length > 100
|
@@ -176,20 +166,6 @@ module Wallee
|
|
176
166
|
true
|
177
167
|
end
|
178
168
|
|
179
|
-
# Custom attribute writer method with validation
|
180
|
-
# @param [Object] external_id Value to be assigned
|
181
|
-
def external_id=(external_id)
|
182
|
-
if !external_id.nil? && external_id.to_s.length > 100
|
183
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 100.'
|
184
|
-
end
|
185
|
-
|
186
|
-
if !external_id.nil? && external_id.to_s.length < 1
|
187
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be great than or equal to 1.'
|
188
|
-
end
|
189
|
-
|
190
|
-
@external_id = external_id
|
191
|
-
end
|
192
|
-
|
193
169
|
# Custom attribute writer method with validation
|
194
170
|
# @param [Object] name Value to be assigned
|
195
171
|
def name=(name)
|
@@ -32,7 +32,7 @@ module Wallee
|
|
32
32
|
#
|
33
33
|
attr_accessor :state
|
34
34
|
|
35
|
-
#
|
35
|
+
# A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
|
36
36
|
attr_accessor :external_id
|
37
37
|
|
38
38
|
#
|
@@ -113,14 +113,6 @@ module Wallee
|
|
113
113
|
invalid_properties.push('invalid value for "external_id", external_id cannot be nil.')
|
114
114
|
end
|
115
115
|
|
116
|
-
if @external_id.to_s.length > 100
|
117
|
-
invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 100.')
|
118
|
-
end
|
119
|
-
|
120
|
-
if @external_id.to_s.length < 1
|
121
|
-
invalid_properties.push('invalid value for "external_id", the character length must be great than or equal to 1.')
|
122
|
-
end
|
123
|
-
|
124
116
|
if @reference.nil?
|
125
117
|
invalid_properties.push('invalid value for "reference", reference cannot be nil.')
|
126
118
|
end
|
@@ -142,8 +134,6 @@ module Wallee
|
|
142
134
|
return false if !@name.nil? && @name.to_s.length > 255
|
143
135
|
return false if !@name.nil? && @name.to_s.length < 3
|
144
136
|
return false if @external_id.nil?
|
145
|
-
return false if @external_id.to_s.length > 100
|
146
|
-
return false if @external_id.to_s.length < 1
|
147
137
|
return false if @reference.nil?
|
148
138
|
return false if @reference.to_s.length > 100
|
149
139
|
return false if @reference.to_s.length < 3
|
@@ -164,24 +154,6 @@ module Wallee
|
|
164
154
|
@name = name
|
165
155
|
end
|
166
156
|
|
167
|
-
# Custom attribute writer method with validation
|
168
|
-
# @param [Object] external_id Value to be assigned
|
169
|
-
def external_id=(external_id)
|
170
|
-
if external_id.nil?
|
171
|
-
fail ArgumentError, 'external_id cannot be nil'
|
172
|
-
end
|
173
|
-
|
174
|
-
if external_id.to_s.length > 100
|
175
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 100.'
|
176
|
-
end
|
177
|
-
|
178
|
-
if external_id.to_s.length < 1
|
179
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be great than or equal to 1.'
|
180
|
-
end
|
181
|
-
|
182
|
-
@external_id = external_id
|
183
|
-
end
|
184
|
-
|
185
157
|
# Custom attribute writer method with validation
|
186
158
|
# @param [Object] reference Value to be assigned
|
187
159
|
def reference=(reference)
|
@@ -20,7 +20,7 @@ require 'date'
|
|
20
20
|
module Wallee
|
21
21
|
#
|
22
22
|
class SubscriptionAffiliateDeleted
|
23
|
-
#
|
23
|
+
# A client generated nonce which identifies the entity to be created. Subsequent creation requests with the same external ID will not create new entities but return the initially created entity instead.
|
24
24
|
attr_accessor :external_id
|
25
25
|
|
26
26
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
@@ -137,14 +137,6 @@ module Wallee
|
|
137
137
|
# @return Array for valid properties with the reasons
|
138
138
|
def list_invalid_properties
|
139
139
|
invalid_properties = Array.new
|
140
|
-
if !@external_id.nil? && @external_id.to_s.length > 100
|
141
|
-
invalid_properties.push('invalid value for "external_id", the character length must be smaller than or equal to 100.')
|
142
|
-
end
|
143
|
-
|
144
|
-
if !@external_id.nil? && @external_id.to_s.length < 1
|
145
|
-
invalid_properties.push('invalid value for "external_id", the character length must be great than or equal to 1.')
|
146
|
-
end
|
147
|
-
|
148
140
|
if !@name.nil? && @name.to_s.length > 255
|
149
141
|
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
|
150
142
|
end
|
@@ -167,8 +159,6 @@ module Wallee
|
|
167
159
|
# Check to see if the all the properties in the model are valid
|
168
160
|
# @return true if the model is valid
|
169
161
|
def valid?
|
170
|
-
return false if !@external_id.nil? && @external_id.to_s.length > 100
|
171
|
-
return false if !@external_id.nil? && @external_id.to_s.length < 1
|
172
162
|
return false if !@name.nil? && @name.to_s.length > 255
|
173
163
|
return false if !@name.nil? && @name.to_s.length < 3
|
174
164
|
return false if !@reference.nil? && @reference.to_s.length > 100
|
@@ -176,20 +166,6 @@ module Wallee
|
|
176
166
|
true
|
177
167
|
end
|
178
168
|
|
179
|
-
# Custom attribute writer method with validation
|
180
|
-
# @param [Object] external_id Value to be assigned
|
181
|
-
def external_id=(external_id)
|
182
|
-
if !external_id.nil? && external_id.to_s.length > 100
|
183
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be smaller than or equal to 100.'
|
184
|
-
end
|
185
|
-
|
186
|
-
if !external_id.nil? && external_id.to_s.length < 1
|
187
|
-
fail ArgumentError, 'invalid value for "external_id", the character length must be great than or equal to 1.'
|
188
|
-
end
|
189
|
-
|
190
|
-
@external_id = external_id
|
191
|
-
end
|
192
|
-
|
193
169
|
# Custom attribute writer method with validation
|
194
170
|
# @param [Object] name Value to be assigned
|
195
171
|
def name=(name)
|