cybersource_rest_client 0.0.51 → 0.0.52
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +4 -2
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +32 -8
- data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +32 -4
- data/lib/cybersource_rest_client/models/invoicingv2invoices_customer_information.rb +13 -4
- data/lib/cybersource_rest_client/models/invoicingv2invoices_customer_information_company.rb +190 -0
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_freight.rb +20 -4
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +84 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +17 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +20 -4
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type.rb +11 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +11 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +10 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +40 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands.rb +194 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +27 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_features.rb +286 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_issuer_information.rb +238 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_network.rb +190 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payout_options.rb +190 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +11 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_token_information.rb +24 -4
- data/lib/cybersource_rest_client.rb +6 -0
- metadata +24 -4
data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb
CHANGED
@@ -44,6 +44,9 @@ module CyberSource
|
|
44
44
|
# Name of the Japanese acquirer that processed the transaction. Returned only for JCN Gateway. Please contact the CyberSource Japan Support Group for more information.
|
45
45
|
attr_accessor :forwarded_acquirer_code
|
46
46
|
|
47
|
+
# Field contains a settlement date. The date is in mmdd format, where: mm = month and dd = day.
|
48
|
+
attr_accessor :settlement_date
|
49
|
+
|
47
50
|
attr_accessor :avs
|
48
51
|
|
49
52
|
attr_accessor :card_verification
|
@@ -113,6 +116,7 @@ module CyberSource
|
|
113
116
|
:'response_details' => :'responseDetails',
|
114
117
|
:'response_category_code' => :'responseCategoryCode',
|
115
118
|
:'forwarded_acquirer_code' => :'forwardedAcquirerCode',
|
119
|
+
:'settlement_date' => :'settlementDate',
|
116
120
|
:'avs' => :'avs',
|
117
121
|
:'card_verification' => :'cardVerification',
|
118
122
|
:'merchant_advice' => :'merchantAdvice',
|
@@ -151,6 +155,7 @@ module CyberSource
|
|
151
155
|
:'response_details' => :'String',
|
152
156
|
:'response_category_code' => :'String',
|
153
157
|
:'forwarded_acquirer_code' => :'String',
|
158
|
+
:'settlement_date' => :'String',
|
154
159
|
:'avs' => :'PtsV2PaymentsPost201ResponseProcessorInformationAvs',
|
155
160
|
:'card_verification' => :'PtsV2PaymentsPost201ResponseProcessorInformationCardVerification',
|
156
161
|
:'merchant_advice' => :'PtsV2PaymentsPost201ResponseProcessorInformationMerchantAdvice',
|
@@ -224,6 +229,10 @@ module CyberSource
|
|
224
229
|
self.forwarded_acquirer_code = attributes[:'forwardedAcquirerCode']
|
225
230
|
end
|
226
231
|
|
232
|
+
if attributes.has_key?(:'settlementDate')
|
233
|
+
self.settlement_date = attributes[:'settlementDate']
|
234
|
+
end
|
235
|
+
|
227
236
|
if attributes.has_key?(:'avs')
|
228
237
|
self.avs = attributes[:'avs']
|
229
238
|
end
|
@@ -380,6 +389,12 @@ module CyberSource
|
|
380
389
|
@forwarded_acquirer_code = forwarded_acquirer_code
|
381
390
|
end
|
382
391
|
|
392
|
+
# Custom attribute writer method with validation
|
393
|
+
# @param [Object] settlement_date Value to be assigned
|
394
|
+
def settlement_date=(settlement_date)
|
395
|
+
@settlement_date = settlement_date
|
396
|
+
end
|
397
|
+
|
383
398
|
# Custom attribute writer method with validation
|
384
399
|
# @param [Object] system_trace_audit_number Value to be assigned
|
385
400
|
def system_trace_audit_number=(system_trace_audit_number)
|
@@ -467,6 +482,7 @@ module CyberSource
|
|
467
482
|
response_details == o.response_details &&
|
468
483
|
response_category_code == o.response_category_code &&
|
469
484
|
forwarded_acquirer_code == o.forwarded_acquirer_code &&
|
485
|
+
settlement_date == o.settlement_date &&
|
470
486
|
avs == o.avs &&
|
471
487
|
card_verification == o.card_verification &&
|
472
488
|
merchant_advice == o.merchant_advice &&
|
@@ -500,7 +516,7 @@ module CyberSource
|
|
500
516
|
# Calculates hash code according to all attributes.
|
501
517
|
# @return [Fixnum] Hash code
|
502
518
|
def hash
|
503
|
-
[auth_indicator, approval_code, card_reference_data, transaction_id, network_transaction_id, response_code, response_code_source, response_details, response_category_code, forwarded_acquirer_code, avs, card_verification, merchant_advice, electronic_verification_results, ach_verification, customer, consumer_authentication_response, system_trace_audit_number, payment_account_reference_number, transaction_integrity_code, amex_verbal_auth_reference_number, master_card_service_code, master_card_service_reply_code, master_card_authentication_type, name, routing, merchant_number, retrieval_reference_number, payment_url, complete_url, signature, public_key].hash
|
519
|
+
[auth_indicator, approval_code, card_reference_data, transaction_id, network_transaction_id, response_code, response_code_source, response_details, response_category_code, forwarded_acquirer_code, settlement_date, avs, card_verification, merchant_advice, electronic_verification_results, ach_verification, customer, consumer_authentication_response, system_trace_audit_number, payment_account_reference_number, transaction_integrity_code, amex_verbal_auth_reference_number, master_card_service_code, master_card_service_reply_code, master_card_authentication_type, name, routing, merchant_number, retrieval_reference_number, payment_url, complete_url, signature, public_key].hash
|
504
520
|
end
|
505
521
|
|
506
522
|
# Builds the object from hash
|
@@ -34,6 +34,9 @@ module CyberSource
|
|
34
34
|
# Same value as `processorInformation.transactionId`
|
35
35
|
attr_accessor :network_transaction_id
|
36
36
|
|
37
|
+
# Field contains a settlement date. The date is in mmdd format, where: mm = month and dd = day.
|
38
|
+
attr_accessor :settlement_date
|
39
|
+
|
37
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
41
|
def self.attribute_map
|
39
42
|
{
|
@@ -43,7 +46,8 @@ module CyberSource
|
|
43
46
|
:'merchant_number' => :'merchantNumber',
|
44
47
|
:'response_code' => :'responseCode',
|
45
48
|
:'ach_verification' => :'achVerification',
|
46
|
-
:'network_transaction_id' => :'networkTransactionId'
|
49
|
+
:'network_transaction_id' => :'networkTransactionId',
|
50
|
+
:'settlement_date' => :'settlementDate'
|
47
51
|
}
|
48
52
|
end
|
49
53
|
|
@@ -56,7 +60,8 @@ module CyberSource
|
|
56
60
|
:'merchant_number' => :'String',
|
57
61
|
:'response_code' => :'String',
|
58
62
|
:'ach_verification' => :'PtsV2PaymentsPost201ResponseProcessorInformationAchVerification',
|
59
|
-
:'network_transaction_id' => :'String'
|
63
|
+
:'network_transaction_id' => :'String',
|
64
|
+
:'settlement_date' => :'String'
|
60
65
|
}
|
61
66
|
end
|
62
67
|
|
@@ -95,6 +100,10 @@ module CyberSource
|
|
95
100
|
if attributes.has_key?(:'networkTransactionId')
|
96
101
|
self.network_transaction_id = attributes[:'networkTransactionId']
|
97
102
|
end
|
103
|
+
|
104
|
+
if attributes.has_key?(:'settlementDate')
|
105
|
+
self.settlement_date = attributes[:'settlementDate']
|
106
|
+
end
|
98
107
|
end
|
99
108
|
|
100
109
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -140,6 +149,12 @@ module CyberSource
|
|
140
149
|
@response_code = response_code
|
141
150
|
end
|
142
151
|
|
152
|
+
# Custom attribute writer method with validation
|
153
|
+
# @param [Object] settlement_date Value to be assigned
|
154
|
+
def settlement_date=(settlement_date)
|
155
|
+
@settlement_date = settlement_date
|
156
|
+
end
|
157
|
+
|
143
158
|
# Checks equality by comparing each attribute.
|
144
159
|
# @param [Object] Object to be compared
|
145
160
|
def ==(o)
|
@@ -151,7 +166,8 @@ module CyberSource
|
|
151
166
|
merchant_number == o.merchant_number &&
|
152
167
|
response_code == o.response_code &&
|
153
168
|
ach_verification == o.ach_verification &&
|
154
|
-
network_transaction_id == o.network_transaction_id
|
169
|
+
network_transaction_id == o.network_transaction_id &&
|
170
|
+
settlement_date == o.settlement_date
|
155
171
|
end
|
156
172
|
|
157
173
|
# @see the `==` method
|
@@ -163,7 +179,7 @@ module CyberSource
|
|
163
179
|
# Calculates hash code according to all attributes.
|
164
180
|
# @return [Fixnum] Hash code
|
165
181
|
def hash
|
166
|
-
[approval_code, transaction_id, forwarded_acquirer_code, merchant_number, response_code, ach_verification, network_transaction_id].hash
|
182
|
+
[approval_code, transaction_id, forwarded_acquirer_code, merchant_number, response_code, ach_verification, network_transaction_id, settlement_date].hash
|
167
183
|
end
|
168
184
|
|
169
185
|
# Builds the object from hash
|
@@ -17,7 +17,7 @@ module CyberSource
|
|
17
17
|
# This field shows the available balance in the prepaid account. Acquirers always receive the available balance in the transaction currency.
|
18
18
|
attr_accessor :balance
|
19
19
|
|
20
|
-
# This
|
20
|
+
# This field indicates the 3-letter [ISO Standard Currency Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) for the card currency.
|
21
21
|
attr_accessor :currency
|
22
22
|
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -83,7 +83,7 @@ module CyberSource
|
|
83
83
|
# Your local pricing currency code. For the possible values, see the [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)
|
84
84
|
attr_accessor :original_currency
|
85
85
|
|
86
|
-
# Cashback amount in the acquirer’s currency. If a cashback amount is included in the request, it must be included in the `orderInformation.amountDetails.totalAmount` value. This field is supported only on CyberSource through VisaNet. #### Used by **Authorization** Optional. **Authorization Reversal** Optional. #### PIN debit
|
86
|
+
# Cashback amount in the acquirer’s currency. If a cashback amount is included in the request, it must be included in the `orderInformation.amountDetails.totalAmount` value. This field is supported only on CyberSource through VisaNet. #### Used by **Authorization** Optional. **Authorization Reversal** Optional. #### PIN debit Optional field for PIN debit purchase, PIN debit credit or PIN debit reversal.
|
87
87
|
attr_accessor :cashback_amount
|
88
88
|
|
89
89
|
attr_accessor :currency_conversion
|
@@ -17,12 +17,16 @@ module CyberSource
|
|
17
17
|
# A Payment Type is an agreed means for a payee to receive legal tender from a payer. The way one pays for a commercial financial transaction. Examples: Card, Bank Transfer, Digital, Direct Debit. Possible values: - `CARD` (use this for a PIN debit transaction) - `CHECK` (use this for all eCheck payment transactions - ECP Debit, ECP Follow-on Credit, ECP StandAlone Credit) - `bankTransfer` (use for Online Bank Transafer for methods such as P24, iDeal, Estonia Bank, KCP) - `localCard` (KCP Local card via Altpay) - `carrierBilling` (KCP Carrier Billing via Altpay)
|
18
18
|
attr_accessor :name
|
19
19
|
|
20
|
+
# Detailed information about the Payment Type. Possible values: - `DEBIT`: Use this value to indicate a PIN debit transaction. Examples: For Card, if Credit or Debit or PrePaid. For Bank Transfer, if Online Bank Transfer or Wire Transfers.
|
21
|
+
attr_accessor :sub_type_name
|
22
|
+
|
20
23
|
attr_accessor :method
|
21
24
|
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
26
|
def self.attribute_map
|
24
27
|
{
|
25
28
|
:'name' => :'name',
|
29
|
+
:'sub_type_name' => :'subTypeName',
|
26
30
|
:'method' => :'method'
|
27
31
|
}
|
28
32
|
end
|
@@ -31,6 +35,7 @@ module CyberSource
|
|
31
35
|
def self.swagger_types
|
32
36
|
{
|
33
37
|
:'name' => :'String',
|
38
|
+
:'sub_type_name' => :'String',
|
34
39
|
:'method' => :'Ptsv2paymentsPaymentInformationPaymentTypeMethod'
|
35
40
|
}
|
36
41
|
end
|
@@ -47,6 +52,10 @@ module CyberSource
|
|
47
52
|
self.name = attributes[:'name']
|
48
53
|
end
|
49
54
|
|
55
|
+
if attributes.has_key?(:'subTypeName')
|
56
|
+
self.sub_type_name = attributes[:'subTypeName']
|
57
|
+
end
|
58
|
+
|
50
59
|
if attributes.has_key?(:'method')
|
51
60
|
self.method = attributes[:'method']
|
52
61
|
end
|
@@ -71,6 +80,7 @@ module CyberSource
|
|
71
80
|
return true if self.equal?(o)
|
72
81
|
self.class == o.class &&
|
73
82
|
name == o.name &&
|
83
|
+
sub_type_name == o.sub_type_name &&
|
74
84
|
method == o.method
|
75
85
|
end
|
76
86
|
|
@@ -83,7 +93,7 @@ module CyberSource
|
|
83
93
|
# Calculates hash code according to all attributes.
|
84
94
|
# @return [Fixnum] Hash code
|
85
95
|
def hash
|
86
|
-
[name, method].hash
|
96
|
+
[name, sub_type_name, method].hash
|
87
97
|
end
|
88
98
|
|
89
99
|
# Builds the object from hash
|
@@ -23,6 +23,9 @@ module CyberSource
|
|
23
23
|
# CyberSource tokens types you are performing a create on. If not supplied the default token type for the merchants token vault will be used. Valid values: - customer - paymentInstrument - instrumentIdentifier - shippingAddress
|
24
24
|
attr_accessor :action_token_types
|
25
25
|
|
26
|
+
# Bin Source File Identifier. Possible values: - itmx - rupay
|
27
|
+
attr_accessor :bin_source
|
28
|
+
|
26
29
|
# Indicates whether to also include a capture in the submitted authorization request or not. Possible values: - `true`: Include a capture with an authorization request. - `false`: (default) Do not include a capture with an authorization request. #### Used by **Authorization and Capture** Optional field.
|
27
30
|
attr_accessor :capture
|
28
31
|
|
@@ -105,6 +108,7 @@ module CyberSource
|
|
105
108
|
:'action_list' => :'actionList',
|
106
109
|
:'enable_escrow_option' => :'enableEscrowOption',
|
107
110
|
:'action_token_types' => :'actionTokenTypes',
|
111
|
+
:'bin_source' => :'binSource',
|
108
112
|
:'capture' => :'capture',
|
109
113
|
:'processor_id' => :'processorId',
|
110
114
|
:'business_application_id' => :'businessApplicationId',
|
@@ -142,6 +146,7 @@ module CyberSource
|
|
142
146
|
:'action_list' => :'Array<String>',
|
143
147
|
:'enable_escrow_option' => :'BOOLEAN',
|
144
148
|
:'action_token_types' => :'Array<String>',
|
149
|
+
:'bin_source' => :'String',
|
145
150
|
:'capture' => :'BOOLEAN',
|
146
151
|
:'processor_id' => :'String',
|
147
152
|
:'business_application_id' => :'String',
|
@@ -197,6 +202,10 @@ module CyberSource
|
|
197
202
|
end
|
198
203
|
end
|
199
204
|
|
205
|
+
if attributes.has_key?(:'binSource')
|
206
|
+
self.bin_source = attributes[:'binSource']
|
207
|
+
end
|
208
|
+
|
200
209
|
if attributes.has_key?(:'capture')
|
201
210
|
self.capture = attributes[:'capture']
|
202
211
|
else
|
@@ -429,6 +438,7 @@ module CyberSource
|
|
429
438
|
action_list == o.action_list &&
|
430
439
|
enable_escrow_option == o.enable_escrow_option &&
|
431
440
|
action_token_types == o.action_token_types &&
|
441
|
+
bin_source == o.bin_source &&
|
432
442
|
capture == o.capture &&
|
433
443
|
processor_id == o.processor_id &&
|
434
444
|
business_application_id == o.business_application_id &&
|
@@ -468,7 +478,7 @@ module CyberSource
|
|
468
478
|
# Calculates hash code according to all attributes.
|
469
479
|
# @return [Fixnum] Hash code
|
470
480
|
def hash
|
471
|
-
[action_list, enable_escrow_option, action_token_types, capture, processor_id, business_application_id, commerce_indicator, commerce_indicator_label, payment_solution, reconciliation_id, link_id, purchase_level, payment_id, report_group, visa_checkout_id, industry_data_type, authorization_options, capture_options, recurring_options, bank_transfer_options, purchase_options, electronic_benefits_transfer, loan_options, wallet_type, national_net_domestic_data, japan_payment_options, mobile_remote_payment_type, extended_credit_total_count, network_routing_order, pay_by_points_indicator, is_return_auth_record_enabled].hash
|
481
|
+
[action_list, enable_escrow_option, action_token_types, bin_source, capture, processor_id, business_application_id, commerce_indicator, commerce_indicator_label, payment_solution, reconciliation_id, link_id, purchase_level, payment_id, report_group, visa_checkout_id, industry_data_type, authorization_options, capture_options, recurring_options, bank_transfer_options, purchase_options, electronic_benefits_transfer, loan_options, wallet_type, national_net_domestic_data, japan_payment_options, mobile_remote_payment_type, extended_credit_total_count, network_routing_order, pay_by_points_indicator, is_return_auth_record_enabled].hash
|
472
482
|
end
|
473
483
|
|
474
484
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb
CHANGED
@@ -69,7 +69,7 @@ module CyberSource
|
|
69
69
|
# Your local pricing currency code. For the possible values, see the [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)
|
70
70
|
attr_accessor :original_currency
|
71
71
|
|
72
|
-
# Cashback amount in the acquirer’s currency. If a cashback amount is included in the request, it must be included in the `orderInformation.amountDetails.totalAmount` value. This field is supported only on CyberSource through VisaNet. #### Used by **Authorization** Optional. **Authorization Reversal** Optional. #### PIN debit
|
72
|
+
# Cashback amount in the acquirer’s currency. If a cashback amount is included in the request, it must be included in the `orderInformation.amountDetails.totalAmount` value. This field is supported only on CyberSource through VisaNet. #### Used by **Authorization** Optional. **Authorization Reversal** Optional. #### PIN debit Optional field for PIN debit purchase, PIN debit credit or PIN debit reversal.
|
73
73
|
attr_accessor :cashback_amount
|
74
74
|
|
75
75
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -58,6 +58,8 @@ module CyberSource
|
|
58
58
|
|
59
59
|
attr_accessor :payment_insights_information
|
60
60
|
|
61
|
+
attr_accessor :payout_options
|
62
|
+
|
61
63
|
attr_accessor :processing_information
|
62
64
|
|
63
65
|
attr_accessor :processor_information
|
@@ -94,6 +96,7 @@ module CyberSource
|
|
94
96
|
:'order_information' => :'orderInformation',
|
95
97
|
:'payment_information' => :'paymentInformation',
|
96
98
|
:'payment_insights_information' => :'paymentInsightsInformation',
|
99
|
+
:'payout_options' => :'payoutOptions',
|
97
100
|
:'processing_information' => :'processingInformation',
|
98
101
|
:'processor_information' => :'processorInformation',
|
99
102
|
:'point_of_sale_information' => :'pointOfSaleInformation',
|
@@ -126,6 +129,7 @@ module CyberSource
|
|
126
129
|
:'order_information' => :'TssV2TransactionsGet200ResponseOrderInformation',
|
127
130
|
:'payment_information' => :'TssV2TransactionsGet200ResponsePaymentInformation',
|
128
131
|
:'payment_insights_information' => :'PtsV2PaymentsPost201ResponsePaymentInsightsInformation',
|
132
|
+
:'payout_options' => :'TssV2TransactionsGet200ResponsePayoutOptions',
|
129
133
|
:'processing_information' => :'TssV2TransactionsGet200ResponseProcessingInformation',
|
130
134
|
:'processor_information' => :'TssV2TransactionsGet200ResponseProcessorInformation',
|
131
135
|
:'point_of_sale_information' => :'TssV2TransactionsGet200ResponsePointOfSaleInformation',
|
@@ -222,6 +226,10 @@ module CyberSource
|
|
222
226
|
self.payment_insights_information = attributes[:'paymentInsightsInformation']
|
223
227
|
end
|
224
228
|
|
229
|
+
if attributes.has_key?(:'payoutOptions')
|
230
|
+
self.payout_options = attributes[:'payoutOptions']
|
231
|
+
end
|
232
|
+
|
225
233
|
if attributes.has_key?(:'processingInformation')
|
226
234
|
self.processing_information = attributes[:'processingInformation']
|
227
235
|
end
|
@@ -306,6 +314,7 @@ module CyberSource
|
|
306
314
|
order_information == o.order_information &&
|
307
315
|
payment_information == o.payment_information &&
|
308
316
|
payment_insights_information == o.payment_insights_information &&
|
317
|
+
payout_options == o.payout_options &&
|
309
318
|
processing_information == o.processing_information &&
|
310
319
|
processor_information == o.processor_information &&
|
311
320
|
point_of_sale_information == o.point_of_sale_information &&
|
@@ -324,7 +333,7 @@ module CyberSource
|
|
324
333
|
# Calculates hash code according to all attributes.
|
325
334
|
# @return [Fixnum] Hash code
|
326
335
|
def hash
|
327
|
-
[id, root_id, reconciliation_id, merchant_id, submit_time_utc, application_information, buyer_information, client_reference_information, consumer_authentication_information, device_information, error_information, installment_information, fraud_marking_information, health_care_information, merchant_defined_information, merchant_information, order_information, payment_information, payment_insights_information, processing_information, processor_information, point_of_sale_information, risk_information, sender_information, token_information, _links].hash
|
336
|
+
[id, root_id, reconciliation_id, merchant_id, submit_time_utc, application_information, buyer_information, client_reference_information, consumer_authentication_information, device_information, error_information, installment_information, fraud_marking_information, health_care_information, merchant_defined_information, merchant_information, order_information, payment_information, payment_insights_information, payout_options, processing_information, processor_information, point_of_sale_information, risk_information, sender_information, token_information, _links].hash
|
328
337
|
end
|
329
338
|
|
330
339
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb
CHANGED
@@ -20,8 +20,17 @@ module CyberSource
|
|
20
20
|
|
21
21
|
attr_accessor :card
|
22
22
|
|
23
|
+
# This array contains the supported brands.
|
24
|
+
attr_accessor :brands
|
25
|
+
|
26
|
+
attr_accessor :features
|
27
|
+
|
23
28
|
attr_accessor :invoice
|
24
29
|
|
30
|
+
attr_accessor :network
|
31
|
+
|
32
|
+
attr_accessor :issuer_information
|
33
|
+
|
25
34
|
attr_accessor :bank
|
26
35
|
|
27
36
|
attr_accessor :account_features
|
@@ -40,7 +49,11 @@ module CyberSource
|
|
40
49
|
:'payment_type' => :'paymentType',
|
41
50
|
:'customer' => :'customer',
|
42
51
|
:'card' => :'card',
|
52
|
+
:'brands' => :'brands',
|
53
|
+
:'features' => :'features',
|
43
54
|
:'invoice' => :'invoice',
|
55
|
+
:'network' => :'network',
|
56
|
+
:'issuer_information' => :'issuerInformation',
|
44
57
|
:'bank' => :'bank',
|
45
58
|
:'account_features' => :'accountFeatures',
|
46
59
|
:'payment_instrument' => :'paymentInstrument',
|
@@ -56,7 +69,11 @@ module CyberSource
|
|
56
69
|
:'payment_type' => :'TssV2TransactionsGet200ResponsePaymentInformationPaymentType',
|
57
70
|
:'customer' => :'TssV2TransactionsGet200ResponsePaymentInformationCustomer',
|
58
71
|
:'card' => :'TssV2TransactionsGet200ResponsePaymentInformationCard',
|
72
|
+
:'brands' => :'Array<TssV2TransactionsGet200ResponsePaymentInformationBrands>',
|
73
|
+
:'features' => :'TssV2TransactionsGet200ResponsePaymentInformationFeatures',
|
59
74
|
:'invoice' => :'TssV2TransactionsGet200ResponsePaymentInformationInvoice',
|
75
|
+
:'network' => :'TssV2TransactionsGet200ResponsePaymentInformationNetwork',
|
76
|
+
:'issuer_information' => :'TssV2TransactionsGet200ResponsePaymentInformationIssuerInformation',
|
60
77
|
:'bank' => :'TssV2TransactionsGet200ResponsePaymentInformationBank',
|
61
78
|
:'account_features' => :'TssV2TransactionsGet200ResponsePaymentInformationAccountFeatures',
|
62
79
|
:'payment_instrument' => :'PtsV2PaymentsPost201ResponseTokenInformationPaymentInstrument',
|
@@ -86,10 +103,28 @@ module CyberSource
|
|
86
103
|
self.card = attributes[:'card']
|
87
104
|
end
|
88
105
|
|
106
|
+
if attributes.has_key?(:'brands')
|
107
|
+
if (value = attributes[:'brands']).is_a?(Array)
|
108
|
+
self.brands = value
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.has_key?(:'features')
|
113
|
+
self.features = attributes[:'features']
|
114
|
+
end
|
115
|
+
|
89
116
|
if attributes.has_key?(:'invoice')
|
90
117
|
self.invoice = attributes[:'invoice']
|
91
118
|
end
|
92
119
|
|
120
|
+
if attributes.has_key?(:'network')
|
121
|
+
self.network = attributes[:'network']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.has_key?(:'issuerInformation')
|
125
|
+
self.issuer_information = attributes[:'issuerInformation']
|
126
|
+
end
|
127
|
+
|
93
128
|
if attributes.has_key?(:'bank')
|
94
129
|
self.bank = attributes[:'bank']
|
95
130
|
end
|
@@ -136,7 +171,11 @@ module CyberSource
|
|
136
171
|
payment_type == o.payment_type &&
|
137
172
|
customer == o.customer &&
|
138
173
|
card == o.card &&
|
174
|
+
brands == o.brands &&
|
175
|
+
features == o.features &&
|
139
176
|
invoice == o.invoice &&
|
177
|
+
network == o.network &&
|
178
|
+
issuer_information == o.issuer_information &&
|
140
179
|
bank == o.bank &&
|
141
180
|
account_features == o.account_features &&
|
142
181
|
payment_instrument == o.payment_instrument &&
|
@@ -154,7 +193,7 @@ module CyberSource
|
|
154
193
|
# Calculates hash code according to all attributes.
|
155
194
|
# @return [Fixnum] Hash code
|
156
195
|
def hash
|
157
|
-
[payment_type, customer, card, invoice, bank, account_features, payment_instrument, instrument_identifier, shipping_address, fluid_data].hash
|
196
|
+
[payment_type, customer, card, brands, features, invoice, network, issuer_information, bank, account_features, payment_instrument, instrument_identifier, shipping_address, fluid_data].hash
|
158
197
|
end
|
159
198
|
|
160
199
|
# Builds the object from hash
|
@@ -0,0 +1,194 @@
|
|
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 TssV2TransactionsGet200ResponsePaymentInformationBrands
|
17
|
+
# Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay - '070': EFTPOS [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
|
18
|
+
attr_accessor :type
|
19
|
+
|
20
|
+
# This field contains the card brand name. Some of the possible values (not an exhaustive list) are - - VISA - MASTERCARD - AMERICAN EXPRESS - DISCOVER - DINERS CLUB - CARTE BLANCHE - JCB - OPTIMA - TWINPAY CREDIT CARD - TWINPAY DEBIT CARD - WALMART - ENROUTE - LOWES CONSUMER - HOME DEPOT CONSUMER - MBNA - DICKS SPORTWEAR - CASUAL CORNER - SEARS - JAL - DISNEY CARD - SWITCH/SOLO - SAMS CLUB CONSUMER - SAMS CLUB BUSINESS - NICOS HOUSE CARD - BEBE - RESTORATION HARDWARE - DELTA ONLINE - SOLO - VISA ELECTRON - DANKORT - LASER - CARTE BANCAIRE - CARTA SI - ENCODED ACCOUNT - UATP - HOUSEHOLD - MAESTRO - GE CAPITAL - KOREAN CARDS - STYLE CARDS - JCREW - MEIJER - HIPERCARD - AURA - REDECARD - ORICO HOUSE CARD - ELO - CAPITAL ONE PRIVATE LABEL - CARNET - RUPAY - CHINA UNION PAY - FALABELLA PRIVATE LABEL - PROMPTCARD - KOREAN DOMESTIC - BANRICOMPRAS
|
21
|
+
attr_accessor :brand_name
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'type' => :'type',
|
27
|
+
:'brand_name' => :'brandName'
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# Attribute type mapping.
|
32
|
+
def self.swagger_types
|
33
|
+
{
|
34
|
+
:'type' => :'String',
|
35
|
+
:'brand_name' => :'String'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Initializes the object
|
40
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
+
def initialize(attributes = {})
|
42
|
+
return unless attributes.is_a?(Hash)
|
43
|
+
|
44
|
+
# convert string to symbol for hash key
|
45
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
46
|
+
|
47
|
+
if attributes.has_key?(:'type')
|
48
|
+
self.type = attributes[:'type']
|
49
|
+
end
|
50
|
+
|
51
|
+
if attributes.has_key?(:'brandName')
|
52
|
+
self.brand_name = attributes[:'brandName']
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
57
|
+
# @return Array for valid properties with the reasons
|
58
|
+
def list_invalid_properties
|
59
|
+
invalid_properties = Array.new
|
60
|
+
invalid_properties
|
61
|
+
end
|
62
|
+
|
63
|
+
# Check to see if the all the properties in the model are valid
|
64
|
+
# @return true if the model is valid
|
65
|
+
def valid?
|
66
|
+
true
|
67
|
+
end
|
68
|
+
|
69
|
+
# Checks equality by comparing each attribute.
|
70
|
+
# @param [Object] Object to be compared
|
71
|
+
def ==(o)
|
72
|
+
return true if self.equal?(o)
|
73
|
+
self.class == o.class &&
|
74
|
+
type == o.type &&
|
75
|
+
brand_name == o.brand_name
|
76
|
+
end
|
77
|
+
|
78
|
+
# @see the `==` method
|
79
|
+
# @param [Object] Object to be compared
|
80
|
+
def eql?(o)
|
81
|
+
self == o
|
82
|
+
end
|
83
|
+
|
84
|
+
# Calculates hash code according to all attributes.
|
85
|
+
# @return [Fixnum] Hash code
|
86
|
+
def hash
|
87
|
+
[type, brand_name].hash
|
88
|
+
end
|
89
|
+
|
90
|
+
# Builds the object from hash
|
91
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
92
|
+
# @return [Object] Returns the model itself
|
93
|
+
def build_from_hash(attributes)
|
94
|
+
return nil unless attributes.is_a?(Hash)
|
95
|
+
self.class.swagger_types.each_pair do |key, type|
|
96
|
+
if type =~ /\AArray<(.*)>/i
|
97
|
+
# check to ensure the input is an array given that the the attribute
|
98
|
+
# is documented as an array but the input is not
|
99
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
100
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
101
|
+
end
|
102
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
103
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
104
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
105
|
+
end
|
106
|
+
|
107
|
+
self
|
108
|
+
end
|
109
|
+
|
110
|
+
# Deserializes the data based on type
|
111
|
+
# @param string type Data type
|
112
|
+
# @param string value Value to be deserialized
|
113
|
+
# @return [Object] Deserialized data
|
114
|
+
def _deserialize(type, value)
|
115
|
+
case type.to_sym
|
116
|
+
when :DateTime
|
117
|
+
DateTime.parse(value)
|
118
|
+
when :Date
|
119
|
+
Date.parse(value)
|
120
|
+
when :String
|
121
|
+
value.to_s
|
122
|
+
when :Integer
|
123
|
+
value.to_i
|
124
|
+
when :Float
|
125
|
+
value.to_f
|
126
|
+
when :BOOLEAN
|
127
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
128
|
+
true
|
129
|
+
else
|
130
|
+
false
|
131
|
+
end
|
132
|
+
when :Object
|
133
|
+
# generic object (usually a Hash), return directly
|
134
|
+
value
|
135
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
136
|
+
inner_type = Regexp.last_match[:inner_type]
|
137
|
+
value.map { |v| _deserialize(inner_type, v) }
|
138
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
139
|
+
k_type = Regexp.last_match[:k_type]
|
140
|
+
v_type = Regexp.last_match[:v_type]
|
141
|
+
{}.tap do |hash|
|
142
|
+
value.each do |k, v|
|
143
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
144
|
+
end
|
145
|
+
end
|
146
|
+
else # model
|
147
|
+
temp_model = CyberSource.const_get(type).new
|
148
|
+
temp_model.build_from_hash(value)
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
# Returns the string representation of the object
|
153
|
+
# @return [String] String presentation of the object
|
154
|
+
def to_s
|
155
|
+
to_hash.to_s
|
156
|
+
end
|
157
|
+
|
158
|
+
# to_body is an alias to to_hash (backward compatibility)
|
159
|
+
# @return [Hash] Returns the object in the form of hash
|
160
|
+
def to_body
|
161
|
+
to_hash
|
162
|
+
end
|
163
|
+
|
164
|
+
# Returns the object in the form of hash
|
165
|
+
# @return [Hash] Returns the object in the form of hash
|
166
|
+
def to_hash
|
167
|
+
hash = {}
|
168
|
+
self.class.attribute_map.each_pair do |attr, param|
|
169
|
+
value = self.send(attr)
|
170
|
+
next if value.nil?
|
171
|
+
hash[param] = _to_hash(value)
|
172
|
+
end
|
173
|
+
hash
|
174
|
+
end
|
175
|
+
|
176
|
+
# Outputs non-array value in the form of hash
|
177
|
+
# For object, use to_hash. Otherwise, just return the value
|
178
|
+
# @param [Object] value Any valid value
|
179
|
+
# @return [Hash] Returns the value in the form of hash
|
180
|
+
def _to_hash(value)
|
181
|
+
if value.is_a?(Array)
|
182
|
+
value.compact.map { |v| _to_hash(v) }
|
183
|
+
elsif value.is_a?(Hash)
|
184
|
+
{}.tap do |hash|
|
185
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
186
|
+
end
|
187
|
+
elsif value.respond_to? :to_hash
|
188
|
+
value.to_hash
|
189
|
+
else
|
190
|
+
value
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|