cybersource_rest_client 0.0.87 → 0.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client/api/acp_checkout_api.rb +553 -0
- data/lib/cybersource_rest_client/api/agent_registration_api.rb +721 -0
- data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +0 -1
- data/lib/cybersource_rest_client/api/enrollment_api.rb +104 -0
- data/lib/cybersource_rest_client/api/{merchant_capabilities_api.rb → merchant_registration_api.rb} +47 -391
- data/lib/cybersource_rest_client/api/payment_events_api.rb +197 -0
- data/lib/cybersource_rest_client/api/product_feed_api.rb +365 -0
- data/lib/cybersource_rest_client/api/purchase_intent_api.rb +278 -0
- data/lib/cybersource_rest_client/api/ucp_checkout_api.rb +453 -0
- data/lib/cybersource_rest_client/models/activate_merchant_key_response200.rb +1 -1
- data/lib/cybersource_rest_client/models/add_agent_key_response201.rb +11 -11
- data/lib/cybersource_rest_client/models/agent_registration_response201.rb +13 -15
- data/lib/cybersource_rest_client/models/agent_registration_response201_keys.rb +8 -8
- data/lib/cybersource_rest_client/models/agent_request.rb +9 -11
- data/lib/cybersource_rest_client/models/agent_update.rb +7 -9
- data/lib/cybersource_rest_client/models/auth_reversal_request.rb +1 -1
- data/lib/cybersource_rest_client/models/boarding_payouts_configurations.rb +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant_products.rb → boarding_payouts_configurations_acquirer.rb} +33 -76
- data/lib/cybersource_rest_client/models/{inline_response_200_19_errors.rb → boarding_payouts_configurations_merchant_descriptor.rb} +25 -33
- data/lib/cybersource_rest_client/models/boarding_payouts_configurations_processors.rb +581 -0
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_order_request.rb +11 -1
- data/lib/cybersource_rest_client/models/create_payment_request.rb +14 -1
- data/lib/cybersource_rest_client/models/create_session_req.rb +14 -1
- data/lib/cybersource_rest_client/models/create_session_request.rb +14 -1
- data/lib/cybersource_rest_client/models/iccv1agents_keys.rb +4 -4
- data/lib/cybersource_rest_client/models/iccv1merchants_api_integrations.rb +2 -2
- data/lib/cybersource_rest_client/models/iccv1merchants_encryption_key.rb +6 -6
- data/lib/cybersource_rest_client/models/iccv1merchants_protocol_interactions.rb +1 -1
- data/lib/cybersource_rest_client/models/iccv1merchants_web_integrations.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_200_17.rb +55 -0
- data/lib/cybersource_rest_client/models/inline_response_200_18.rb +40 -0
- data/lib/cybersource_rest_client/models/inline_response_200_19.rb +30 -107
- data/lib/cybersource_rest_client/models/inline_response_200_19_processing.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_200_19_syndication.rb +224 -0
- data/lib/cybersource_rest_client/models/inline_response_200_20_products.rb +80 -682
- data/lib/cybersource_rest_client/models/inline_response_201_12.rb +40 -0
- data/lib/cybersource_rest_client/models/inline_response_201_12_fulfillment_options.rb +30 -0
- data/lib/cybersource_rest_client/models/inline_response_201_12_totals.rb +15 -0
- data/lib/cybersource_rest_client/models/inline_response_201_6_setups_risk.rb +15 -5
- data/lib/cybersource_rest_client/models/inline_response_201_6_setups_value_added_services.rb +15 -5
- data/lib/cybersource_rest_client/models/{deactivate_merchant_key_response200.rb → inline_response_202_1.rb} +11 -16
- data/lib/cybersource_rest_client/models/key_request.rb +4 -4
- data/lib/cybersource_rest_client/models/key_request_1.rb +5 -5
- data/lib/cybersource_rest_client/models/key_update.rb +5 -5
- data/lib/cybersource_rest_client/models/key_update_1.rb +5 -5
- data/lib/cybersource_rest_client/models/list_agent_keys_response200.rb +2 -2
- data/lib/cybersource_rest_client/models/merchant_registration_response201.rb +10 -10
- data/lib/cybersource_rest_client/models/merchant_registration_response201_api_integrations.rb +225 -0
- data/lib/cybersource_rest_client/models/merchant_registration_response201_keys.rb +1 -1
- data/lib/cybersource_rest_client/models/merchant_registration_response201_web_integrations.rb +225 -0
- data/lib/cybersource_rest_client/models/merchant_request.rb +7 -7
- data/lib/cybersource_rest_client/models/merchant_update.rb +7 -7
- data/lib/cybersource_rest_client/models/mit_reversal_request.rb +1 -1
- data/lib/cybersource_rest_client/models/mit_void_request.rb +15 -5
- data/lib/cybersource_rest_client/models/payments_configuration_setup.rb +11 -1
- data/lib/cybersource_rest_client/models/payments_products.rb +11 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +12 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +12 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +44 -1
- data/lib/cybersource_rest_client/models/{pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb → pts_v2_payments_post201_response_1_order_information_merchant_descriptor.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +18 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +101 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_ship_to.rb +12 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information_emv.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information_emv.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2intents_buyer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_bill_to.rb +154 -1
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_line_items.rb +16 -5
- data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information_merchant_descriptor.rb +207 -0
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information.rb → ptsv2payments_buyer.rb} +55 -31
- data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant.rb → ptsv2payments_order_history.rb} +42 -41
- data/lib/cybersource_rest_client/models/ptsv2payments_ship_to.rb +281 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information_emv.rb → ptsv2paymentsidrefunds_point_of_sale_information_emv.rb} +1 -1
- data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account_security_amount.rb +3 -3
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_annual_sales.rb +3 -3
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_average_ticket_size.rb +3 -3
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_monthly_sales.rb +3 -3
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_limit_value.rb +3 -3
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_balance_before.rb +2 -2
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_credit_limit.rb +3 -3
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_additional_fees.rb +2 -2
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_amount.rb +3 -3
- data/lib/cybersource_rest_client/models/value_added_services_products.rb +15 -5
- data/lib/cybersource_rest_client/models/void_capture_request.rb +15 -5
- data/lib/cybersource_rest_client/models/void_credit_request.rb +15 -5
- data/lib/cybersource_rest_client/models/void_payment_request.rb +15 -5
- data/lib/cybersource_rest_client/models/void_refund_request.rb +15 -5
- data/lib/cybersource_rest_client.rb +25 -11
- metadata +27 -13
- data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +0 -2279
data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb
CHANGED
|
@@ -145,6 +145,9 @@ module CyberSource
|
|
|
145
145
|
# Merchant Commercial Enhanced Data Program (CEDP) verified indicator received in authorization response messages for U.S. domestic transactions containing a credential for the commercial credit products. This field flows in ISO field 34, DSID 02 tag DA, in AN, EBCDIC format. Possible values: - `Y`: Merchant CEDP verified This field is for internal processing only (TC33A usage) and is not sent back to the merchant. #### Used by **Authorization Response** Response field only.
|
|
146
146
|
attr_accessor :cedp_verified_indicator
|
|
147
147
|
|
|
148
|
+
# Transaction Link Identifier (TLID). Links all messages within a transaction lifecycle for Mastercard transactions. Received from Mastercard in the authorization response and automatically replayed for lifecycle transactions (reversals, follow-on credits, authorization refresh). #### PIN Debit Also returned for PIN Debit purchase, credit, and reversal transactions. For PIN Debit (Visa Gateway) flows, this value is mapped to Visa Field 111 (DSI 07, Tag C0).
|
|
149
|
+
attr_accessor :transaction_link_identifier
|
|
150
|
+
|
|
148
151
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
149
152
|
def self.attribute_map
|
|
150
153
|
{
|
|
@@ -195,7 +198,8 @@ module CyberSource
|
|
|
195
198
|
:'order_status' => :'orderStatus',
|
|
196
199
|
:'merchant_risk_prediction' => :'merchantRiskPrediction',
|
|
197
200
|
:'network' => :'network',
|
|
198
|
-
:'cedp_verified_indicator' => :'cedpVerifiedIndicator'
|
|
201
|
+
:'cedp_verified_indicator' => :'cedpVerifiedIndicator',
|
|
202
|
+
:'transaction_link_identifier' => :'transactionLinkIdentifier'
|
|
199
203
|
}
|
|
200
204
|
end
|
|
201
205
|
|
|
@@ -249,7 +253,8 @@ module CyberSource
|
|
|
249
253
|
:'order_status' => :'order_status',
|
|
250
254
|
:'merchant_risk_prediction' => :'merchant_risk_prediction',
|
|
251
255
|
:'network' => :'network',
|
|
252
|
-
:'cedp_verified_indicator' => :'cedp_verified_indicator'
|
|
256
|
+
:'cedp_verified_indicator' => :'cedp_verified_indicator',
|
|
257
|
+
:'transaction_link_identifier' => :'transaction_link_identifier'
|
|
253
258
|
}
|
|
254
259
|
end
|
|
255
260
|
|
|
@@ -303,7 +308,8 @@ module CyberSource
|
|
|
303
308
|
:'order_status' => :'String',
|
|
304
309
|
:'merchant_risk_prediction' => :'String',
|
|
305
310
|
:'network' => :'Ptsv2paymentsProcessorInformationReversalNetwork',
|
|
306
|
-
:'cedp_verified_indicator' => :'String'
|
|
311
|
+
:'cedp_verified_indicator' => :'String',
|
|
312
|
+
:'transaction_link_identifier' => :'String'
|
|
307
313
|
}
|
|
308
314
|
end
|
|
309
315
|
|
|
@@ -506,6 +512,10 @@ module CyberSource
|
|
|
506
512
|
if attributes.has_key?(:'cedpVerifiedIndicator')
|
|
507
513
|
self.cedp_verified_indicator = attributes[:'cedpVerifiedIndicator']
|
|
508
514
|
end
|
|
515
|
+
|
|
516
|
+
if attributes.has_key?(:'transactionLinkIdentifier')
|
|
517
|
+
self.transaction_link_identifier = attributes[:'transactionLinkIdentifier']
|
|
518
|
+
end
|
|
509
519
|
end
|
|
510
520
|
|
|
511
521
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -701,6 +711,12 @@ module CyberSource
|
|
|
701
711
|
@cedp_verified_indicator = cedp_verified_indicator
|
|
702
712
|
end
|
|
703
713
|
|
|
714
|
+
# Custom attribute writer method with validation
|
|
715
|
+
# @param [Object] transaction_link_identifier Value to be assigned
|
|
716
|
+
def transaction_link_identifier=(transaction_link_identifier)
|
|
717
|
+
@transaction_link_identifier = transaction_link_identifier
|
|
718
|
+
end
|
|
719
|
+
|
|
704
720
|
# Checks equality by comparing each attribute.
|
|
705
721
|
# @param [Object] Object to be compared
|
|
706
722
|
def ==(o)
|
|
@@ -753,7 +769,8 @@ module CyberSource
|
|
|
753
769
|
order_status == o.order_status &&
|
|
754
770
|
merchant_risk_prediction == o.merchant_risk_prediction &&
|
|
755
771
|
network == o.network &&
|
|
756
|
-
cedp_verified_indicator == o.cedp_verified_indicator
|
|
772
|
+
cedp_verified_indicator == o.cedp_verified_indicator &&
|
|
773
|
+
transaction_link_identifier == o.transaction_link_identifier
|
|
757
774
|
end
|
|
758
775
|
|
|
759
776
|
# @see the `==` method
|
|
@@ -765,7 +782,7 @@ module CyberSource
|
|
|
765
782
|
# Calculates hash code according to all attributes.
|
|
766
783
|
# @return [Fixnum] Hash code
|
|
767
784
|
def hash
|
|
768
|
-
[auth_indicator, approval_code, card_reference_data, transaction_id, network_transaction_id, response_code, response_code_source, response_details, response_category_code, response_source_code, forwarded_acquirer_code, settlement_date, sequence_number, 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, seller_protection, transaction_expiry_date, custom_url, scheme_assigned_id, device_url, disbursement_mode, update_time_utc, expiration_time_utc, order_id, order_status, merchant_risk_prediction, network, cedp_verified_indicator].hash
|
|
785
|
+
[auth_indicator, approval_code, card_reference_data, transaction_id, network_transaction_id, response_code, response_code_source, response_details, response_category_code, response_source_code, forwarded_acquirer_code, settlement_date, sequence_number, 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, seller_protection, transaction_expiry_date, custom_url, scheme_assigned_id, device_url, disbursement_mode, update_time_utc, expiration_time_utc, order_id, order_status, merchant_risk_prediction, network, cedp_verified_indicator, transaction_link_identifier].hash
|
|
769
786
|
end
|
|
770
787
|
|
|
771
788
|
# Builds the object from hash
|
|
@@ -46,6 +46,9 @@ module CyberSource
|
|
|
46
46
|
|
|
47
47
|
attr_accessor :merchant_advice
|
|
48
48
|
|
|
49
|
+
# Transaction Link Identifier (TLID). Links all messages within a transaction lifecycle for Mastercard transactions. Received from Mastercard in the authorization response and automatically replayed for lifecycle transactions (reversals, follow-on credits, authorization refresh). #### PIN Debit Also returned for PIN Debit purchase, credit, and reversal transactions. For PIN Debit (Visa Gateway) flows, this value is mapped to Visa Field 111 (DSI 07, Tag C0).
|
|
50
|
+
attr_accessor :transaction_link_identifier
|
|
51
|
+
|
|
49
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
53
|
def self.attribute_map
|
|
51
54
|
{
|
|
@@ -60,7 +63,8 @@ module CyberSource
|
|
|
60
63
|
:'settlement_date' => :'settlementDate',
|
|
61
64
|
:'update_time_utc' => :'updateTimeUtc',
|
|
62
65
|
:'network' => :'network',
|
|
63
|
-
:'merchant_advice' => :'merchantAdvice'
|
|
66
|
+
:'merchant_advice' => :'merchantAdvice',
|
|
67
|
+
:'transaction_link_identifier' => :'transactionLinkIdentifier'
|
|
64
68
|
}
|
|
65
69
|
end
|
|
66
70
|
|
|
@@ -78,7 +82,8 @@ module CyberSource
|
|
|
78
82
|
:'settlement_date' => :'settlement_date',
|
|
79
83
|
:'update_time_utc' => :'update_time_utc',
|
|
80
84
|
:'network' => :'network',
|
|
81
|
-
:'merchant_advice' => :'merchant_advice'
|
|
85
|
+
:'merchant_advice' => :'merchant_advice',
|
|
86
|
+
:'transaction_link_identifier' => :'transaction_link_identifier'
|
|
82
87
|
}
|
|
83
88
|
end
|
|
84
89
|
|
|
@@ -96,7 +101,8 @@ module CyberSource
|
|
|
96
101
|
:'settlement_date' => :'String',
|
|
97
102
|
:'update_time_utc' => :'String',
|
|
98
103
|
:'network' => :'Ptsv2paymentsProcessorInformationReversalNetwork',
|
|
99
|
-
:'merchant_advice' => :'PtsV2PaymentsRefundPost201ResponseProcessorInformationMerchantAdvice'
|
|
104
|
+
:'merchant_advice' => :'PtsV2PaymentsRefundPost201ResponseProcessorInformationMerchantAdvice',
|
|
105
|
+
:'transaction_link_identifier' => :'String'
|
|
100
106
|
}
|
|
101
107
|
end
|
|
102
108
|
|
|
@@ -155,6 +161,10 @@ module CyberSource
|
|
|
155
161
|
if attributes.has_key?(:'merchantAdvice')
|
|
156
162
|
self.merchant_advice = attributes[:'merchantAdvice']
|
|
157
163
|
end
|
|
164
|
+
|
|
165
|
+
if attributes.has_key?(:'transactionLinkIdentifier')
|
|
166
|
+
self.transaction_link_identifier = attributes[:'transactionLinkIdentifier']
|
|
167
|
+
end
|
|
158
168
|
end
|
|
159
169
|
|
|
160
170
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -212,6 +222,12 @@ module CyberSource
|
|
|
212
222
|
@settlement_date = settlement_date
|
|
213
223
|
end
|
|
214
224
|
|
|
225
|
+
# Custom attribute writer method with validation
|
|
226
|
+
# @param [Object] transaction_link_identifier Value to be assigned
|
|
227
|
+
def transaction_link_identifier=(transaction_link_identifier)
|
|
228
|
+
@transaction_link_identifier = transaction_link_identifier
|
|
229
|
+
end
|
|
230
|
+
|
|
215
231
|
# Checks equality by comparing each attribute.
|
|
216
232
|
# @param [Object] Object to be compared
|
|
217
233
|
def ==(o)
|
|
@@ -228,7 +244,8 @@ module CyberSource
|
|
|
228
244
|
settlement_date == o.settlement_date &&
|
|
229
245
|
update_time_utc == o.update_time_utc &&
|
|
230
246
|
network == o.network &&
|
|
231
|
-
merchant_advice == o.merchant_advice
|
|
247
|
+
merchant_advice == o.merchant_advice &&
|
|
248
|
+
transaction_link_identifier == o.transaction_link_identifier
|
|
232
249
|
end
|
|
233
250
|
|
|
234
251
|
# @see the `==` method
|
|
@@ -240,7 +257,7 @@ module CyberSource
|
|
|
240
257
|
# Calculates hash code according to all attributes.
|
|
241
258
|
# @return [Fixnum] Hash code
|
|
242
259
|
def hash
|
|
243
|
-
[approval_code, transaction_id, forwarded_acquirer_code, merchant_number, response_code, response_source_code, ach_verification, network_transaction_id, settlement_date, update_time_utc, network, merchant_advice].hash
|
|
260
|
+
[approval_code, transaction_id, forwarded_acquirer_code, merchant_number, response_code, response_source_code, ach_verification, network_transaction_id, settlement_date, update_time_utc, network, merchant_advice, transaction_link_identifier].hash
|
|
244
261
|
end
|
|
245
262
|
|
|
246
263
|
# Builds the object from hash
|
|
@@ -86,7 +86,7 @@ module CyberSource
|
|
|
86
86
|
:'processor_information' => :'PtsV2PaymentsReversalsPost201ResponseProcessorInformation',
|
|
87
87
|
:'issuer_information' => :'PtsV2PaymentsReversalsPost201ResponseIssuerInformation',
|
|
88
88
|
:'authorization_information' => :'PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation',
|
|
89
|
-
:'point_of_sale_information' => :'
|
|
89
|
+
:'point_of_sale_information' => :'PtsV2PaymentsReversalsPost201ResponsePointOfSaleInformation'
|
|
90
90
|
}
|
|
91
91
|
end
|
|
92
92
|
|
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
|
-
class
|
|
15
|
+
class PtsV2PaymentsReversalsPost201ResponsePointOfSaleInformation
|
|
16
16
|
attr_accessor :emv
|
|
17
17
|
|
|
18
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -32,7 +32,7 @@ module CyberSource
|
|
|
32
32
|
# Attribute type mapping.
|
|
33
33
|
def self.swagger_types
|
|
34
34
|
{
|
|
35
|
-
:'emv' => :'
|
|
35
|
+
:'emv' => :'PtsV2PaymentsReversalsPost201ResponsePointOfSaleInformationEmv'
|
|
36
36
|
}
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
|
-
class
|
|
15
|
+
class PtsV2PaymentsReversalsPost201ResponsePointOfSaleInformationEmv
|
|
16
16
|
# EMV data that is transmitted from the chip card to the issuer, and from the issuer to the chip card. The EMV data is in the tag-length-value format and includes chip card tags, terminal tags, and transaction detail tags. For information about the individual tags, see the \"Application Specification\" section in the EMV 4.3 Specifications: http://emvco.com **Note** Card present information about EMV applies only to credit card processing and PIN debit processing. All other card present information applies only to credit card processing. PIN debit processing is available only on FDC Nashville Global. **Important** The following tags contain sensitive information and **must not** be included in this field: - `56`: Track 1 equivalent data - `57`: Track 2 equivalent data - `5A`: Application PAN - `5F20`: Cardholder name - `5F24`: Application expiration date (This sensitivity has been relaxed for Credit Mutuel-CIC, American Express Direct, FDC Nashville Global, First Data Merchant Solutions, and SIX) - `99`: Transaction PIN - `9F0B`: Cardholder name (extended) - `9F1F`: Track 1 discretionary data - `9F20`: Track 2 discretionary data For captures, this field is required for contact EMV transactions. Otherwise, it is optional. For credits, this field is required for contact EMV stand-alone credits and contactless EMV stand-alone credits. Otherwise, it is optional. **Important** For contact EMV captures, contact EMV stand-alone credits, and contactless EMV stand-alone credits, you must include the following tags in this field. For all other types of EMV transactions, the following tags are optional. - `95`: Terminal verification results - `9F10`: Issuer application data - `9F26`: Application cryptogram #### CyberSource through VisaNet - In Japan: 199 bytes - In other countries: String (252) For Mastercard Transactions, Optionally Tag 9F60 (Authenticated Application Data) and Tag 96 (Kernel Identifier - Terminal) can be included in the Field. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International #### JCN Gateway The following tags must be included: - `4F`: Application identifier - `84`: Dedicated file name Data length: 199 bytes #### All other processors: String (999) #### Used by Authorization: Optional Authorization Reversal: Optional Credit: Optional PIN Debit processing (purchase, credit and reversal): Optional
|
|
17
17
|
attr_accessor :tags
|
|
18
18
|
|
|
@@ -42,6 +42,9 @@ module CyberSource
|
|
|
42
42
|
|
|
43
43
|
attr_accessor :network
|
|
44
44
|
|
|
45
|
+
# Transaction Link Identifier (TLID). Links all messages within a transaction lifecycle for Mastercard transactions. Received from Mastercard in the authorization response and automatically replayed for lifecycle transactions (reversals, follow-on credits, authorization refresh). #### PIN Debit Also returned for PIN Debit purchase, credit, and reversal transactions. For PIN Debit (Visa Gateway) flows, this value is mapped to Visa Field 111 (DSI 07, Tag C0).
|
|
46
|
+
attr_accessor :transaction_link_identifier
|
|
47
|
+
|
|
45
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
49
|
def self.attribute_map
|
|
47
50
|
{
|
|
@@ -54,7 +57,8 @@ module CyberSource
|
|
|
54
57
|
:'master_card_service_reply_code' => :'masterCardServiceReplyCode',
|
|
55
58
|
:'response_details' => :'responseDetails',
|
|
56
59
|
:'provider_response' => :'providerResponse',
|
|
57
|
-
:'network' => :'network'
|
|
60
|
+
:'network' => :'network',
|
|
61
|
+
:'transaction_link_identifier' => :'transactionLinkIdentifier'
|
|
58
62
|
}
|
|
59
63
|
end
|
|
60
64
|
|
|
@@ -70,7 +74,8 @@ module CyberSource
|
|
|
70
74
|
:'master_card_service_reply_code' => :'master_card_service_reply_code',
|
|
71
75
|
:'response_details' => :'response_details',
|
|
72
76
|
:'provider_response' => :'provider_response',
|
|
73
|
-
:'network' => :'network'
|
|
77
|
+
:'network' => :'network',
|
|
78
|
+
:'transaction_link_identifier' => :'transaction_link_identifier'
|
|
74
79
|
}
|
|
75
80
|
end
|
|
76
81
|
|
|
@@ -86,7 +91,8 @@ module CyberSource
|
|
|
86
91
|
:'master_card_service_reply_code' => :'String',
|
|
87
92
|
:'response_details' => :'String',
|
|
88
93
|
:'provider_response' => :'String',
|
|
89
|
-
:'network' => :'Ptsv2paymentsProcessorInformationReversalNetwork'
|
|
94
|
+
:'network' => :'Ptsv2paymentsProcessorInformationReversalNetwork',
|
|
95
|
+
:'transaction_link_identifier' => :'String'
|
|
90
96
|
}
|
|
91
97
|
end
|
|
92
98
|
|
|
@@ -137,6 +143,10 @@ module CyberSource
|
|
|
137
143
|
if attributes.has_key?(:'network')
|
|
138
144
|
self.network = attributes[:'network']
|
|
139
145
|
end
|
|
146
|
+
|
|
147
|
+
if attributes.has_key?(:'transactionLinkIdentifier')
|
|
148
|
+
self.transaction_link_identifier = attributes[:'transactionLinkIdentifier']
|
|
149
|
+
end
|
|
140
150
|
end
|
|
141
151
|
|
|
142
152
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -194,6 +204,12 @@ module CyberSource
|
|
|
194
204
|
@response_details = response_details
|
|
195
205
|
end
|
|
196
206
|
|
|
207
|
+
# Custom attribute writer method with validation
|
|
208
|
+
# @param [Object] transaction_link_identifier Value to be assigned
|
|
209
|
+
def transaction_link_identifier=(transaction_link_identifier)
|
|
210
|
+
@transaction_link_identifier = transaction_link_identifier
|
|
211
|
+
end
|
|
212
|
+
|
|
197
213
|
# Checks equality by comparing each attribute.
|
|
198
214
|
# @param [Object] Object to be compared
|
|
199
215
|
def ==(o)
|
|
@@ -208,7 +224,8 @@ module CyberSource
|
|
|
208
224
|
master_card_service_reply_code == o.master_card_service_reply_code &&
|
|
209
225
|
response_details == o.response_details &&
|
|
210
226
|
provider_response == o.provider_response &&
|
|
211
|
-
network == o.network
|
|
227
|
+
network == o.network &&
|
|
228
|
+
transaction_link_identifier == o.transaction_link_identifier
|
|
212
229
|
end
|
|
213
230
|
|
|
214
231
|
# @see the `==` method
|
|
@@ -220,7 +237,7 @@ module CyberSource
|
|
|
220
237
|
# Calculates hash code according to all attributes.
|
|
221
238
|
# @return [Fixnum] Hash code
|
|
222
239
|
def hash
|
|
223
|
-
[transaction_id, response_code, network_transaction_id, response_category_code, forwarded_acquirer_code, master_card_service_code, master_card_service_reply_code, response_details, provider_response, network].hash
|
|
240
|
+
[transaction_id, response_code, network_transaction_id, response_category_code, forwarded_acquirer_code, master_card_service_code, master_card_service_reply_code, response_details, provider_response, network, transaction_link_identifier].hash
|
|
224
241
|
end
|
|
225
242
|
|
|
226
243
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb
CHANGED
|
@@ -32,7 +32,7 @@ module CyberSource
|
|
|
32
32
|
# Attribute type mapping.
|
|
33
33
|
def self.swagger_types
|
|
34
34
|
{
|
|
35
|
-
:'merchant_descriptor' => :'
|
|
35
|
+
:'merchant_descriptor' => :'PtsV2PaymentsPost201Response1OrderInformationMerchantDescriptor'
|
|
36
36
|
}
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -0,0 +1,196 @@
|
|
|
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.4.38
|
|
10
|
+
=end
|
|
11
|
+
|
|
12
|
+
require 'date'
|
|
13
|
+
|
|
14
|
+
module CyberSource
|
|
15
|
+
class Ptsv2intentsBuyerInformation
|
|
16
|
+
# language setting of the user. Supports 2-character language codes (e.g., en, fr) and 5-character locale values (e.g., en-US, fr-CA).
|
|
17
|
+
attr_accessor :language
|
|
18
|
+
|
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
20
|
+
def self.attribute_map
|
|
21
|
+
{
|
|
22
|
+
:'language' => :'language'
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
|
27
|
+
def self.json_map
|
|
28
|
+
{
|
|
29
|
+
:'language' => :'language'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Attribute type mapping.
|
|
34
|
+
def self.swagger_types
|
|
35
|
+
{
|
|
36
|
+
:'language' => :'String'
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Initializes the object
|
|
41
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
42
|
+
def initialize(attributes = {})
|
|
43
|
+
return unless attributes.is_a?(Hash)
|
|
44
|
+
|
|
45
|
+
# convert string to symbol for hash key
|
|
46
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
47
|
+
|
|
48
|
+
if attributes.has_key?(:'language')
|
|
49
|
+
self.language = attributes[:'language']
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
54
|
+
# @return Array for valid properties with the reasons
|
|
55
|
+
def list_invalid_properties
|
|
56
|
+
invalid_properties = Array.new
|
|
57
|
+
invalid_properties
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Check to see if the all the properties in the model are valid
|
|
61
|
+
# @return true if the model is valid
|
|
62
|
+
def valid?
|
|
63
|
+
true
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Custom attribute writer method with validation
|
|
67
|
+
# @param [Object] language Value to be assigned
|
|
68
|
+
def language=(language)
|
|
69
|
+
@language = language
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Checks equality by comparing each attribute.
|
|
73
|
+
# @param [Object] Object to be compared
|
|
74
|
+
def ==(o)
|
|
75
|
+
return true if self.equal?(o)
|
|
76
|
+
self.class == o.class &&
|
|
77
|
+
language == o.language
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# @see the `==` method
|
|
81
|
+
# @param [Object] Object to be compared
|
|
82
|
+
def eql?(o)
|
|
83
|
+
self == o
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Calculates hash code according to all attributes.
|
|
87
|
+
# @return [Fixnum] Hash code
|
|
88
|
+
def hash
|
|
89
|
+
[language].hash
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Builds the object from hash
|
|
93
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
94
|
+
# @return [Object] Returns the model itself
|
|
95
|
+
def build_from_hash(attributes)
|
|
96
|
+
return nil unless attributes.is_a?(Hash)
|
|
97
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
98
|
+
if type =~ /\AArray<(.*)>/i
|
|
99
|
+
# check to ensure the input is an array given that the the attribute
|
|
100
|
+
# is documented as an array but the input is not
|
|
101
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
102
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
103
|
+
end
|
|
104
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
105
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
106
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
self
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Deserializes the data based on type
|
|
113
|
+
# @param string type Data type
|
|
114
|
+
# @param string value Value to be deserialized
|
|
115
|
+
# @return [Object] Deserialized data
|
|
116
|
+
def _deserialize(type, value)
|
|
117
|
+
case type.to_sym
|
|
118
|
+
when :DateTime
|
|
119
|
+
DateTime.parse(value)
|
|
120
|
+
when :Date
|
|
121
|
+
Date.parse(value)
|
|
122
|
+
when :String
|
|
123
|
+
value.to_s
|
|
124
|
+
when :Integer
|
|
125
|
+
value.to_i
|
|
126
|
+
when :Float
|
|
127
|
+
value.to_f
|
|
128
|
+
when :BOOLEAN
|
|
129
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
130
|
+
true
|
|
131
|
+
else
|
|
132
|
+
false
|
|
133
|
+
end
|
|
134
|
+
when :Object
|
|
135
|
+
# generic object (usually a Hash), return directly
|
|
136
|
+
value
|
|
137
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
138
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
139
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
140
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
141
|
+
k_type = Regexp.last_match[:k_type]
|
|
142
|
+
v_type = Regexp.last_match[:v_type]
|
|
143
|
+
{}.tap do |hash|
|
|
144
|
+
value.each do |k, v|
|
|
145
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
else # model
|
|
149
|
+
temp_model = CyberSource.const_get(type).new
|
|
150
|
+
temp_model.build_from_hash(value)
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Returns the string representation of the object
|
|
155
|
+
# @return [String] String presentation of the object
|
|
156
|
+
def to_s
|
|
157
|
+
to_hash.to_s
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
161
|
+
# @return [Hash] Returns the object in the form of hash
|
|
162
|
+
def to_body
|
|
163
|
+
to_hash
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Returns the object in the form of hash
|
|
167
|
+
# @return [Hash] Returns the object in the form of hash
|
|
168
|
+
def to_hash
|
|
169
|
+
hash = {}
|
|
170
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
171
|
+
value = self.send(attr)
|
|
172
|
+
next if value.nil?
|
|
173
|
+
hash[param] = _to_hash(value)
|
|
174
|
+
end
|
|
175
|
+
hash
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Outputs non-array value in the form of hash
|
|
179
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
180
|
+
# @param [Object] value Any valid value
|
|
181
|
+
# @return [Hash] Returns the value in the form of hash
|
|
182
|
+
def _to_hash(value)
|
|
183
|
+
if value.is_a?(Array)
|
|
184
|
+
value.compact.map { |v| _to_hash(v) }
|
|
185
|
+
elsif value.is_a?(Hash)
|
|
186
|
+
{}.tap do |hash|
|
|
187
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
188
|
+
end
|
|
189
|
+
elsif value.respond_to? :to_hash
|
|
190
|
+
value.to_hash
|
|
191
|
+
else
|
|
192
|
+
value
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
end
|
data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb
CHANGED
|
@@ -16,6 +16,9 @@ module CyberSource
|
|
|
16
16
|
# Your merchant name. **Note** For Paymentech processor using Cybersource Payouts, the maximum data length is 22. #### PIN debit Your business name. This name is displayed on the cardholder's statement. When you include more than one consecutive space, extra spaces are removed. When you do not include this value in your PIN debit request, the merchant name from your account is used. **Important** This value must consist of English characters. Optional field for PIN debit credit or PIN debit purchase requests. #### Airline processing Your merchant name. This name is displayed on the cardholder's statement. When you include more than one consecutive space, extra spaces are removed. **Note** Some airline fee programs may require the original ticket number (ticket identifier) or the ancillary service description in positions 13 through 23 of this field. **Important** This value must consist of English characters. Required for captures and credits.
|
|
17
17
|
attr_accessor :name
|
|
18
18
|
|
|
19
|
+
# Value of the merchant descriptor shown to the buyer for this order.
|
|
20
|
+
attr_accessor :value
|
|
21
|
+
|
|
19
22
|
# Email address of the merchant.
|
|
20
23
|
attr_accessor :email
|
|
21
24
|
|
|
@@ -23,6 +26,7 @@ module CyberSource
|
|
|
23
26
|
def self.attribute_map
|
|
24
27
|
{
|
|
25
28
|
:'name' => :'name',
|
|
29
|
+
:'value' => :'value',
|
|
26
30
|
:'email' => :'email'
|
|
27
31
|
}
|
|
28
32
|
end
|
|
@@ -31,6 +35,7 @@ module CyberSource
|
|
|
31
35
|
def self.json_map
|
|
32
36
|
{
|
|
33
37
|
:'name' => :'name',
|
|
38
|
+
:'value' => :'value',
|
|
34
39
|
:'email' => :'email'
|
|
35
40
|
}
|
|
36
41
|
end
|
|
@@ -39,6 +44,7 @@ module CyberSource
|
|
|
39
44
|
def self.swagger_types
|
|
40
45
|
{
|
|
41
46
|
:'name' => :'String',
|
|
47
|
+
:'value' => :'String',
|
|
42
48
|
:'email' => :'String'
|
|
43
49
|
}
|
|
44
50
|
end
|
|
@@ -55,6 +61,10 @@ module CyberSource
|
|
|
55
61
|
self.name = attributes[:'name']
|
|
56
62
|
end
|
|
57
63
|
|
|
64
|
+
if attributes.has_key?(:'value')
|
|
65
|
+
self.value = attributes[:'value']
|
|
66
|
+
end
|
|
67
|
+
|
|
58
68
|
if attributes.has_key?(:'email')
|
|
59
69
|
self.email = attributes[:'email']
|
|
60
70
|
end
|
|
@@ -73,6 +83,12 @@ module CyberSource
|
|
|
73
83
|
true
|
|
74
84
|
end
|
|
75
85
|
|
|
86
|
+
# Custom attribute writer method with validation
|
|
87
|
+
# @param [Object] value Value to be assigned
|
|
88
|
+
def value=(value)
|
|
89
|
+
@value = value
|
|
90
|
+
end
|
|
91
|
+
|
|
76
92
|
# Custom attribute writer method with validation
|
|
77
93
|
# @param [Object] email Value to be assigned
|
|
78
94
|
def email=(email)
|
|
@@ -85,6 +101,7 @@ module CyberSource
|
|
|
85
101
|
return true if self.equal?(o)
|
|
86
102
|
self.class == o.class &&
|
|
87
103
|
name == o.name &&
|
|
104
|
+
value == o.value &&
|
|
88
105
|
email == o.email
|
|
89
106
|
end
|
|
90
107
|
|
|
@@ -97,7 +114,7 @@ module CyberSource
|
|
|
97
114
|
# Calculates hash code according to all attributes.
|
|
98
115
|
# @return [Fixnum] Hash code
|
|
99
116
|
def hash
|
|
100
|
-
[name, email].hash
|
|
117
|
+
[name, value, email].hash
|
|
101
118
|
end
|
|
102
119
|
|
|
103
120
|
# Builds the object from hash
|