cybersource_rest_client 0.0.37 → 0.0.38
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/http/GetSignatureParameter.rb +13 -6
- data/lib/AuthenticationSDK/authentication/http/HttpSignatureHeader.rb +13 -5
- data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +26 -11
- data/lib/AuthenticationSDK/authentication/oauth/OAuthToken.rb +11 -5
- data/lib/AuthenticationSDK/authentication/payloadDigest/digest.rb +2 -2
- data/lib/AuthenticationSDK/core/Authorization.rb +28 -20
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +72 -78
- data/lib/AuthenticationSDK/logging/log_configuration.rb +71 -0
- data/lib/AuthenticationSDK/logging/log_factory.rb +65 -0
- data/lib/AuthenticationSDK/logging/sensitive_logging.rb +101 -0
- data/lib/AuthenticationSDK/util/Cache.rb +1 -1
- data/lib/AuthenticationSDK/util/Constants.rb +25 -17
- data/lib/AuthenticationSDK/util/ExceptionHandler.rb +26 -0
- data/lib/AuthenticationSDK/util/PropertiesUtil.rb +2 -2
- data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +46 -46
- data/lib/cybersource_rest_client/api/capture_api.rb +16 -16
- data/lib/cybersource_rest_client/api/chargeback_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +16 -16
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/credit_api.rb +16 -16
- data/lib/cybersource_rest_client/api/customer_api.rb +61 -61
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +76 -76
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +76 -76
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +46 -46
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +16 -16
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +16 -16
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +91 -91
- data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/invoice_settings_api.rb +31 -31
- data/lib/cybersource_rest_client/api/invoices_api.rb +91 -91
- data/lib/cybersource_rest_client/api/key_generation_api.rb +16 -16
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +16 -16
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +16 -16
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +46 -46
- data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +16 -16
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +61 -61
- data/lib/cybersource_rest_client/api/payments_api.rb +31 -31
- data/lib/cybersource_rest_client/api/payouts_api.rb +16 -16
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/refund_api.rb +31 -31
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +31 -31
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +16 -16
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +76 -76
- data/lib/cybersource_rest_client/api/reports_api.rb +46 -46
- data/lib/cybersource_rest_client/api/retrieval_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +16 -16
- data/lib/cybersource_rest_client/api/reversal_api.rb +31 -31
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +31 -31
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +31 -31
- data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +46 -46
- data/lib/cybersource_rest_client/api/taxes_api.rb +31 -31
- data/lib/cybersource_rest_client/api/tokenization_api.rb +16 -16
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +46 -46
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/user_management_api.rb +16 -16
- data/lib/cybersource_rest_client/api/user_management_search_api.rb +16 -16
- data/lib/cybersource_rest_client/api/verification_api.rb +31 -31
- data/lib/cybersource_rest_client/api/void_api.rb +76 -76
- data/lib/cybersource_rest_client/api_client.rb +7 -8
- data/lib/cybersource_rest_client/models/create_adhoc_report_request.rb +2 -5
- data/lib/cybersource_rest_client/models/create_payment_request.rb +19 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +20 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +36 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +33 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_invoice_details.rb +191 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +49 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +33 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_e_wallet.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +191 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +14 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank.rb +215 -0
- data/lib/cybersource_rest_client/models/reportingv3reports_report_filters.rb +218 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +17 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +17 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +17 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_installment_information.rb +14 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +13 -4
- data/lib/cybersource_rest_client/utilities/flex/token_verification.rb +4 -4
- data/lib/cybersource_rest_client.rb +9 -2
- metadata +11 -4
- data/lib/AuthenticationSDK/core/Logger.rb +0 -26
- data/lib/AuthenticationSDK/util/ApiException.rb +0 -19
@@ -20,11 +20,15 @@ module CyberSource
|
|
20
20
|
# Currency used for the order. Use the three-character [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) #### Used by **Authorization** Required field. **Authorization Reversal** For an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request. #### PIN Debit Currency for the amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Returned by PIN debit purchase. For PIN debit reversal requests, you must use the same currency that was used for the PIN debit purchase or PIN debit credit that you are reversing. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Required field for PIN Debit purchase and PIN Debit credit requests. Optional field for PIN Debit reversal requests. #### GPX This field is optional for reversing an authorization or credit. #### DCC for First Data Your local currency. For details, see the `currency` field description in [Dynamic Currency Conversion For First Data Using the SCMP API](http://apps.cybersource.com/library/documentation/dev_guides/DCC_FirstData_SCMP/DCC_FirstData_SCMP_API.pdf). #### Tax Calculation Required for international tax and value added tax only. Optional for U.S. and Canadian taxes. Your local currency.
|
21
21
|
attr_accessor :currency
|
22
22
|
|
23
|
+
# The fee decided by the PSP/Processor per transaction.
|
24
|
+
attr_accessor :processor_transaction_fee
|
25
|
+
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:'total_amount' => :'totalAmount',
|
27
|
-
:'currency' => :'currency'
|
30
|
+
:'currency' => :'currency',
|
31
|
+
:'processor_transaction_fee' => :'processorTransactionFee'
|
28
32
|
}
|
29
33
|
end
|
30
34
|
|
@@ -32,7 +36,8 @@ module CyberSource
|
|
32
36
|
def self.swagger_types
|
33
37
|
{
|
34
38
|
:'total_amount' => :'String',
|
35
|
-
:'currency' => :'String'
|
39
|
+
:'currency' => :'String',
|
40
|
+
:'processor_transaction_fee' => :'String'
|
36
41
|
}
|
37
42
|
end
|
38
43
|
|
@@ -51,6 +56,10 @@ module CyberSource
|
|
51
56
|
if attributes.has_key?(:'currency')
|
52
57
|
self.currency = attributes[:'currency']
|
53
58
|
end
|
59
|
+
|
60
|
+
if attributes.has_key?(:'processorTransactionFee')
|
61
|
+
self.processor_transaction_fee = attributes[:'processorTransactionFee']
|
62
|
+
end
|
54
63
|
end
|
55
64
|
|
56
65
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -78,13 +87,20 @@ module CyberSource
|
|
78
87
|
@currency = currency
|
79
88
|
end
|
80
89
|
|
90
|
+
# Custom attribute writer method with validation
|
91
|
+
# @param [Object] processor_transaction_fee Value to be assigned
|
92
|
+
def processor_transaction_fee=(processor_transaction_fee)
|
93
|
+
@processor_transaction_fee = processor_transaction_fee
|
94
|
+
end
|
95
|
+
|
81
96
|
# Checks equality by comparing each attribute.
|
82
97
|
# @param [Object] Object to be compared
|
83
98
|
def ==(o)
|
84
99
|
return true if self.equal?(o)
|
85
100
|
self.class == o.class &&
|
86
101
|
total_amount == o.total_amount &&
|
87
|
-
currency == o.currency
|
102
|
+
currency == o.currency &&
|
103
|
+
processor_transaction_fee == o.processor_transaction_fee
|
88
104
|
end
|
89
105
|
|
90
106
|
# @see the `==` method
|
@@ -96,7 +112,7 @@ module CyberSource
|
|
96
112
|
# Calculates hash code according to all attributes.
|
97
113
|
# @return [Fixnum] Hash code
|
98
114
|
def hash
|
99
|
-
[total_amount, currency].hash
|
115
|
+
[total_amount, currency, processor_transaction_fee].hash
|
100
116
|
end
|
101
117
|
|
102
118
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb
CHANGED
@@ -90,6 +90,12 @@ module CyberSource
|
|
90
90
|
# #### 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.
|
91
91
|
attr_accessor :retrieval_reference_number
|
92
92
|
|
93
|
+
# Direct the customer to this URL to complete the payment.
|
94
|
+
attr_accessor :payment_url
|
95
|
+
|
96
|
+
# The redirect URL for forwarding the consumer to complete page. This redirect needed by PSP to track browser information of consumer. PSP then redirect consumer to merchant success URL.
|
97
|
+
attr_accessor :complete_url
|
98
|
+
|
93
99
|
# Attribute mapping from ruby-style variable name to JSON key.
|
94
100
|
def self.attribute_map
|
95
101
|
{
|
@@ -120,7 +126,9 @@ module CyberSource
|
|
120
126
|
:'name' => :'name',
|
121
127
|
:'routing' => :'routing',
|
122
128
|
:'merchant_number' => :'merchantNumber',
|
123
|
-
:'retrieval_reference_number' => :'retrievalReferenceNumber'
|
129
|
+
:'retrieval_reference_number' => :'retrievalReferenceNumber',
|
130
|
+
:'payment_url' => :'paymentUrl',
|
131
|
+
:'complete_url' => :'completeUrl'
|
124
132
|
}
|
125
133
|
end
|
126
134
|
|
@@ -154,7 +162,9 @@ module CyberSource
|
|
154
162
|
:'name' => :'String',
|
155
163
|
:'routing' => :'PtsV2PaymentsPost201ResponseProcessorInformationRouting',
|
156
164
|
:'merchant_number' => :'String',
|
157
|
-
:'retrieval_reference_number' => :'String'
|
165
|
+
:'retrieval_reference_number' => :'String',
|
166
|
+
:'payment_url' => :'String',
|
167
|
+
:'complete_url' => :'String'
|
158
168
|
}
|
159
169
|
end
|
160
170
|
|
@@ -277,6 +287,14 @@ module CyberSource
|
|
277
287
|
if attributes.has_key?(:'retrievalReferenceNumber')
|
278
288
|
self.retrieval_reference_number = attributes[:'retrievalReferenceNumber']
|
279
289
|
end
|
290
|
+
|
291
|
+
if attributes.has_key?(:'paymentUrl')
|
292
|
+
self.payment_url = attributes[:'paymentUrl']
|
293
|
+
end
|
294
|
+
|
295
|
+
if attributes.has_key?(:'completeUrl')
|
296
|
+
self.complete_url = attributes[:'completeUrl']
|
297
|
+
end
|
280
298
|
end
|
281
299
|
|
282
300
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -406,6 +424,18 @@ module CyberSource
|
|
406
424
|
@retrieval_reference_number = retrieval_reference_number
|
407
425
|
end
|
408
426
|
|
427
|
+
# Custom attribute writer method with validation
|
428
|
+
# @param [Object] payment_url Value to be assigned
|
429
|
+
def payment_url=(payment_url)
|
430
|
+
@payment_url = payment_url
|
431
|
+
end
|
432
|
+
|
433
|
+
# Custom attribute writer method with validation
|
434
|
+
# @param [Object] complete_url Value to be assigned
|
435
|
+
def complete_url=(complete_url)
|
436
|
+
@complete_url = complete_url
|
437
|
+
end
|
438
|
+
|
409
439
|
# Checks equality by comparing each attribute.
|
410
440
|
# @param [Object] Object to be compared
|
411
441
|
def ==(o)
|
@@ -438,7 +468,9 @@ module CyberSource
|
|
438
468
|
name == o.name &&
|
439
469
|
routing == o.routing &&
|
440
470
|
merchant_number == o.merchant_number &&
|
441
|
-
retrieval_reference_number == o.retrieval_reference_number
|
471
|
+
retrieval_reference_number == o.retrieval_reference_number &&
|
472
|
+
payment_url == o.payment_url &&
|
473
|
+
complete_url == o.complete_url
|
442
474
|
end
|
443
475
|
|
444
476
|
# @see the `==` method
|
@@ -450,7 +482,7 @@ module CyberSource
|
|
450
482
|
# Calculates hash code according to all attributes.
|
451
483
|
# @return [Fixnum] Hash code
|
452
484
|
def hash
|
453
|
-
[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].hash
|
485
|
+
[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].hash
|
454
486
|
end
|
455
487
|
|
456
488
|
# Builds the object from hash
|
@@ -31,6 +31,12 @@ module CyberSource
|
|
31
31
|
# The merchant's password that CyberSource hashes and stores as a hashed password. For details about this field, see the `customer_password` field description in _Decision Manager Using the SCMP API Developer Guide_ on the [CyberSource Business Center.](https://ebc2.cybersource.com/ebc2/) Click **Decision Manager** > **Documentation** > **Guides** > _Decision Manager Using the SCMP API Developer Guide_ (PDF link).
|
32
32
|
attr_accessor :hashed_password
|
33
33
|
|
34
|
+
# Customer's gender. Possible values are F (female), M (male),O (other).
|
35
|
+
attr_accessor :gender
|
36
|
+
|
37
|
+
# language setting of the user
|
38
|
+
attr_accessor :language
|
39
|
+
|
34
40
|
# Cardholder’s mobile phone number. **Important** Required for Visa Secure transactions in Brazil. Do not use this request field for any other types of transactions.
|
35
41
|
attr_accessor :mobile_phone
|
36
42
|
|
@@ -43,6 +49,8 @@ module CyberSource
|
|
43
49
|
:'company_tax_id' => :'companyTaxId',
|
44
50
|
:'personal_identification' => :'personalIdentification',
|
45
51
|
:'hashed_password' => :'hashedPassword',
|
52
|
+
:'gender' => :'gender',
|
53
|
+
:'language' => :'language',
|
46
54
|
:'mobile_phone' => :'mobilePhone'
|
47
55
|
}
|
48
56
|
end
|
@@ -56,6 +64,8 @@ module CyberSource
|
|
56
64
|
:'company_tax_id' => :'String',
|
57
65
|
:'personal_identification' => :'Array<Ptsv2paymentsBuyerInformationPersonalIdentification>',
|
58
66
|
:'hashed_password' => :'String',
|
67
|
+
:'gender' => :'String',
|
68
|
+
:'language' => :'String',
|
59
69
|
:'mobile_phone' => :'Integer'
|
60
70
|
}
|
61
71
|
end
|
@@ -94,6 +104,14 @@ module CyberSource
|
|
94
104
|
self.hashed_password = attributes[:'hashedPassword']
|
95
105
|
end
|
96
106
|
|
107
|
+
if attributes.has_key?(:'gender')
|
108
|
+
self.gender = attributes[:'gender']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.has_key?(:'language')
|
112
|
+
self.language = attributes[:'language']
|
113
|
+
end
|
114
|
+
|
97
115
|
if attributes.has_key?(:'mobilePhone')
|
98
116
|
self.mobile_phone = attributes[:'mobilePhone']
|
99
117
|
end
|
@@ -142,6 +160,18 @@ module CyberSource
|
|
142
160
|
@hashed_password = hashed_password
|
143
161
|
end
|
144
162
|
|
163
|
+
# Custom attribute writer method with validation
|
164
|
+
# @param [Object] gender Value to be assigned
|
165
|
+
def gender=(gender)
|
166
|
+
@gender = gender
|
167
|
+
end
|
168
|
+
|
169
|
+
# Custom attribute writer method with validation
|
170
|
+
# @param [Object] language Value to be assigned
|
171
|
+
def language=(language)
|
172
|
+
@language = language
|
173
|
+
end
|
174
|
+
|
145
175
|
# Checks equality by comparing each attribute.
|
146
176
|
# @param [Object] Object to be compared
|
147
177
|
def ==(o)
|
@@ -153,6 +183,8 @@ module CyberSource
|
|
153
183
|
company_tax_id == o.company_tax_id &&
|
154
184
|
personal_identification == o.personal_identification &&
|
155
185
|
hashed_password == o.hashed_password &&
|
186
|
+
gender == o.gender &&
|
187
|
+
language == o.language &&
|
156
188
|
mobile_phone == o.mobile_phone
|
157
189
|
end
|
158
190
|
|
@@ -165,7 +197,7 @@ module CyberSource
|
|
165
197
|
# Calculates hash code according to all attributes.
|
166
198
|
# @return [Fixnum] Hash code
|
167
199
|
def hash
|
168
|
-
[merchant_customer_id, date_of_birth, vat_registration_number, company_tax_id, personal_identification, hashed_password, mobile_phone].hash
|
200
|
+
[merchant_customer_id, date_of_birth, vat_registration_number, company_tax_id, personal_identification, hashed_password, gender, language, mobile_phone].hash
|
169
201
|
end
|
170
202
|
|
171
203
|
# Builds the object from hash
|
@@ -17,6 +17,9 @@ module CyberSource
|
|
17
17
|
# Merchant-generated order reference or tracking number. It is recommended that you send a unique value for each transaction so that you can perform meaningful searches for the transaction. #### Used by **Authorization** Required field. #### PIN Debit Requests for PIN debit reversals need to use the same merchant reference number that was used in the transaction that is being reversed. Required field for all PIN Debit requests (purchase, credit, and reversal). #### FDC Nashville Global Certain circumstances can cause the processor to truncate this value to 15 or 17 characters for Level II and Level III processing, which can cause a discrepancy between the value you submit and the value included in some processor reports.
|
18
18
|
attr_accessor :code
|
19
19
|
|
20
|
+
# Reference number for the transaction. Depending on how your Cybersource account is configured, this value could either be provided in the API request or generated by CyberSource. The actual value used in the request to the processor is provided back to you by Cybersource in the response.
|
21
|
+
attr_accessor :reconciliation_id
|
22
|
+
|
20
23
|
# Used to resume a transaction that was paused for an order modification rule to allow for payer authentication to complete. To resume and continue with the authorization/decision service flow, call the services and include the request id from the prior decision call.
|
21
24
|
attr_accessor :paused_request_id
|
22
25
|
|
@@ -41,6 +44,7 @@ module CyberSource
|
|
41
44
|
def self.attribute_map
|
42
45
|
{
|
43
46
|
:'code' => :'code',
|
47
|
+
:'reconciliation_id' => :'reconciliationId',
|
44
48
|
:'paused_request_id' => :'pausedRequestId',
|
45
49
|
:'transaction_id' => :'transactionId',
|
46
50
|
:'comments' => :'comments',
|
@@ -55,6 +59,7 @@ module CyberSource
|
|
55
59
|
def self.swagger_types
|
56
60
|
{
|
57
61
|
:'code' => :'String',
|
62
|
+
:'reconciliation_id' => :'String',
|
58
63
|
:'paused_request_id' => :'String',
|
59
64
|
:'transaction_id' => :'String',
|
60
65
|
:'comments' => :'String',
|
@@ -77,6 +82,10 @@ module CyberSource
|
|
77
82
|
self.code = attributes[:'code']
|
78
83
|
end
|
79
84
|
|
85
|
+
if attributes.has_key?(:'reconciliationId')
|
86
|
+
self.reconciliation_id = attributes[:'reconciliationId']
|
87
|
+
end
|
88
|
+
|
80
89
|
if attributes.has_key?(:'pausedRequestId')
|
81
90
|
self.paused_request_id = attributes[:'pausedRequestId']
|
82
91
|
end
|
@@ -125,6 +134,12 @@ module CyberSource
|
|
125
134
|
@code = code
|
126
135
|
end
|
127
136
|
|
137
|
+
# Custom attribute writer method with validation
|
138
|
+
# @param [Object] reconciliation_id Value to be assigned
|
139
|
+
def reconciliation_id=(reconciliation_id)
|
140
|
+
@reconciliation_id = reconciliation_id
|
141
|
+
end
|
142
|
+
|
128
143
|
# Custom attribute writer method with validation
|
129
144
|
# @param [Object] paused_request_id Value to be assigned
|
130
145
|
def paused_request_id=(paused_request_id)
|
@@ -143,6 +158,7 @@ module CyberSource
|
|
143
158
|
return true if self.equal?(o)
|
144
159
|
self.class == o.class &&
|
145
160
|
code == o.code &&
|
161
|
+
reconciliation_id == o.reconciliation_id &&
|
146
162
|
paused_request_id == o.paused_request_id &&
|
147
163
|
transaction_id == o.transaction_id &&
|
148
164
|
comments == o.comments &&
|
@@ -161,7 +177,7 @@ module CyberSource
|
|
161
177
|
# Calculates hash code according to all attributes.
|
162
178
|
# @return [Fixnum] Hash code
|
163
179
|
def hash
|
164
|
-
[code, paused_request_id, transaction_id, comments, partner, application_name, application_version, application_user].hash
|
180
|
+
[code, reconciliation_id, paused_request_id, transaction_id, comments, partner, application_name, application_version, application_user].hash
|
165
181
|
end
|
166
182
|
|
167
183
|
# Builds the object from hash
|
@@ -29,6 +29,9 @@ module CyberSource
|
|
29
29
|
# Boolean that indicates whether request contains the device fingerprint information. Values: - `true`: Use raw fingerprintSessionId when looking up device details. - `false` (default): Use merchant id + fingerprintSessionId as the session id for Device detail collection.
|
30
30
|
attr_accessor :use_raw_fingerprint_session_id
|
31
31
|
|
32
|
+
# The device type at the client side.
|
33
|
+
attr_accessor :device_type
|
34
|
+
|
32
35
|
attr_accessor :raw_data
|
33
36
|
|
34
37
|
# Value of the Accept header sent by the customer’s web browser. **Note** If the customer’s browser provides a value, you must include it in your request.
|
@@ -72,6 +75,7 @@ module CyberSource
|
|
72
75
|
:'user_agent' => :'userAgent',
|
73
76
|
:'fingerprint_session_id' => :'fingerprintSessionId',
|
74
77
|
:'use_raw_fingerprint_session_id' => :'useRawFingerprintSessionId',
|
78
|
+
:'device_type' => :'deviceType',
|
75
79
|
:'raw_data' => :'rawData',
|
76
80
|
:'http_accept_browser_value' => :'httpAcceptBrowserValue',
|
77
81
|
:'http_accept_content' => :'httpAcceptContent',
|
@@ -95,6 +99,7 @@ module CyberSource
|
|
95
99
|
:'user_agent' => :'String',
|
96
100
|
:'fingerprint_session_id' => :'String',
|
97
101
|
:'use_raw_fingerprint_session_id' => :'BOOLEAN',
|
102
|
+
:'device_type' => :'String',
|
98
103
|
:'raw_data' => :'Array<Ptsv2paymentsDeviceInformationRawData>',
|
99
104
|
:'http_accept_browser_value' => :'String',
|
100
105
|
:'http_accept_content' => :'String',
|
@@ -138,6 +143,10 @@ module CyberSource
|
|
138
143
|
self.use_raw_fingerprint_session_id = attributes[:'useRawFingerprintSessionId']
|
139
144
|
end
|
140
145
|
|
146
|
+
if attributes.has_key?(:'deviceType')
|
147
|
+
self.device_type = attributes[:'deviceType']
|
148
|
+
end
|
149
|
+
|
141
150
|
if attributes.has_key?(:'rawData')
|
142
151
|
if (value = attributes[:'rawData']).is_a?(Array)
|
143
152
|
self.raw_data = value
|
@@ -220,6 +229,12 @@ module CyberSource
|
|
220
229
|
@user_agent = user_agent
|
221
230
|
end
|
222
231
|
|
232
|
+
# Custom attribute writer method with validation
|
233
|
+
# @param [Object] device_type Value to be assigned
|
234
|
+
def device_type=(device_type)
|
235
|
+
@device_type = device_type
|
236
|
+
end
|
237
|
+
|
223
238
|
# Custom attribute writer method with validation
|
224
239
|
# @param [Object] http_accept_browser_value Value to be assigned
|
225
240
|
def http_accept_browser_value=(http_accept_browser_value)
|
@@ -278,6 +293,7 @@ module CyberSource
|
|
278
293
|
user_agent == o.user_agent &&
|
279
294
|
fingerprint_session_id == o.fingerprint_session_id &&
|
280
295
|
use_raw_fingerprint_session_id == o.use_raw_fingerprint_session_id &&
|
296
|
+
device_type == o.device_type &&
|
281
297
|
raw_data == o.raw_data &&
|
282
298
|
http_accept_browser_value == o.http_accept_browser_value &&
|
283
299
|
http_accept_content == o.http_accept_content &&
|
@@ -301,7 +317,7 @@ module CyberSource
|
|
301
317
|
# Calculates hash code according to all attributes.
|
302
318
|
# @return [Fixnum] Hash code
|
303
319
|
def hash
|
304
|
-
[host_name, ip_address, user_agent, fingerprint_session_id, use_raw_fingerprint_session_id, raw_data, http_accept_browser_value, http_accept_content, http_browser_email, http_browser_language, http_browser_java_enabled, http_browser_java_script_enabled, http_browser_color_depth, http_browser_screen_height, http_browser_screen_width, http_browser_time_difference, user_agent_browser_value].hash
|
320
|
+
[host_name, ip_address, user_agent, fingerprint_session_id, use_raw_fingerprint_session_id, device_type, raw_data, http_accept_browser_value, http_accept_content, http_browser_email, http_browser_language, http_browser_java_enabled, http_browser_java_script_enabled, http_browser_color_depth, http_browser_screen_height, http_browser_screen_width, http_browser_time_difference, user_agent_browser_value].hash
|
305
321
|
end
|
306
322
|
|
307
323
|
# Builds the object from hash
|
@@ -0,0 +1,191 @@
|
|
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
|
+
# invoice Details
|
17
|
+
class Ptsv2paymentsInvoiceDetails
|
18
|
+
# Barcode ID scanned from the Payment Application.
|
19
|
+
attr_accessor :barcode_number
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'barcode_number' => :'barcodeNumber'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Attribute type mapping.
|
29
|
+
def self.swagger_types
|
30
|
+
{
|
31
|
+
:'barcode_number' => :'String'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Initializes the object
|
36
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
37
|
+
def initialize(attributes = {})
|
38
|
+
return unless attributes.is_a?(Hash)
|
39
|
+
|
40
|
+
# convert string to symbol for hash key
|
41
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
42
|
+
|
43
|
+
if attributes.has_key?(:'barcodeNumber')
|
44
|
+
self.barcode_number = attributes[:'barcodeNumber']
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
49
|
+
# @return Array for valid properties with the reasons
|
50
|
+
def list_invalid_properties
|
51
|
+
invalid_properties = Array.new
|
52
|
+
invalid_properties
|
53
|
+
end
|
54
|
+
|
55
|
+
# Check to see if the all the properties in the model are valid
|
56
|
+
# @return true if the model is valid
|
57
|
+
def valid?
|
58
|
+
true
|
59
|
+
end
|
60
|
+
|
61
|
+
# Custom attribute writer method with validation
|
62
|
+
# @param [Object] barcode_number Value to be assigned
|
63
|
+
def barcode_number=(barcode_number)
|
64
|
+
@barcode_number = barcode_number
|
65
|
+
end
|
66
|
+
|
67
|
+
# Checks equality by comparing each attribute.
|
68
|
+
# @param [Object] Object to be compared
|
69
|
+
def ==(o)
|
70
|
+
return true if self.equal?(o)
|
71
|
+
self.class == o.class &&
|
72
|
+
barcode_number == o.barcode_number
|
73
|
+
end
|
74
|
+
|
75
|
+
# @see the `==` method
|
76
|
+
# @param [Object] Object to be compared
|
77
|
+
def eql?(o)
|
78
|
+
self == o
|
79
|
+
end
|
80
|
+
|
81
|
+
# Calculates hash code according to all attributes.
|
82
|
+
# @return [Fixnum] Hash code
|
83
|
+
def hash
|
84
|
+
[barcode_number].hash
|
85
|
+
end
|
86
|
+
|
87
|
+
# Builds the object from hash
|
88
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
89
|
+
# @return [Object] Returns the model itself
|
90
|
+
def build_from_hash(attributes)
|
91
|
+
return nil unless attributes.is_a?(Hash)
|
92
|
+
self.class.swagger_types.each_pair do |key, type|
|
93
|
+
if type =~ /\AArray<(.*)>/i
|
94
|
+
# check to ensure the input is an array given that the the attribute
|
95
|
+
# is documented as an array but the input is not
|
96
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
97
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
98
|
+
end
|
99
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
100
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
101
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
102
|
+
end
|
103
|
+
|
104
|
+
self
|
105
|
+
end
|
106
|
+
|
107
|
+
# Deserializes the data based on type
|
108
|
+
# @param string type Data type
|
109
|
+
# @param string value Value to be deserialized
|
110
|
+
# @return [Object] Deserialized data
|
111
|
+
def _deserialize(type, value)
|
112
|
+
case type.to_sym
|
113
|
+
when :DateTime
|
114
|
+
DateTime.parse(value)
|
115
|
+
when :Date
|
116
|
+
Date.parse(value)
|
117
|
+
when :String
|
118
|
+
value.to_s
|
119
|
+
when :Integer
|
120
|
+
value.to_i
|
121
|
+
when :Float
|
122
|
+
value.to_f
|
123
|
+
when :BOOLEAN
|
124
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
125
|
+
true
|
126
|
+
else
|
127
|
+
false
|
128
|
+
end
|
129
|
+
when :Object
|
130
|
+
# generic object (usually a Hash), return directly
|
131
|
+
value
|
132
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
133
|
+
inner_type = Regexp.last_match[:inner_type]
|
134
|
+
value.map { |v| _deserialize(inner_type, v) }
|
135
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
136
|
+
k_type = Regexp.last_match[:k_type]
|
137
|
+
v_type = Regexp.last_match[:v_type]
|
138
|
+
{}.tap do |hash|
|
139
|
+
value.each do |k, v|
|
140
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
141
|
+
end
|
142
|
+
end
|
143
|
+
else # model
|
144
|
+
temp_model = CyberSource.const_get(type).new
|
145
|
+
temp_model.build_from_hash(value)
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
# Returns the string representation of the object
|
150
|
+
# @return [String] String presentation of the object
|
151
|
+
def to_s
|
152
|
+
to_hash.to_s
|
153
|
+
end
|
154
|
+
|
155
|
+
# to_body is an alias to to_hash (backward compatibility)
|
156
|
+
# @return [Hash] Returns the object in the form of hash
|
157
|
+
def to_body
|
158
|
+
to_hash
|
159
|
+
end
|
160
|
+
|
161
|
+
# Returns the object in the form of hash
|
162
|
+
# @return [Hash] Returns the object in the form of hash
|
163
|
+
def to_hash
|
164
|
+
hash = {}
|
165
|
+
self.class.attribute_map.each_pair do |attr, param|
|
166
|
+
value = self.send(attr)
|
167
|
+
next if value.nil?
|
168
|
+
hash[param] = _to_hash(value)
|
169
|
+
end
|
170
|
+
hash
|
171
|
+
end
|
172
|
+
|
173
|
+
# Outputs non-array value in the form of hash
|
174
|
+
# For object, use to_hash. Otherwise, just return the value
|
175
|
+
# @param [Object] value Any valid value
|
176
|
+
# @return [Hash] Returns the value in the form of hash
|
177
|
+
def _to_hash(value)
|
178
|
+
if value.is_a?(Array)
|
179
|
+
value.compact.map { |v| _to_hash(v) }
|
180
|
+
elsif value.is_a?(Hash)
|
181
|
+
{}.tap do |hash|
|
182
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
183
|
+
end
|
184
|
+
elsif value.respond_to? :to_hash
|
185
|
+
value.to_hash
|
186
|
+
else
|
187
|
+
value
|
188
|
+
end
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|
@@ -42,6 +42,15 @@ module CyberSource
|
|
42
42
|
|
43
43
|
attr_accessor :service_fee_descriptor
|
44
44
|
|
45
|
+
# customer would be redirected to this url based on the decision of the transaction
|
46
|
+
attr_accessor :cancel_url
|
47
|
+
|
48
|
+
# customer would be redirected to this url based on the decision of the transaction
|
49
|
+
attr_accessor :success_url
|
50
|
+
|
51
|
+
# customer would be redirected to this url based on the decision of the transaction
|
52
|
+
attr_accessor :failure_url
|
53
|
+
|
45
54
|
# Use this field only if you are requesting payment with Payer Authentication serice together. Your company’s name as you want it to appear to the customer in the issuing bank’s authentication form. This value overrides the value specified by your merchant bank.
|
46
55
|
attr_accessor :merchant_name
|
47
56
|
|
@@ -58,6 +67,9 @@ module CyberSource
|
|
58
67
|
:'card_acceptor_reference_number' => :'cardAcceptorReferenceNumber',
|
59
68
|
:'transaction_local_date_time' => :'transactionLocalDateTime',
|
60
69
|
:'service_fee_descriptor' => :'serviceFeeDescriptor',
|
70
|
+
:'cancel_url' => :'cancelUrl',
|
71
|
+
:'success_url' => :'successUrl',
|
72
|
+
:'failure_url' => :'failureUrl',
|
61
73
|
:'merchant_name' => :'merchantName'
|
62
74
|
}
|
63
75
|
end
|
@@ -75,6 +87,9 @@ module CyberSource
|
|
75
87
|
:'card_acceptor_reference_number' => :'String',
|
76
88
|
:'transaction_local_date_time' => :'String',
|
77
89
|
:'service_fee_descriptor' => :'Ptsv2paymentsMerchantInformationServiceFeeDescriptor',
|
90
|
+
:'cancel_url' => :'String',
|
91
|
+
:'success_url' => :'String',
|
92
|
+
:'failure_url' => :'String',
|
78
93
|
:'merchant_name' => :'String'
|
79
94
|
}
|
80
95
|
end
|
@@ -127,6 +142,18 @@ module CyberSource
|
|
127
142
|
self.service_fee_descriptor = attributes[:'serviceFeeDescriptor']
|
128
143
|
end
|
129
144
|
|
145
|
+
if attributes.has_key?(:'cancelUrl')
|
146
|
+
self.cancel_url = attributes[:'cancelUrl']
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.has_key?(:'successUrl')
|
150
|
+
self.success_url = attributes[:'successUrl']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.has_key?(:'failureUrl')
|
154
|
+
self.failure_url = attributes[:'failureUrl']
|
155
|
+
end
|
156
|
+
|
130
157
|
if attributes.has_key?(:'merchantName')
|
131
158
|
self.merchant_name = attributes[:'merchantName']
|
132
159
|
end
|
@@ -211,6 +238,24 @@ module CyberSource
|
|
211
238
|
@transaction_local_date_time = transaction_local_date_time
|
212
239
|
end
|
213
240
|
|
241
|
+
# Custom attribute writer method with validation
|
242
|
+
# @param [Object] cancel_url Value to be assigned
|
243
|
+
def cancel_url=(cancel_url)
|
244
|
+
@cancel_url = cancel_url
|
245
|
+
end
|
246
|
+
|
247
|
+
# Custom attribute writer method with validation
|
248
|
+
# @param [Object] success_url Value to be assigned
|
249
|
+
def success_url=(success_url)
|
250
|
+
@success_url = success_url
|
251
|
+
end
|
252
|
+
|
253
|
+
# Custom attribute writer method with validation
|
254
|
+
# @param [Object] failure_url Value to be assigned
|
255
|
+
def failure_url=(failure_url)
|
256
|
+
@failure_url = failure_url
|
257
|
+
end
|
258
|
+
|
214
259
|
# Custom attribute writer method with validation
|
215
260
|
# @param [Object] merchant_name Value to be assigned
|
216
261
|
def merchant_name=(merchant_name)
|
@@ -232,6 +277,9 @@ module CyberSource
|
|
232
277
|
card_acceptor_reference_number == o.card_acceptor_reference_number &&
|
233
278
|
transaction_local_date_time == o.transaction_local_date_time &&
|
234
279
|
service_fee_descriptor == o.service_fee_descriptor &&
|
280
|
+
cancel_url == o.cancel_url &&
|
281
|
+
success_url == o.success_url &&
|
282
|
+
failure_url == o.failure_url &&
|
235
283
|
merchant_name == o.merchant_name
|
236
284
|
end
|
237
285
|
|
@@ -244,7 +292,7 @@ module CyberSource
|
|
244
292
|
# Calculates hash code according to all attributes.
|
245
293
|
# @return [Fixnum] Hash code
|
246
294
|
def hash
|
247
|
-
[merchant_descriptor, domain_name, sales_organization_id, category_code, category_code_domestic, tax_id, vat_registration_number, card_acceptor_reference_number, transaction_local_date_time, service_fee_descriptor, merchant_name].hash
|
295
|
+
[merchant_descriptor, domain_name, sales_organization_id, category_code, category_code_domestic, tax_id, vat_registration_number, card_acceptor_reference_number, transaction_local_date_time, service_fee_descriptor, cancel_url, success_url, failure_url, merchant_name].hash
|
248
296
|
end
|
249
297
|
|
250
298
|
# Builds the object from hash
|