wallee-ruby-sdk 2.2.4 → 3.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/lib/wallee-ruby-sdk.rb +46 -3
- 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 +71 -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/token_service_api.rb +63 -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 +2 -1
- data/lib/wallee-ruby-sdk/models/abstract_payment_link_update.rb +15 -15
- data/lib/wallee-ruby-sdk/models/abstract_subscription_product_active.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_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_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/shopify_subscriber.rb +1 -1
- data/lib/wallee-ruby-sdk/models/shopify_subscriber_active.rb +241 -0
- data/lib/wallee-ruby-sdk/models/shopify_subscription.rb +11 -1
- data/lib/wallee-ruby-sdk/models/shopify_subscription_creation_request.rb +12 -2
- data/lib/wallee-ruby-sdk/models/shopify_subscription_model_billing_configuration.rb +11 -1
- data/lib/wallee-ruby-sdk/models/shopify_subscription_version.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_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 +1 -1
- data/lib/wallee-ruby-sdk/models/subscription_charge_create.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/tax_calculation.rb +2 -2
- 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 +64 -4
- 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 +11 -1
- data/lib/wallee-ruby-sdk/version.rb +1 -1
- data/test/condition_type_service_test.rb +22 -0
- metadata +50 -5
- data/lib/wallee-ruby-sdk/models/payment_terminal_contact_address.rb +0 -396
|
@@ -32,6 +32,9 @@ module Wallee
|
|
|
32
32
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
|
33
33
|
attr_accessor :id
|
|
34
34
|
|
|
35
|
+
#
|
|
36
|
+
attr_accessor :initial_execution_date
|
|
37
|
+
|
|
35
38
|
#
|
|
36
39
|
attr_accessor :initial_payment_transaction
|
|
37
40
|
|
|
@@ -75,6 +78,7 @@ module Wallee
|
|
|
75
78
|
:'created_on' => :'createdOn',
|
|
76
79
|
:'external_id' => :'externalId',
|
|
77
80
|
:'id' => :'id',
|
|
81
|
+
:'initial_execution_date' => :'initialExecutionDate',
|
|
78
82
|
:'initial_payment_transaction' => :'initialPaymentTransaction',
|
|
79
83
|
:'initial_shopify_transaction' => :'initialShopifyTransaction',
|
|
80
84
|
:'language' => :'language',
|
|
@@ -97,6 +101,7 @@ module Wallee
|
|
|
97
101
|
:'created_on' => :'DateTime',
|
|
98
102
|
:'external_id' => :'String',
|
|
99
103
|
:'id' => :'Integer',
|
|
104
|
+
:'initial_execution_date' => :'DateTime',
|
|
100
105
|
:'initial_payment_transaction' => :'Integer',
|
|
101
106
|
:'initial_shopify_transaction' => :'Integer',
|
|
102
107
|
:'language' => :'String',
|
|
@@ -136,6 +141,10 @@ module Wallee
|
|
|
136
141
|
self.id = attributes[:'id']
|
|
137
142
|
end
|
|
138
143
|
|
|
144
|
+
if attributes.has_key?(:'initialExecutionDate')
|
|
145
|
+
self.initial_execution_date = attributes[:'initialExecutionDate']
|
|
146
|
+
end
|
|
147
|
+
|
|
139
148
|
if attributes.has_key?(:'initialPaymentTransaction')
|
|
140
149
|
self.initial_payment_transaction = attributes[:'initialPaymentTransaction']
|
|
141
150
|
end
|
|
@@ -231,6 +240,7 @@ module Wallee
|
|
|
231
240
|
created_on == o.created_on &&
|
|
232
241
|
external_id == o.external_id &&
|
|
233
242
|
id == o.id &&
|
|
243
|
+
initial_execution_date == o.initial_execution_date &&
|
|
234
244
|
initial_payment_transaction == o.initial_payment_transaction &&
|
|
235
245
|
initial_shopify_transaction == o.initial_shopify_transaction &&
|
|
236
246
|
language == o.language &&
|
|
@@ -254,7 +264,7 @@ module Wallee
|
|
|
254
264
|
# Calculates hash code according to all attributes.
|
|
255
265
|
# @return [Fixnum] Hash code
|
|
256
266
|
def hash
|
|
257
|
-
[created_by, created_on, external_id, id, initial_payment_transaction, initial_shopify_transaction, language, linked_space_id, order_recurrence_number, shop, state, subscriber, terminated_by, terminated_on, termination_request_date, version].hash
|
|
267
|
+
[created_by, created_on, external_id, id, initial_execution_date, initial_payment_transaction, initial_shopify_transaction, language, linked_space_id, order_recurrence_number, shop, state, subscriber, terminated_by, terminated_on, termination_request_date, version].hash
|
|
258
268
|
end
|
|
259
269
|
|
|
260
270
|
# Builds the object from hash
|
|
@@ -29,9 +29,12 @@ module Wallee
|
|
|
29
29
|
#
|
|
30
30
|
attr_accessor :currency
|
|
31
31
|
|
|
32
|
-
#
|
|
32
|
+
# 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.
|
|
33
33
|
attr_accessor :external_id
|
|
34
34
|
|
|
35
|
+
#
|
|
36
|
+
attr_accessor :initial_execution_date
|
|
37
|
+
|
|
35
38
|
#
|
|
36
39
|
attr_accessor :integration
|
|
37
40
|
|
|
@@ -66,6 +69,7 @@ module Wallee
|
|
|
66
69
|
:'billing_configuration' => :'billingConfiguration',
|
|
67
70
|
:'currency' => :'currency',
|
|
68
71
|
:'external_id' => :'externalId',
|
|
72
|
+
:'initial_execution_date' => :'initialExecutionDate',
|
|
69
73
|
:'integration' => :'integration',
|
|
70
74
|
:'items' => :'items',
|
|
71
75
|
:'language' => :'language',
|
|
@@ -85,6 +89,7 @@ module Wallee
|
|
|
85
89
|
:'billing_configuration' => :'ShopifySubscriptionModelBillingConfiguration',
|
|
86
90
|
:'currency' => :'String',
|
|
87
91
|
:'external_id' => :'String',
|
|
92
|
+
:'initial_execution_date' => :'DateTime',
|
|
88
93
|
:'integration' => :'Integer',
|
|
89
94
|
:'items' => :'Array<ShopifySubscriptionModelItem>',
|
|
90
95
|
:'language' => :'String',
|
|
@@ -121,6 +126,10 @@ module Wallee
|
|
|
121
126
|
self.external_id = attributes[:'externalId']
|
|
122
127
|
end
|
|
123
128
|
|
|
129
|
+
if attributes.has_key?(:'initialExecutionDate')
|
|
130
|
+
self.initial_execution_date = attributes[:'initialExecutionDate']
|
|
131
|
+
end
|
|
132
|
+
|
|
124
133
|
if attributes.has_key?(:'integration')
|
|
125
134
|
self.integration = attributes[:'integration']
|
|
126
135
|
end
|
|
@@ -222,6 +231,7 @@ module Wallee
|
|
|
222
231
|
billing_configuration == o.billing_configuration &&
|
|
223
232
|
currency == o.currency &&
|
|
224
233
|
external_id == o.external_id &&
|
|
234
|
+
initial_execution_date == o.initial_execution_date &&
|
|
225
235
|
integration == o.integration &&
|
|
226
236
|
items == o.items &&
|
|
227
237
|
language == o.language &&
|
|
@@ -242,7 +252,7 @@ module Wallee
|
|
|
242
252
|
# Calculates hash code according to all attributes.
|
|
243
253
|
# @return [Fixnum] Hash code
|
|
244
254
|
def hash
|
|
245
|
-
[billing_address, billing_configuration, currency, external_id, integration, items, language, shipping_address, shipping_method_name, space_view_id, store_order_confirmation_email_enabled, subscriber, subscriber_suspension_allowed].hash
|
|
255
|
+
[billing_address, billing_configuration, currency, external_id, initial_execution_date, integration, items, language, shipping_address, shipping_method_name, space_view_id, store_order_confirmation_email_enabled, subscriber, subscriber_suspension_allowed].hash
|
|
246
256
|
end
|
|
247
257
|
|
|
248
258
|
# Builds the object from hash
|
|
@@ -29,6 +29,9 @@ module Wallee
|
|
|
29
29
|
# Define how frequently recurring orders should be created.
|
|
30
30
|
attr_accessor :billing_interval_unit
|
|
31
31
|
|
|
32
|
+
# This date will be used as basis to calculate the dates of recurring orders.
|
|
33
|
+
attr_accessor :billing_reference_date
|
|
34
|
+
|
|
32
35
|
# Define the weekday on which the recurring orders should be created.
|
|
33
36
|
attr_accessor :billing_weekday
|
|
34
37
|
|
|
@@ -50,6 +53,7 @@ module Wallee
|
|
|
50
53
|
:'billing_day_of_month' => :'billingDayOfMonth',
|
|
51
54
|
:'billing_interval_amount' => :'billingIntervalAmount',
|
|
52
55
|
:'billing_interval_unit' => :'billingIntervalUnit',
|
|
56
|
+
:'billing_reference_date' => :'billingReferenceDate',
|
|
53
57
|
:'billing_weekday' => :'billingWeekday',
|
|
54
58
|
:'maximal_billing_cycles' => :'maximalBillingCycles',
|
|
55
59
|
:'maximal_suspendable_cycles' => :'maximalSuspendableCycles',
|
|
@@ -64,6 +68,7 @@ module Wallee
|
|
|
64
68
|
:'billing_day_of_month' => :'Integer',
|
|
65
69
|
:'billing_interval_amount' => :'Integer',
|
|
66
70
|
:'billing_interval_unit' => :'ShopifySubscriptionBillingIntervalUnit',
|
|
71
|
+
:'billing_reference_date' => :'DateTime',
|
|
67
72
|
:'billing_weekday' => :'ShopifySubscriptionWeekday',
|
|
68
73
|
:'maximal_billing_cycles' => :'Integer',
|
|
69
74
|
:'maximal_suspendable_cycles' => :'Integer',
|
|
@@ -92,6 +97,10 @@ module Wallee
|
|
|
92
97
|
self.billing_interval_unit = attributes[:'billingIntervalUnit']
|
|
93
98
|
end
|
|
94
99
|
|
|
100
|
+
if attributes.has_key?(:'billingReferenceDate')
|
|
101
|
+
self.billing_reference_date = attributes[:'billingReferenceDate']
|
|
102
|
+
end
|
|
103
|
+
|
|
95
104
|
if attributes.has_key?(:'billingWeekday')
|
|
96
105
|
self.billing_weekday = attributes[:'billingWeekday']
|
|
97
106
|
end
|
|
@@ -134,6 +143,7 @@ module Wallee
|
|
|
134
143
|
billing_day_of_month == o.billing_day_of_month &&
|
|
135
144
|
billing_interval_amount == o.billing_interval_amount &&
|
|
136
145
|
billing_interval_unit == o.billing_interval_unit &&
|
|
146
|
+
billing_reference_date == o.billing_reference_date &&
|
|
137
147
|
billing_weekday == o.billing_weekday &&
|
|
138
148
|
maximal_billing_cycles == o.maximal_billing_cycles &&
|
|
139
149
|
maximal_suspendable_cycles == o.maximal_suspendable_cycles &&
|
|
@@ -150,7 +160,7 @@ module Wallee
|
|
|
150
160
|
# Calculates hash code according to all attributes.
|
|
151
161
|
# @return [Fixnum] Hash code
|
|
152
162
|
def hash
|
|
153
|
-
[billing_day_of_month, billing_interval_amount, billing_interval_unit, billing_weekday, maximal_billing_cycles, maximal_suspendable_cycles, minimal_billing_cycles, termination_billing_cycles].hash
|
|
163
|
+
[billing_day_of_month, billing_interval_amount, billing_interval_unit, billing_reference_date, billing_weekday, maximal_billing_cycles, maximal_suspendable_cycles, minimal_billing_cycles, termination_billing_cycles].hash
|
|
154
164
|
end
|
|
155
165
|
|
|
156
166
|
# Builds the object from hash
|
|
@@ -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
|
|
@@ -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.
|
|
@@ -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)
|
|
@@ -20,7 +20,7 @@ require 'date'
|
|
|
20
20
|
module Wallee
|
|
21
21
|
#
|
|
22
22
|
class SubscriptionAffiliateDeleting
|
|
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)
|