cybersource_rest_client 0.0.72 → 0.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client/api/batches_api.rb +9 -9
- data/lib/cybersource_rest_client/api/device_de_association_v3_api.rb +96 -0
- data/lib/cybersource_rest_client/api/device_search_api.rb +96 -0
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +7 -2
- data/lib/cybersource_rest_client/models/commerce_solutions_products_account_updater.rb +1 -1
- data/lib/cybersource_rest_client/models/commerce_solutions_products_bin_lookup.rb +1 -1
- data/lib/cybersource_rest_client/models/commerce_solutions_products_token_management.rb +1 -1
- data/lib/cybersource_rest_client/models/create_invoice_request.rb +239 -239
- data/lib/cybersource_rest_client/models/create_payment_link_request.rb +234 -234
- data/lib/cybersource_rest_client/models/create_subscription_request_1.rb +229 -229
- data/lib/cybersource_rest_client/models/create_webhook.rb +267 -267
- data/lib/cybersource_rest_client/models/device_de_associate_v3_request.rb +222 -0
- data/lib/cybersource_rest_client/models/dmsv3devicesdeassociate_devices.rb +209 -0
- data/lib/cybersource_rest_client/models/generate_capture_context_request.rb +240 -240
- data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +303 -303
- data/lib/cybersource_rest_client/models/get_subscription_response_1.rb +219 -219
- data/lib/cybersource_rest_client/models/get_subscription_response_1__links.rb +199 -199
- data/lib/cybersource_rest_client/models/get_subscription_response_1_buyer_information.rb +214 -214
- data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument.rb +237 -237
- data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument_bank_account.rb +224 -224
- data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument_buyer_information.rb +236 -236
- data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument_card.rb +242 -242
- data/lib/cybersource_rest_client/models/get_subscription_response_1_shipping_address.rb +207 -207
- data/lib/cybersource_rest_client/models/inline_response_200.rb +226 -226
- data/lib/cybersource_rest_client/models/inline_response_200_1.rb +228 -228
- data/lib/cybersource_rest_client/models/inline_response_200_1__embedded.rb +200 -200
- data/lib/cybersource_rest_client/models/inline_response_200_1__embedded_capture.rb +201 -201
- data/lib/cybersource_rest_client/models/inline_response_200_1__embedded_capture__links.rb +190 -190
- data/lib/cybersource_rest_client/models/inline_response_200_1__embedded_capture__links_self.rb +202 -202
- data/lib/cybersource_rest_client/models/inline_response_200_1__embedded_reversal.rb +201 -201
- data/lib/cybersource_rest_client/models/inline_response_200_1__embedded_reversal__links.rb +190 -190
- data/lib/cybersource_rest_client/models/inline_response_200_1__embedded_reversal__links_self.rb +202 -202
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +253 -253
- data/lib/cybersource_rest_client/models/inline_response_200_2_integration_information.rb +204 -204
- data/lib/cybersource_rest_client/models/inline_response_200_2_integration_information_tenant_configurations.rb +263 -263
- data/lib/cybersource_rest_client/models/inline_response_200_3.rb +213 -213
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +312 -312
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +202 -251
- data/lib/cybersource_rest_client/models/inline_response_200_6.rb +247 -290
- data/lib/cybersource_rest_client/models/inline_response_200_6_devices.rb +371 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_payment_processor_to_terminal_map.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_200_7.rb +251 -292
- data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded.rb → inline_response_200_7__embedded.rb} +191 -191
- data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded__links.rb → inline_response_200_7__embedded__links.rb} +191 -191
- data/lib/cybersource_rest_client/models/{inline_response_200_6__links_report.rb → inline_response_200_7__embedded__links_reports.rb} +190 -189
- data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded_batches.rb → inline_response_200_7__embedded_batches.rb} +295 -295
- data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded_totals.rb → inline_response_200_7__embedded_totals.rb} +229 -229
- data/lib/cybersource_rest_client/models/{inline_response_200_5__links.rb → inline_response_200_7__links.rb} +200 -200
- data/lib/cybersource_rest_client/models/inline_response_200_8.rb +290 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_6__links.rb → inline_response_200_8__links.rb} +201 -201
- data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded__links_reports.rb → inline_response_200_8__links_report.rb} +189 -190
- data/lib/cybersource_rest_client/models/{inline_response_200_6_billing.rb → inline_response_200_8_billing.rb} +219 -219
- data/lib/cybersource_rest_client/models/inline_response_200_9.rb +292 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_7_records.rb → inline_response_200_9_records.rb} +209 -209
- data/lib/cybersource_rest_client/models/{inline_response_200_7_response_record.rb → inline_response_200_9_response_record.rb} +307 -307
- data/lib/cybersource_rest_client/models/{inline_response_200_7_response_record_additional_updates.rb → inline_response_200_9_response_record_additional_updates.rb} +242 -242
- data/lib/cybersource_rest_client/models/{inline_response_200_7_source_record.rb → inline_response_200_9_source_record.rb} +295 -295
- data/lib/cybersource_rest_client/models/inline_response_200_content.rb +223 -223
- data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb +11 -1
- data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_alternative_payment_methods.rb +221 -0
- data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_alternative_payment_methods_configuration_status.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_201_2_setups_value_added_services.rb +15 -5
- data/lib/cybersource_rest_client/models/inline_response_201_4.rb +312 -312
- data/lib/cybersource_rest_client/models/inline_response_201_5.rb +277 -277
- data/lib/cybersource_rest_client/models/inline_response_201_5_payloads.rb +189 -189
- data/lib/cybersource_rest_client/models/inline_response_201_5_payloads_test_payload.rb +190 -190
- data/lib/cybersource_rest_client/models/inline_response_201_6.rb +202 -202
- data/lib/cybersource_rest_client/models/inline_response_202__links.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_206.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_400_5.rb +235 -235
- data/lib/cybersource_rest_client/models/inline_response_400_6.rb +258 -258
- data/lib/cybersource_rest_client/models/inline_response_400_6_fields.rb +213 -213
- data/lib/cybersource_rest_client/models/inline_response_400_7.rb +235 -235
- data/lib/cybersource_rest_client/models/inline_response_400_7_details.rb +201 -201
- data/lib/cybersource_rest_client/models/inline_response_400_8.rb +236 -0
- data/lib/cybersource_rest_client/models/inline_response_400_8_details.rb +212 -0
- data/lib/cybersource_rest_client/models/inline_response_401.rb +29 -59
- data/lib/cybersource_rest_client/models/inline_response_401_1.rb +253 -0
- data/lib/cybersource_rest_client/models/{inline_response_401__links.rb → inline_response_401_1__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_401__links_self.rb → inline_response_401_1__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_401_fields.rb → inline_response_401_1_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_403_2.rb +223 -0
- data/lib/cybersource_rest_client/models/inline_response_404_1.rb +235 -235
- data/lib/cybersource_rest_client/models/inline_response_404_2.rb +211 -211
- data/lib/cybersource_rest_client/models/inline_response_404_2_details.rb +199 -199
- data/lib/cybersource_rest_client/models/inline_response_404_3.rb +223 -0
- data/lib/cybersource_rest_client/models/inline_response_422_1.rb +235 -235
- data/lib/cybersource_rest_client/models/inline_response_500_3.rb +223 -0
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +380 -380
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +222 -222
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoice_information.rb +201 -201
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices.rb +259 -259
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_order_information.rb +190 -190
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_order_information_amount_details.rb +214 -214
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get400_response.rb +235 -235
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get404_response.rb +235 -235
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_cancel200_response.rb +268 -268
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response.rb +280 -280
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response_invoice_history.rb +211 -211
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response_transaction_details.rb +208 -208
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response.rb +268 -268
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_invoice_information.rb +265 -265
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_order_information.rb +203 -203
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_order_information_amount_details.rb +313 -313
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_put200_response.rb +268 -268
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_send200_response.rb +268 -268
- data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +384 -384
- data/lib/cybersource_rest_client/models/invoicingv2invoices_client_reference_information.rb +189 -189
- data/lib/cybersource_rest_client/models/invoicingv2invoices_client_reference_information_partner.rb +213 -213
- data/lib/cybersource_rest_client/models/invoicingv2invoices_invoice_information.rb +281 -281
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information.rb +208 -208
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details.rb +314 -314
- 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/invoicingv2invoices_processing_information.rb +206 -206
- data/lib/cybersource_rest_client/models/invoicingv2invoicesid_invoice_information.rb +270 -270
- data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information.rb +213 -213
- data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information_amount_details.rb +245 -245
- data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information_line_items.rb +274 -274
- data/lib/cybersource_rest_client/models/iplv2paymentlinks_processing_information.rb +222 -222
- data/lib/cybersource_rest_client/models/iplv2paymentlinks_purchase_information.rb +206 -206
- data/lib/cybersource_rest_client/models/iplv2paymentlinksid_order_information.rb +208 -208
- data/lib/cybersource_rest_client/models/iplv2paymentlinksid_processing_information.rb +217 -217
- data/lib/cybersource_rest_client/models/iplv2paymentlinksid_purchase_information.rb +197 -197
- data/lib/cybersource_rest_client/models/model_400_upload_batch_file_response.rb +199 -199
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2productsorganization_id_event_types.rb +233 -233
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_products.rb +202 -202
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_products_1.rb +202 -202
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_retry_policy.rb +270 -270
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy.rb +201 -201
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_1.rb +201 -201
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_1_config.rb +223 -223
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_1_config_additional_config.rb +220 -220
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_config.rb +213 -213
- data/lib/cybersource_rest_client/models/payments_products.rb +11 -1
- data/lib/cybersource_rest_client/models/payments_products_alternative_payment_methods.rb +199 -0
- data/lib/cybersource_rest_client/models/payments_products_alternative_payment_methods_additional_configurations.rb +202 -0
- data/lib/cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_information.rb +189 -0
- data/lib/cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_information_configurations.rb +203 -0
- data/lib/cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_information_configurations_processors.rb +193 -0
- data/lib/cybersource_rest_client/models/payments_products_alternative_payment_methods_configuration_payment_methods.rb +248 -0
- data/lib/cybersource_rest_client/models/{payments_products_payer_authentication_subscription_information.rb → payments_products_alternative_payment_methods_subscription_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/payments_products_currency_conversion.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_products_payer_authentication.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_products_payouts.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_products_secure_acceptance.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_products_service_fee.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_products_tax.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_products_virtual_terminal.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_strong_auth_issuer_information.rb +281 -281
- data/lib/cybersource_rest_client/models/pbl_payment_links_all_get200_response.rb +222 -222
- data/lib/cybersource_rest_client/models/pbl_payment_links_all_get200_response_links.rb +259 -259
- data/lib/cybersource_rest_client/models/pbl_payment_links_all_get200_response_order_information.rb +203 -203
- data/lib/cybersource_rest_client/models/pbl_payment_links_all_get200_response_order_information_amount_details.rb +236 -236
- data/lib/cybersource_rest_client/models/pbl_payment_links_all_get200_response_order_information_line_items.rb +231 -231
- data/lib/cybersource_rest_client/models/pbl_payment_links_all_get200_response_processing_information.rb +191 -191
- data/lib/cybersource_rest_client/models/pbl_payment_links_all_get200_response_purchase_information.rb +208 -208
- data/lib/cybersource_rest_client/models/pbl_payment_links_all_get400_response.rb +235 -235
- data/lib/cybersource_rest_client/models/pbl_payment_links_all_get404_response.rb +235 -235
- data/lib/cybersource_rest_client/models/pbl_payment_links_get200_response.rb +258 -258
- data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response.rb +258 -258
- data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response__links.rb +199 -199
- data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response_order_information.rb +203 -203
- data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response_purchase_information.rb +219 -219
- data/lib/cybersource_rest_client/models/post_device_search_request_v3.rb +223 -0
- data/lib/cybersource_rest_client/models/post_payment_credentials_request.rb +201 -201
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_error_information.rb +213 -213
- data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_order_information_amount_details.rb +213 -213
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +295 -295
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_error_information.rb +213 -213
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_error_information_details.rb +190 -190
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_issuer_information.rb +213 -213
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +209 -209
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_amount_details.rb +196 -196
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information.rb +219 -219
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_e_wallet.rb +213 -213
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +289 -289
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_2_order_information_amount_details.rb +196 -196
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +213 -213
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +305 -305
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +213 -213
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +247 -247
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentreferences_buyer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_amount_details.rb +400 -400
- data/lib/cybersource_rest_client/models/ptsv2paymentreferences_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +651 -651
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_account_reference.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +789 -789
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +509 -509
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +213 -213
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +223 -223
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +328 -328
- data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +417 -417
- data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +495 -495
- data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information_account.rb +213 -213
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb +6 -6
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information_partner.rb +213 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +206 -206
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options_initiator.rb +1 -1
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_subscription_information.rb +39 -5
- data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
- data/lib/cybersource_rest_client/models/risk_products_decision_manager.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_products_fraud_management_essentials.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_products_portfolio_risk_controls.rb +199 -0
- data/lib/cybersource_rest_client/models/risk_products_portfolio_risk_controls_configuration_information.rb +189 -0
- data/lib/cybersource_rest_client/models/risk_products_portfolio_risk_controls_configuration_information_configurations.rb +189 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_amount_details.rb +214 -214
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_amount_details.rb +232 -232
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/save_asym_egress_key.rb +210 -210
- data/lib/cybersource_rest_client/models/save_sym_egress_key.rb +210 -210
- 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/tmsv2_tokenized_card.rb +440 -440
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_card.rb +253 -253
- data/lib/cybersource_rest_client/models/tokenizedcard_request.rb +440 -440
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +291 -291
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_issuer_information.rb +264 -264
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +234 -234
- data/lib/cybersource_rest_client/models/update_invoice_request.rb +229 -229
- data/lib/cybersource_rest_client/models/update_payment_link_request.rb +230 -230
- data/lib/cybersource_rest_client/models/update_status.rb +192 -192
- data/lib/cybersource_rest_client/models/update_webhook.rb +269 -269
- data/lib/cybersource_rest_client/models/upv1capturecontexts_capture_mandate.rb +286 -286
- data/lib/cybersource_rest_client/models/upv1capturecontexts_complete_mandate.rb +208 -208
- data/lib/cybersource_rest_client/models/value_added_services_products.rb +15 -5
- data/lib/cybersource_rest_client/utilities/multipart/multipart_helper.rb +22 -0
- data/lib/cybersource_rest_client.rb +45 -17
- metadata +48 -19
@@ -1,291 +1,291 @@
|
|
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 TssV2TransactionsGet200ResponseOrderInformationAmountDetails
|
16
|
-
# Grand total for the order. This value cannot be negative. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. **Note** For CTV, FDCCompass, Paymentech processors, the maximum length for this field is 12. **Important** Some processors have specific requirements and limitations, such as maximum amounts and maximum field lengths. If your processor supports zero amount authorizations, you can set this field to 0 for the authorization to check if the card is lost or stolen. #### Card Present Required to include either this field or `orderInformation.lineItems[].unitPrice` for the order. #### Invoicing / Pay By Link Required for creating a new invoice or payment link. #### PIN Debit Amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. Required field for PIN Debit purchase and PIN Debit credit requests. Optional field for PIN Debit reversal requests. #### GPX This field is optional for reversing an authorization or credit; however, for all other processors, these fields are required. #### DCC with a Third-Party Provider Set this field to the converted amount that was returned by the DCC provider. You must include either this field or the 1st line item in the order and the specific line-order amount in your request. #### DCC for First Data Not used.
|
17
|
-
attr_accessor :total_amount
|
18
|
-
|
19
|
-
# Currency used for the order. Use the three-character [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) #### Used by **Authorization** Required field. **Authorization Reversal** For an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request. #### PIN Debit Currency for the amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Returned by PIN debit purchase. For PIN debit reversal requests, you must use the same currency that was used for the PIN debit purchase or PIN debit credit that you are reversing. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Required field for PIN Debit purchase and PIN Debit credit requests. Optional field for PIN Debit reversal requests. #### GPX This field is optional for reversing an authorization or credit. #### DCC for First Data Your local currency. #### Tax Calculation Required for international tax and value added tax only. Optional for U.S. and Canadian taxes. Your local currency.
|
20
|
-
attr_accessor :currency
|
21
|
-
|
22
|
-
# Total tax amount for all the items in the order.
|
23
|
-
attr_accessor :tax_amount
|
24
|
-
|
25
|
-
# Amount that was authorized. Returned by authorization service. #### PIN debit Amount of the purchase. Returned by PIN debit purchase.
|
26
|
-
attr_accessor :authorized_amount
|
27
|
-
|
28
|
-
# This is a multicurrency field. It contains the transaction amount (field 4), converted to the Currency used to bill the cardholder's account. This field is returned for OCT transactions.
|
29
|
-
attr_accessor :settlement_amount
|
30
|
-
|
31
|
-
# This is a multicurrency-only field. It contains a 3-digit numeric code that identifies the currency used by the issuer to bill the cardholder's account. This field is returned for OCT transactions.
|
32
|
-
attr_accessor :settlement_currency
|
33
|
-
|
34
|
-
attr_accessor :surcharge
|
35
|
-
|
36
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
37
|
-
def self.attribute_map
|
38
|
-
{
|
39
|
-
:'total_amount' => :'totalAmount',
|
40
|
-
:'currency' => :'currency',
|
41
|
-
:'tax_amount' => :'taxAmount',
|
42
|
-
:'authorized_amount' => :'authorizedAmount',
|
43
|
-
:'settlement_amount' => :'settlementAmount',
|
44
|
-
:'settlement_currency' => :'settlementCurrency',
|
45
|
-
:'surcharge' => :'surcharge'
|
46
|
-
}
|
47
|
-
end
|
48
|
-
|
49
|
-
# Attribute mapping from JSON key to ruby-style variable name.
|
50
|
-
def self.json_map
|
51
|
-
{
|
52
|
-
:'total_amount' => :'total_amount',
|
53
|
-
:'currency' => :'currency',
|
54
|
-
:'tax_amount' => :'tax_amount',
|
55
|
-
:'authorized_amount' => :'authorized_amount',
|
56
|
-
:'settlement_amount' => :'settlement_amount',
|
57
|
-
:'settlement_currency' => :'settlement_currency',
|
58
|
-
:'surcharge' => :'surcharge'
|
59
|
-
}
|
60
|
-
end
|
61
|
-
|
62
|
-
# Attribute type mapping.
|
63
|
-
def self.swagger_types
|
64
|
-
{
|
65
|
-
:'total_amount' => :'String',
|
66
|
-
:'currency' => :'String',
|
67
|
-
:'tax_amount' => :'String',
|
68
|
-
:'authorized_amount' => :'String',
|
69
|
-
:'settlement_amount' => :'String',
|
70
|
-
:'settlement_currency' => :'String',
|
71
|
-
:'surcharge' => :'Ptsv2payoutsOrderInformationAmountDetailsSurcharge'
|
72
|
-
}
|
73
|
-
end
|
74
|
-
|
75
|
-
# Initializes the object
|
76
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
77
|
-
def initialize(attributes = {})
|
78
|
-
return unless attributes.is_a?(Hash)
|
79
|
-
|
80
|
-
# convert string to symbol for hash key
|
81
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
82
|
-
|
83
|
-
if attributes.has_key?(:'totalAmount')
|
84
|
-
self.total_amount = attributes[:'totalAmount']
|
85
|
-
end
|
86
|
-
|
87
|
-
if attributes.has_key?(:'currency')
|
88
|
-
self.currency = attributes[:'currency']
|
89
|
-
end
|
90
|
-
|
91
|
-
if attributes.has_key?(:'taxAmount')
|
92
|
-
self.tax_amount = attributes[:'taxAmount']
|
93
|
-
end
|
94
|
-
|
95
|
-
if attributes.has_key?(:'authorizedAmount')
|
96
|
-
self.authorized_amount = attributes[:'authorizedAmount']
|
97
|
-
end
|
98
|
-
|
99
|
-
if attributes.has_key?(:'settlementAmount')
|
100
|
-
self.settlement_amount = attributes[:'settlementAmount']
|
101
|
-
end
|
102
|
-
|
103
|
-
if attributes.has_key?(:'settlementCurrency')
|
104
|
-
self.settlement_currency = attributes[:'settlementCurrency']
|
105
|
-
end
|
106
|
-
|
107
|
-
if attributes.has_key?(:'surcharge')
|
108
|
-
self.surcharge = attributes[:'surcharge']
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
113
|
-
# @return Array for valid properties with the reasons
|
114
|
-
def list_invalid_properties
|
115
|
-
invalid_properties = Array.new
|
116
|
-
invalid_properties
|
117
|
-
end
|
118
|
-
|
119
|
-
# Check to see if the all the properties in the model are valid
|
120
|
-
# @return true if the model is valid
|
121
|
-
def valid?
|
122
|
-
true
|
123
|
-
end
|
124
|
-
|
125
|
-
# Custom attribute writer method with validation
|
126
|
-
# @param [Object] total_amount Value to be assigned
|
127
|
-
def total_amount=(total_amount)
|
128
|
-
@total_amount = total_amount
|
129
|
-
end
|
130
|
-
|
131
|
-
# Custom attribute writer method with validation
|
132
|
-
# @param [Object] currency Value to be assigned
|
133
|
-
def currency=(currency)
|
134
|
-
@currency = currency
|
135
|
-
end
|
136
|
-
|
137
|
-
# Custom attribute writer method with validation
|
138
|
-
# @param [Object] tax_amount Value to be assigned
|
139
|
-
def tax_amount=(tax_amount)
|
140
|
-
@tax_amount = tax_amount
|
141
|
-
end
|
142
|
-
|
143
|
-
# Custom attribute writer method with validation
|
144
|
-
# @param [Object] authorized_amount Value to be assigned
|
145
|
-
def authorized_amount=(authorized_amount)
|
146
|
-
@authorized_amount = authorized_amount
|
147
|
-
end
|
148
|
-
|
149
|
-
# Custom attribute writer method with validation
|
150
|
-
# @param [Object] settlement_amount Value to be assigned
|
151
|
-
def settlement_amount=(settlement_amount)
|
152
|
-
@settlement_amount = settlement_amount
|
153
|
-
end
|
154
|
-
|
155
|
-
# Custom attribute writer method with validation
|
156
|
-
# @param [Object] settlement_currency Value to be assigned
|
157
|
-
def settlement_currency=(settlement_currency)
|
158
|
-
@settlement_currency = settlement_currency
|
159
|
-
end
|
160
|
-
|
161
|
-
# Checks equality by comparing each attribute.
|
162
|
-
# @param [Object] Object to be compared
|
163
|
-
def ==(o)
|
164
|
-
return true if self.equal?(o)
|
165
|
-
self.class == o.class &&
|
166
|
-
total_amount == o.total_amount &&
|
167
|
-
currency == o.currency &&
|
168
|
-
tax_amount == o.tax_amount &&
|
169
|
-
authorized_amount == o.authorized_amount &&
|
170
|
-
settlement_amount == o.settlement_amount &&
|
171
|
-
settlement_currency == o.settlement_currency &&
|
172
|
-
surcharge == o.surcharge
|
173
|
-
end
|
174
|
-
|
175
|
-
# @see the `==` method
|
176
|
-
# @param [Object] Object to be compared
|
177
|
-
def eql?(o)
|
178
|
-
self == o
|
179
|
-
end
|
180
|
-
|
181
|
-
# Calculates hash code according to all attributes.
|
182
|
-
# @return [Fixnum] Hash code
|
183
|
-
def hash
|
184
|
-
[total_amount, currency, tax_amount, authorized_amount, settlement_amount, settlement_currency, surcharge].hash
|
185
|
-
end
|
186
|
-
|
187
|
-
# Builds the object from hash
|
188
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
189
|
-
# @return [Object] Returns the model itself
|
190
|
-
def build_from_hash(attributes)
|
191
|
-
return nil unless attributes.is_a?(Hash)
|
192
|
-
self.class.swagger_types.each_pair do |key, type|
|
193
|
-
if type =~ /\AArray<(.*)>/i
|
194
|
-
# check to ensure the input is an array given that the the attribute
|
195
|
-
# is documented as an array but the input is not
|
196
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
197
|
-
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
198
|
-
end
|
199
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
200
|
-
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
201
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
202
|
-
end
|
203
|
-
|
204
|
-
self
|
205
|
-
end
|
206
|
-
|
207
|
-
# Deserializes the data based on type
|
208
|
-
# @param string type Data type
|
209
|
-
# @param string value Value to be deserialized
|
210
|
-
# @return [Object] Deserialized data
|
211
|
-
def _deserialize(type, value)
|
212
|
-
case type.to_sym
|
213
|
-
when :DateTime
|
214
|
-
DateTime.parse(value)
|
215
|
-
when :Date
|
216
|
-
Date.parse(value)
|
217
|
-
when :String
|
218
|
-
value.to_s
|
219
|
-
when :Integer
|
220
|
-
value.to_i
|
221
|
-
when :Float
|
222
|
-
value.to_f
|
223
|
-
when :BOOLEAN
|
224
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
225
|
-
true
|
226
|
-
else
|
227
|
-
false
|
228
|
-
end
|
229
|
-
when :Object
|
230
|
-
# generic object (usually a Hash), return directly
|
231
|
-
value
|
232
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
233
|
-
inner_type = Regexp.last_match[:inner_type]
|
234
|
-
value.map { |v| _deserialize(inner_type, v) }
|
235
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
236
|
-
k_type = Regexp.last_match[:k_type]
|
237
|
-
v_type = Regexp.last_match[:v_type]
|
238
|
-
{}.tap do |hash|
|
239
|
-
value.each do |k, v|
|
240
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
241
|
-
end
|
242
|
-
end
|
243
|
-
else # model
|
244
|
-
temp_model = CyberSource.const_get(type).new
|
245
|
-
temp_model.build_from_hash(value)
|
246
|
-
end
|
247
|
-
end
|
248
|
-
|
249
|
-
# Returns the string representation of the object
|
250
|
-
# @return [String] String presentation of the object
|
251
|
-
def to_s
|
252
|
-
to_hash.to_s
|
253
|
-
end
|
254
|
-
|
255
|
-
# to_body is an alias to to_hash (backward compatibility)
|
256
|
-
# @return [Hash] Returns the object in the form of hash
|
257
|
-
def to_body
|
258
|
-
to_hash
|
259
|
-
end
|
260
|
-
|
261
|
-
# Returns the object in the form of hash
|
262
|
-
# @return [Hash] Returns the object in the form of hash
|
263
|
-
def to_hash
|
264
|
-
hash = {}
|
265
|
-
self.class.attribute_map.each_pair do |attr, param|
|
266
|
-
value = self.send(attr)
|
267
|
-
next if value.nil?
|
268
|
-
hash[param] = _to_hash(value)
|
269
|
-
end
|
270
|
-
hash
|
271
|
-
end
|
272
|
-
|
273
|
-
# Outputs non-array value in the form of hash
|
274
|
-
# For object, use to_hash. Otherwise, just return the value
|
275
|
-
# @param [Object] value Any valid value
|
276
|
-
# @return [Hash] Returns the value in the form of hash
|
277
|
-
def _to_hash(value)
|
278
|
-
if value.is_a?(Array)
|
279
|
-
value.compact.map { |v| _to_hash(v) }
|
280
|
-
elsif value.is_a?(Hash)
|
281
|
-
{}.tap do |hash|
|
282
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
283
|
-
end
|
284
|
-
elsif value.respond_to? :to_hash
|
285
|
-
value.to_hash
|
286
|
-
else
|
287
|
-
value
|
288
|
-
end
|
289
|
-
end
|
290
|
-
end
|
291
|
-
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 TssV2TransactionsGet200ResponseOrderInformationAmountDetails
|
16
|
+
# Grand total for the order. This value cannot be negative. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. **Note** For CTV, FDCCompass, Paymentech processors, the maximum length for this field is 12. **Important** Some processors have specific requirements and limitations, such as maximum amounts and maximum field lengths. If your processor supports zero amount authorizations, you can set this field to 0 for the authorization to check if the card is lost or stolen. #### Card Present Required to include either this field or `orderInformation.lineItems[].unitPrice` for the order. #### Invoicing / Pay By Link Required for creating a new invoice or payment link. #### PIN Debit Amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. Required field for PIN Debit purchase and PIN Debit credit requests. Optional field for PIN Debit reversal requests. #### GPX This field is optional for reversing an authorization or credit; however, for all other processors, these fields are required. #### DCC with a Third-Party Provider Set this field to the converted amount that was returned by the DCC provider. You must include either this field or the 1st line item in the order and the specific line-order amount in your request. #### DCC for First Data Not used.
|
17
|
+
attr_accessor :total_amount
|
18
|
+
|
19
|
+
# Currency used for the order. Use the three-character [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) #### Used by **Authorization** Required field. **Authorization Reversal** For an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request. #### PIN Debit Currency for the amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Returned by PIN debit purchase. For PIN debit reversal requests, you must use the same currency that was used for the PIN debit purchase or PIN debit credit that you are reversing. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Required field for PIN Debit purchase and PIN Debit credit requests. Optional field for PIN Debit reversal requests. #### GPX This field is optional for reversing an authorization or credit. #### DCC for First Data Your local currency. #### Tax Calculation Required for international tax and value added tax only. Optional for U.S. and Canadian taxes. Your local currency.
|
20
|
+
attr_accessor :currency
|
21
|
+
|
22
|
+
# Total tax amount for all the items in the order.
|
23
|
+
attr_accessor :tax_amount
|
24
|
+
|
25
|
+
# Amount that was authorized. Returned by authorization service. #### PIN debit Amount of the purchase. Returned by PIN debit purchase.
|
26
|
+
attr_accessor :authorized_amount
|
27
|
+
|
28
|
+
# This is a multicurrency field. It contains the transaction amount (field 4), converted to the Currency used to bill the cardholder's account. This field is returned for OCT transactions.
|
29
|
+
attr_accessor :settlement_amount
|
30
|
+
|
31
|
+
# This is a multicurrency-only field. It contains a 3-digit numeric code that identifies the currency used by the issuer to bill the cardholder's account. This field is returned for OCT transactions.
|
32
|
+
attr_accessor :settlement_currency
|
33
|
+
|
34
|
+
attr_accessor :surcharge
|
35
|
+
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
37
|
+
def self.attribute_map
|
38
|
+
{
|
39
|
+
:'total_amount' => :'totalAmount',
|
40
|
+
:'currency' => :'currency',
|
41
|
+
:'tax_amount' => :'taxAmount',
|
42
|
+
:'authorized_amount' => :'authorizedAmount',
|
43
|
+
:'settlement_amount' => :'settlementAmount',
|
44
|
+
:'settlement_currency' => :'settlementCurrency',
|
45
|
+
:'surcharge' => :'surcharge'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
50
|
+
def self.json_map
|
51
|
+
{
|
52
|
+
:'total_amount' => :'total_amount',
|
53
|
+
:'currency' => :'currency',
|
54
|
+
:'tax_amount' => :'tax_amount',
|
55
|
+
:'authorized_amount' => :'authorized_amount',
|
56
|
+
:'settlement_amount' => :'settlement_amount',
|
57
|
+
:'settlement_currency' => :'settlement_currency',
|
58
|
+
:'surcharge' => :'surcharge'
|
59
|
+
}
|
60
|
+
end
|
61
|
+
|
62
|
+
# Attribute type mapping.
|
63
|
+
def self.swagger_types
|
64
|
+
{
|
65
|
+
:'total_amount' => :'String',
|
66
|
+
:'currency' => :'String',
|
67
|
+
:'tax_amount' => :'String',
|
68
|
+
:'authorized_amount' => :'String',
|
69
|
+
:'settlement_amount' => :'String',
|
70
|
+
:'settlement_currency' => :'String',
|
71
|
+
:'surcharge' => :'Ptsv2payoutsOrderInformationAmountDetailsSurcharge'
|
72
|
+
}
|
73
|
+
end
|
74
|
+
|
75
|
+
# Initializes the object
|
76
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
77
|
+
def initialize(attributes = {})
|
78
|
+
return unless attributes.is_a?(Hash)
|
79
|
+
|
80
|
+
# convert string to symbol for hash key
|
81
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
82
|
+
|
83
|
+
if attributes.has_key?(:'totalAmount')
|
84
|
+
self.total_amount = attributes[:'totalAmount']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.has_key?(:'currency')
|
88
|
+
self.currency = attributes[:'currency']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.has_key?(:'taxAmount')
|
92
|
+
self.tax_amount = attributes[:'taxAmount']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.has_key?(:'authorizedAmount')
|
96
|
+
self.authorized_amount = attributes[:'authorizedAmount']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.has_key?(:'settlementAmount')
|
100
|
+
self.settlement_amount = attributes[:'settlementAmount']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.has_key?(:'settlementCurrency')
|
104
|
+
self.settlement_currency = attributes[:'settlementCurrency']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.has_key?(:'surcharge')
|
108
|
+
self.surcharge = attributes[:'surcharge']
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
113
|
+
# @return Array for valid properties with the reasons
|
114
|
+
def list_invalid_properties
|
115
|
+
invalid_properties = Array.new
|
116
|
+
invalid_properties
|
117
|
+
end
|
118
|
+
|
119
|
+
# Check to see if the all the properties in the model are valid
|
120
|
+
# @return true if the model is valid
|
121
|
+
def valid?
|
122
|
+
true
|
123
|
+
end
|
124
|
+
|
125
|
+
# Custom attribute writer method with validation
|
126
|
+
# @param [Object] total_amount Value to be assigned
|
127
|
+
def total_amount=(total_amount)
|
128
|
+
@total_amount = total_amount
|
129
|
+
end
|
130
|
+
|
131
|
+
# Custom attribute writer method with validation
|
132
|
+
# @param [Object] currency Value to be assigned
|
133
|
+
def currency=(currency)
|
134
|
+
@currency = currency
|
135
|
+
end
|
136
|
+
|
137
|
+
# Custom attribute writer method with validation
|
138
|
+
# @param [Object] tax_amount Value to be assigned
|
139
|
+
def tax_amount=(tax_amount)
|
140
|
+
@tax_amount = tax_amount
|
141
|
+
end
|
142
|
+
|
143
|
+
# Custom attribute writer method with validation
|
144
|
+
# @param [Object] authorized_amount Value to be assigned
|
145
|
+
def authorized_amount=(authorized_amount)
|
146
|
+
@authorized_amount = authorized_amount
|
147
|
+
end
|
148
|
+
|
149
|
+
# Custom attribute writer method with validation
|
150
|
+
# @param [Object] settlement_amount Value to be assigned
|
151
|
+
def settlement_amount=(settlement_amount)
|
152
|
+
@settlement_amount = settlement_amount
|
153
|
+
end
|
154
|
+
|
155
|
+
# Custom attribute writer method with validation
|
156
|
+
# @param [Object] settlement_currency Value to be assigned
|
157
|
+
def settlement_currency=(settlement_currency)
|
158
|
+
@settlement_currency = settlement_currency
|
159
|
+
end
|
160
|
+
|
161
|
+
# Checks equality by comparing each attribute.
|
162
|
+
# @param [Object] Object to be compared
|
163
|
+
def ==(o)
|
164
|
+
return true if self.equal?(o)
|
165
|
+
self.class == o.class &&
|
166
|
+
total_amount == o.total_amount &&
|
167
|
+
currency == o.currency &&
|
168
|
+
tax_amount == o.tax_amount &&
|
169
|
+
authorized_amount == o.authorized_amount &&
|
170
|
+
settlement_amount == o.settlement_amount &&
|
171
|
+
settlement_currency == o.settlement_currency &&
|
172
|
+
surcharge == o.surcharge
|
173
|
+
end
|
174
|
+
|
175
|
+
# @see the `==` method
|
176
|
+
# @param [Object] Object to be compared
|
177
|
+
def eql?(o)
|
178
|
+
self == o
|
179
|
+
end
|
180
|
+
|
181
|
+
# Calculates hash code according to all attributes.
|
182
|
+
# @return [Fixnum] Hash code
|
183
|
+
def hash
|
184
|
+
[total_amount, currency, tax_amount, authorized_amount, settlement_amount, settlement_currency, surcharge].hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Builds the object from hash
|
188
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
189
|
+
# @return [Object] Returns the model itself
|
190
|
+
def build_from_hash(attributes)
|
191
|
+
return nil unless attributes.is_a?(Hash)
|
192
|
+
self.class.swagger_types.each_pair do |key, type|
|
193
|
+
if type =~ /\AArray<(.*)>/i
|
194
|
+
# check to ensure the input is an array given that the the attribute
|
195
|
+
# is documented as an array but the input is not
|
196
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
197
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
198
|
+
end
|
199
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
200
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
201
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
202
|
+
end
|
203
|
+
|
204
|
+
self
|
205
|
+
end
|
206
|
+
|
207
|
+
# Deserializes the data based on type
|
208
|
+
# @param string type Data type
|
209
|
+
# @param string value Value to be deserialized
|
210
|
+
# @return [Object] Deserialized data
|
211
|
+
def _deserialize(type, value)
|
212
|
+
case type.to_sym
|
213
|
+
when :DateTime
|
214
|
+
DateTime.parse(value)
|
215
|
+
when :Date
|
216
|
+
Date.parse(value)
|
217
|
+
when :String
|
218
|
+
value.to_s
|
219
|
+
when :Integer
|
220
|
+
value.to_i
|
221
|
+
when :Float
|
222
|
+
value.to_f
|
223
|
+
when :BOOLEAN
|
224
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
225
|
+
true
|
226
|
+
else
|
227
|
+
false
|
228
|
+
end
|
229
|
+
when :Object
|
230
|
+
# generic object (usually a Hash), return directly
|
231
|
+
value
|
232
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
233
|
+
inner_type = Regexp.last_match[:inner_type]
|
234
|
+
value.map { |v| _deserialize(inner_type, v) }
|
235
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
236
|
+
k_type = Regexp.last_match[:k_type]
|
237
|
+
v_type = Regexp.last_match[:v_type]
|
238
|
+
{}.tap do |hash|
|
239
|
+
value.each do |k, v|
|
240
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
241
|
+
end
|
242
|
+
end
|
243
|
+
else # model
|
244
|
+
temp_model = CyberSource.const_get(type).new
|
245
|
+
temp_model.build_from_hash(value)
|
246
|
+
end
|
247
|
+
end
|
248
|
+
|
249
|
+
# Returns the string representation of the object
|
250
|
+
# @return [String] String presentation of the object
|
251
|
+
def to_s
|
252
|
+
to_hash.to_s
|
253
|
+
end
|
254
|
+
|
255
|
+
# to_body is an alias to to_hash (backward compatibility)
|
256
|
+
# @return [Hash] Returns the object in the form of hash
|
257
|
+
def to_body
|
258
|
+
to_hash
|
259
|
+
end
|
260
|
+
|
261
|
+
# Returns the object in the form of hash
|
262
|
+
# @return [Hash] Returns the object in the form of hash
|
263
|
+
def to_hash
|
264
|
+
hash = {}
|
265
|
+
self.class.attribute_map.each_pair do |attr, param|
|
266
|
+
value = self.send(attr)
|
267
|
+
next if value.nil?
|
268
|
+
hash[param] = _to_hash(value)
|
269
|
+
end
|
270
|
+
hash
|
271
|
+
end
|
272
|
+
|
273
|
+
# Outputs non-array value in the form of hash
|
274
|
+
# For object, use to_hash. Otherwise, just return the value
|
275
|
+
# @param [Object] value Any valid value
|
276
|
+
# @return [Hash] Returns the value in the form of hash
|
277
|
+
def _to_hash(value)
|
278
|
+
if value.is_a?(Array)
|
279
|
+
value.compact.map { |v| _to_hash(v) }
|
280
|
+
elsif value.is_a?(Hash)
|
281
|
+
{}.tap do |hash|
|
282
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
283
|
+
end
|
284
|
+
elsif value.respond_to? :to_hash
|
285
|
+
value.to_hash
|
286
|
+
else
|
287
|
+
value
|
288
|
+
end
|
289
|
+
end
|
290
|
+
end
|
291
|
+
end
|
@@ -13,7 +13,7 @@ require 'date'
|
|
13
13
|
|
14
14
|
module CyberSource
|
15
15
|
class TssV2TransactionsGet200ResponsePaymentInformationBrands
|
16
|
-
# 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.
|
16
|
+
# 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] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `033`: Visa Electron[^1]. Do not use this value. Use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay - '070': EFTPOS [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
|
17
17
|
attr_accessor :type
|
18
18
|
|
19
19
|
# This field contains the card brand name. Some of the possible values (not an exhaustive list) are - - VISA - MASTERCARD - AMERICAN EXPRESS - DISCOVER - DINERS CLUB - CARTE BLANCHE - JCB - OPTIMA - TWINPAY CREDIT CARD - TWINPAY DEBIT CARD - WALMART - ENROUTE - LOWES CONSUMER - HOME DEPOT CONSUMER - MBNA - DICKS SPORTWEAR - CASUAL CORNER - SEARS - JAL - DISNEY CARD - SWITCH/SOLO - SAMS CLUB CONSUMER - SAMS CLUB BUSINESS - NICOS HOUSE CARD - BEBE - RESTORATION HARDWARE - DELTA ONLINE - SOLO - VISA ELECTRON - DANKORT - LASER - CARTE BANCAIRE - CARTA SI - ENCODED ACCOUNT - UATP - HOUSEHOLD - MAESTRO - GE CAPITAL - KOREAN CARDS - STYLE CARDS - JCREW - MEIJER - HIPERCARD - AURA - REDECARD - ORICO HOUSE CARD - ELO - CAPITAL ONE PRIVATE LABEL - CARNET - RUPAY - CHINA UNION PAY - FALABELLA PRIVATE LABEL - PROMPTCARD - KOREAN DOMESTIC - BANRICOMPRAS
|
@@ -34,7 +34,7 @@ module CyberSource
|
|
34
34
|
# Number of times a Maestro (UK Domestic) card has been issued to the account holder. The card might or might not have an issue number. The number can consist of one or two digits, and the first digit might be a zero. When you include this value in your request, include exactly what is printed on the card. A value of 2 is different than a value of 02. Do not include the field, even with a blank value, if the card is not a Maestro (UK Domestic) card. **Note** The issue number is not required for Maestro (UK Domestic) transactions.
|
35
35
|
attr_accessor :issue_number
|
36
36
|
|
37
|
-
# 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.
|
37
|
+
# 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] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `033`: Visa Electron[^1]. Do not use this value. Use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay - '070': EFTPOS [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
|
38
38
|
attr_accessor :type
|
39
39
|
|
40
40
|
# This field contains the card brand name. Some of the possible values (not an exhaustive list) are - - VISA - MASTERCARD - AMERICAN EXPRESS - DISCOVER - DINERS CLUB - CARTE BLANCHE - JCB - OPTIMA - TWINPAY CREDIT CARD - TWINPAY DEBIT CARD - WALMART - ENROUTE - LOWES CONSUMER - HOME DEPOT CONSUMER - MBNA - DICKS SPORTWEAR - CASUAL CORNER - SEARS - JAL - DISNEY CARD - SWITCH/SOLO - SAMS CLUB CONSUMER - SAMS CLUB BUSINESS - NICOS HOUSE CARD - BEBE - RESTORATION HARDWARE - DELTA ONLINE - SOLO - VISA ELECTRON - DANKORT - LASER - CARTE BANCAIRE - CARTA SI - ENCODED ACCOUNT - UATP - HOUSEHOLD - MAESTRO - GE CAPITAL - KOREAN CARDS - STYLE CARDS - JCREW - MEIJER - HIPERCARD - AURA - REDECARD - ORICO HOUSE CARD - ELO - CAPITAL ONE PRIVATE LABEL - CARNET - RUPAY - CHINA UNION PAY - FALABELLA PRIVATE LABEL - PROMPTCARD - KOREAN DOMESTIC - BANRICOMPRAS
|