wallee-ruby-sdk 2.2.3 → 3.0.5
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/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
|
@@ -75,6 +75,14 @@ module Wallee
|
|
|
75
75
|
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 50.')
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
+
if !@url.nil? && @url.to_s.length > 500
|
|
79
|
+
invalid_properties.push('invalid value for "url", the character length must be smaller than or equal to 500.')
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if !@url.nil? && @url.to_s.length < 9
|
|
83
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 9.')
|
|
84
|
+
end
|
|
85
|
+
|
|
78
86
|
invalid_properties
|
|
79
87
|
end
|
|
80
88
|
|
|
@@ -82,6 +90,8 @@ module Wallee
|
|
|
82
90
|
# @return true if the model is valid
|
|
83
91
|
def valid?
|
|
84
92
|
return false if !@name.nil? && @name.to_s.length > 50
|
|
93
|
+
return false if !@url.nil? && @url.to_s.length > 500
|
|
94
|
+
return false if !@url.nil? && @url.to_s.length < 9
|
|
85
95
|
true
|
|
86
96
|
end
|
|
87
97
|
|
|
@@ -95,6 +105,20 @@ module Wallee
|
|
|
95
105
|
@name = name
|
|
96
106
|
end
|
|
97
107
|
|
|
108
|
+
# Custom attribute writer method with validation
|
|
109
|
+
# @param [Object] url Value to be assigned
|
|
110
|
+
def url=(url)
|
|
111
|
+
if !url.nil? && url.to_s.length > 500
|
|
112
|
+
fail ArgumentError, 'invalid value for "url", the character length must be smaller than or equal to 500.'
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if !url.nil? && url.to_s.length < 9
|
|
116
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 9.'
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
@url = url
|
|
120
|
+
end
|
|
121
|
+
|
|
98
122
|
# Checks equality by comparing each attribute.
|
|
99
123
|
# @param [Object] Object to be compared
|
|
100
124
|
def ==(o)
|
|
@@ -26,6 +26,12 @@ module Wallee
|
|
|
26
26
|
# This property is true when all accounts in the hierarchy are active or restricted active.
|
|
27
27
|
attr_accessor :active_or_restricted_active
|
|
28
28
|
|
|
29
|
+
# The ID of the user who created this entity.
|
|
30
|
+
attr_accessor :created_by
|
|
31
|
+
|
|
32
|
+
# The date and time when this entity was created.
|
|
33
|
+
attr_accessor :created_on
|
|
34
|
+
|
|
29
35
|
# The ID of a user that deleted this entity.
|
|
30
36
|
attr_accessor :deleted_by
|
|
31
37
|
|
|
@@ -35,6 +41,9 @@ module Wallee
|
|
|
35
41
|
# The ID is the primary key of the entity. The ID identifies the entity uniquely.
|
|
36
42
|
attr_accessor :id
|
|
37
43
|
|
|
44
|
+
#
|
|
45
|
+
attr_accessor :last_modified_date
|
|
46
|
+
|
|
38
47
|
# The name of the account identifies the account within the administrative interface.
|
|
39
48
|
attr_accessor :name
|
|
40
49
|
|
|
@@ -67,9 +76,12 @@ module Wallee
|
|
|
67
76
|
{
|
|
68
77
|
:'active' => :'active',
|
|
69
78
|
:'active_or_restricted_active' => :'activeOrRestrictedActive',
|
|
79
|
+
:'created_by' => :'createdBy',
|
|
80
|
+
:'created_on' => :'createdOn',
|
|
70
81
|
:'deleted_by' => :'deletedBy',
|
|
71
82
|
:'deleted_on' => :'deletedOn',
|
|
72
83
|
:'id' => :'id',
|
|
84
|
+
:'last_modified_date' => :'lastModifiedDate',
|
|
73
85
|
:'name' => :'name',
|
|
74
86
|
:'parent_account' => :'parentAccount',
|
|
75
87
|
:'planned_purge_date' => :'plannedPurgeDate',
|
|
@@ -87,9 +99,12 @@ module Wallee
|
|
|
87
99
|
{
|
|
88
100
|
:'active' => :'BOOLEAN',
|
|
89
101
|
:'active_or_restricted_active' => :'BOOLEAN',
|
|
102
|
+
:'created_by' => :'Integer',
|
|
103
|
+
:'created_on' => :'DateTime',
|
|
90
104
|
:'deleted_by' => :'Integer',
|
|
91
105
|
:'deleted_on' => :'DateTime',
|
|
92
106
|
:'id' => :'Integer',
|
|
107
|
+
:'last_modified_date' => :'DateTime',
|
|
93
108
|
:'name' => :'String',
|
|
94
109
|
:'parent_account' => :'Account',
|
|
95
110
|
:'planned_purge_date' => :'DateTime',
|
|
@@ -118,6 +133,14 @@ module Wallee
|
|
|
118
133
|
self.active_or_restricted_active = attributes[:'activeOrRestrictedActive']
|
|
119
134
|
end
|
|
120
135
|
|
|
136
|
+
if attributes.has_key?(:'createdBy')
|
|
137
|
+
self.created_by = attributes[:'createdBy']
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if attributes.has_key?(:'createdOn')
|
|
141
|
+
self.created_on = attributes[:'createdOn']
|
|
142
|
+
end
|
|
143
|
+
|
|
121
144
|
if attributes.has_key?(:'deletedBy')
|
|
122
145
|
self.deleted_by = attributes[:'deletedBy']
|
|
123
146
|
end
|
|
@@ -130,6 +153,10 @@ module Wallee
|
|
|
130
153
|
self.id = attributes[:'id']
|
|
131
154
|
end
|
|
132
155
|
|
|
156
|
+
if attributes.has_key?(:'lastModifiedDate')
|
|
157
|
+
self.last_modified_date = attributes[:'lastModifiedDate']
|
|
158
|
+
end
|
|
159
|
+
|
|
133
160
|
if attributes.has_key?(:'name')
|
|
134
161
|
self.name = attributes[:'name']
|
|
135
162
|
end
|
|
@@ -211,9 +238,12 @@ module Wallee
|
|
|
211
238
|
self.class == o.class &&
|
|
212
239
|
active == o.active &&
|
|
213
240
|
active_or_restricted_active == o.active_or_restricted_active &&
|
|
241
|
+
created_by == o.created_by &&
|
|
242
|
+
created_on == o.created_on &&
|
|
214
243
|
deleted_by == o.deleted_by &&
|
|
215
244
|
deleted_on == o.deleted_on &&
|
|
216
245
|
id == o.id &&
|
|
246
|
+
last_modified_date == o.last_modified_date &&
|
|
217
247
|
name == o.name &&
|
|
218
248
|
parent_account == o.parent_account &&
|
|
219
249
|
planned_purge_date == o.planned_purge_date &&
|
|
@@ -234,7 +264,7 @@ module Wallee
|
|
|
234
264
|
# Calculates hash code according to all attributes.
|
|
235
265
|
# @return [Fixnum] Hash code
|
|
236
266
|
def hash
|
|
237
|
-
[active, active_or_restricted_active, deleted_by, deleted_on, id, name, parent_account, planned_purge_date, restricted_active, scope, state, subaccount_limit, type, version].hash
|
|
267
|
+
[active, active_or_restricted_active, created_by, created_on, deleted_by, deleted_on, id, last_modified_date, name, parent_account, planned_purge_date, restricted_active, scope, state, subaccount_limit, type, version].hash
|
|
238
268
|
end
|
|
239
269
|
|
|
240
270
|
# Builds the object from hash
|
|
@@ -20,6 +20,9 @@ require 'date'
|
|
|
20
20
|
module Wallee
|
|
21
21
|
#
|
|
22
22
|
class AccountCreate
|
|
23
|
+
#
|
|
24
|
+
attr_accessor :last_modified_date
|
|
25
|
+
|
|
23
26
|
# The name of the account identifies the account within the administrative interface.
|
|
24
27
|
attr_accessor :name
|
|
25
28
|
|
|
@@ -35,6 +38,7 @@ module Wallee
|
|
|
35
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
39
|
def self.attribute_map
|
|
37
40
|
{
|
|
41
|
+
:'last_modified_date' => :'lastModifiedDate',
|
|
38
42
|
:'name' => :'name',
|
|
39
43
|
:'subaccount_limit' => :'subaccountLimit',
|
|
40
44
|
:'parent_account' => :'parentAccount',
|
|
@@ -45,6 +49,7 @@ module Wallee
|
|
|
45
49
|
# Attribute type mapping.
|
|
46
50
|
def self.swagger_types
|
|
47
51
|
{
|
|
52
|
+
:'last_modified_date' => :'DateTime',
|
|
48
53
|
:'name' => :'String',
|
|
49
54
|
:'subaccount_limit' => :'Integer',
|
|
50
55
|
:'parent_account' => :'Integer',
|
|
@@ -60,6 +65,10 @@ module Wallee
|
|
|
60
65
|
# convert string to symbol for hash key
|
|
61
66
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
62
67
|
|
|
68
|
+
if attributes.has_key?(:'lastModifiedDate')
|
|
69
|
+
self.last_modified_date = attributes[:'lastModifiedDate']
|
|
70
|
+
end
|
|
71
|
+
|
|
63
72
|
if attributes.has_key?(:'name')
|
|
64
73
|
self.name = attributes[:'name']
|
|
65
74
|
end
|
|
@@ -124,6 +133,7 @@ module Wallee
|
|
|
124
133
|
def ==(o)
|
|
125
134
|
return true if self.equal?(o)
|
|
126
135
|
self.class == o.class &&
|
|
136
|
+
last_modified_date == o.last_modified_date &&
|
|
127
137
|
name == o.name &&
|
|
128
138
|
subaccount_limit == o.subaccount_limit &&
|
|
129
139
|
parent_account == o.parent_account &&
|
|
@@ -139,7 +149,7 @@ module Wallee
|
|
|
139
149
|
# Calculates hash code according to all attributes.
|
|
140
150
|
# @return [Fixnum] Hash code
|
|
141
151
|
def hash
|
|
142
|
-
[name, subaccount_limit, parent_account, scope].hash
|
|
152
|
+
[last_modified_date, name, subaccount_limit, parent_account, scope].hash
|
|
143
153
|
end
|
|
144
154
|
|
|
145
155
|
# Builds the object from hash
|
|
@@ -20,6 +20,9 @@ require 'date'
|
|
|
20
20
|
module Wallee
|
|
21
21
|
#
|
|
22
22
|
class AccountUpdate
|
|
23
|
+
#
|
|
24
|
+
attr_accessor :last_modified_date
|
|
25
|
+
|
|
23
26
|
# The name of the account identifies the account within the administrative interface.
|
|
24
27
|
attr_accessor :name
|
|
25
28
|
|
|
@@ -35,6 +38,7 @@ module Wallee
|
|
|
35
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
39
|
def self.attribute_map
|
|
37
40
|
{
|
|
41
|
+
:'last_modified_date' => :'lastModifiedDate',
|
|
38
42
|
:'name' => :'name',
|
|
39
43
|
:'subaccount_limit' => :'subaccountLimit',
|
|
40
44
|
:'id' => :'id',
|
|
@@ -45,6 +49,7 @@ module Wallee
|
|
|
45
49
|
# Attribute type mapping.
|
|
46
50
|
def self.swagger_types
|
|
47
51
|
{
|
|
52
|
+
:'last_modified_date' => :'DateTime',
|
|
48
53
|
:'name' => :'String',
|
|
49
54
|
:'subaccount_limit' => :'Integer',
|
|
50
55
|
:'id' => :'Integer',
|
|
@@ -60,6 +65,10 @@ module Wallee
|
|
|
60
65
|
# convert string to symbol for hash key
|
|
61
66
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
62
67
|
|
|
68
|
+
if attributes.has_key?(:'lastModifiedDate')
|
|
69
|
+
self.last_modified_date = attributes[:'lastModifiedDate']
|
|
70
|
+
end
|
|
71
|
+
|
|
63
72
|
if attributes.has_key?(:'name')
|
|
64
73
|
self.name = attributes[:'name']
|
|
65
74
|
end
|
|
@@ -129,6 +138,7 @@ module Wallee
|
|
|
129
138
|
def ==(o)
|
|
130
139
|
return true if self.equal?(o)
|
|
131
140
|
self.class == o.class &&
|
|
141
|
+
last_modified_date == o.last_modified_date &&
|
|
132
142
|
name == o.name &&
|
|
133
143
|
subaccount_limit == o.subaccount_limit &&
|
|
134
144
|
id == o.id &&
|
|
@@ -144,7 +154,7 @@ module Wallee
|
|
|
144
154
|
# Calculates hash code according to all attributes.
|
|
145
155
|
# @return [Fixnum] Hash code
|
|
146
156
|
def hash
|
|
147
|
-
[name, subaccount_limit, id, version].hash
|
|
157
|
+
[last_modified_date, name, subaccount_limit, id, version].hash
|
|
148
158
|
end
|
|
149
159
|
|
|
150
160
|
# Builds the object from hash
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
The wallee API allows an easy interaction with the wallee web service.
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
|
|
16
|
+
=end
|
|
17
|
+
|
|
18
|
+
require 'date'
|
|
19
|
+
|
|
20
|
+
module Wallee
|
|
21
|
+
# This model holds the card data and optional cardholder authentication details.
|
|
22
|
+
class AuthenticatedCardData
|
|
23
|
+
# The additional authentication value used to secure the tokenized card transactions.
|
|
24
|
+
attr_accessor :cryptogram
|
|
25
|
+
|
|
26
|
+
#
|
|
27
|
+
attr_accessor :recurring_indicator
|
|
28
|
+
|
|
29
|
+
#
|
|
30
|
+
attr_accessor :token_requestor_id
|
|
31
|
+
|
|
32
|
+
# The cardholder authentication information. The authentication is optional and can be provided if the cardholder has been already authenticated (e.g. in 3-D Secure system).
|
|
33
|
+
attr_accessor :cardholder_authentication
|
|
34
|
+
|
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
|
+
def self.attribute_map
|
|
37
|
+
{
|
|
38
|
+
:'cryptogram' => :'cryptogram',
|
|
39
|
+
:'recurring_indicator' => :'recurringIndicator',
|
|
40
|
+
:'token_requestor_id' => :'tokenRequestorId',
|
|
41
|
+
:'cardholder_authentication' => :'cardholderAuthentication'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
def self.swagger_types
|
|
47
|
+
{
|
|
48
|
+
:'cryptogram' => :'CardCryptogram',
|
|
49
|
+
:'recurring_indicator' => :'RecurringIndicator',
|
|
50
|
+
:'token_requestor_id' => :'String',
|
|
51
|
+
:'cardholder_authentication' => :'CardholderAuthentication'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Initializes the object
|
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
57
|
+
def initialize(attributes = {})
|
|
58
|
+
return unless attributes.is_a?(Hash)
|
|
59
|
+
|
|
60
|
+
# convert string to symbol for hash key
|
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
62
|
+
|
|
63
|
+
if attributes.has_key?(:'cryptogram')
|
|
64
|
+
self.cryptogram = attributes[:'cryptogram']
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
if attributes.has_key?(:'recurringIndicator')
|
|
68
|
+
self.recurring_indicator = attributes[:'recurringIndicator']
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
if attributes.has_key?(:'tokenRequestorId')
|
|
72
|
+
self.token_requestor_id = attributes[:'tokenRequestorId']
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.has_key?(:'cardholderAuthentication')
|
|
76
|
+
self.cardholder_authentication = attributes[:'cardholderAuthentication']
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
81
|
+
# @return Array for valid properties with the reasons
|
|
82
|
+
def list_invalid_properties
|
|
83
|
+
invalid_properties = Array.new
|
|
84
|
+
invalid_properties
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Check to see if the all the properties in the model are valid
|
|
88
|
+
# @return true if the model is valid
|
|
89
|
+
def valid?
|
|
90
|
+
true
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Checks equality by comparing each attribute.
|
|
94
|
+
# @param [Object] Object to be compared
|
|
95
|
+
def ==(o)
|
|
96
|
+
return true if self.equal?(o)
|
|
97
|
+
self.class == o.class &&
|
|
98
|
+
cryptogram == o.cryptogram &&
|
|
99
|
+
recurring_indicator == o.recurring_indicator &&
|
|
100
|
+
token_requestor_id == o.token_requestor_id &&
|
|
101
|
+
cardholder_authentication == o.cardholder_authentication
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# @see the `==` method
|
|
105
|
+
# @param [Object] Object to be compared
|
|
106
|
+
def eql?(o)
|
|
107
|
+
self == o
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Calculates hash code according to all attributes.
|
|
111
|
+
# @return [Fixnum] Hash code
|
|
112
|
+
def hash
|
|
113
|
+
[cryptogram, recurring_indicator, token_requestor_id, cardholder_authentication].hash
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Builds the object from hash
|
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
118
|
+
# @return [Object] Returns the model itself
|
|
119
|
+
def build_from_hash(attributes)
|
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
|
121
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
122
|
+
if type =~ /\AArray<(.*)>/i
|
|
123
|
+
# check to ensure the input is an array given that the attribute
|
|
124
|
+
# is documented as an array but the input is not
|
|
125
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
126
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
|
127
|
+
end
|
|
128
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
129
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
130
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
self
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Deserializes the data based on type
|
|
137
|
+
# @param string type Data type
|
|
138
|
+
# @param string value Value to be deserialized
|
|
139
|
+
# @return [Object] Deserialized data
|
|
140
|
+
def _deserialize(type, value)
|
|
141
|
+
case type.to_sym
|
|
142
|
+
when :DateTime
|
|
143
|
+
DateTime.parse(value)
|
|
144
|
+
when :Date
|
|
145
|
+
Date.parse(value)
|
|
146
|
+
when :String
|
|
147
|
+
value.to_s
|
|
148
|
+
when :Integer
|
|
149
|
+
value.to_i
|
|
150
|
+
when :Float
|
|
151
|
+
value.to_f
|
|
152
|
+
when :BOOLEAN
|
|
153
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
154
|
+
true
|
|
155
|
+
else
|
|
156
|
+
false
|
|
157
|
+
end
|
|
158
|
+
when :Object
|
|
159
|
+
# generic object (usually a Hash), return directly
|
|
160
|
+
value
|
|
161
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
162
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
163
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
164
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
165
|
+
k_type = Regexp.last_match[:k_type]
|
|
166
|
+
v_type = Regexp.last_match[:v_type]
|
|
167
|
+
{}.tap do |hash|
|
|
168
|
+
value.each do |k, v|
|
|
169
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
else # model
|
|
173
|
+
temp_model = Wallee.const_get(type).new
|
|
174
|
+
temp_model.build_from_hash(value)
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Returns the string representation of the object
|
|
179
|
+
# @return [String] String presentation of the object
|
|
180
|
+
def to_s
|
|
181
|
+
to_hash.to_s
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
|
186
|
+
def to_body
|
|
187
|
+
to_hash
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Returns the object in the form of hash
|
|
191
|
+
# @return [Hash] Returns the object in the form of hash
|
|
192
|
+
def to_hash
|
|
193
|
+
hash = {}
|
|
194
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
195
|
+
value = self.send(attr)
|
|
196
|
+
next if value.nil?
|
|
197
|
+
hash[param] = _to_hash(value)
|
|
198
|
+
end
|
|
199
|
+
hash
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Outputs non-array value in the form of hash
|
|
203
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
204
|
+
# @param [Object] value Any valid value
|
|
205
|
+
# @return [Hash] Returns the value in the form of hash
|
|
206
|
+
def _to_hash(value)
|
|
207
|
+
if value.is_a?(Array)
|
|
208
|
+
value.compact.map{ |v| _to_hash(v) }
|
|
209
|
+
elsif value.is_a?(Hash)
|
|
210
|
+
{}.tap do |hash|
|
|
211
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
212
|
+
end
|
|
213
|
+
elsif value.respond_to? :to_hash
|
|
214
|
+
value.to_hash
|
|
215
|
+
else
|
|
216
|
+
value
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
end
|
|
221
|
+
end
|