cybersource_rest_client 0.0.75 → 0.0.77
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/AuthenticationSDK/authentication/jwt/JwtToken.rb +6 -17
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +132 -54
- data/lib/AuthenticationSDK/util/Cache.rb +135 -30
- data/lib/AuthenticationSDK/util/CacheValue.rb +18 -0
- data/lib/AuthenticationSDK/util/CertificateUtility.rb +124 -0
- data/lib/AuthenticationSDK/util/Constants.rb +6 -0
- data/lib/AuthenticationSDK/util/JWEUtility.rb +1 -2
- data/lib/AuthenticationSDK/util/MLEUtility.rb +26 -35
- data/lib/AuthenticationSDK/util/Utility.rb +1 -16
- data/lib/cybersource_rest_client/api/batches_api.rb +17 -17
- data/lib/cybersource_rest_client/api/billing_agreements_api.rb +6 -6
- data/lib/cybersource_rest_client/api/bin_lookup_api.rb +2 -2
- data/lib/cybersource_rest_client/api/capture_api.rb +2 -2
- data/lib/cybersource_rest_client/api/chargeback_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +2 -2
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
- data/lib/cybersource_rest_client/api/credit_api.rb +2 -2
- data/lib/cybersource_rest_client/api/customer_api.rb +8 -8
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +10 -10
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +10 -10
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +10 -10
- data/lib/cybersource_rest_client/api/device_de_association_api.rb +7 -7
- data/lib/cybersource_rest_client/api/device_search_api.rb +10 -10
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +2 -2
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +2 -2
- data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +4 -4
- data/lib/cybersource_rest_client/api/flex_api_api.rb +2 -2
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +12 -12
- data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/invoice_settings_api.rb +4 -4
- data/lib/cybersource_rest_client/api/invoices_api.rb +87 -12
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +18 -17
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +4 -4
- data/lib/cybersource_rest_client/api/microform_integration_api.rb +2 -2
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +2 -2
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +2 -2
- data/lib/cybersource_rest_client/api/orders_api.rb +4 -4
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +6 -6
- data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +2 -2
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +8 -8
- data/lib/cybersource_rest_client/api/payment_links_api.rb +12 -12
- data/lib/cybersource_rest_client/api/payment_tokens_api.rb +2 -2
- data/lib/cybersource_rest_client/api/payments_api.rb +12 -12
- data/lib/cybersource_rest_client/api/payouts_api.rb +2 -2
- data/lib/cybersource_rest_client/api/plans_api.rb +16 -16
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/push_funds_api.rb +2 -2
- data/lib/cybersource_rest_client/api/refund_api.rb +4 -4
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +4 -4
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +2 -2
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +10 -10
- data/lib/cybersource_rest_client/api/reports_api.rb +6 -6
- data/lib/cybersource_rest_client/api/retrieval_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +2 -2
- data/lib/cybersource_rest_client/api/reversal_api.rb +4 -4
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +4 -4
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +4 -4
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +16 -16
- data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +4 -4
- data/lib/cybersource_rest_client/api/taxes_api.rb +4 -4
- data/lib/cybersource_rest_client/api/token_api.rb +4 -4
- data/lib/cybersource_rest_client/api/tokenized_card_api.rb +6 -6
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +8 -8
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/transient_token_data_api.rb +4 -4
- data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +2 -2
- data/lib/cybersource_rest_client/api/user_management_api.rb +2 -2
- data/lib/cybersource_rest_client/api/user_management_search_api.rb +2 -2
- data/lib/cybersource_rest_client/api/verification_api.rb +4 -4
- data/lib/cybersource_rest_client/api/void_api.rb +10 -10
- data/lib/cybersource_rest_client/api_client.rb +3 -1
- data/lib/cybersource_rest_client/ethon_extensions.rb +38 -0
- data/lib/cybersource_rest_client/models/create_order_request.rb +269 -269
- data/lib/cybersource_rest_client/models/create_webhook.rb +16 -3
- data/lib/cybersource_rest_client/models/inline_response_200_10.rb +47 -49
- data/lib/cybersource_rest_client/models/{inline_response_200_8__links.rb → inline_response_200_10__links.rb} +18 -17
- data/lib/cybersource_rest_client/models/{inline_response_200_9__links_report.rb → inline_response_200_10__links_report.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_9_billing.rb → inline_response_200_10_billing.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_11.rb +292 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_10_records.rb → inline_response_200_11_records.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_10_response_record.rb → inline_response_200_11_response_record.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_10_response_record_additional_updates.rb → inline_response_200_11_response_record_additional_updates.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_10_source_record.rb → inline_response_200_11_source_record.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +253 -253
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +12 -10
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +129 -51
- data/lib/cybersource_rest_client/models/inline_response_200_6.rb +55 -10
- data/lib/cybersource_rest_client/models/{inline_response_200_5_devices.rb → inline_response_200_6_devices.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_7.rb +10 -55
- data/lib/cybersource_rest_client/models/inline_response_200_8.rb +33 -37
- data/lib/cybersource_rest_client/models/{inline_response_200_7_devices.rb → inline_response_200_8_devices.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_7_payment_processor_to_terminal_map.rb → inline_response_200_8_payment_processor_to_terminal_map.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_9.rb +47 -86
- data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded.rb → inline_response_200_9__embedded.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded__links.rb → inline_response_200_9__embedded__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded__links_reports.rb → inline_response_200_9__embedded__links_reports.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded_batches.rb → inline_response_200_9__embedded_batches.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded_totals.rb → inline_response_200_9__embedded_totals.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_9__links.rb +16 -17
- data/lib/cybersource_rest_client/models/inline_response_201.rb +227 -227
- data/lib/cybersource_rest_client/models/inline_response_201_1.rb +218 -218
- data/lib/cybersource_rest_client/models/inline_response_201_2.rb +248 -248
- data/lib/cybersource_rest_client/models/inline_response_201_2_payout_information.rb +216 -216
- data/lib/cybersource_rest_client/models/inline_response_201_2_payout_information_pull_funds.rb +213 -213
- data/lib/cybersource_rest_client/models/inline_response_201_2_payout_information_push_funds.rb +417 -417
- data/lib/cybersource_rest_client/models/inline_response_201_3.rb +281 -281
- data/lib/cybersource_rest_client/models/inline_response_201_3_integration_information.rb +192 -192
- data/lib/cybersource_rest_client/models/inline_response_201_3_integration_information_tenant_configurations.rb +253 -253
- data/lib/cybersource_rest_client/models/inline_response_201_3_organization_information.rb +217 -217
- data/lib/cybersource_rest_client/models/inline_response_201_3_product_information_setups.rb +214 -214
- data/lib/cybersource_rest_client/models/inline_response_201_3_registration_information.rb +222 -222
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups.rb +219 -219
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_commerce_solutions.rb +209 -209
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments.rb +369 -369
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_alternative_payment_methods.rb +221 -221
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_alternative_payment_methods_configuration_status.rb +200 -200
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing.rb +199 -199
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing_configuration_status.rb +255 -255
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing_subscription_status.rb +234 -234
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_digital_payments.rb +189 -189
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_risk.rb +199 -199
- data/lib/cybersource_rest_client/models/inline_response_201_3_setups_value_added_services.rb +209 -209
- data/lib/cybersource_rest_client/models/inline_response_201_4.rb +222 -222
- data/lib/cybersource_rest_client/models/inline_response_201_4_key_information.rb +300 -300
- data/lib/cybersource_rest_client/models/inline_response_201_4_key_information_error_information.rb +202 -202
- data/lib/cybersource_rest_client/models/inline_response_201_4_key_information_error_information_details.rb +201 -201
- data/lib/cybersource_rest_client/models/inline_response_201_5.rb +314 -312
- data/lib/cybersource_rest_client/models/inline_response_201_6.rb +277 -277
- data/lib/cybersource_rest_client/models/inline_response_201_6_payloads.rb +189 -189
- data/lib/cybersource_rest_client/models/inline_response_201_6_payloads_test_payload.rb +190 -190
- data/lib/cybersource_rest_client/models/inline_response_201_7.rb +202 -202
- data/lib/cybersource_rest_client/models/inline_response_201_order_information.rb +189 -189
- data/lib/cybersource_rest_client/models/inline_response_201_order_information_ship_to.rb +315 -315
- data/lib/cybersource_rest_client/models/inline_response_201_payment_information.rb +199 -199
- data/lib/cybersource_rest_client/models/inline_response_201_payment_information_e_wallet.rb +196 -196
- data/lib/cybersource_rest_client/models/inline_response_201_payment_information_tokenized_payment_method.rb +213 -213
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +18 -5
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_invoice_information.rb +18 -5
- data/lib/cybersource_rest_client/models/{notificationsubscriptionsv2webhooks_security_policy_1_config.rb → invoicing_v2_invoices_post201_response_invoice_information_custom_labels.rb} +57 -34
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_publish200_response.rb +268 -0
- data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +18 -5
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_retry_policy.rb +2 -0
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy.rb +1 -1
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_config.rb +16 -17
- data/lib/cybersource_rest_client/models/{notificationsubscriptionsv2webhooks_security_policy_1_config_additional_config.rb → notificationsubscriptionsv2webhooks_security_policy_config_additional_config.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +609 -609
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +269 -269
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +364 -364
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +309 -309
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_payment_method.rb +213 -213
- data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get400_response.rb +252 -252
- data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get502_response.rb +240 -240
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +258 -258
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +275 -275
- data/lib/cybersource_rest_client/models/ptsv2intents_event_information.rb +212 -212
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_ship_to.rb +354 -354
- data/lib/cybersource_rest_client/models/ptsv2intents_payment_information.rb +220 -220
- data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_e_wallet.rb +196 -196
- data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_tokenized_payment_method.rb +241 -241
- data/lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb +351 -351
- data/lib/cybersource_rest_client/models/ptsv2intents_recipient_information.rb +245 -245
- data/lib/cybersource_rest_client/models/ptsv2intents_sender_information.rb +277 -277
- data/lib/cybersource_rest_client/models/ptsv2intents_sender_information_account.rb +190 -190
- data/lib/cybersource_rest_client/models/ptsv2intents_travel_information.rb +211 -211
- data/lib/cybersource_rest_client/models/ptsv2intents_travel_information_agency.rb +245 -245
- data/lib/cybersource_rest_client/models/ptsv2intentsid_payment_information.rb +189 -189
- data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_amount_details.rb +417 -417
- data/lib/cybersource_rest_client/models/ptsv2paymentreferences_payment_information_card.rb +275 -275
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +461 -433
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +668 -668
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +716 -716
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +356 -356
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +445 -445
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +377 -377
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_payment_method.rb +196 -196
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +604 -604
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_payment_type_method.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +377 -377
- data/lib/cybersource_rest_client/models/ptsv2paymenttokens_payment_information.rb +199 -199
- data/lib/cybersource_rest_client/models/ptsv2paymenttokens_processing_information.rb +192 -192
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +258 -258
- data/lib/cybersource_rest_client/models/request.rb +199 -199
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +241 -241
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +258 -258
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +351 -351
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +268 -268
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +299 -299
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +259 -259
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +259 -259
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +224 -224
- data/lib/cybersource_rest_client/models/tms_bin_lookup_issuer_information.rb +264 -264
- data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card.rb +277 -277
- data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card_brands.rb +213 -213
- data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_features.rb +430 -430
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +11 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_bank_account_validation.rb +211 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands.rb +201 -201
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +365 -365
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +16 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +15 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +218 -218
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +245 -245
- data/lib/cybersource_rest_client/models/update_order_request.rb +229 -229
- data/lib/cybersource_rest_client/models/update_webhook.rb +19 -19
- data/lib/cybersource_rest_client.rb +20 -18
- metadata +25 -20
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_1.rb +0 -201
@@ -42,6 +42,9 @@ module CyberSource
|
|
42
42
|
|
43
43
|
attr_accessor :japan_payment_options
|
44
44
|
|
45
|
+
# Enter 1 for routing and account number validation.
|
46
|
+
attr_accessor :validation_level
|
47
|
+
|
45
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
46
49
|
def self.attribute_map
|
47
50
|
{
|
@@ -55,7 +58,8 @@ module CyberSource
|
|
55
58
|
:'bank_transfer_options' => :'bankTransferOptions',
|
56
59
|
:'capture_options' => :'captureOptions',
|
57
60
|
:'reconciliation_id' => :'reconciliationId',
|
58
|
-
:'japan_payment_options' => :'japanPaymentOptions'
|
61
|
+
:'japan_payment_options' => :'japanPaymentOptions',
|
62
|
+
:'validation_level' => :'validationLevel'
|
59
63
|
}
|
60
64
|
end
|
61
65
|
|
@@ -72,7 +76,8 @@ module CyberSource
|
|
72
76
|
:'bank_transfer_options' => :'bank_transfer_options',
|
73
77
|
:'capture_options' => :'capture_options',
|
74
78
|
:'reconciliation_id' => :'reconciliation_id',
|
75
|
-
:'japan_payment_options' => :'japan_payment_options'
|
79
|
+
:'japan_payment_options' => :'japan_payment_options',
|
80
|
+
:'validation_level' => :'validation_level'
|
76
81
|
}
|
77
82
|
end
|
78
83
|
|
@@ -89,7 +94,8 @@ module CyberSource
|
|
89
94
|
:'bank_transfer_options' => :'TssV2TransactionsGet200ResponseProcessingInformationBankTransferOptions',
|
90
95
|
:'capture_options' => :'TssV2TransactionsGet200ResponseProcessingInformationCaptureOptions',
|
91
96
|
:'reconciliation_id' => :'String',
|
92
|
-
:'japan_payment_options' => :'TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions'
|
97
|
+
:'japan_payment_options' => :'TssV2TransactionsGet200ResponseProcessingInformationJapanPaymentOptions',
|
98
|
+
:'validation_level' => :'Integer'
|
93
99
|
}
|
94
100
|
end
|
95
101
|
|
@@ -144,6 +150,10 @@ module CyberSource
|
|
144
150
|
if attributes.has_key?(:'japanPaymentOptions')
|
145
151
|
self.japan_payment_options = attributes[:'japanPaymentOptions']
|
146
152
|
end
|
153
|
+
|
154
|
+
if attributes.has_key?(:'validationLevel')
|
155
|
+
self.validation_level = attributes[:'validationLevel']
|
156
|
+
end
|
147
157
|
end
|
148
158
|
|
149
159
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -204,7 +214,8 @@ module CyberSource
|
|
204
214
|
bank_transfer_options == o.bank_transfer_options &&
|
205
215
|
capture_options == o.capture_options &&
|
206
216
|
reconciliation_id == o.reconciliation_id &&
|
207
|
-
japan_payment_options == o.japan_payment_options
|
217
|
+
japan_payment_options == o.japan_payment_options &&
|
218
|
+
validation_level == o.validation_level
|
208
219
|
end
|
209
220
|
|
210
221
|
# @see the `==` method
|
@@ -216,7 +227,7 @@ module CyberSource
|
|
216
227
|
# Calculates hash code according to all attributes.
|
217
228
|
# @return [Fixnum] Hash code
|
218
229
|
def hash
|
219
|
-
[bin_source, industry_data_type, payment_solution, commerce_indicator, commerce_indicator_label, business_application_id, authorization_options, bank_transfer_options, capture_options, reconciliation_id, japan_payment_options].hash
|
230
|
+
[bin_source, industry_data_type, payment_solution, commerce_indicator, commerce_indicator_label, business_application_id, authorization_options, bank_transfer_options, capture_options, reconciliation_id, japan_payment_options, validation_level].hash
|
220
231
|
end
|
221
232
|
|
222
233
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb
CHANGED
@@ -56,6 +56,8 @@ module CyberSource
|
|
56
56
|
# Payment Account Reference (PAR) is a non-financial reference assigned to each unique payment account and used to link a payment account to associated network tokens, i.e. the same PAR is returned for PAN-based and tokenized transactions, such as from digital wallets. PAR can be returned in authorisation responses for requests initiated with both real PANs and tokenized PANs. PAR can be used by merchants for fraud detection and regulatory compliance across different channels and digital wallets. PAR allows all participants in the payments chain to have a single, non-sensitive value assigned to a consumer. This value can be used in place of sensitive card holder identification fields, and transmitted across the payments ecosystem to facilitate card holder identification. **Note** On CyberSource through VisaNet, the value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR8 - Position: 79-110 - Field: Payment Account Reference The TC 33 Capture file contains information about the purchases and refunds that a merchant submits to CyberSource. CyberSource through VisaNet creates the TC 33 Capture file at the end of the day and sends it to the merchant's acquirer, who uses this information to facilitate end-of-day clearing processing with payment networks.
|
57
57
|
attr_accessor :payment_account_reference_number
|
58
58
|
|
59
|
+
attr_accessor :routing
|
60
|
+
|
59
61
|
# Attribute mapping from ruby-style variable name to JSON key.
|
60
62
|
def self.attribute_map
|
61
63
|
{
|
@@ -74,7 +76,8 @@ module CyberSource
|
|
74
76
|
:'event_status' => :'eventStatus',
|
75
77
|
:'system_trace_audit_number' => :'systemTraceAuditNumber',
|
76
78
|
:'response_code_source' => :'responseCodeSource',
|
77
|
-
:'payment_account_reference_number' => :'paymentAccountReferenceNumber'
|
79
|
+
:'payment_account_reference_number' => :'paymentAccountReferenceNumber',
|
80
|
+
:'routing' => :'routing'
|
78
81
|
}
|
79
82
|
end
|
80
83
|
|
@@ -96,7 +99,8 @@ module CyberSource
|
|
96
99
|
:'event_status' => :'event_status',
|
97
100
|
:'system_trace_audit_number' => :'system_trace_audit_number',
|
98
101
|
:'response_code_source' => :'response_code_source',
|
99
|
-
:'payment_account_reference_number' => :'payment_account_reference_number'
|
102
|
+
:'payment_account_reference_number' => :'payment_account_reference_number',
|
103
|
+
:'routing' => :'routing'
|
100
104
|
}
|
101
105
|
end
|
102
106
|
|
@@ -118,7 +122,8 @@ module CyberSource
|
|
118
122
|
:'event_status' => :'String',
|
119
123
|
:'system_trace_audit_number' => :'String',
|
120
124
|
:'response_code_source' => :'String',
|
121
|
-
:'payment_account_reference_number' => :'String'
|
125
|
+
:'payment_account_reference_number' => :'String',
|
126
|
+
:'routing' => :'PtsV2PaymentsPost201ResponseProcessorInformationRouting'
|
122
127
|
}
|
123
128
|
end
|
124
129
|
|
@@ -195,6 +200,10 @@ module CyberSource
|
|
195
200
|
if attributes.has_key?(:'paymentAccountReferenceNumber')
|
196
201
|
self.payment_account_reference_number = attributes[:'paymentAccountReferenceNumber']
|
197
202
|
end
|
203
|
+
|
204
|
+
if attributes.has_key?(:'routing')
|
205
|
+
self.routing = attributes[:'routing']
|
206
|
+
end
|
198
207
|
end
|
199
208
|
|
200
209
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -272,7 +281,8 @@ module CyberSource
|
|
272
281
|
event_status == o.event_status &&
|
273
282
|
system_trace_audit_number == o.system_trace_audit_number &&
|
274
283
|
response_code_source == o.response_code_source &&
|
275
|
-
payment_account_reference_number == o.payment_account_reference_number
|
284
|
+
payment_account_reference_number == o.payment_account_reference_number &&
|
285
|
+
routing == o.routing
|
276
286
|
end
|
277
287
|
|
278
288
|
# @see the `==` method
|
@@ -284,7 +294,7 @@ module CyberSource
|
|
284
294
|
# Calculates hash code according to all attributes.
|
285
295
|
# @return [Fixnum] Hash code
|
286
296
|
def hash
|
287
|
-
[processor, multi_processor_routing, transaction_id, network_transaction_id, retrieval_reference_number, response_id, approval_code, response_code, avs, card_verification, ach_verification, electronic_verification_results, event_status, system_trace_audit_number, response_code_source, payment_account_reference_number].hash
|
297
|
+
[processor, multi_processor_routing, transaction_id, network_transaction_id, retrieval_reference_number, response_id, approval_code, response_code, avs, card_verification, ach_verification, electronic_verification_results, event_status, system_trace_audit_number, response_code_source, payment_account_reference_number, routing].hash
|
288
298
|
end
|
289
299
|
|
290
300
|
# Builds the object from hash
|
@@ -1,218 +1,218 @@
|
|
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 TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard
|
16
|
-
# Last four digits of the cardholder's account number. 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. #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### PIN debit This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. Returned by PIN debit credit and PIN debit purchase. This field is supported only by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX
|
17
|
-
attr_accessor :suffix
|
18
|
-
|
19
|
-
# Bank Identification Number (BIN). This is the initial four to six numbers on a credit card account number. #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response.
|
20
|
-
attr_accessor :prefix
|
21
|
-
|
22
|
-
# 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. 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] - `008`: Optima - `009`: GE Private Label - `010`: Beneficial Private Label - `011`: Twinpay Credit Card - `012`: Twinpay Debit Card - `013`: WalMart - `014`: Enroute[^1] - `015`: Lowe's Consumer - `016`: Home Depot Consumer - `017`: MBNA - `018`: Dick's Sportswear - `019`: Casual Corner - `020`: Sears - `021`: JAL[^1] - `023`: Disney Card - `024`: Maestro (UK Domestic)[^1] - `025`: Sam's Club Consumer - `026`: Sam's Club Business - `027`: Nico's - `028`: Paymentech Bill Me Later - `029`: Bebe - `030`: Restoration Hardware - `031`: Delta Online - `032`: Solo - `033`: Visa Electron[^1]. Do not use this value. Use `001` for all Visa card types. - `034`: Dankort[^1] - `035`: Laser - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `038`: Pinless Debit - `039`: Encoded account number[^1] - `040`: UATP[^1] - `041`: HOUSEHOLD - `042`: Maestro (International)[^1] - `043`: GE MONEY - `044`: Korean Cards - `045`: Style Cards - `046`: JCrew - `047`: Payeasecn eWallet - `048`: Payeasecn Bank Transfer - `049`: Meijer - `050`: Hipercard[^2,3] - `051`: Aura - `052`: Redecard - `053`: Orico card - `054`: Elo[^3] - `055`: Capitol One Private Label - `056`: Carnet - `057`: Costco Private Label - `058`: Carnet - `059`: ValueLink - `060`: MADA - `061`: RuPay - `062`: China UnionPay - `063`: Falabella Private Label - `064`: Prompt Card - `065`: Korean Domestic - `066`: Banricompras - `067`: MEEZA - `068`: PayPak - `070`: EFTPOS - `071`: Codensa - `072`: Olimpica - `073`: Colsubsidio - `074`: Tuya - `075`: Sodexo - `076`: Naranja - `077`: Cabal - `078`: DINELCO - `079`: PANAL - `080`: EPM - `081`: Jaywan [^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
|
23
|
-
attr_accessor :type
|
24
|
-
|
25
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
-
def self.attribute_map
|
27
|
-
{
|
28
|
-
:'suffix' => :'suffix',
|
29
|
-
:'prefix' => :'prefix',
|
30
|
-
:'type' => :'type'
|
31
|
-
}
|
32
|
-
end
|
33
|
-
|
34
|
-
# Attribute mapping from JSON key to ruby-style variable name.
|
35
|
-
def self.json_map
|
36
|
-
{
|
37
|
-
:'suffix' => :'suffix',
|
38
|
-
:'prefix' => :'prefix',
|
39
|
-
:'type' => :'type'
|
40
|
-
}
|
41
|
-
end
|
42
|
-
|
43
|
-
# Attribute type mapping.
|
44
|
-
def self.swagger_types
|
45
|
-
{
|
46
|
-
:'suffix' => :'String',
|
47
|
-
:'prefix' => :'String',
|
48
|
-
:'type' => :'String'
|
49
|
-
}
|
50
|
-
end
|
51
|
-
|
52
|
-
# Initializes the object
|
53
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
54
|
-
def initialize(attributes = {})
|
55
|
-
return unless attributes.is_a?(Hash)
|
56
|
-
|
57
|
-
# convert string to symbol for hash key
|
58
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
59
|
-
|
60
|
-
if attributes.has_key?(:'suffix')
|
61
|
-
self.suffix = attributes[:'suffix']
|
62
|
-
end
|
63
|
-
|
64
|
-
if attributes.has_key?(:'prefix')
|
65
|
-
self.prefix = attributes[:'prefix']
|
66
|
-
end
|
67
|
-
|
68
|
-
if attributes.has_key?(:'type')
|
69
|
-
self.type = attributes[:'type']
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
74
|
-
# @return Array for valid properties with the reasons
|
75
|
-
def list_invalid_properties
|
76
|
-
invalid_properties = Array.new
|
77
|
-
invalid_properties
|
78
|
-
end
|
79
|
-
|
80
|
-
# Check to see if the all the properties in the model are valid
|
81
|
-
# @return true if the model is valid
|
82
|
-
def valid?
|
83
|
-
true
|
84
|
-
end
|
85
|
-
|
86
|
-
# Custom attribute writer method with validation
|
87
|
-
# @param [Object] prefix Value to be assigned
|
88
|
-
def prefix=(prefix)
|
89
|
-
@prefix = prefix
|
90
|
-
end
|
91
|
-
|
92
|
-
# Checks equality by comparing each attribute.
|
93
|
-
# @param [Object] Object to be compared
|
94
|
-
def ==(o)
|
95
|
-
return true if self.equal?(o)
|
96
|
-
self.class == o.class &&
|
97
|
-
suffix == o.suffix &&
|
98
|
-
prefix == o.prefix &&
|
99
|
-
type == o.type
|
100
|
-
end
|
101
|
-
|
102
|
-
# @see the `==` method
|
103
|
-
# @param [Object] Object to be compared
|
104
|
-
def eql?(o)
|
105
|
-
self == o
|
106
|
-
end
|
107
|
-
|
108
|
-
# Calculates hash code according to all attributes.
|
109
|
-
# @return [Fixnum] Hash code
|
110
|
-
def hash
|
111
|
-
[suffix, prefix, type].hash
|
112
|
-
end
|
113
|
-
|
114
|
-
# Builds the object from hash
|
115
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
116
|
-
# @return [Object] Returns the model itself
|
117
|
-
def build_from_hash(attributes)
|
118
|
-
return nil unless attributes.is_a?(Hash)
|
119
|
-
self.class.swagger_types.each_pair do |key, type|
|
120
|
-
if type =~ /\AArray<(.*)>/i
|
121
|
-
# check to ensure the input is an array given that the the attribute
|
122
|
-
# is documented as an array but the input is not
|
123
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
124
|
-
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
125
|
-
end
|
126
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
127
|
-
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
128
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
129
|
-
end
|
130
|
-
|
131
|
-
self
|
132
|
-
end
|
133
|
-
|
134
|
-
# Deserializes the data based on type
|
135
|
-
# @param string type Data type
|
136
|
-
# @param string value Value to be deserialized
|
137
|
-
# @return [Object] Deserialized data
|
138
|
-
def _deserialize(type, value)
|
139
|
-
case type.to_sym
|
140
|
-
when :DateTime
|
141
|
-
DateTime.parse(value)
|
142
|
-
when :Date
|
143
|
-
Date.parse(value)
|
144
|
-
when :String
|
145
|
-
value.to_s
|
146
|
-
when :Integer
|
147
|
-
value.to_i
|
148
|
-
when :Float
|
149
|
-
value.to_f
|
150
|
-
when :BOOLEAN
|
151
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
152
|
-
true
|
153
|
-
else
|
154
|
-
false
|
155
|
-
end
|
156
|
-
when :Object
|
157
|
-
# generic object (usually a Hash), return directly
|
158
|
-
value
|
159
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
160
|
-
inner_type = Regexp.last_match[:inner_type]
|
161
|
-
value.map { |v| _deserialize(inner_type, v) }
|
162
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
163
|
-
k_type = Regexp.last_match[:k_type]
|
164
|
-
v_type = Regexp.last_match[:v_type]
|
165
|
-
{}.tap do |hash|
|
166
|
-
value.each do |k, v|
|
167
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
168
|
-
end
|
169
|
-
end
|
170
|
-
else # model
|
171
|
-
temp_model = CyberSource.const_get(type).new
|
172
|
-
temp_model.build_from_hash(value)
|
173
|
-
end
|
174
|
-
end
|
175
|
-
|
176
|
-
# Returns the string representation of the object
|
177
|
-
# @return [String] String presentation of the object
|
178
|
-
def to_s
|
179
|
-
to_hash.to_s
|
180
|
-
end
|
181
|
-
|
182
|
-
# to_body is an alias to to_hash (backward compatibility)
|
183
|
-
# @return [Hash] Returns the object in the form of hash
|
184
|
-
def to_body
|
185
|
-
to_hash
|
186
|
-
end
|
187
|
-
|
188
|
-
# Returns the object in the form of hash
|
189
|
-
# @return [Hash] Returns the object in the form of hash
|
190
|
-
def to_hash
|
191
|
-
hash = {}
|
192
|
-
self.class.attribute_map.each_pair do |attr, param|
|
193
|
-
value = self.send(attr)
|
194
|
-
next if value.nil?
|
195
|
-
hash[param] = _to_hash(value)
|
196
|
-
end
|
197
|
-
hash
|
198
|
-
end
|
199
|
-
|
200
|
-
# Outputs non-array value in the form of hash
|
201
|
-
# For object, use to_hash. Otherwise, just return the value
|
202
|
-
# @param [Object] value Any valid value
|
203
|
-
# @return [Hash] Returns the value in the form of hash
|
204
|
-
def _to_hash(value)
|
205
|
-
if value.is_a?(Array)
|
206
|
-
value.compact.map { |v| _to_hash(v) }
|
207
|
-
elsif value.is_a?(Hash)
|
208
|
-
{}.tap do |hash|
|
209
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
210
|
-
end
|
211
|
-
elsif value.respond_to? :to_hash
|
212
|
-
value.to_hash
|
213
|
-
else
|
214
|
-
value
|
215
|
-
end
|
216
|
-
end
|
217
|
-
end
|
218
|
-
end
|
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 TssV2TransactionsPost201ResponseEmbeddedPaymentInformationCard
|
16
|
+
# Last four digits of the cardholder's account number. 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. #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### PIN debit This field is returned only for tokenized transactions. You can use this value on the receipt that you give to the cardholder. Returned by PIN debit credit and PIN debit purchase. This field is supported only by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX
|
17
|
+
attr_accessor :suffix
|
18
|
+
|
19
|
+
# Bank Identification Number (BIN). This is the initial four to six numbers on a credit card account number. #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response.
|
20
|
+
attr_accessor :prefix
|
21
|
+
|
22
|
+
# 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. 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] - `008`: Optima - `009`: GE Private Label - `010`: Beneficial Private Label - `011`: Twinpay Credit Card - `012`: Twinpay Debit Card - `013`: WalMart - `014`: Enroute[^1] - `015`: Lowe's Consumer - `016`: Home Depot Consumer - `017`: MBNA - `018`: Dick's Sportswear - `019`: Casual Corner - `020`: Sears - `021`: JAL[^1] - `023`: Disney Card - `024`: Maestro (UK Domestic)[^1] - `025`: Sam's Club Consumer - `026`: Sam's Club Business - `027`: Nico's - `028`: Paymentech Bill Me Later - `029`: Bebe - `030`: Restoration Hardware - `031`: Delta Online - `032`: Solo - `033`: Visa Electron[^1]. Do not use this value. Use `001` for all Visa card types. - `034`: Dankort[^1] - `035`: Laser - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `038`: Pinless Debit - `039`: Encoded account number[^1] - `040`: UATP[^1] - `041`: HOUSEHOLD - `042`: Maestro (International)[^1] - `043`: GE MONEY - `044`: Korean Cards - `045`: Style Cards - `046`: JCrew - `047`: Payeasecn eWallet - `048`: Payeasecn Bank Transfer - `049`: Meijer - `050`: Hipercard[^2,3] - `051`: Aura - `052`: Redecard - `053`: Orico card - `054`: Elo[^3] - `055`: Capitol One Private Label - `056`: Carnet - `057`: Costco Private Label - `058`: Carnet - `059`: ValueLink - `060`: MADA - `061`: RuPay - `062`: China UnionPay - `063`: Falabella Private Label - `064`: Prompt Card - `065`: Korean Domestic - `066`: Banricompras - `067`: MEEZA - `068`: PayPak - `070`: EFTPOS - `071`: Codensa - `072`: Olimpica - `073`: Colsubsidio - `074`: Tuya - `075`: Sodexo - `076`: Naranja - `077`: Cabal - `078`: DINELCO - `079`: PANAL - `080`: EPM - `081`: Jaywan [^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
|
23
|
+
attr_accessor :type
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'suffix' => :'suffix',
|
29
|
+
:'prefix' => :'prefix',
|
30
|
+
:'type' => :'type'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
35
|
+
def self.json_map
|
36
|
+
{
|
37
|
+
:'suffix' => :'suffix',
|
38
|
+
:'prefix' => :'prefix',
|
39
|
+
:'type' => :'type'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# Attribute type mapping.
|
44
|
+
def self.swagger_types
|
45
|
+
{
|
46
|
+
:'suffix' => :'String',
|
47
|
+
:'prefix' => :'String',
|
48
|
+
:'type' => :'String'
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
# Initializes the object
|
53
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
54
|
+
def initialize(attributes = {})
|
55
|
+
return unless attributes.is_a?(Hash)
|
56
|
+
|
57
|
+
# convert string to symbol for hash key
|
58
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
59
|
+
|
60
|
+
if attributes.has_key?(:'suffix')
|
61
|
+
self.suffix = attributes[:'suffix']
|
62
|
+
end
|
63
|
+
|
64
|
+
if attributes.has_key?(:'prefix')
|
65
|
+
self.prefix = attributes[:'prefix']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.has_key?(:'type')
|
69
|
+
self.type = attributes[:'type']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
74
|
+
# @return Array for valid properties with the reasons
|
75
|
+
def list_invalid_properties
|
76
|
+
invalid_properties = Array.new
|
77
|
+
invalid_properties
|
78
|
+
end
|
79
|
+
|
80
|
+
# Check to see if the all the properties in the model are valid
|
81
|
+
# @return true if the model is valid
|
82
|
+
def valid?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Custom attribute writer method with validation
|
87
|
+
# @param [Object] prefix Value to be assigned
|
88
|
+
def prefix=(prefix)
|
89
|
+
@prefix = prefix
|
90
|
+
end
|
91
|
+
|
92
|
+
# Checks equality by comparing each attribute.
|
93
|
+
# @param [Object] Object to be compared
|
94
|
+
def ==(o)
|
95
|
+
return true if self.equal?(o)
|
96
|
+
self.class == o.class &&
|
97
|
+
suffix == o.suffix &&
|
98
|
+
prefix == o.prefix &&
|
99
|
+
type == o.type
|
100
|
+
end
|
101
|
+
|
102
|
+
# @see the `==` method
|
103
|
+
# @param [Object] Object to be compared
|
104
|
+
def eql?(o)
|
105
|
+
self == o
|
106
|
+
end
|
107
|
+
|
108
|
+
# Calculates hash code according to all attributes.
|
109
|
+
# @return [Fixnum] Hash code
|
110
|
+
def hash
|
111
|
+
[suffix, prefix, type].hash
|
112
|
+
end
|
113
|
+
|
114
|
+
# Builds the object from hash
|
115
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
116
|
+
# @return [Object] Returns the model itself
|
117
|
+
def build_from_hash(attributes)
|
118
|
+
return nil unless attributes.is_a?(Hash)
|
119
|
+
self.class.swagger_types.each_pair do |key, type|
|
120
|
+
if type =~ /\AArray<(.*)>/i
|
121
|
+
# check to ensure the input is an array given that the the attribute
|
122
|
+
# is documented as an array but the input is not
|
123
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
124
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
125
|
+
end
|
126
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
127
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
128
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
129
|
+
end
|
130
|
+
|
131
|
+
self
|
132
|
+
end
|
133
|
+
|
134
|
+
# Deserializes the data based on type
|
135
|
+
# @param string type Data type
|
136
|
+
# @param string value Value to be deserialized
|
137
|
+
# @return [Object] Deserialized data
|
138
|
+
def _deserialize(type, value)
|
139
|
+
case type.to_sym
|
140
|
+
when :DateTime
|
141
|
+
DateTime.parse(value)
|
142
|
+
when :Date
|
143
|
+
Date.parse(value)
|
144
|
+
when :String
|
145
|
+
value.to_s
|
146
|
+
when :Integer
|
147
|
+
value.to_i
|
148
|
+
when :Float
|
149
|
+
value.to_f
|
150
|
+
when :BOOLEAN
|
151
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
152
|
+
true
|
153
|
+
else
|
154
|
+
false
|
155
|
+
end
|
156
|
+
when :Object
|
157
|
+
# generic object (usually a Hash), return directly
|
158
|
+
value
|
159
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
160
|
+
inner_type = Regexp.last_match[:inner_type]
|
161
|
+
value.map { |v| _deserialize(inner_type, v) }
|
162
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
163
|
+
k_type = Regexp.last_match[:k_type]
|
164
|
+
v_type = Regexp.last_match[:v_type]
|
165
|
+
{}.tap do |hash|
|
166
|
+
value.each do |k, v|
|
167
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
else # model
|
171
|
+
temp_model = CyberSource.const_get(type).new
|
172
|
+
temp_model.build_from_hash(value)
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
# Returns the string representation of the object
|
177
|
+
# @return [String] String presentation of the object
|
178
|
+
def to_s
|
179
|
+
to_hash.to_s
|
180
|
+
end
|
181
|
+
|
182
|
+
# to_body is an alias to to_hash (backward compatibility)
|
183
|
+
# @return [Hash] Returns the object in the form of hash
|
184
|
+
def to_body
|
185
|
+
to_hash
|
186
|
+
end
|
187
|
+
|
188
|
+
# Returns the object in the form of hash
|
189
|
+
# @return [Hash] Returns the object in the form of hash
|
190
|
+
def to_hash
|
191
|
+
hash = {}
|
192
|
+
self.class.attribute_map.each_pair do |attr, param|
|
193
|
+
value = self.send(attr)
|
194
|
+
next if value.nil?
|
195
|
+
hash[param] = _to_hash(value)
|
196
|
+
end
|
197
|
+
hash
|
198
|
+
end
|
199
|
+
|
200
|
+
# Outputs non-array value in the form of hash
|
201
|
+
# For object, use to_hash. Otherwise, just return the value
|
202
|
+
# @param [Object] value Any valid value
|
203
|
+
# @return [Hash] Returns the value in the form of hash
|
204
|
+
def _to_hash(value)
|
205
|
+
if value.is_a?(Array)
|
206
|
+
value.compact.map { |v| _to_hash(v) }
|
207
|
+
elsif value.is_a?(Hash)
|
208
|
+
{}.tap do |hash|
|
209
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
210
|
+
end
|
211
|
+
elsif value.respond_to? :to_hash
|
212
|
+
value.to_hash
|
213
|
+
else
|
214
|
+
value
|
215
|
+
end
|
216
|
+
end
|
217
|
+
end
|
218
|
+
end
|