cybersource_rest_client 0.0.36 → 0.0.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client/api/invoices_api.rb +6 -6
- data/lib/cybersource_rest_client/models/create_search_request.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +10 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_buyer_information.rb +243 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +10 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_issuer_information.rb +206 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information_strong_authentication.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +24 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +36 -4
- data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +17 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +17 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +13 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information_partner.rb +190 -0
- data/lib/cybersource_rest_client.rb +5 -1
- metadata +6 -2
@@ -28,6 +28,12 @@ module CyberSource
|
|
28
28
|
|
29
29
|
attr_accessor :payouts_options
|
30
30
|
|
31
|
+
# Transaction reason code.
|
32
|
+
attr_accessor :transaction_reason
|
33
|
+
|
34
|
+
# This will send purpose of funds code for original credit transactions (OCTs).
|
35
|
+
attr_accessor :purpose_of_payment
|
36
|
+
|
31
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
38
|
def self.attribute_map
|
33
39
|
{
|
@@ -35,7 +41,9 @@ module CyberSource
|
|
35
41
|
:'network_routing_order' => :'networkRoutingOrder',
|
36
42
|
:'commerce_indicator' => :'commerceIndicator',
|
37
43
|
:'reconciliation_id' => :'reconciliationId',
|
38
|
-
:'payouts_options' => :'payoutsOptions'
|
44
|
+
:'payouts_options' => :'payoutsOptions',
|
45
|
+
:'transaction_reason' => :'transactionReason',
|
46
|
+
:'purpose_of_payment' => :'purposeOfPayment'
|
39
47
|
}
|
40
48
|
end
|
41
49
|
|
@@ -46,7 +54,9 @@ module CyberSource
|
|
46
54
|
:'network_routing_order' => :'String',
|
47
55
|
:'commerce_indicator' => :'String',
|
48
56
|
:'reconciliation_id' => :'String',
|
49
|
-
:'payouts_options' => :'Ptsv2payoutsProcessingInformationPayoutsOptions'
|
57
|
+
:'payouts_options' => :'Ptsv2payoutsProcessingInformationPayoutsOptions',
|
58
|
+
:'transaction_reason' => :'String',
|
59
|
+
:'purpose_of_payment' => :'String'
|
50
60
|
}
|
51
61
|
end
|
52
62
|
|
@@ -77,6 +87,14 @@ module CyberSource
|
|
77
87
|
if attributes.has_key?(:'payoutsOptions')
|
78
88
|
self.payouts_options = attributes[:'payoutsOptions']
|
79
89
|
end
|
90
|
+
|
91
|
+
if attributes.has_key?(:'transactionReason')
|
92
|
+
self.transaction_reason = attributes[:'transactionReason']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.has_key?(:'purposeOfPayment')
|
96
|
+
self.purpose_of_payment = attributes[:'purposeOfPayment']
|
97
|
+
end
|
80
98
|
end
|
81
99
|
|
82
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -116,6 +134,18 @@ module CyberSource
|
|
116
134
|
@reconciliation_id = reconciliation_id
|
117
135
|
end
|
118
136
|
|
137
|
+
# Custom attribute writer method with validation
|
138
|
+
# @param [Object] transaction_reason Value to be assigned
|
139
|
+
def transaction_reason=(transaction_reason)
|
140
|
+
@transaction_reason = transaction_reason
|
141
|
+
end
|
142
|
+
|
143
|
+
# Custom attribute writer method with validation
|
144
|
+
# @param [Object] purpose_of_payment Value to be assigned
|
145
|
+
def purpose_of_payment=(purpose_of_payment)
|
146
|
+
@purpose_of_payment = purpose_of_payment
|
147
|
+
end
|
148
|
+
|
119
149
|
# Checks equality by comparing each attribute.
|
120
150
|
# @param [Object] Object to be compared
|
121
151
|
def ==(o)
|
@@ -125,7 +155,9 @@ module CyberSource
|
|
125
155
|
network_routing_order == o.network_routing_order &&
|
126
156
|
commerce_indicator == o.commerce_indicator &&
|
127
157
|
reconciliation_id == o.reconciliation_id &&
|
128
|
-
payouts_options == o.payouts_options
|
158
|
+
payouts_options == o.payouts_options &&
|
159
|
+
transaction_reason == o.transaction_reason &&
|
160
|
+
purpose_of_payment == o.purpose_of_payment
|
129
161
|
end
|
130
162
|
|
131
163
|
# @see the `==` method
|
@@ -137,7 +169,7 @@ module CyberSource
|
|
137
169
|
# Calculates hash code according to all attributes.
|
138
170
|
# @return [Fixnum] Hash code
|
139
171
|
def hash
|
140
|
-
[business_application_id, network_routing_order, commerce_indicator, reconciliation_id, payouts_options].hash
|
172
|
+
[business_application_id, network_routing_order, commerce_indicator, reconciliation_id, payouts_options, transaction_reason, purpose_of_payment].hash
|
141
173
|
end
|
142
174
|
|
143
175
|
# Builds the object from hash
|
@@ -20,6 +20,9 @@ module CyberSource
|
|
20
20
|
# Middle Initial of recipient. Required only for FDCCompass.
|
21
21
|
attr_accessor :middle_initial
|
22
22
|
|
23
|
+
# Recipient’s middle name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor.
|
24
|
+
attr_accessor :middle_name
|
25
|
+
|
23
26
|
# Last name of recipient. characters. * CTV (14) * Paymentech (30)
|
24
27
|
attr_accessor :last_name
|
25
28
|
|
@@ -49,6 +52,7 @@ module CyberSource
|
|
49
52
|
{
|
50
53
|
:'first_name' => :'firstName',
|
51
54
|
:'middle_initial' => :'middleInitial',
|
55
|
+
:'middle_name' => :'middleName',
|
52
56
|
:'last_name' => :'lastName',
|
53
57
|
:'address1' => :'address1',
|
54
58
|
:'locality' => :'locality',
|
@@ -65,6 +69,7 @@ module CyberSource
|
|
65
69
|
{
|
66
70
|
:'first_name' => :'String',
|
67
71
|
:'middle_initial' => :'String',
|
72
|
+
:'middle_name' => :'String',
|
68
73
|
:'last_name' => :'String',
|
69
74
|
:'address1' => :'String',
|
70
75
|
:'locality' => :'String',
|
@@ -92,6 +97,10 @@ module CyberSource
|
|
92
97
|
self.middle_initial = attributes[:'middleInitial']
|
93
98
|
end
|
94
99
|
|
100
|
+
if attributes.has_key?(:'middleName')
|
101
|
+
self.middle_name = attributes[:'middleName']
|
102
|
+
end
|
103
|
+
|
95
104
|
if attributes.has_key?(:'lastName')
|
96
105
|
self.last_name = attributes[:'lastName']
|
97
106
|
end
|
@@ -150,6 +159,12 @@ module CyberSource
|
|
150
159
|
@middle_initial = middle_initial
|
151
160
|
end
|
152
161
|
|
162
|
+
# Custom attribute writer method with validation
|
163
|
+
# @param [Object] middle_name Value to be assigned
|
164
|
+
def middle_name=(middle_name)
|
165
|
+
@middle_name = middle_name
|
166
|
+
end
|
167
|
+
|
153
168
|
# Custom attribute writer method with validation
|
154
169
|
# @param [Object] last_name Value to be assigned
|
155
170
|
def last_name=(last_name)
|
@@ -205,6 +220,7 @@ module CyberSource
|
|
205
220
|
self.class == o.class &&
|
206
221
|
first_name == o.first_name &&
|
207
222
|
middle_initial == o.middle_initial &&
|
223
|
+
middle_name == o.middle_name &&
|
208
224
|
last_name == o.last_name &&
|
209
225
|
address1 == o.address1 &&
|
210
226
|
locality == o.locality &&
|
@@ -224,7 +240,7 @@ module CyberSource
|
|
224
240
|
# Calculates hash code according to all attributes.
|
225
241
|
# @return [Fixnum] Hash code
|
226
242
|
def hash
|
227
|
-
[first_name, middle_initial, last_name, address1, locality, administrative_area, country, postal_code, phone_number, date_of_birth].hash
|
243
|
+
[first_name, middle_initial, middle_name, last_name, address1, locality, administrative_area, country, postal_code, phone_number, date_of_birth].hash
|
228
244
|
end
|
229
245
|
|
230
246
|
# Builds the object from hash
|
@@ -25,6 +25,9 @@ module CyberSource
|
|
25
25
|
# Recipient middle initial (Optional).
|
26
26
|
attr_accessor :middle_initial
|
27
27
|
|
28
|
+
# Sender’s middle name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor.
|
29
|
+
attr_accessor :middle_name
|
30
|
+
|
28
31
|
# Recipient last name (Optional). * CTV (14) * Paymentech (30)
|
29
32
|
attr_accessor :last_name
|
30
33
|
|
@@ -62,6 +65,7 @@ module CyberSource
|
|
62
65
|
:'account' => :'account',
|
63
66
|
:'first_name' => :'firstName',
|
64
67
|
:'middle_initial' => :'middleInitial',
|
68
|
+
:'middle_name' => :'middleName',
|
65
69
|
:'last_name' => :'lastName',
|
66
70
|
:'name' => :'name',
|
67
71
|
:'address1' => :'address1',
|
@@ -82,6 +86,7 @@ module CyberSource
|
|
82
86
|
:'account' => :'Ptsv2payoutsSenderInformationAccount',
|
83
87
|
:'first_name' => :'String',
|
84
88
|
:'middle_initial' => :'String',
|
89
|
+
:'middle_name' => :'String',
|
85
90
|
:'last_name' => :'String',
|
86
91
|
:'name' => :'String',
|
87
92
|
:'address1' => :'String',
|
@@ -119,6 +124,10 @@ module CyberSource
|
|
119
124
|
self.middle_initial = attributes[:'middleInitial']
|
120
125
|
end
|
121
126
|
|
127
|
+
if attributes.has_key?(:'middleName')
|
128
|
+
self.middle_name = attributes[:'middleName']
|
129
|
+
end
|
130
|
+
|
122
131
|
if attributes.has_key?(:'lastName')
|
123
132
|
self.last_name = attributes[:'lastName']
|
124
133
|
end
|
@@ -191,6 +200,12 @@ module CyberSource
|
|
191
200
|
@middle_initial = middle_initial
|
192
201
|
end
|
193
202
|
|
203
|
+
# Custom attribute writer method with validation
|
204
|
+
# @param [Object] middle_name Value to be assigned
|
205
|
+
def middle_name=(middle_name)
|
206
|
+
@middle_name = middle_name
|
207
|
+
end
|
208
|
+
|
194
209
|
# Custom attribute writer method with validation
|
195
210
|
# @param [Object] last_name Value to be assigned
|
196
211
|
def last_name=(last_name)
|
@@ -260,6 +275,7 @@ module CyberSource
|
|
260
275
|
account == o.account &&
|
261
276
|
first_name == o.first_name &&
|
262
277
|
middle_initial == o.middle_initial &&
|
278
|
+
middle_name == o.middle_name &&
|
263
279
|
last_name == o.last_name &&
|
264
280
|
name == o.name &&
|
265
281
|
address1 == o.address1 &&
|
@@ -281,7 +297,7 @@ module CyberSource
|
|
281
297
|
# Calculates hash code according to all attributes.
|
282
298
|
# @return [Fixnum] Hash code
|
283
299
|
def hash
|
284
|
-
[reference_number, account, first_name, middle_initial, last_name, name, address1, locality, administrative_area, country_code, postal_code, phone_number, date_of_birth, vat_registration_number].hash
|
300
|
+
[reference_number, account, first_name, middle_initial, middle_name, last_name, name, address1, locality, administrative_area, country_code, postal_code, phone_number, date_of_birth, vat_registration_number].hash
|
285
301
|
end
|
286
302
|
|
287
303
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb
CHANGED
@@ -25,6 +25,9 @@ module CyberSource
|
|
25
25
|
# Same value as `processorInformation.transactionId`
|
26
26
|
attr_accessor :network_transaction_id
|
27
27
|
|
28
|
+
# #### Ingenico ePayments Unique number that CyberSource generates to identify the transaction. You can use this value to identify transactions in the Ingenico ePayments Collections Report, which provides settlement information. Contact customer support for information about the report. ### CyberSource through VisaNet Retrieval request number.
|
29
|
+
attr_accessor :retrieval_reference_number
|
30
|
+
|
28
31
|
# Response ID sent from the processor.
|
29
32
|
attr_accessor :response_id
|
30
33
|
|
@@ -55,6 +58,7 @@ module CyberSource
|
|
55
58
|
:'multi_processor_routing' => :'multiProcessorRouting',
|
56
59
|
:'transaction_id' => :'transactionId',
|
57
60
|
:'network_transaction_id' => :'networkTransactionId',
|
61
|
+
:'retrieval_reference_number' => :'retrievalReferenceNumber',
|
58
62
|
:'response_id' => :'responseId',
|
59
63
|
:'approval_code' => :'approvalCode',
|
60
64
|
:'response_code' => :'responseCode',
|
@@ -74,6 +78,7 @@ module CyberSource
|
|
74
78
|
:'multi_processor_routing' => :'Array<TssV2TransactionsGet200ResponseProcessorInformationMultiProcessorRouting>',
|
75
79
|
:'transaction_id' => :'String',
|
76
80
|
:'network_transaction_id' => :'String',
|
81
|
+
:'retrieval_reference_number' => :'String',
|
77
82
|
:'response_id' => :'String',
|
78
83
|
:'approval_code' => :'String',
|
79
84
|
:'response_code' => :'String',
|
@@ -112,6 +117,10 @@ module CyberSource
|
|
112
117
|
self.network_transaction_id = attributes[:'networkTransactionId']
|
113
118
|
end
|
114
119
|
|
120
|
+
if attributes.has_key?(:'retrievalReferenceNumber')
|
121
|
+
self.retrieval_reference_number = attributes[:'retrievalReferenceNumber']
|
122
|
+
end
|
123
|
+
|
115
124
|
if attributes.has_key?(:'responseId')
|
116
125
|
self.response_id = attributes[:'responseId']
|
117
126
|
end
|
@@ -168,6 +177,12 @@ module CyberSource
|
|
168
177
|
@transaction_id = transaction_id
|
169
178
|
end
|
170
179
|
|
180
|
+
# Custom attribute writer method with validation
|
181
|
+
# @param [Object] retrieval_reference_number Value to be assigned
|
182
|
+
def retrieval_reference_number=(retrieval_reference_number)
|
183
|
+
@retrieval_reference_number = retrieval_reference_number
|
184
|
+
end
|
185
|
+
|
171
186
|
# Custom attribute writer method with validation
|
172
187
|
# @param [Object] approval_code Value to be assigned
|
173
188
|
def approval_code=(approval_code)
|
@@ -201,6 +216,7 @@ module CyberSource
|
|
201
216
|
multi_processor_routing == o.multi_processor_routing &&
|
202
217
|
transaction_id == o.transaction_id &&
|
203
218
|
network_transaction_id == o.network_transaction_id &&
|
219
|
+
retrieval_reference_number == o.retrieval_reference_number &&
|
204
220
|
response_id == o.response_id &&
|
205
221
|
approval_code == o.approval_code &&
|
206
222
|
response_code == o.response_code &&
|
@@ -221,7 +237,7 @@ module CyberSource
|
|
221
237
|
# Calculates hash code according to all attributes.
|
222
238
|
# @return [Fixnum] Hash code
|
223
239
|
def hash
|
224
|
-
[processor, multi_processor_routing, transaction_id, network_transaction_id, response_id, approval_code, response_code, avs, card_verification, ach_verification, electronic_verification_results, system_trace_audit_number, response_code_source].hash
|
240
|
+
[processor, multi_processor_routing, transaction_id, network_transaction_id, retrieval_reference_number, response_id, approval_code, response_code, avs, card_verification, ach_verification, electronic_verification_results, system_trace_audit_number, response_code_source].hash
|
225
241
|
end
|
226
242
|
|
227
243
|
# Builds the object from hash
|
@@ -26,7 +26,7 @@ module CyberSource
|
|
26
26
|
# Merchant’s time zone in ISO standard, using the TZ database format. For example: `America/Chicago`
|
27
27
|
attr_accessor :timezone
|
28
28
|
|
29
|
-
# String that contains the filters and variables for which you want to search. For information about supported field-filters and operators, see the [Query Filters]( https://developer.cybersource.com/api/developer-guides/dita-txn-search-details-rest-api-dev-guide-102718/
|
29
|
+
# String that contains the filters and variables for which you want to search. For information about supported field-filters and operators, see the [Query Filters]( https://developer.cybersource.com/api/developer-guides/dita-txn-search-details-rest-api-dev-guide-102718/txn-search-intro/txn-filtering.html) section of the Transaction Search Developer Guide.
|
30
30
|
attr_accessor :query
|
31
31
|
|
32
32
|
# Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned.
|
@@ -23,12 +23,15 @@ module CyberSource
|
|
23
23
|
# The entity that is responsible for running the transaction and submitting the processing request to CyberSource. This could be a person, a system, or a connection method.
|
24
24
|
attr_accessor :application_user
|
25
25
|
|
26
|
+
attr_accessor :partner
|
27
|
+
|
26
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
29
|
def self.attribute_map
|
28
30
|
{
|
29
31
|
:'code' => :'code',
|
30
32
|
:'application_name' => :'applicationName',
|
31
|
-
:'application_user' => :'applicationUser'
|
33
|
+
:'application_user' => :'applicationUser',
|
34
|
+
:'partner' => :'partner'
|
32
35
|
}
|
33
36
|
end
|
34
37
|
|
@@ -37,7 +40,8 @@ module CyberSource
|
|
37
40
|
{
|
38
41
|
:'code' => :'String',
|
39
42
|
:'application_name' => :'String',
|
40
|
-
:'application_user' => :'String'
|
43
|
+
:'application_user' => :'String',
|
44
|
+
:'partner' => :'TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformationPartner'
|
41
45
|
}
|
42
46
|
end
|
43
47
|
|
@@ -60,6 +64,10 @@ module CyberSource
|
|
60
64
|
if attributes.has_key?(:'applicationUser')
|
61
65
|
self.application_user = attributes[:'applicationUser']
|
62
66
|
end
|
67
|
+
|
68
|
+
if attributes.has_key?(:'partner')
|
69
|
+
self.partner = attributes[:'partner']
|
70
|
+
end
|
63
71
|
end
|
64
72
|
|
65
73
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -88,7 +96,8 @@ module CyberSource
|
|
88
96
|
self.class == o.class &&
|
89
97
|
code == o.code &&
|
90
98
|
application_name == o.application_name &&
|
91
|
-
application_user == o.application_user
|
99
|
+
application_user == o.application_user &&
|
100
|
+
partner == o.partner
|
92
101
|
end
|
93
102
|
|
94
103
|
# @see the `==` method
|
@@ -100,7 +109,7 @@ module CyberSource
|
|
100
109
|
# Calculates hash code according to all attributes.
|
101
110
|
# @return [Fixnum] Hash code
|
102
111
|
def hash
|
103
|
-
[code, application_name, application_user].hash
|
112
|
+
[code, application_name, application_user, partner].hash
|
104
113
|
end
|
105
114
|
|
106
115
|
# Builds the object from hash
|
@@ -0,0 +1,190 @@
|
|
1
|
+
=begin
|
2
|
+
#CyberSource Merged Spec
|
3
|
+
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformationPartner
|
17
|
+
# Identifier for the partner that is integrated to CyberSource. Send this value in all requests that are sent through the partner solution. CyberSource assigns the ID to the partner. **Note** When you see a solutionId of 999 in reports, the solutionId that was submitted is incorrect.
|
18
|
+
attr_accessor :solution_id
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'solution_id' => :'solutionId'
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# Attribute type mapping.
|
28
|
+
def self.swagger_types
|
29
|
+
{
|
30
|
+
:'solution_id' => :'String'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Initializes the object
|
35
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
36
|
+
def initialize(attributes = {})
|
37
|
+
return unless attributes.is_a?(Hash)
|
38
|
+
|
39
|
+
# convert string to symbol for hash key
|
40
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
41
|
+
|
42
|
+
if attributes.has_key?(:'solutionId')
|
43
|
+
self.solution_id = attributes[:'solutionId']
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
48
|
+
# @return Array for valid properties with the reasons
|
49
|
+
def list_invalid_properties
|
50
|
+
invalid_properties = Array.new
|
51
|
+
invalid_properties
|
52
|
+
end
|
53
|
+
|
54
|
+
# Check to see if the all the properties in the model are valid
|
55
|
+
# @return true if the model is valid
|
56
|
+
def valid?
|
57
|
+
true
|
58
|
+
end
|
59
|
+
|
60
|
+
# Custom attribute writer method with validation
|
61
|
+
# @param [Object] solution_id Value to be assigned
|
62
|
+
def solution_id=(solution_id)
|
63
|
+
@solution_id = solution_id
|
64
|
+
end
|
65
|
+
|
66
|
+
# Checks equality by comparing each attribute.
|
67
|
+
# @param [Object] Object to be compared
|
68
|
+
def ==(o)
|
69
|
+
return true if self.equal?(o)
|
70
|
+
self.class == o.class &&
|
71
|
+
solution_id == o.solution_id
|
72
|
+
end
|
73
|
+
|
74
|
+
# @see the `==` method
|
75
|
+
# @param [Object] Object to be compared
|
76
|
+
def eql?(o)
|
77
|
+
self == o
|
78
|
+
end
|
79
|
+
|
80
|
+
# Calculates hash code according to all attributes.
|
81
|
+
# @return [Fixnum] Hash code
|
82
|
+
def hash
|
83
|
+
[solution_id].hash
|
84
|
+
end
|
85
|
+
|
86
|
+
# Builds the object from hash
|
87
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
88
|
+
# @return [Object] Returns the model itself
|
89
|
+
def build_from_hash(attributes)
|
90
|
+
return nil unless attributes.is_a?(Hash)
|
91
|
+
self.class.swagger_types.each_pair do |key, type|
|
92
|
+
if type =~ /\AArray<(.*)>/i
|
93
|
+
# check to ensure the input is an array given that the the attribute
|
94
|
+
# is documented as an array but the input is not
|
95
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
96
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
97
|
+
end
|
98
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
99
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
100
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
101
|
+
end
|
102
|
+
|
103
|
+
self
|
104
|
+
end
|
105
|
+
|
106
|
+
# Deserializes the data based on type
|
107
|
+
# @param string type Data type
|
108
|
+
# @param string value Value to be deserialized
|
109
|
+
# @return [Object] Deserialized data
|
110
|
+
def _deserialize(type, value)
|
111
|
+
case type.to_sym
|
112
|
+
when :DateTime
|
113
|
+
DateTime.parse(value)
|
114
|
+
when :Date
|
115
|
+
Date.parse(value)
|
116
|
+
when :String
|
117
|
+
value.to_s
|
118
|
+
when :Integer
|
119
|
+
value.to_i
|
120
|
+
when :Float
|
121
|
+
value.to_f
|
122
|
+
when :BOOLEAN
|
123
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
124
|
+
true
|
125
|
+
else
|
126
|
+
false
|
127
|
+
end
|
128
|
+
when :Object
|
129
|
+
# generic object (usually a Hash), return directly
|
130
|
+
value
|
131
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
132
|
+
inner_type = Regexp.last_match[:inner_type]
|
133
|
+
value.map { |v| _deserialize(inner_type, v) }
|
134
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
135
|
+
k_type = Regexp.last_match[:k_type]
|
136
|
+
v_type = Regexp.last_match[:v_type]
|
137
|
+
{}.tap do |hash|
|
138
|
+
value.each do |k, v|
|
139
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
140
|
+
end
|
141
|
+
end
|
142
|
+
else # model
|
143
|
+
temp_model = CyberSource.const_get(type).new
|
144
|
+
temp_model.build_from_hash(value)
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
# Returns the string representation of the object
|
149
|
+
# @return [String] String presentation of the object
|
150
|
+
def to_s
|
151
|
+
to_hash.to_s
|
152
|
+
end
|
153
|
+
|
154
|
+
# to_body is an alias to to_hash (backward compatibility)
|
155
|
+
# @return [Hash] Returns the object in the form of hash
|
156
|
+
def to_body
|
157
|
+
to_hash
|
158
|
+
end
|
159
|
+
|
160
|
+
# Returns the object in the form of hash
|
161
|
+
# @return [Hash] Returns the object in the form of hash
|
162
|
+
def to_hash
|
163
|
+
hash = {}
|
164
|
+
self.class.attribute_map.each_pair do |attr, param|
|
165
|
+
value = self.send(attr)
|
166
|
+
next if value.nil?
|
167
|
+
hash[param] = _to_hash(value)
|
168
|
+
end
|
169
|
+
hash
|
170
|
+
end
|
171
|
+
|
172
|
+
# Outputs non-array value in the form of hash
|
173
|
+
# For object, use to_hash. Otherwise, just return the value
|
174
|
+
# @param [Object] value Any valid value
|
175
|
+
# @return [Hash] Returns the value in the form of hash
|
176
|
+
def _to_hash(value)
|
177
|
+
if value.is_a?(Array)
|
178
|
+
value.compact.map { |v| _to_hash(v) }
|
179
|
+
elsif value.is_a?(Hash)
|
180
|
+
{}.tap do |hash|
|
181
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
182
|
+
end
|
183
|
+
elsif value.respond_to? :to_hash
|
184
|
+
value.to_hash
|
185
|
+
else
|
186
|
+
value
|
187
|
+
end
|
188
|
+
end
|
189
|
+
end
|
190
|
+
end
|
@@ -181,9 +181,12 @@ require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_respons
|
|
181
181
|
require 'cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information'
|
182
182
|
require 'cybersource_rest_client/models/pts_v2_payments_captures_post400_response'
|
183
183
|
require 'cybersource_rest_client/models/pts_v2_payments_post201_response'
|
184
|
+
require 'cybersource_rest_client/models/pts_v2_payments_post201_response_buyer_information'
|
184
185
|
require 'cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information'
|
185
186
|
require 'cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information'
|
186
187
|
require 'cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_ivr'
|
188
|
+
require 'cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication'
|
189
|
+
require 'cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_issuer_information'
|
187
190
|
require 'cybersource_rest_client/models/pts_v2_payments_post201_response_error_information'
|
188
191
|
require 'cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details'
|
189
192
|
require 'cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information'
|
@@ -426,7 +429,7 @@ require 'cybersource_rest_client/models/reporting_v3_conversion_details_get200_r
|
|
426
429
|
require 'cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_conversion_details'
|
427
430
|
require 'cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_notes'
|
428
431
|
require 'cybersource_rest_client/models/reporting_v3_interchange_clearing_level_details_get200_response'
|
429
|
-
require 'cybersource_rest_client/models/reporting_get200_response_interchange_clearing_level_details
|
432
|
+
require 'cybersource_rest_client/models/reporting_get200_response_interchange_clearing_level_details'
|
430
433
|
require 'cybersource_rest_client/models/reporting_v3_net_fundings_get200_response'
|
431
434
|
require 'cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries'
|
432
435
|
require 'cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_total_purchases'
|
@@ -680,6 +683,7 @@ require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__em
|
|
680
683
|
require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_application_information_applications'
|
681
684
|
require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_buyer_information'
|
682
685
|
require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information'
|
686
|
+
require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information_partner'
|
683
687
|
require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information'
|
684
688
|
require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_device_information'
|
685
689
|
require 'cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded__links'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cybersource_rest_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CyberSource
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -511,9 +511,12 @@ files:
|
|
511
511
|
- lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb
|
512
512
|
- lib/cybersource_rest_client/models/pts_v2_payments_post201_response__links.rb
|
513
513
|
- lib/cybersource_rest_client/models/pts_v2_payments_post201_response__links_self.rb
|
514
|
+
- lib/cybersource_rest_client/models/pts_v2_payments_post201_response_buyer_information.rb
|
514
515
|
- lib/cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information.rb
|
515
516
|
- lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb
|
517
|
+
- lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_issuer_information.rb
|
516
518
|
- lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_ivr.rb
|
519
|
+
- lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication.rb
|
517
520
|
- lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb
|
518
521
|
- lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details.rb
|
519
522
|
- lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb
|
@@ -1010,6 +1013,7 @@ files:
|
|
1010
1013
|
- lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_application_information_applications.rb
|
1011
1014
|
- lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_buyer_information.rb
|
1012
1015
|
- lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb
|
1016
|
+
- lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information_partner.rb
|
1013
1017
|
- lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information.rb
|
1014
1018
|
- lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_device_information.rb
|
1015
1019
|
- lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_merchant_information.rb
|