cybersource_rest_client 0.0.64 → 0.0.65
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client/api/batches_api.rb +9 -9
- data/lib/cybersource_rest_client/api/bin_lookup_api.rb +3 -3
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +3 -3
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +6 -6
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +3 -3
- data/lib/cybersource_rest_client/models/bin_lookupv400_response.rb +224 -224
- data/lib/cybersource_rest_client/models/binv1binlookup_client_reference_information.rb +222 -222
- data/lib/cybersource_rest_client/models/binv1binlookup_payment_information.rb +219 -219
- data/lib/cybersource_rest_client/models/binv1binlookup_payment_information_card.rb +196 -196
- data/lib/cybersource_rest_client/models/binv1binlookup_processing_information.rb +200 -200
- data/lib/cybersource_rest_client/models/binv1binlookup_processing_information_payout_options.rb +213 -213
- data/lib/cybersource_rest_client/models/binv1binlookup_token_information.rb +207 -207
- data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +321 -321
- data/lib/cybersource_rest_client/models/create_bin_lookup_request.rb +219 -219
- data/lib/cybersource_rest_client/models/create_payment_request.rb +462 -452
- data/lib/cybersource_rest_client/models/inline_response_200_1.rb +253 -247
- data/lib/cybersource_rest_client/models/{inline_response_200_2_integration_information.rb → inline_response_200_1_integration_information.rb} +204 -204
- data/lib/cybersource_rest_client/models/{inline_response_200_2_integration_information_tenant_configurations.rb → inline_response_200_1_integration_information_tenant_configurations.rb} +296 -296
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +25 -65
- data/lib/cybersource_rest_client/models/inline_response_200_3.rb +335 -213
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +251 -335
- data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded.rb → inline_response_200_5__embedded.rb} +191 -191
- data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded__links.rb → inline_response_200_5__embedded__links.rb} +191 -191
- data/lib/cybersource_rest_client/models/{inline_response_200_7__links_report.rb → inline_response_200_5__embedded__links_reports.rb} +190 -189
- data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded_batches.rb → inline_response_200_5__embedded_batches.rb} +295 -295
- data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded_totals.rb → inline_response_200_5__embedded_totals.rb} +229 -229
- data/lib/cybersource_rest_client/models/inline_response_200_5__links.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6.rb +290 -251
- data/lib/cybersource_rest_client/models/inline_response_200_6__links.rb +201 -200
- data/lib/cybersource_rest_client/models/{inline_response_200_6__embedded__links_reports.rb → inline_response_200_6__links_report.rb} +189 -190
- data/lib/cybersource_rest_client/models/{inline_response_200_7_billing.rb → inline_response_200_6_billing.rb} +219 -219
- data/lib/cybersource_rest_client/models/inline_response_200_7.rb +292 -290
- data/lib/cybersource_rest_client/models/{inline_response_200_8_records.rb → inline_response_200_7_records.rb} +209 -209
- data/lib/cybersource_rest_client/models/{inline_response_200_8_response_record.rb → inline_response_200_7_response_record.rb} +307 -307
- data/lib/cybersource_rest_client/models/{inline_response_200_8_response_record_additional_updates.rb → inline_response_200_7_response_record_additional_updates.rb} +242 -242
- data/lib/cybersource_rest_client/models/{inline_response_200_8_source_record.rb → inline_response_200_7_source_record.rb} +295 -295
- data/lib/cybersource_rest_client/models/inline_response_201_1.rb +248 -248
- data/lib/cybersource_rest_client/models/inline_response_201_1_issuer_information.rb +264 -264
- data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information.rb +209 -209
- data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information_card.rb +277 -277
- data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information_card_brands.rb +213 -213
- data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information_features.rb +320 -320
- data/lib/cybersource_rest_client/models/inline_response_201_1_payment_account_information_network.rb +190 -190
- data/lib/cybersource_rest_client/models/inline_response_201_1_payout_information.rb +216 -216
- data/lib/cybersource_rest_client/models/inline_response_201_1_payout_information_pull_funds.rb +213 -213
- data/lib/cybersource_rest_client/models/inline_response_201_1_payout_information_push_funds.rb +417 -417
- data/lib/cybersource_rest_client/models/inline_response_201_2.rb +315 -315
- data/lib/cybersource_rest_client/models/inline_response_201_2_integration_information.rb +192 -192
- data/lib/cybersource_rest_client/models/inline_response_201_2_integration_information_tenant_configurations.rb +286 -286
- data/lib/cybersource_rest_client/models/inline_response_201_2_organization_information.rb +217 -217
- data/lib/cybersource_rest_client/models/inline_response_201_2_product_information_setups.rb +214 -214
- data/lib/cybersource_rest_client/models/inline_response_201_2_registration_information.rb +256 -256
- data/lib/cybersource_rest_client/models/inline_response_201_2_setups.rb +219 -219
- data/lib/cybersource_rest_client/models/inline_response_201_2_setups_commerce_solutions.rb +209 -209
- data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb +15 -5
- data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing.rb +199 -199
- data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_configuration_status.rb +299 -299
- data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_subscription_status.rb +278 -278
- data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_digital_payments.rb +189 -189
- data/lib/cybersource_rest_client/models/inline_response_201_2_setups_risk.rb +199 -199
- data/lib/cybersource_rest_client/models/inline_response_201_2_setups_value_added_services.rb +199 -199
- data/lib/cybersource_rest_client/models/inline_response_201_3.rb +222 -222
- data/lib/cybersource_rest_client/models/inline_response_201_3_key_information.rb +300 -300
- data/lib/cybersource_rest_client/models/inline_response_201_3_key_information_error_information.rb +202 -202
- data/lib/cybersource_rest_client/models/inline_response_201_3_key_information_error_information_details.rb +201 -201
- data/lib/cybersource_rest_client/models/inline_response_201_4.rb +347 -347
- data/lib/cybersource_rest_client/models/inline_response_201_5.rb +222 -222
- data/lib/cybersource_rest_client/models/inline_response_400_5.rb +269 -234
- data/lib/cybersource_rest_client/models/{inline_response_400_7_details.rb → inline_response_400_5_details.rb} +201 -201
- data/lib/cybersource_rest_client/models/inline_response_400_6.rb +275 -235
- data/lib/cybersource_rest_client/models/{inline_response_400_8_details.rb → inline_response_400_6_details.rb} +199 -199
- data/lib/cybersource_rest_client/models/inline_response_404_1.rb +269 -269
- data/lib/cybersource_rest_client/models/inline_response_422_1.rb +269 -269
- data/lib/cybersource_rest_client/models/inline_response_500_2.rb +257 -223
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_freight.rb +225 -225
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_tax_details.rb +225 -225
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +333 -333
- data/lib/cybersource_rest_client/models/merchant_initiated_transaction_object.rb +241 -241
- data/lib/cybersource_rest_client/models/payer_auth_config_card_types_verified_by_visa_currencies.rb +244 -243
- data/lib/cybersource_rest_client/models/payer_auth_setup_request.rb +219 -219
- data/lib/cybersource_rest_client/models/payments_products.rb +369 -359
- data/lib/cybersource_rest_client/models/{kms_v2_keys_asym_get200_response.rb → payments_products_service_fee.rb} +199 -200
- data/lib/cybersource_rest_client/models/{inline_response_200_7__links.rb → payments_products_service_fee_configuration_information.rb} +189 -201
- data/lib/cybersource_rest_client/models/{inline_response_200_8.rb → payments_products_service_fee_configuration_information_configurations.rb} +266 -292
- data/lib/cybersource_rest_client/models/{kms_v2_keys_sym_deletes_post200_response_key_information.rb → payments_products_service_fee_configuration_information_configurations_merchant_information.rb} +239 -234
- data/lib/cybersource_rest_client/models/{inline_response_400_8.rb → payments_products_service_fee_configuration_information_configurations_payment_information.rb} +280 -275
- data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_products.rb +190 -0
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +284 -284
- data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_processor_information.rb +233 -233
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +249 -249
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_2_processor_information.rb +264 -264
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +765 -765
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_consumer_authentication.rb +212 -212
- 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_issuer_information.rb +264 -264
- 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_insights_information.rb +199 -199
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_orchestration.rb +192 -192
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_insights_information_response_insights.rb +230 -230
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +223 -223
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +217 -217
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +18 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +230 -230
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +196 -196
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +232 -232
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_buyer_information.rb +247 -247
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_installment_information.rb +326 -326
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information.rb +285 -285
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information_merchant_descriptor.rb +241 -241
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +275 -275
- data/lib/cybersource_rest_client/models/ptsv2credits_installment_information.rb +196 -196
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +453 -453
- data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_line_items.rb +361 -361
- data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_ship_to.rb +485 -485
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +366 -366
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +1075 -1075
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +416 -416
- data/lib/cybersource_rest_client/models/ptsv2payments_issuer_information.rb +196 -196
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +464 -464
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +405 -405
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +641 -641
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_order.rb +332 -332
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +286 -286
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +444 -444
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +699 -699
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +496 -496
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +346 -346
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_account_reference.rb +196 -196
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +377 -377
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +633 -633
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +704 -704
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +467 -456
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_loan_options.rb +213 -213
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +205 -205
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +72 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +298 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +332 -332
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +604 -604
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +267 -267
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +287 -287
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +206 -206
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +362 -362
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +257 -257
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +502 -502
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +299 -299
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +342 -342
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +192 -192
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +213 -213
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +287 -287
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +234 -234
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +286 -286
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +301 -301
- data/lib/cybersource_rest_client/models/ptsv2voids_processing_information.rb +190 -190
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +269 -280
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +80 -1
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +279 -290
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response_1.rb +235 -235
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +840 -840
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +290 -290
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +312 -337
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +241 -258
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +258 -258
- data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +434 -366
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +497 -497
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +219 -219
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +351 -351
- data/lib/cybersource_rest_client/models/{kmsv2keyssym_client_reference_information.rb → riskv1authenticationsetups_client_reference_information.rb} +240 -217
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +299 -299
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_processing_information.rb +213 -213
- data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +812 -820
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_amount_details.rb +223 -223
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +416 -416
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +259 -259
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +314 -314
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_line_items.rb +196 -196
- data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier_bank_account.rb +207 -207
- data/lib/cybersource_rest_client/models/tms_payment_instrument_processing_info.rb +200 -200
- data/lib/cybersource_rest_client/models/tms_payment_instrument_processing_info_bank_transfer_options.rb +196 -196
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information.rb +236 -236
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +292 -292
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to.rb +349 -349
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options_initiator.rb +222 -222
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +383 -383
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +241 -241
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.rb +231 -231
- data/lib/cybersource_rest_client/models/validate_request.rb +249 -249
- data/lib/cybersource_rest_client/models/vasv2tax_merchant_information.rb +196 -196
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +403 -403
- data/lib/cybersource_rest_client/utilities/tracking/sdk_tracker.rb +0 -5
- data/lib/cybersource_rest_client.rb +24 -57
- metadata +26 -59
- data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +0 -307
- data/lib/cybersource_rest_client/api/key_management_api.rb +0 -120
- data/lib/cybersource_rest_client/api/key_management_password_api.rb +0 -98
- data/lib/cybersource_rest_client/api/key_management_pgp_api.rb +0 -98
- data/lib/cybersource_rest_client/api/key_management_scmp_api.rb +0 -98
- data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +0 -308
- data/lib/cybersource_rest_client/models/create_p12_keys_request.rb +0 -201
- data/lib/cybersource_rest_client/models/create_shared_secret_keys_request.rb +0 -201
- data/lib/cybersource_rest_client/models/create_shared_secret_keys_verifi_request.rb +0 -201
- data/lib/cybersource_rest_client/models/delete_bulk_p12_keys_request.rb +0 -201
- data/lib/cybersource_rest_client/models/delete_bulk_symmetric_keys_request.rb +0 -201
- data/lib/cybersource_rest_client/models/inline_response_200_1_keys.rb +0 -323
- data/lib/cybersource_rest_client/models/inline_response_400_7.rb +0 -269
- data/lib/cybersource_rest_client/models/inline_response_500_3.rb +0 -257
- data/lib/cybersource_rest_client/models/inline_response_502_1.rb +0 -234
- data/lib/cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response.rb +0 -212
- data/lib/cybersource_rest_client/models/kms_v2_keys_asym_deletes_post200_response_key_information.rb +0 -245
- data/lib/cybersource_rest_client/models/kms_v2_keys_asym_get200_response_key_information.rb +0 -267
- data/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response.rb +0 -235
- data/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response_certificate_information.rb +0 -223
- data/lib/cybersource_rest_client/models/kms_v2_keys_asym_post201_response_key_information.rb +0 -278
- data/lib/cybersource_rest_client/models/kms_v2_keys_sym_deletes_post200_response.rb +0 -223
- data/lib/cybersource_rest_client/models/kms_v2_keys_sym_get200_response.rb +0 -211
- data/lib/cybersource_rest_client/models/kms_v2_keys_sym_get200_response_key_information.rb +0 -245
- data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response.rb +0 -223
- data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_error_information.rb +0 -202
- data/lib/cybersource_rest_client/models/kms_v2_keys_sym_post201_response_key_information.rb +0 -284
- data/lib/cybersource_rest_client/models/kmsv2keysasym_key_information.rb +0 -223
- data/lib/cybersource_rest_client/models/kmsv2keyssym_key_information.rb +0 -207
- data/lib/cybersource_rest_client/models/kmsv2keyssymdeletes_key_information.rb +0 -223
- data/lib/cybersource_rest_client/models/kmsv2keyssymverifi_key_information.rb +0 -254
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +0 -290
- data/lib/cybersource_rest_client/models/update_asym_keys_request.rb +0 -211
- data/lib/cybersource_rest_client/models/update_password_keys_request.rb +0 -211
- data/lib/cybersource_rest_client/models/update_pgp_keys_request.rb +0 -211
- data/lib/cybersource_rest_client/models/update_pgp_keys_request_1.rb +0 -234
@@ -1,456 +1,467 @@
|
|
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 Ptsv2paymentsProcessingInformationAuthorizationOptions
|
16
|
-
# Authorization type. Possible values: - `AUTOCAPTURE`: automatic capture. - `STANDARDCAPTURE`: standard capture. - `VERBAL`: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. #### Asia, Middle East, and Africa Gateway; Cielo; Comercio Latino; and CyberSource Latin American Processing Set this field to `AUTOCAPTURE` and include it in a bundled request to indicate that you are requesting an automatic capture. If your account is configured to enable automatic captures, set this field to `STANDARDCAPTURE` and include it in a standard authorization or bundled request to indicate that you are overriding an automatic capture. #### Forced Capture Set this field to `VERBAL` and include it in the authorization request to indicate that you are performing a forced capture; therefore, you receive the authorization code outside the CyberSource system. #### Verbal Authorization Set this field to `VERBAL` and include it in the capture request to indicate that the request is for a verbal authorization.
|
17
|
-
attr_accessor :auth_type
|
18
|
-
|
19
|
-
# #### Visa Platform Connect The field contains the PAN translation indicator for American Express Contactless Transaction. Valid value is 1- Expresspay Translation, PAN request 2- Expresspay Translation, PAN and Expiry date request
|
20
|
-
attr_accessor :pan_return_indicator
|
21
|
-
|
22
|
-
# Authorization code. #### Forced Capture Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. #### PIN debit Authorization code that is returned by the processor. Returned by PIN debit purchase. #### Verbal Authorization Use this field in CAPTURE API to send the verbally received authorization code.
|
23
|
-
attr_accessor :verbal_auth_code
|
24
|
-
|
25
|
-
# Transaction ID (TID). #### FDMS South This field is required for verbal authorizations and forced captures with the American Express card type to comply with the CAPN requirements: - Forced capture: Obtain the value for this field from the authorization response. - Verbal authorization: You cannot obtain a value for this field so CyberSource uses the default value of `000000000000000` (15 zeros).
|
26
|
-
attr_accessor :verbal_auth_transaction_id
|
27
|
-
|
28
|
-
# Flag that specifies the purpose of the authorization. Possible values: - **0**: Preauthorization - **1**: Final authorization To set the default for this field, contact CyberSource Customer Support. #### Barclays and Elavon The default for Barclays and Elavon is 1 (final authorization). To change the default for this field, contact CyberSource Customer Support. #### CyberSource through VisaNet When the value for this field is 0, it corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR0 - Position: 164 - Field: Additional Authorization Indicators When the value for this field is 1, it does not correspond to any data in the TC 33 capture file.
|
29
|
-
attr_accessor :auth_indicator
|
30
|
-
|
31
|
-
# Flag that indicates whether the transaction is enabled for partial authorization. When the request includes this field, this value overrides the information in your account. Possible values: - `true`: Enable the transaction for partial authorization. - `false`: Do not enable the transaction for partial authorization. #### PIN debit Required field for partial authorizations that use PIN debit purchase; otherwise, not used. #### Used by **Authorization** Optional field. #### CyberSource through VisaNet To set the default for this field, contact CyberSource Customer Support. The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR0 - Position: 164 - Field: Additional Authorization Indicators
|
32
|
-
attr_accessor :partial_auth_indicator
|
33
|
-
|
34
|
-
# Flag that indicates whether the transaction is an extended authorization.
|
35
|
-
attr_accessor :extend_auth_indicator
|
36
|
-
|
37
|
-
# Flag that indicates whether to return balance information. Possible values: - `true`: Return balance information. - `false`: Do not return balance information. #### Used by **Authorization** Required for a balance inquiry; otherwise, not used. #### PIN debit Required for a balance inquiry request of a PIN debit purchase; otherwise, not used.
|
38
|
-
attr_accessor :balance_inquiry
|
39
|
-
|
40
|
-
# Flag for a sale request that indicates whether to allow the capture service to run even when the authorization receives an AVS decline, as indicated by a reply flag value of DAVSNO. Possible values: - `true`: Ignore the results of AVS checking and run the capture service. - `false` (default): If the authorization receives an AVS decline, do not run the capture service. When the value of this field is `true`, the list in the `processingInformation.authorizationOptions.declineAvsFlags` field is ignored. #### Used by **Authorization** Optional field. String (3)
|
41
|
-
attr_accessor :ignore_avs_result
|
42
|
-
|
43
|
-
# Comma-separated list of AVS flags that cause the reply flag `DAVSNO` to be returned. **Important** To receive declines for the AVS code `N`, you must include the value `N` in the comma-separated list. ### AVS Codes for Cielo 3.0 and CyberSource Latin American Processing **Note** CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this section is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. |AVS Code|Description| |--- |--- | |D|Partial match: postal code and address match.| |E|Not supported: AVS is not supported for this card type. _or_ Invalid: the acquirer returned an unrecognized value for the AVS response.| |F|Partial match: postal code matches, but CPF and address do not match.*| |G|Not supported: AVS not supported or not verified.| |I|No match: AVS information is not available.| |K|Partial match: CPF matches, but postal code and address do not match.*| |L|Partial match: postal code and CPF match, but address does not match.*| |N|No match: postal code, CPF, and address do not match.*| |O|Partial match: CPF and address match, but postal code does not match.*| |R|Not supported: your implementation does not support AVS _or_ System unavailable.| |T|Partial match: address matches, but postal code and CPF do not match.*| |V|Match: postal code, CPF, and address match.*| |* CPF (Cadastro de Pessoas Fisicas) is required only for Redecard in Brazil.|| ### AVS Codes for All Other Processors **Note** The list of AVS codes for all other processors follows these descriptions of the processor-specific information for these codes. #### American Express Cards For American Express cards only, you can receive Visa and CyberSource AVS codes in addition to the American Express AVS codes. **Note** For CyberSource through VisaNet, the American Express AVS codes are converted to Visa AVS codes before they are returned to you. As a result, you will not receive American Express AVS codes for the American Express card type.<br/><br/> _American Express Card codes_: `F`, `H`, `K`, `L`, `O`, `T`, `V` #### Domestic and International Visa Cards The international and domestic alphabetic AVS codes are the Visa standard AVS codes. CyberSource maps the standard AVS return codes for other types of payment cards, including American Express cards, to the Visa standard AVS codes. AVS is considered either domestic or international, depending on the location of the bank that issued the customer's payment card: - When the bank is in the U.S., the AVS is domestic. - When the bank is outside the U.S., the AVS is international. You should be prepared to handle both domestic and international AVS result codes: - For international cards, you can receive domestic AVS codes in addition to the international AVS codes. - For domestic cards, you can receive international AVS codes in addition to the domestic AVS codes. _International Visa Codes_: `B`, `C`, `D`, `G`, `I`, `M`, `P` _Domestic Visa Codes_: `A`, `E`,`N`, `R`, `S`, `U`, `W`, `X`, `Y`, `Z` #### CyberSource Codes The numeric AVS codes are created by CyberSource and are not standard Visa codes. These AVS codes can be returned for any card type. _CyberSource Codes_: `1`, `2`, `3`, `4` ### Table of AVS Codes for All Other Processors |AVS Code|Description| |--- |--- | |A|Partial match: street address matches, but 5-digit and 9-digit postal codes do not match.| |B|Partial match: street address matches, but postal code is not verified. Returned only for Visa cards not issued in the U.S.| |C|No match: street address and postal code do not match. Returned only for Visa cards not issued in the U.S.| |D & M|Match: street address and postal code match. Returned only for Visa cards not issued in the U.S.| |E|Invalid: AVS data is invalid or AVS is not allowed for this card type.| |F|Partial match: card member's name does not match, but billing postal code matches.| |G|Not supported: issuing bank outside the U.S. does not support AVS.| |H|Partial match: card member's name does not match, but street address and postal code match. Returned only for the American Express card type.| |I|No match: address not verified. Returned only for Visa cards not issued in the U.S.| |K|Partial match: card member's name matches, but billing address and billing postal code do not match. Returned only for the American Express card type.| |L|Partial match: card member's name and billing postal code match, but billing address does not match. Returned only for the American Express card type.| |M|See the entry for D & M.| |N|No match: one of the following: street address and postal code do not match _or_ (American Express card type only) card member's name, street address, and postal code do not match.| |O|Partial match: card member's name and billing address match, but billing postal code does not match. Returned only for the American Express card type.| |P|Partial match: postal code matches, but street address not verified. Returned only for Visa cards not issued in the U.S.| |R|System unavailable.| |S|Not supported: issuing bank in the U.S. does not support AVS.| |T|Partial match: card member's name does not match, but street address matches. Returned only for the American Express card type.| |U|System unavailable: address information unavailable for one of these reasons: The U.S. bank does not support AVS outside the U.S. _or_ The AVS in a U.S. bank is not functioning properly.| |V|Match: card member's name, billing address, and billing postal code match. Returned only for the American Express card type.| |W|Partial match: street address does not match, but 9-digit postal code matches.| |X|Match: street address and 9-digit postal code match.| |Y|Match: street address and 5-digit postal code match.| |Z|Partial match: street address does not match, but 5-digit postal code matches.| |1|Not supported: one of the following: AVS is not supported for this processor or card type _or_ AVS is disabled for your CyberSource account. To enable AVS, contact CyberSource Customer Support.| |2|Unrecognized: the processor returned an unrecognized value for the AVS response.| |3|Match: address is confirmed. Returned only for PayPal Express Checkout.| |4|No match: address is not confirmed. Returned only for PayPal Express Checkout.| |5|No match: no AVS code was returned by the processor.|
|
44
|
-
attr_accessor :decline_avs_flags
|
45
|
-
|
46
|
-
# Flag for a sale request that indicates whether to allow the capture service to run even when the authorization receives a CVN decline, as indicated by an `processorInformation.cardVerification.resultCode` value of `D` or `N`. Possible values: - `true`: Ignore the results of CVN checking and run the capture service. - `false` (default): If the authorization receives a CVN decline, do not run the capture service. #### Used by **Authorization** Optional field.
|
47
|
-
attr_accessor :ignore_cv_result
|
48
|
-
|
49
|
-
attr_accessor :initiator
|
50
|
-
|
51
|
-
# Indicates payment for bill or payment towards existing contractual loan. Possible values: - `true`: Bill payment or loan payment. - `false` (default): Not a bill payment or loan payment. Optional request field.
|
52
|
-
attr_accessor :bill_payment
|
53
|
-
|
54
|
-
# Reason for the payment. Possible values: - 001: Utility payment - 002: Government services - 003: Mobile phone top-up - 004: Coupon payment - 005: Installment based repayment The value for this field corresponds to the following data in the TC 33A capture file (applicable to Brazil): - Record: CP07 TCR0 - Position: 48-50 - Field: Bill Payment Transaction Type Identifier The value for this field corresponds to the following data in the TC 33A capture file (applicable to Installment) based Repayment): - Record: CP01 TCR6 - Position: 154-156 - Field: Bill Payment Transaction Type Identifier This field is supported for 1. Bill payments in Brazil with Mastercard on CyberSource through VisaNet. 2. Installment based repayment transactions on Cybersource through VisaNet.
|
55
|
-
attr_accessor :bill_payment_type
|
56
|
-
|
57
|
-
# Flag that indicates the payment request is a redemption inquiry. Possible values: - `true` - `false`
|
58
|
-
attr_accessor :redemption_inquiry
|
59
|
-
|
60
|
-
# Type of transportation mode : Possible Values: - 00 = Unknown - 01 = Urban bus - 02 = Interurban bus - 03=Lighttrainmasstransit(Underground Metro LTR) - 04 = Train - 05 = Commuter train - 06 = Water-borne vehicle - 07 = Toll - 08 = Parking - 09 = Taxi - 10 = High-speed train - 11 = Rural bus - 12 = Express commuter train - 13 = Para transit - 14 = Self drive vehicle - 15 = Coach - 16 = Locomotive - 17 = Powered motor coach - 18 = Trailer - 19 = Regional train - 20 = Inter-city - 21 = Funicular train - 22 = Cable car
|
61
|
-
attr_accessor :transportation_mode
|
62
|
-
|
63
|
-
# Indicates if transaction is an aggregated auth Possible values: - **true** - **false**
|
64
|
-
attr_accessor :aggregated_auth_indicator
|
65
|
-
|
66
|
-
# Indicates if transaction is a debt recovery request Possible values: - **true** - **false**
|
67
|
-
attr_accessor :debt_recovery_indicator
|
68
|
-
|
69
|
-
# Flag that indicates whether the authorization request was delayed because connectivity was interrupted. Possible values: - `true` (Deferred authorization) - `false` (default: Not a deferred authorization)
|
70
|
-
attr_accessor :deferred_auth_indicator
|
71
|
-
|
72
|
-
# This API field enables the merchant to indicate that a given transaction is Cash Advance. Cash advance or Cash disbursement functionality allows a merchant to dispense cash at a point of sale. It provides the ability of a POS system to act like an ATM. These terminals are typically seen in bank branches where customers can use their card and withdraw cash or at merchant locations where ATMs are sparse. Possible values: - `true` (Cash advance is supported) - `false` (default: cash advance is not supported)
|
73
|
-
attr_accessor :cash_advance_indicator
|
74
|
-
|
75
|
-
# #### Visa Platform Connect Indicates split payment transaction. A split payment allows the use of two payment methods for a single transaction. Possible values: - `true` (split payment transaction is supported) - `false` (default: split payment transaction is not supported)
|
76
|
-
attr_accessor :split_payment_transaction
|
77
|
-
|
78
|
-
# This API field will indicate whether a card verification check is being performed during the transaction Possible values: - `true` - `false` (default value)
|
79
|
-
attr_accessor :card_verification_indicator
|
80
|
-
|
81
|
-
#
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
:'
|
88
|
-
:'
|
89
|
-
:'
|
90
|
-
:'
|
91
|
-
:'
|
92
|
-
:'
|
93
|
-
:'
|
94
|
-
:'
|
95
|
-
:'
|
96
|
-
:'
|
97
|
-
:'
|
98
|
-
:'
|
99
|
-
:'
|
100
|
-
:'
|
101
|
-
:'
|
102
|
-
:'
|
103
|
-
:'
|
104
|
-
:'
|
105
|
-
:'
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
:'
|
117
|
-
:'
|
118
|
-
:'
|
119
|
-
:'
|
120
|
-
:'
|
121
|
-
:'
|
122
|
-
:'
|
123
|
-
:'
|
124
|
-
:'
|
125
|
-
:'
|
126
|
-
:'
|
127
|
-
:'
|
128
|
-
:'
|
129
|
-
:'
|
130
|
-
:'
|
131
|
-
:'
|
132
|
-
:'
|
133
|
-
:'
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
:'
|
146
|
-
:'
|
147
|
-
:'
|
148
|
-
:'
|
149
|
-
:'
|
150
|
-
:'
|
151
|
-
:'
|
152
|
-
:'
|
153
|
-
:'
|
154
|
-
:'
|
155
|
-
:'
|
156
|
-
:'
|
157
|
-
:'
|
158
|
-
:'
|
159
|
-
:'
|
160
|
-
:'
|
161
|
-
:'
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
self.
|
209
|
-
end
|
210
|
-
|
211
|
-
if attributes.has_key?(:'
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
end
|
216
|
-
|
217
|
-
if attributes.has_key?(:'
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
end
|
222
|
-
|
223
|
-
if attributes.has_key?(:'
|
224
|
-
self.
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
#
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
value
|
397
|
-
when
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
#
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
#
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
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 Ptsv2paymentsProcessingInformationAuthorizationOptions
|
16
|
+
# Authorization type. Possible values: - `AUTOCAPTURE`: automatic capture. - `STANDARDCAPTURE`: standard capture. - `VERBAL`: forced capture. Include it in the payment request for a forced capture. Include it in the capture request for a verbal payment. #### Asia, Middle East, and Africa Gateway; Cielo; Comercio Latino; and CyberSource Latin American Processing Set this field to `AUTOCAPTURE` and include it in a bundled request to indicate that you are requesting an automatic capture. If your account is configured to enable automatic captures, set this field to `STANDARDCAPTURE` and include it in a standard authorization or bundled request to indicate that you are overriding an automatic capture. #### Forced Capture Set this field to `VERBAL` and include it in the authorization request to indicate that you are performing a forced capture; therefore, you receive the authorization code outside the CyberSource system. #### Verbal Authorization Set this field to `VERBAL` and include it in the capture request to indicate that the request is for a verbal authorization.
|
17
|
+
attr_accessor :auth_type
|
18
|
+
|
19
|
+
# #### Visa Platform Connect The field contains the PAN translation indicator for American Express Contactless Transaction. Valid value is 1- Expresspay Translation, PAN request 2- Expresspay Translation, PAN and Expiry date request
|
20
|
+
attr_accessor :pan_return_indicator
|
21
|
+
|
22
|
+
# Authorization code. #### Forced Capture Use this field to send the authorization code you received from a payment that you authorized outside the CyberSource system. #### PIN debit Authorization code that is returned by the processor. Returned by PIN debit purchase. #### Verbal Authorization Use this field in CAPTURE API to send the verbally received authorization code.
|
23
|
+
attr_accessor :verbal_auth_code
|
24
|
+
|
25
|
+
# Transaction ID (TID). #### FDMS South This field is required for verbal authorizations and forced captures with the American Express card type to comply with the CAPN requirements: - Forced capture: Obtain the value for this field from the authorization response. - Verbal authorization: You cannot obtain a value for this field so CyberSource uses the default value of `000000000000000` (15 zeros).
|
26
|
+
attr_accessor :verbal_auth_transaction_id
|
27
|
+
|
28
|
+
# Flag that specifies the purpose of the authorization. Possible values: - **0**: Preauthorization - **1**: Final authorization To set the default for this field, contact CyberSource Customer Support. #### Barclays and Elavon The default for Barclays and Elavon is 1 (final authorization). To change the default for this field, contact CyberSource Customer Support. #### CyberSource through VisaNet When the value for this field is 0, it corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR0 - Position: 164 - Field: Additional Authorization Indicators When the value for this field is 1, it does not correspond to any data in the TC 33 capture file.
|
29
|
+
attr_accessor :auth_indicator
|
30
|
+
|
31
|
+
# Flag that indicates whether the transaction is enabled for partial authorization. When the request includes this field, this value overrides the information in your account. Possible values: - `true`: Enable the transaction for partial authorization. - `false`: Do not enable the transaction for partial authorization. #### PIN debit Required field for partial authorizations that use PIN debit purchase; otherwise, not used. #### Used by **Authorization** Optional field. #### CyberSource through VisaNet To set the default for this field, contact CyberSource Customer Support. The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR0 - Position: 164 - Field: Additional Authorization Indicators
|
32
|
+
attr_accessor :partial_auth_indicator
|
33
|
+
|
34
|
+
# Flag that indicates whether the transaction is an extended authorization.
|
35
|
+
attr_accessor :extend_auth_indicator
|
36
|
+
|
37
|
+
# Flag that indicates whether to return balance information. Possible values: - `true`: Return balance information. - `false`: Do not return balance information. #### Used by **Authorization** Required for a balance inquiry; otherwise, not used. #### PIN debit Required for a balance inquiry request of a PIN debit purchase; otherwise, not used.
|
38
|
+
attr_accessor :balance_inquiry
|
39
|
+
|
40
|
+
# Flag for a sale request that indicates whether to allow the capture service to run even when the authorization receives an AVS decline, as indicated by a reply flag value of DAVSNO. Possible values: - `true`: Ignore the results of AVS checking and run the capture service. - `false` (default): If the authorization receives an AVS decline, do not run the capture service. When the value of this field is `true`, the list in the `processingInformation.authorizationOptions.declineAvsFlags` field is ignored. #### Used by **Authorization** Optional field. String (3)
|
41
|
+
attr_accessor :ignore_avs_result
|
42
|
+
|
43
|
+
# Comma-separated list of AVS flags that cause the reply flag `DAVSNO` to be returned. **Important** To receive declines for the AVS code `N`, you must include the value `N` in the comma-separated list. ### AVS Codes for Cielo 3.0 and CyberSource Latin American Processing **Note** CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this section is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. |AVS Code|Description| |--- |--- | |D|Partial match: postal code and address match.| |E|Not supported: AVS is not supported for this card type. _or_ Invalid: the acquirer returned an unrecognized value for the AVS response.| |F|Partial match: postal code matches, but CPF and address do not match.*| |G|Not supported: AVS not supported or not verified.| |I|No match: AVS information is not available.| |K|Partial match: CPF matches, but postal code and address do not match.*| |L|Partial match: postal code and CPF match, but address does not match.*| |N|No match: postal code, CPF, and address do not match.*| |O|Partial match: CPF and address match, but postal code does not match.*| |R|Not supported: your implementation does not support AVS _or_ System unavailable.| |T|Partial match: address matches, but postal code and CPF do not match.*| |V|Match: postal code, CPF, and address match.*| |* CPF (Cadastro de Pessoas Fisicas) is required only for Redecard in Brazil.|| ### AVS Codes for All Other Processors **Note** The list of AVS codes for all other processors follows these descriptions of the processor-specific information for these codes. #### American Express Cards For American Express cards only, you can receive Visa and CyberSource AVS codes in addition to the American Express AVS codes. **Note** For CyberSource through VisaNet, the American Express AVS codes are converted to Visa AVS codes before they are returned to you. As a result, you will not receive American Express AVS codes for the American Express card type.<br/><br/> _American Express Card codes_: `F`, `H`, `K`, `L`, `O`, `T`, `V` #### Domestic and International Visa Cards The international and domestic alphabetic AVS codes are the Visa standard AVS codes. CyberSource maps the standard AVS return codes for other types of payment cards, including American Express cards, to the Visa standard AVS codes. AVS is considered either domestic or international, depending on the location of the bank that issued the customer's payment card: - When the bank is in the U.S., the AVS is domestic. - When the bank is outside the U.S., the AVS is international. You should be prepared to handle both domestic and international AVS result codes: - For international cards, you can receive domestic AVS codes in addition to the international AVS codes. - For domestic cards, you can receive international AVS codes in addition to the domestic AVS codes. _International Visa Codes_: `B`, `C`, `D`, `G`, `I`, `M`, `P` _Domestic Visa Codes_: `A`, `E`,`N`, `R`, `S`, `U`, `W`, `X`, `Y`, `Z` #### CyberSource Codes The numeric AVS codes are created by CyberSource and are not standard Visa codes. These AVS codes can be returned for any card type. _CyberSource Codes_: `1`, `2`, `3`, `4` ### Table of AVS Codes for All Other Processors |AVS Code|Description| |--- |--- | |A|Partial match: street address matches, but 5-digit and 9-digit postal codes do not match.| |B|Partial match: street address matches, but postal code is not verified. Returned only for Visa cards not issued in the U.S.| |C|No match: street address and postal code do not match. Returned only for Visa cards not issued in the U.S.| |D & M|Match: street address and postal code match. Returned only for Visa cards not issued in the U.S.| |E|Invalid: AVS data is invalid or AVS is not allowed for this card type.| |F|Partial match: card member's name does not match, but billing postal code matches.| |G|Not supported: issuing bank outside the U.S. does not support AVS.| |H|Partial match: card member's name does not match, but street address and postal code match. Returned only for the American Express card type.| |I|No match: address not verified. Returned only for Visa cards not issued in the U.S.| |K|Partial match: card member's name matches, but billing address and billing postal code do not match. Returned only for the American Express card type.| |L|Partial match: card member's name and billing postal code match, but billing address does not match. Returned only for the American Express card type.| |M|See the entry for D & M.| |N|No match: one of the following: street address and postal code do not match _or_ (American Express card type only) card member's name, street address, and postal code do not match.| |O|Partial match: card member's name and billing address match, but billing postal code does not match. Returned only for the American Express card type.| |P|Partial match: postal code matches, but street address not verified. Returned only for Visa cards not issued in the U.S.| |R|System unavailable.| |S|Not supported: issuing bank in the U.S. does not support AVS.| |T|Partial match: card member's name does not match, but street address matches. Returned only for the American Express card type.| |U|System unavailable: address information unavailable for one of these reasons: The U.S. bank does not support AVS outside the U.S. _or_ The AVS in a U.S. bank is not functioning properly.| |V|Match: card member's name, billing address, and billing postal code match. Returned only for the American Express card type.| |W|Partial match: street address does not match, but 9-digit postal code matches.| |X|Match: street address and 9-digit postal code match.| |Y|Match: street address and 5-digit postal code match.| |Z|Partial match: street address does not match, but 5-digit postal code matches.| |1|Not supported: one of the following: AVS is not supported for this processor or card type _or_ AVS is disabled for your CyberSource account. To enable AVS, contact CyberSource Customer Support.| |2|Unrecognized: the processor returned an unrecognized value for the AVS response.| |3|Match: address is confirmed. Returned only for PayPal Express Checkout.| |4|No match: address is not confirmed. Returned only for PayPal Express Checkout.| |5|No match: no AVS code was returned by the processor.|
|
44
|
+
attr_accessor :decline_avs_flags
|
45
|
+
|
46
|
+
# Flag for a sale request that indicates whether to allow the capture service to run even when the authorization receives a CVN decline, as indicated by an `processorInformation.cardVerification.resultCode` value of `D` or `N`. Possible values: - `true`: Ignore the results of CVN checking and run the capture service. - `false` (default): If the authorization receives a CVN decline, do not run the capture service. #### Used by **Authorization** Optional field.
|
47
|
+
attr_accessor :ignore_cv_result
|
48
|
+
|
49
|
+
attr_accessor :initiator
|
50
|
+
|
51
|
+
# Indicates payment for bill or payment towards existing contractual loan. Possible values: - `true`: Bill payment or loan payment. - `false` (default): Not a bill payment or loan payment. Optional request field.
|
52
|
+
attr_accessor :bill_payment
|
53
|
+
|
54
|
+
# Reason for the payment. Possible values: - 001: Utility payment - 002: Government services - 003: Mobile phone top-up - 004: Coupon payment - 005: Installment based repayment The value for this field corresponds to the following data in the TC 33A capture file (applicable to Brazil): - Record: CP07 TCR0 - Position: 48-50 - Field: Bill Payment Transaction Type Identifier The value for this field corresponds to the following data in the TC 33A capture file (applicable to Installment) based Repayment): - Record: CP01 TCR6 - Position: 154-156 - Field: Bill Payment Transaction Type Identifier This field is supported for 1. Bill payments in Brazil with Mastercard on CyberSource through VisaNet. 2. Installment based repayment transactions on Cybersource through VisaNet.
|
55
|
+
attr_accessor :bill_payment_type
|
56
|
+
|
57
|
+
# Flag that indicates the payment request is a redemption inquiry. Possible values: - `true` - `false`
|
58
|
+
attr_accessor :redemption_inquiry
|
59
|
+
|
60
|
+
# Type of transportation mode : Possible Values: - 00 = Unknown - 01 = Urban bus - 02 = Interurban bus - 03=Lighttrainmasstransit(Underground Metro LTR) - 04 = Train - 05 = Commuter train - 06 = Water-borne vehicle - 07 = Toll - 08 = Parking - 09 = Taxi - 10 = High-speed train - 11 = Rural bus - 12 = Express commuter train - 13 = Para transit - 14 = Self drive vehicle - 15 = Coach - 16 = Locomotive - 17 = Powered motor coach - 18 = Trailer - 19 = Regional train - 20 = Inter-city - 21 = Funicular train - 22 = Cable car
|
61
|
+
attr_accessor :transportation_mode
|
62
|
+
|
63
|
+
# Indicates if transaction is an aggregated auth Possible values: - **true** - **false**
|
64
|
+
attr_accessor :aggregated_auth_indicator
|
65
|
+
|
66
|
+
# Indicates if transaction is a debt recovery request Possible values: - **true** - **false**
|
67
|
+
attr_accessor :debt_recovery_indicator
|
68
|
+
|
69
|
+
# Flag that indicates whether the authorization request was delayed because connectivity was interrupted. Possible values: - `true` (Deferred authorization) - `false` (default: Not a deferred authorization)
|
70
|
+
attr_accessor :deferred_auth_indicator
|
71
|
+
|
72
|
+
# This API field enables the merchant to indicate that a given transaction is Cash Advance. Cash advance or Cash disbursement functionality allows a merchant to dispense cash at a point of sale. It provides the ability of a POS system to act like an ATM. These terminals are typically seen in bank branches where customers can use their card and withdraw cash or at merchant locations where ATMs are sparse. Possible values: - `true` (Cash advance is supported) - `false` (default: cash advance is not supported)
|
73
|
+
attr_accessor :cash_advance_indicator
|
74
|
+
|
75
|
+
# #### Visa Platform Connect Indicates split payment transaction. A split payment allows the use of two payment methods for a single transaction. Possible values: - `true` (split payment transaction is supported) - `false` (default: split payment transaction is not supported)
|
76
|
+
attr_accessor :split_payment_transaction
|
77
|
+
|
78
|
+
# This API field will indicate whether a card verification check is being performed during the transaction Possible values: - `true` - `false` (default value)
|
79
|
+
attr_accessor :card_verification_indicator
|
80
|
+
|
81
|
+
# Indicates whether the transaction is an Account Funding Transaction (AFT). This field is mandatory for Account Funding Transactions (AFT). Possible values: - `true` (This is an AFT transaction) - `false` (default value) (This is not an AFT transaction)
|
82
|
+
attr_accessor :aft_indicator
|
83
|
+
|
84
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
85
|
+
def self.attribute_map
|
86
|
+
{
|
87
|
+
:'auth_type' => :'authType',
|
88
|
+
:'pan_return_indicator' => :'panReturnIndicator',
|
89
|
+
:'verbal_auth_code' => :'verbalAuthCode',
|
90
|
+
:'verbal_auth_transaction_id' => :'verbalAuthTransactionId',
|
91
|
+
:'auth_indicator' => :'authIndicator',
|
92
|
+
:'partial_auth_indicator' => :'partialAuthIndicator',
|
93
|
+
:'extend_auth_indicator' => :'extendAuthIndicator',
|
94
|
+
:'balance_inquiry' => :'balanceInquiry',
|
95
|
+
:'ignore_avs_result' => :'ignoreAvsResult',
|
96
|
+
:'decline_avs_flags' => :'declineAvsFlags',
|
97
|
+
:'ignore_cv_result' => :'ignoreCvResult',
|
98
|
+
:'initiator' => :'initiator',
|
99
|
+
:'bill_payment' => :'billPayment',
|
100
|
+
:'bill_payment_type' => :'billPaymentType',
|
101
|
+
:'redemption_inquiry' => :'redemptionInquiry',
|
102
|
+
:'transportation_mode' => :'transportationMode',
|
103
|
+
:'aggregated_auth_indicator' => :'aggregatedAuthIndicator',
|
104
|
+
:'debt_recovery_indicator' => :'debtRecoveryIndicator',
|
105
|
+
:'deferred_auth_indicator' => :'deferredAuthIndicator',
|
106
|
+
:'cash_advance_indicator' => :'cashAdvanceIndicator',
|
107
|
+
:'split_payment_transaction' => :'splitPaymentTransaction',
|
108
|
+
:'card_verification_indicator' => :'cardVerificationIndicator',
|
109
|
+
:'aft_indicator' => :'aftIndicator'
|
110
|
+
}
|
111
|
+
end
|
112
|
+
|
113
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
114
|
+
def self.json_map
|
115
|
+
{
|
116
|
+
:'auth_type' => :'auth_type',
|
117
|
+
:'pan_return_indicator' => :'pan_return_indicator',
|
118
|
+
:'verbal_auth_code' => :'verbal_auth_code',
|
119
|
+
:'verbal_auth_transaction_id' => :'verbal_auth_transaction_id',
|
120
|
+
:'auth_indicator' => :'auth_indicator',
|
121
|
+
:'partial_auth_indicator' => :'partial_auth_indicator',
|
122
|
+
:'extend_auth_indicator' => :'extend_auth_indicator',
|
123
|
+
:'balance_inquiry' => :'balance_inquiry',
|
124
|
+
:'ignore_avs_result' => :'ignore_avs_result',
|
125
|
+
:'decline_avs_flags' => :'decline_avs_flags',
|
126
|
+
:'ignore_cv_result' => :'ignore_cv_result',
|
127
|
+
:'initiator' => :'initiator',
|
128
|
+
:'bill_payment' => :'bill_payment',
|
129
|
+
:'bill_payment_type' => :'bill_payment_type',
|
130
|
+
:'redemption_inquiry' => :'redemption_inquiry',
|
131
|
+
:'transportation_mode' => :'transportation_mode',
|
132
|
+
:'aggregated_auth_indicator' => :'aggregated_auth_indicator',
|
133
|
+
:'debt_recovery_indicator' => :'debt_recovery_indicator',
|
134
|
+
:'deferred_auth_indicator' => :'deferred_auth_indicator',
|
135
|
+
:'cash_advance_indicator' => :'cash_advance_indicator',
|
136
|
+
:'split_payment_transaction' => :'split_payment_transaction',
|
137
|
+
:'card_verification_indicator' => :'card_verification_indicator',
|
138
|
+
:'aft_indicator' => :'aft_indicator'
|
139
|
+
}
|
140
|
+
end
|
141
|
+
|
142
|
+
# Attribute type mapping.
|
143
|
+
def self.swagger_types
|
144
|
+
{
|
145
|
+
:'auth_type' => :'String',
|
146
|
+
:'pan_return_indicator' => :'String',
|
147
|
+
:'verbal_auth_code' => :'String',
|
148
|
+
:'verbal_auth_transaction_id' => :'String',
|
149
|
+
:'auth_indicator' => :'String',
|
150
|
+
:'partial_auth_indicator' => :'BOOLEAN',
|
151
|
+
:'extend_auth_indicator' => :'String',
|
152
|
+
:'balance_inquiry' => :'BOOLEAN',
|
153
|
+
:'ignore_avs_result' => :'BOOLEAN',
|
154
|
+
:'decline_avs_flags' => :'Array<String>',
|
155
|
+
:'ignore_cv_result' => :'BOOLEAN',
|
156
|
+
:'initiator' => :'Ptsv2paymentsProcessingInformationAuthorizationOptionsInitiator',
|
157
|
+
:'bill_payment' => :'BOOLEAN',
|
158
|
+
:'bill_payment_type' => :'String',
|
159
|
+
:'redemption_inquiry' => :'BOOLEAN',
|
160
|
+
:'transportation_mode' => :'String',
|
161
|
+
:'aggregated_auth_indicator' => :'String',
|
162
|
+
:'debt_recovery_indicator' => :'String',
|
163
|
+
:'deferred_auth_indicator' => :'BOOLEAN',
|
164
|
+
:'cash_advance_indicator' => :'BOOLEAN',
|
165
|
+
:'split_payment_transaction' => :'BOOLEAN',
|
166
|
+
:'card_verification_indicator' => :'BOOLEAN',
|
167
|
+
:'aft_indicator' => :'BOOLEAN'
|
168
|
+
}
|
169
|
+
end
|
170
|
+
|
171
|
+
# Initializes the object
|
172
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
173
|
+
def initialize(attributes = {})
|
174
|
+
return unless attributes.is_a?(Hash)
|
175
|
+
|
176
|
+
# convert string to symbol for hash key
|
177
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
178
|
+
|
179
|
+
if attributes.has_key?(:'authType')
|
180
|
+
self.auth_type = attributes[:'authType']
|
181
|
+
end
|
182
|
+
|
183
|
+
if attributes.has_key?(:'panReturnIndicator')
|
184
|
+
self.pan_return_indicator = attributes[:'panReturnIndicator']
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes.has_key?(:'verbalAuthCode')
|
188
|
+
self.verbal_auth_code = attributes[:'verbalAuthCode']
|
189
|
+
end
|
190
|
+
|
191
|
+
if attributes.has_key?(:'verbalAuthTransactionId')
|
192
|
+
self.verbal_auth_transaction_id = attributes[:'verbalAuthTransactionId']
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes.has_key?(:'authIndicator')
|
196
|
+
self.auth_indicator = attributes[:'authIndicator']
|
197
|
+
end
|
198
|
+
|
199
|
+
if attributes.has_key?(:'partialAuthIndicator')
|
200
|
+
self.partial_auth_indicator = attributes[:'partialAuthIndicator']
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.has_key?(:'extendAuthIndicator')
|
204
|
+
self.extend_auth_indicator = attributes[:'extendAuthIndicator']
|
205
|
+
end
|
206
|
+
|
207
|
+
if attributes.has_key?(:'balanceInquiry')
|
208
|
+
self.balance_inquiry = attributes[:'balanceInquiry']
|
209
|
+
end
|
210
|
+
|
211
|
+
if attributes.has_key?(:'ignoreAvsResult')
|
212
|
+
self.ignore_avs_result = attributes[:'ignoreAvsResult']
|
213
|
+
else
|
214
|
+
self.ignore_avs_result = false
|
215
|
+
end
|
216
|
+
|
217
|
+
if attributes.has_key?(:'declineAvsFlags')
|
218
|
+
if (value = attributes[:'declineAvsFlags']).is_a?(Array)
|
219
|
+
self.decline_avs_flags = value
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
if attributes.has_key?(:'ignoreCvResult')
|
224
|
+
self.ignore_cv_result = attributes[:'ignoreCvResult']
|
225
|
+
else
|
226
|
+
self.ignore_cv_result = false
|
227
|
+
end
|
228
|
+
|
229
|
+
if attributes.has_key?(:'initiator')
|
230
|
+
self.initiator = attributes[:'initiator']
|
231
|
+
end
|
232
|
+
|
233
|
+
if attributes.has_key?(:'billPayment')
|
234
|
+
self.bill_payment = attributes[:'billPayment']
|
235
|
+
end
|
236
|
+
|
237
|
+
if attributes.has_key?(:'billPaymentType')
|
238
|
+
self.bill_payment_type = attributes[:'billPaymentType']
|
239
|
+
end
|
240
|
+
|
241
|
+
if attributes.has_key?(:'redemptionInquiry')
|
242
|
+
self.redemption_inquiry = attributes[:'redemptionInquiry']
|
243
|
+
end
|
244
|
+
|
245
|
+
if attributes.has_key?(:'transportationMode')
|
246
|
+
self.transportation_mode = attributes[:'transportationMode']
|
247
|
+
end
|
248
|
+
|
249
|
+
if attributes.has_key?(:'aggregatedAuthIndicator')
|
250
|
+
self.aggregated_auth_indicator = attributes[:'aggregatedAuthIndicator']
|
251
|
+
end
|
252
|
+
|
253
|
+
if attributes.has_key?(:'debtRecoveryIndicator')
|
254
|
+
self.debt_recovery_indicator = attributes[:'debtRecoveryIndicator']
|
255
|
+
end
|
256
|
+
|
257
|
+
if attributes.has_key?(:'deferredAuthIndicator')
|
258
|
+
self.deferred_auth_indicator = attributes[:'deferredAuthIndicator']
|
259
|
+
end
|
260
|
+
|
261
|
+
if attributes.has_key?(:'cashAdvanceIndicator')
|
262
|
+
self.cash_advance_indicator = attributes[:'cashAdvanceIndicator']
|
263
|
+
end
|
264
|
+
|
265
|
+
if attributes.has_key?(:'splitPaymentTransaction')
|
266
|
+
self.split_payment_transaction = attributes[:'splitPaymentTransaction']
|
267
|
+
end
|
268
|
+
|
269
|
+
if attributes.has_key?(:'cardVerificationIndicator')
|
270
|
+
self.card_verification_indicator = attributes[:'cardVerificationIndicator']
|
271
|
+
end
|
272
|
+
|
273
|
+
if attributes.has_key?(:'aftIndicator')
|
274
|
+
self.aft_indicator = attributes[:'aftIndicator']
|
275
|
+
end
|
276
|
+
end
|
277
|
+
|
278
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
279
|
+
# @return Array for valid properties with the reasons
|
280
|
+
def list_invalid_properties
|
281
|
+
invalid_properties = Array.new
|
282
|
+
invalid_properties
|
283
|
+
end
|
284
|
+
|
285
|
+
# Check to see if the all the properties in the model are valid
|
286
|
+
# @return true if the model is valid
|
287
|
+
def valid?
|
288
|
+
true
|
289
|
+
end
|
290
|
+
|
291
|
+
# Custom attribute writer method with validation
|
292
|
+
# @param [Object] auth_type Value to be assigned
|
293
|
+
def auth_type=(auth_type)
|
294
|
+
@auth_type = auth_type
|
295
|
+
end
|
296
|
+
|
297
|
+
# Custom attribute writer method with validation
|
298
|
+
# @param [Object] pan_return_indicator Value to be assigned
|
299
|
+
def pan_return_indicator=(pan_return_indicator)
|
300
|
+
@pan_return_indicator = pan_return_indicator
|
301
|
+
end
|
302
|
+
|
303
|
+
# Custom attribute writer method with validation
|
304
|
+
# @param [Object] verbal_auth_code Value to be assigned
|
305
|
+
def verbal_auth_code=(verbal_auth_code)
|
306
|
+
@verbal_auth_code = verbal_auth_code
|
307
|
+
end
|
308
|
+
|
309
|
+
# Custom attribute writer method with validation
|
310
|
+
# @param [Object] verbal_auth_transaction_id Value to be assigned
|
311
|
+
def verbal_auth_transaction_id=(verbal_auth_transaction_id)
|
312
|
+
@verbal_auth_transaction_id = verbal_auth_transaction_id
|
313
|
+
end
|
314
|
+
|
315
|
+
# Custom attribute writer method with validation
|
316
|
+
# @param [Object] auth_indicator Value to be assigned
|
317
|
+
def auth_indicator=(auth_indicator)
|
318
|
+
@auth_indicator = auth_indicator
|
319
|
+
end
|
320
|
+
|
321
|
+
# Checks equality by comparing each attribute.
|
322
|
+
# @param [Object] Object to be compared
|
323
|
+
def ==(o)
|
324
|
+
return true if self.equal?(o)
|
325
|
+
self.class == o.class &&
|
326
|
+
auth_type == o.auth_type &&
|
327
|
+
pan_return_indicator == o.pan_return_indicator &&
|
328
|
+
verbal_auth_code == o.verbal_auth_code &&
|
329
|
+
verbal_auth_transaction_id == o.verbal_auth_transaction_id &&
|
330
|
+
auth_indicator == o.auth_indicator &&
|
331
|
+
partial_auth_indicator == o.partial_auth_indicator &&
|
332
|
+
extend_auth_indicator == o.extend_auth_indicator &&
|
333
|
+
balance_inquiry == o.balance_inquiry &&
|
334
|
+
ignore_avs_result == o.ignore_avs_result &&
|
335
|
+
decline_avs_flags == o.decline_avs_flags &&
|
336
|
+
ignore_cv_result == o.ignore_cv_result &&
|
337
|
+
initiator == o.initiator &&
|
338
|
+
bill_payment == o.bill_payment &&
|
339
|
+
bill_payment_type == o.bill_payment_type &&
|
340
|
+
redemption_inquiry == o.redemption_inquiry &&
|
341
|
+
transportation_mode == o.transportation_mode &&
|
342
|
+
aggregated_auth_indicator == o.aggregated_auth_indicator &&
|
343
|
+
debt_recovery_indicator == o.debt_recovery_indicator &&
|
344
|
+
deferred_auth_indicator == o.deferred_auth_indicator &&
|
345
|
+
cash_advance_indicator == o.cash_advance_indicator &&
|
346
|
+
split_payment_transaction == o.split_payment_transaction &&
|
347
|
+
card_verification_indicator == o.card_verification_indicator &&
|
348
|
+
aft_indicator == o.aft_indicator
|
349
|
+
end
|
350
|
+
|
351
|
+
# @see the `==` method
|
352
|
+
# @param [Object] Object to be compared
|
353
|
+
def eql?(o)
|
354
|
+
self == o
|
355
|
+
end
|
356
|
+
|
357
|
+
# Calculates hash code according to all attributes.
|
358
|
+
# @return [Fixnum] Hash code
|
359
|
+
def hash
|
360
|
+
[auth_type, pan_return_indicator, verbal_auth_code, verbal_auth_transaction_id, auth_indicator, partial_auth_indicator, extend_auth_indicator, balance_inquiry, ignore_avs_result, decline_avs_flags, ignore_cv_result, initiator, bill_payment, bill_payment_type, redemption_inquiry, transportation_mode, aggregated_auth_indicator, debt_recovery_indicator, deferred_auth_indicator, cash_advance_indicator, split_payment_transaction, card_verification_indicator, aft_indicator].hash
|
361
|
+
end
|
362
|
+
|
363
|
+
# Builds the object from hash
|
364
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
365
|
+
# @return [Object] Returns the model itself
|
366
|
+
def build_from_hash(attributes)
|
367
|
+
return nil unless attributes.is_a?(Hash)
|
368
|
+
self.class.swagger_types.each_pair do |key, type|
|
369
|
+
if type =~ /\AArray<(.*)>/i
|
370
|
+
# check to ensure the input is an array given that the the attribute
|
371
|
+
# is documented as an array but the input is not
|
372
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
373
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
374
|
+
end
|
375
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
376
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
377
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
378
|
+
end
|
379
|
+
|
380
|
+
self
|
381
|
+
end
|
382
|
+
|
383
|
+
# Deserializes the data based on type
|
384
|
+
# @param string type Data type
|
385
|
+
# @param string value Value to be deserialized
|
386
|
+
# @return [Object] Deserialized data
|
387
|
+
def _deserialize(type, value)
|
388
|
+
case type.to_sym
|
389
|
+
when :DateTime
|
390
|
+
DateTime.parse(value)
|
391
|
+
when :Date
|
392
|
+
Date.parse(value)
|
393
|
+
when :String
|
394
|
+
value.to_s
|
395
|
+
when :Integer
|
396
|
+
value.to_i
|
397
|
+
when :Float
|
398
|
+
value.to_f
|
399
|
+
when :BOOLEAN
|
400
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
401
|
+
true
|
402
|
+
else
|
403
|
+
false
|
404
|
+
end
|
405
|
+
when :Object
|
406
|
+
# generic object (usually a Hash), return directly
|
407
|
+
value
|
408
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
409
|
+
inner_type = Regexp.last_match[:inner_type]
|
410
|
+
value.map { |v| _deserialize(inner_type, v) }
|
411
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
412
|
+
k_type = Regexp.last_match[:k_type]
|
413
|
+
v_type = Regexp.last_match[:v_type]
|
414
|
+
{}.tap do |hash|
|
415
|
+
value.each do |k, v|
|
416
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
417
|
+
end
|
418
|
+
end
|
419
|
+
else # model
|
420
|
+
temp_model = CyberSource.const_get(type).new
|
421
|
+
temp_model.build_from_hash(value)
|
422
|
+
end
|
423
|
+
end
|
424
|
+
|
425
|
+
# Returns the string representation of the object
|
426
|
+
# @return [String] String presentation of the object
|
427
|
+
def to_s
|
428
|
+
to_hash.to_s
|
429
|
+
end
|
430
|
+
|
431
|
+
# to_body is an alias to to_hash (backward compatibility)
|
432
|
+
# @return [Hash] Returns the object in the form of hash
|
433
|
+
def to_body
|
434
|
+
to_hash
|
435
|
+
end
|
436
|
+
|
437
|
+
# Returns the object in the form of hash
|
438
|
+
# @return [Hash] Returns the object in the form of hash
|
439
|
+
def to_hash
|
440
|
+
hash = {}
|
441
|
+
self.class.attribute_map.each_pair do |attr, param|
|
442
|
+
value = self.send(attr)
|
443
|
+
next if value.nil?
|
444
|
+
hash[param] = _to_hash(value)
|
445
|
+
end
|
446
|
+
hash
|
447
|
+
end
|
448
|
+
|
449
|
+
# Outputs non-array value in the form of hash
|
450
|
+
# For object, use to_hash. Otherwise, just return the value
|
451
|
+
# @param [Object] value Any valid value
|
452
|
+
# @return [Hash] Returns the value in the form of hash
|
453
|
+
def _to_hash(value)
|
454
|
+
if value.is_a?(Array)
|
455
|
+
value.compact.map { |v| _to_hash(v) }
|
456
|
+
elsif value.is_a?(Hash)
|
457
|
+
{}.tap do |hash|
|
458
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
459
|
+
end
|
460
|
+
elsif value.respond_to? :to_hash
|
461
|
+
value.to_hash
|
462
|
+
else
|
463
|
+
value
|
464
|
+
end
|
465
|
+
end
|
466
|
+
end
|
467
|
+
end
|