cybersource_rest_client 0.0.65 → 0.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +2 -0
- data/lib/cybersource_rest_client/api/batches_api.rb +1 -1
- data/lib/cybersource_rest_client/api/billing_agreements_api.rb +3 -3
- data/lib/cybersource_rest_client/api/bin_lookup_api.rb +1 -1
- data/lib/cybersource_rest_client/api/capture_api.rb +1 -1
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +2 -2
- data/lib/cybersource_rest_client/api/credit_api.rb +1 -1
- data/lib/cybersource_rest_client/api/customer_api.rb +2 -2
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +2 -2
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +2 -2
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +5 -5
- data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +1 -1
- data/lib/cybersource_rest_client/api/flex_api_api.rb +92 -0
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +3 -3
- data/lib/cybersource_rest_client/api/invoice_settings_api.rb +1 -1
- data/lib/cybersource_rest_client/api/invoices_api.rb +2 -2
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +2 -2
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +1 -3
- data/lib/cybersource_rest_client/api/microform_integration_api.rb +1 -1
- data/lib/cybersource_rest_client/api/orders_api.rb +167 -0
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +3 -3
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +2 -2
- data/lib/cybersource_rest_client/api/payments_api.rb +6 -6
- data/lib/cybersource_rest_client/api/payouts_api.rb +1 -1
- data/lib/cybersource_rest_client/api/plans_api.rb +2 -2
- data/lib/cybersource_rest_client/api/push_funds_api.rb +1 -1
- data/lib/cybersource_rest_client/api/refund_api.rb +2 -2
- data/lib/cybersource_rest_client/api/replay_webhooks_api.rb +1 -1
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +2 -2
- data/lib/cybersource_rest_client/api/reports_api.rb +1 -1
- data/lib/cybersource_rest_client/api/reversal_api.rb +2 -2
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +1 -1
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +2 -2
- data/lib/cybersource_rest_client/api/taxes_api.rb +2 -2
- data/lib/cybersource_rest_client/api/token_api.rb +1 -1
- data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +1 -1
- data/lib/cybersource_rest_client/api/user_management_search_api.rb +1 -1
- data/lib/cybersource_rest_client/api/verification_api.rb +2 -2
- data/lib/cybersource_rest_client/api/void_api.rb +5 -5
- data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information.rb +314 -360
- data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_business_information.rb +437 -483
- data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_kyc.rb +337 -381
- data/lib/cybersource_rest_client/models/boardingv1registrations_organization_information_kyc_deposit_bank_account.rb +297 -330
- data/lib/cybersource_rest_client/models/boardingv1registrations_registration_information.rb +271 -329
- data/lib/cybersource_rest_client/models/card_processing_config_common.rb +433 -445
- data/lib/cybersource_rest_client/models/card_processing_config_common_acquirer.rb +23 -1
- data/lib/cybersource_rest_client/models/card_processing_config_common_merchant_descriptor_information.rb +16 -5
- data/lib/cybersource_rest_client/models/card_processing_config_common_processors.rb +719 -720
- data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +321 -321
- data/lib/cybersource_rest_client/models/create_order_request.rb +229 -0
- data/lib/cybersource_rest_client/models/create_payment_request.rb +462 -462
- data/lib/cybersource_rest_client/models/flexv2sessions_fields.rb +199 -0
- data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information.rb +209 -0
- data/lib/cybersource_rest_client/models/{inline_response_400_5_details.rb → flexv2sessions_fields_order_information_amount_details.rb} +199 -201
- data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_amount_details_total_amount.rb +189 -0
- data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_bill_to.rb +309 -0
- data/lib/cybersource_rest_client/models/flexv2sessions_fields_order_information_ship_to.rb +289 -0
- data/lib/cybersource_rest_client/models/flexv2sessions_fields_payment_information.rb +189 -0
- data/lib/cybersource_rest_client/models/flexv2sessions_fields_payment_information_card.rb +229 -0
- data/lib/cybersource_rest_client/models/generate_capture_context_request.rb +227 -225
- data/lib/cybersource_rest_client/models/generate_flex_api_capture_context_request.rb +189 -0
- data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +293 -290
- data/lib/cybersource_rest_client/models/inline_response_200_1.rb +253 -253
- data/lib/cybersource_rest_client/models/inline_response_200_1_integration_information.rb +204 -204
- data/lib/cybersource_rest_client/models/inline_response_200_1_integration_information_tenant_configurations.rb +1 -34
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +213 -213
- data/lib/cybersource_rest_client/models/inline_response_200_3.rb +335 -335
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +251 -251
- data/lib/cybersource_rest_client/models/inline_response_200_5__embedded.rb +191 -191
- data/lib/cybersource_rest_client/models/inline_response_200_5__embedded__links.rb +191 -191
- data/lib/cybersource_rest_client/models/inline_response_200_5__embedded__links_reports.rb +190 -190
- data/lib/cybersource_rest_client/models/inline_response_200_5__embedded_batches.rb +295 -295
- data/lib/cybersource_rest_client/models/inline_response_200_5__embedded_totals.rb +229 -229
- data/lib/cybersource_rest_client/models/inline_response_200_5__links.rb +200 -200
- data/lib/cybersource_rest_client/models/inline_response_200_6.rb +290 -290
- data/lib/cybersource_rest_client/models/inline_response_200_6__links.rb +201 -201
- data/lib/cybersource_rest_client/models/inline_response_200_6__links_report.rb +189 -189
- data/lib/cybersource_rest_client/models/inline_response_200_6_billing.rb +219 -219
- data/lib/cybersource_rest_client/models/inline_response_200_7.rb +292 -292
- data/lib/cybersource_rest_client/models/inline_response_200_7_records.rb +209 -209
- data/lib/cybersource_rest_client/models/inline_response_200_7_response_record.rb +307 -307
- data/lib/cybersource_rest_client/models/inline_response_200_7_response_record_additional_updates.rb +242 -242
- data/lib/cybersource_rest_client/models/inline_response_200_7_source_record.rb +295 -295
- data/lib/cybersource_rest_client/models/inline_response_201_2.rb +281 -315
- data/lib/cybersource_rest_client/models/inline_response_201_2_integration_information_tenant_configurations.rb +253 -286
- data/lib/cybersource_rest_client/models/inline_response_201_2_registration_information.rb +222 -256
- data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments.rb +359 -359
- data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_configuration_status.rb +255 -299
- data/lib/cybersource_rest_client/models/inline_response_201_2_setups_payments_card_processing_subscription_status.rb +234 -278
- data/lib/cybersource_rest_client/models/inline_response_400_1.rb +242 -235
- data/lib/cybersource_rest_client/models/inline_response_400_1_details.rb +199 -0
- data/lib/cybersource_rest_client/models/inline_response_400_2.rb +3 -3
- data/lib/cybersource_rest_client/models/inline_response_400_3.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_4.rb +37 -60
- data/lib/cybersource_rest_client/models/inline_response_400_5.rb +258 -269
- data/lib/cybersource_rest_client/models/{inline_response_400_4_fields.rb → inline_response_400_5_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_6.rb +35 -75
- data/lib/cybersource_rest_client/models/inline_response_400_6_details.rb +201 -199
- data/lib/cybersource_rest_client/models/inline_response_404_1.rb +2 -36
- data/lib/cybersource_rest_client/models/inline_response_422_1.rb +2 -36
- data/lib/cybersource_rest_client/models/inline_response_500_2.rb +1 -35
- data/lib/cybersource_rest_client/models/microformv2sessions_checkout_api_initialization.rb +281 -279
- data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +1 -1
- data/lib/cybersource_rest_client/models/payer_auth_config_card_types_verified_by_visa_currencies.rb +244 -244
- data/lib/cybersource_rest_client/models/payer_auth_setup_request.rb +219 -219
- data/lib/cybersource_rest_client/models/payments_products.rb +369 -369
- data/lib/cybersource_rest_client/models/payments_products_card_present_connect_subscription_information.rb +202 -236
- data/lib/cybersource_rest_client/models/payments_products_card_processing_subscription_information.rb +215 -249
- data/lib/cybersource_rest_client/models/payments_products_differential_fee_subscription_information.rb +212 -246
- data/lib/cybersource_rest_client/models/payments_products_digital_payments_subscription_information.rb +215 -249
- data/lib/cybersource_rest_client/models/payments_products_e_check_subscription_information.rb +215 -249
- data/lib/cybersource_rest_client/models/payments_products_payer_authentication_subscription_information.rb +202 -236
- data/lib/cybersource_rest_client/models/payments_products_service_fee.rb +199 -199
- data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information.rb +189 -189
- data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations.rb +266 -266
- data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_merchant_information.rb +239 -239
- data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_payment_information.rb +2 -48
- data/lib/cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_products.rb +190 -190
- data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_create_order_post201_response.rb +269 -0
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_buyer_information.rb → pts_v2_create_order_post201_response_buyer_information.rb} +196 -196
- data/lib/cybersource_rest_client/models/pts_v2_create_order_post201_response_processor_information.rb +224 -0
- data/lib/cybersource_rest_client/models/{bin_lookupv400_response.rb → pts_v2_create_order_post400_response.rb} +224 -224
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_processor_information.rb +213 -213
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +295 -284
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +305 -295
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_embedded_actions.rb +189 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_embedded_actions_ap_capture.rb +190 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +263 -252
- data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_buyer_information_personal_identification.rb +207 -207
- data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_payment_information_e_wallet.rb +241 -230
- 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_payment_information_tokenized_card.rb +309 -309
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +227 -217
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_capture_options.rb +196 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +67 -6
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_seller_protection.rb +237 -218
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +313 -302
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +309 -309
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_processor_information.rb +224 -224
- data/lib/cybersource_rest_client/models/pts_v2_update_order_patch201_response.rb +200 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information.rb +240 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information_sub_merchant.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information.rb +205 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details.rb +302 -292
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information.rb +189 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information_emv.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +318 -232
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options.rb +282 -231
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information.rb +446 -378
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card.rb +321 -321
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_personal_identification.rb +256 -239
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information.rb +533 -448
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_account.rb +222 -222
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card.rb +317 -317
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_personal_identification.rb +256 -256
- data/lib/cybersource_rest_client/models/ptsv2intents_client_reference_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information.rb +223 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb +207 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information.rb +231 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_amount_details.rb +315 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_bill_to.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_invoice_details.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_line_items.rb +309 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_ship_to.rb +332 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_payment_information.rb +189 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_payment_type.rb +200 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_payment_type_method.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb +219 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_processing_information_authorization_options.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information.rb +189 -0
- data/lib/cybersource_rest_client/models/ptsv2intentsid_order_information.rb +221 -0
- data/lib/cybersource_rest_client/models/ptsv2intentsid_processing_information.rb +192 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_agreement_information.rb +207 -190
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +229 -229
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +651 -641
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_octsurcharge.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +721 -704
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +264 -247
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +383 -383
- data/lib/cybersource_rest_client/models/ptsv2payments_recurring_payment_information.rb +14 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +298 -298
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +230 -230
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +247 -230
- data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_processing_information.rb +192 -192
- data/lib/cybersource_rest_client/models/push_funds201_response.rb +337 -317
- data/lib/cybersource_rest_client/models/push_funds201_response_error_information.rb +225 -225
- data/lib/cybersource_rest_client/models/push_funds201_response_payment_information.rb +189 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_payment_information_tokenized_card.rb +205 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_processing_information.rb +189 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_processing_information_domestic_national_net.rb +197 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +329 -241
- data/lib/cybersource_rest_client/models/push_funds201_response_processor_information_routing.rb +196 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_processor_information_settlement.rb +207 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information.rb +206 -189
- data/lib/cybersource_rest_client/models/push_funds502_response.rb +246 -246
- data/lib/cybersource_rest_client/models/push_funds_request.rb +264 -239
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +206 -206
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +269 -269
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +622 -622
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +279 -279
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response_1.rb +235 -235
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +312 -312
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +241 -241
- data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +434 -434
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +219 -219
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_customer.rb +222 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_client_reference_information.rb +240 -240
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_customer.rb +9 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +795 -812
- data/lib/cybersource_rest_client/models/sa_config_payment_methods.rb +191 -213
- data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier.rb +1 -1
- data/lib/cybersource_rest_client/models/{tms_embedded_instrument_identifier_tokenized_card.rb → tmsv2_tokenized_card.rb} +16 -6
- data/lib/cybersource_rest_client/models/{tms_embedded_instrument_identifier_tokenized_card_card.rb → tmsv2_tokenized_card_card.rb} +1 -1
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata.rb +189 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art.rb +250 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_background_asset.rb +200 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_background_asset__links.rb +189 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_background_asset__links_self.rb +190 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_brand_logo_asset.rb +200 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_brand_logo_asset__links.rb +189 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_brand_logo_asset__links_self.rb +190 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_co_brand_logo_asset.rb +200 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_co_brand_logo_asset__links.rb +189 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_co_brand_logo_asset__links_self.rb +190 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_combined_asset.rb +200 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_combined_asset__links.rb +189 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_combined_asset__links_self.rb +190 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_icon_asset.rb +200 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_icon_asset__links.rb +189 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_icon_asset__links_self.rb +190 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_issuer_logo_asset.rb +200 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_issuer_logo_asset__links.rb +189 -0
- data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata_card_art_issuer_logo_asset__links_self.rb +190 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +245 -245
- 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_get200_response_processor_information_multi_processor_routing.rb +235 -235
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +223 -206
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +392 -392
- data/lib/cybersource_rest_client/models/update_order_request.rb +229 -0
- data/lib/cybersource_rest_client/models/upv1capturecontexts_capture_mandate.rb +253 -253
- data/lib/cybersource_rest_client/models/upv1capturecontexts_checkout_api_initialization.rb +280 -279
- data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information_amount_details.rb +201 -199
- data/lib/cybersource_rest_client/models/validate_request.rb +249 -249
- data/lib/cybersource_rest_client/models/vt_config_card_not_present_global_payment_information_basic_information.rb +273 -317
- data/lib/cybersource_rest_client/models/vt_config_card_not_present_global_payment_information_payment_information.rb +315 -337
- data/lib/cybersource_rest_client/utilities/tracking/sdk_tracker.rb +5 -1
- data/lib/cybersource_rest_client.rb +75 -6
- metadata +78 -29
@@ -1,359 +1,359 @@
|
|
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 InlineResponse2012SetupsPayments
|
16
|
-
attr_accessor :card_processing
|
17
|
-
|
18
|
-
attr_accessor :card_present_connect
|
19
|
-
|
20
|
-
attr_accessor :e_check
|
21
|
-
|
22
|
-
attr_accessor :payer_authentication
|
23
|
-
|
24
|
-
attr_accessor :digital_payments
|
25
|
-
|
26
|
-
attr_accessor :secure_acceptance
|
27
|
-
|
28
|
-
attr_accessor :virtual_terminal
|
29
|
-
|
30
|
-
attr_accessor :currency_conversion
|
31
|
-
|
32
|
-
attr_accessor :tax
|
33
|
-
|
34
|
-
attr_accessor :customer_invoicing
|
35
|
-
|
36
|
-
attr_accessor :recurring_billing
|
37
|
-
|
38
|
-
attr_accessor :cybs_ready_terminal
|
39
|
-
|
40
|
-
attr_accessor :payment_orchestration
|
41
|
-
|
42
|
-
attr_accessor :payouts
|
43
|
-
|
44
|
-
attr_accessor :pay_by_link
|
45
|
-
|
46
|
-
attr_accessor :unified_checkout
|
47
|
-
|
48
|
-
attr_accessor :receivables_manager
|
49
|
-
|
50
|
-
attr_accessor :service_fee
|
51
|
-
|
52
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
53
|
-
def self.attribute_map
|
54
|
-
{
|
55
|
-
:'card_processing' => :'cardProcessing',
|
56
|
-
:'card_present_connect' => :'cardPresentConnect',
|
57
|
-
:'e_check' => :'eCheck',
|
58
|
-
:'payer_authentication' => :'payerAuthentication',
|
59
|
-
:'digital_payments' => :'digitalPayments',
|
60
|
-
:'secure_acceptance' => :'secureAcceptance',
|
61
|
-
:'virtual_terminal' => :'virtualTerminal',
|
62
|
-
:'currency_conversion' => :'currencyConversion',
|
63
|
-
:'tax' => :'tax',
|
64
|
-
:'customer_invoicing' => :'customerInvoicing',
|
65
|
-
:'recurring_billing' => :'recurringBilling',
|
66
|
-
:'cybs_ready_terminal' => :'cybsReadyTerminal',
|
67
|
-
:'payment_orchestration' => :'paymentOrchestration',
|
68
|
-
:'payouts' => :'payouts',
|
69
|
-
:'pay_by_link' => :'payByLink',
|
70
|
-
:'unified_checkout' => :'unifiedCheckout',
|
71
|
-
:'receivables_manager' => :'receivablesManager',
|
72
|
-
:'service_fee' => :'serviceFee'
|
73
|
-
}
|
74
|
-
end
|
75
|
-
|
76
|
-
# Attribute mapping from JSON key to ruby-style variable name.
|
77
|
-
def self.json_map
|
78
|
-
{
|
79
|
-
:'card_processing' => :'card_processing',
|
80
|
-
:'card_present_connect' => :'card_present_connect',
|
81
|
-
:'e_check' => :'e_check',
|
82
|
-
:'payer_authentication' => :'payer_authentication',
|
83
|
-
:'digital_payments' => :'digital_payments',
|
84
|
-
:'secure_acceptance' => :'secure_acceptance',
|
85
|
-
:'virtual_terminal' => :'virtual_terminal',
|
86
|
-
:'currency_conversion' => :'currency_conversion',
|
87
|
-
:'tax' => :'tax',
|
88
|
-
:'customer_invoicing' => :'customer_invoicing',
|
89
|
-
:'recurring_billing' => :'recurring_billing',
|
90
|
-
:'cybs_ready_terminal' => :'cybs_ready_terminal',
|
91
|
-
:'payment_orchestration' => :'payment_orchestration',
|
92
|
-
:'payouts' => :'payouts',
|
93
|
-
:'pay_by_link' => :'pay_by_link',
|
94
|
-
:'unified_checkout' => :'unified_checkout',
|
95
|
-
:'receivables_manager' => :'receivables_manager',
|
96
|
-
:'service_fee' => :'service_fee'
|
97
|
-
}
|
98
|
-
end
|
99
|
-
|
100
|
-
# Attribute type mapping.
|
101
|
-
def self.swagger_types
|
102
|
-
{
|
103
|
-
:'card_processing' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
104
|
-
:'card_present_connect' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
105
|
-
:'e_check' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
106
|
-
:'payer_authentication' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
107
|
-
:'digital_payments' => :'InlineResponse2012SetupsPaymentsDigitalPayments',
|
108
|
-
:'secure_acceptance' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
109
|
-
:'virtual_terminal' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
110
|
-
:'currency_conversion' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
111
|
-
:'tax' => :'InlineResponse2012SetupsPaymentsDigitalPayments',
|
112
|
-
:'customer_invoicing' => :'InlineResponse2012SetupsPaymentsDigitalPayments',
|
113
|
-
:'recurring_billing' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
114
|
-
:'cybs_ready_terminal' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
115
|
-
:'payment_orchestration' => :'InlineResponse2012SetupsPaymentsDigitalPayments',
|
116
|
-
:'payouts' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
117
|
-
:'pay_by_link' => :'InlineResponse2012SetupsPaymentsDigitalPayments',
|
118
|
-
:'unified_checkout' => :'InlineResponse2012SetupsPaymentsDigitalPayments',
|
119
|
-
:'receivables_manager' => :'InlineResponse2012SetupsPaymentsDigitalPayments',
|
120
|
-
:'service_fee' => :'InlineResponse2012SetupsPaymentsCardProcessing'
|
121
|
-
}
|
122
|
-
end
|
123
|
-
|
124
|
-
# Initializes the object
|
125
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
126
|
-
def initialize(attributes = {})
|
127
|
-
return unless attributes.is_a?(Hash)
|
128
|
-
|
129
|
-
# convert string to symbol for hash key
|
130
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
131
|
-
|
132
|
-
if attributes.has_key?(:'cardProcessing')
|
133
|
-
self.card_processing = attributes[:'cardProcessing']
|
134
|
-
end
|
135
|
-
|
136
|
-
if attributes.has_key?(:'cardPresentConnect')
|
137
|
-
self.card_present_connect = attributes[:'cardPresentConnect']
|
138
|
-
end
|
139
|
-
|
140
|
-
if attributes.has_key?(:'eCheck')
|
141
|
-
self.e_check = attributes[:'eCheck']
|
142
|
-
end
|
143
|
-
|
144
|
-
if attributes.has_key?(:'payerAuthentication')
|
145
|
-
self.payer_authentication = attributes[:'payerAuthentication']
|
146
|
-
end
|
147
|
-
|
148
|
-
if attributes.has_key?(:'digitalPayments')
|
149
|
-
self.digital_payments = attributes[:'digitalPayments']
|
150
|
-
end
|
151
|
-
|
152
|
-
if attributes.has_key?(:'secureAcceptance')
|
153
|
-
self.secure_acceptance = attributes[:'secureAcceptance']
|
154
|
-
end
|
155
|
-
|
156
|
-
if attributes.has_key?(:'virtualTerminal')
|
157
|
-
self.virtual_terminal = attributes[:'virtualTerminal']
|
158
|
-
end
|
159
|
-
|
160
|
-
if attributes.has_key?(:'currencyConversion')
|
161
|
-
self.currency_conversion = attributes[:'currencyConversion']
|
162
|
-
end
|
163
|
-
|
164
|
-
if attributes.has_key?(:'tax')
|
165
|
-
self.tax = attributes[:'tax']
|
166
|
-
end
|
167
|
-
|
168
|
-
if attributes.has_key?(:'customerInvoicing')
|
169
|
-
self.customer_invoicing = attributes[:'customerInvoicing']
|
170
|
-
end
|
171
|
-
|
172
|
-
if attributes.has_key?(:'recurringBilling')
|
173
|
-
self.recurring_billing = attributes[:'recurringBilling']
|
174
|
-
end
|
175
|
-
|
176
|
-
if attributes.has_key?(:'cybsReadyTerminal')
|
177
|
-
self.cybs_ready_terminal = attributes[:'cybsReadyTerminal']
|
178
|
-
end
|
179
|
-
|
180
|
-
if attributes.has_key?(:'paymentOrchestration')
|
181
|
-
self.payment_orchestration = attributes[:'paymentOrchestration']
|
182
|
-
end
|
183
|
-
|
184
|
-
if attributes.has_key?(:'payouts')
|
185
|
-
self.payouts = attributes[:'payouts']
|
186
|
-
end
|
187
|
-
|
188
|
-
if attributes.has_key?(:'payByLink')
|
189
|
-
self.pay_by_link = attributes[:'payByLink']
|
190
|
-
end
|
191
|
-
|
192
|
-
if attributes.has_key?(:'unifiedCheckout')
|
193
|
-
self.unified_checkout = attributes[:'unifiedCheckout']
|
194
|
-
end
|
195
|
-
|
196
|
-
if attributes.has_key?(:'receivablesManager')
|
197
|
-
self.receivables_manager = attributes[:'receivablesManager']
|
198
|
-
end
|
199
|
-
|
200
|
-
if attributes.has_key?(:'serviceFee')
|
201
|
-
self.service_fee = attributes[:'serviceFee']
|
202
|
-
end
|
203
|
-
end
|
204
|
-
|
205
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
206
|
-
# @return Array for valid properties with the reasons
|
207
|
-
def list_invalid_properties
|
208
|
-
invalid_properties = Array.new
|
209
|
-
invalid_properties
|
210
|
-
end
|
211
|
-
|
212
|
-
# Check to see if the all the properties in the model are valid
|
213
|
-
# @return true if the model is valid
|
214
|
-
def valid?
|
215
|
-
true
|
216
|
-
end
|
217
|
-
|
218
|
-
# Checks equality by comparing each attribute.
|
219
|
-
# @param [Object] Object to be compared
|
220
|
-
def ==(o)
|
221
|
-
return true if self.equal?(o)
|
222
|
-
self.class == o.class &&
|
223
|
-
card_processing == o.card_processing &&
|
224
|
-
card_present_connect == o.card_present_connect &&
|
225
|
-
e_check == o.e_check &&
|
226
|
-
payer_authentication == o.payer_authentication &&
|
227
|
-
digital_payments == o.digital_payments &&
|
228
|
-
secure_acceptance == o.secure_acceptance &&
|
229
|
-
virtual_terminal == o.virtual_terminal &&
|
230
|
-
currency_conversion == o.currency_conversion &&
|
231
|
-
tax == o.tax &&
|
232
|
-
customer_invoicing == o.customer_invoicing &&
|
233
|
-
recurring_billing == o.recurring_billing &&
|
234
|
-
cybs_ready_terminal == o.cybs_ready_terminal &&
|
235
|
-
payment_orchestration == o.payment_orchestration &&
|
236
|
-
payouts == o.payouts &&
|
237
|
-
pay_by_link == o.pay_by_link &&
|
238
|
-
unified_checkout == o.unified_checkout &&
|
239
|
-
receivables_manager == o.receivables_manager &&
|
240
|
-
service_fee == o.service_fee
|
241
|
-
end
|
242
|
-
|
243
|
-
# @see the `==` method
|
244
|
-
# @param [Object] Object to be compared
|
245
|
-
def eql?(o)
|
246
|
-
self == o
|
247
|
-
end
|
248
|
-
|
249
|
-
# Calculates hash code according to all attributes.
|
250
|
-
# @return [Fixnum] Hash code
|
251
|
-
def hash
|
252
|
-
[card_processing, card_present_connect, e_check, payer_authentication, digital_payments, secure_acceptance, virtual_terminal, currency_conversion, tax, customer_invoicing, recurring_billing, cybs_ready_terminal, payment_orchestration, payouts, pay_by_link, unified_checkout, receivables_manager, service_fee].hash
|
253
|
-
end
|
254
|
-
|
255
|
-
# Builds the object from hash
|
256
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
257
|
-
# @return [Object] Returns the model itself
|
258
|
-
def build_from_hash(attributes)
|
259
|
-
return nil unless attributes.is_a?(Hash)
|
260
|
-
self.class.swagger_types.each_pair do |key, type|
|
261
|
-
if type =~ /\AArray<(.*)>/i
|
262
|
-
# check to ensure the input is an array given that the the attribute
|
263
|
-
# is documented as an array but the input is not
|
264
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
265
|
-
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
266
|
-
end
|
267
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
268
|
-
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
269
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
270
|
-
end
|
271
|
-
|
272
|
-
self
|
273
|
-
end
|
274
|
-
|
275
|
-
# Deserializes the data based on type
|
276
|
-
# @param string type Data type
|
277
|
-
# @param string value Value to be deserialized
|
278
|
-
# @return [Object] Deserialized data
|
279
|
-
def _deserialize(type, value)
|
280
|
-
case type.to_sym
|
281
|
-
when :DateTime
|
282
|
-
DateTime.parse(value)
|
283
|
-
when :Date
|
284
|
-
Date.parse(value)
|
285
|
-
when :String
|
286
|
-
value.to_s
|
287
|
-
when :Integer
|
288
|
-
value.to_i
|
289
|
-
when :Float
|
290
|
-
value.to_f
|
291
|
-
when :BOOLEAN
|
292
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
293
|
-
true
|
294
|
-
else
|
295
|
-
false
|
296
|
-
end
|
297
|
-
when :Object
|
298
|
-
# generic object (usually a Hash), return directly
|
299
|
-
value
|
300
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
301
|
-
inner_type = Regexp.last_match[:inner_type]
|
302
|
-
value.map { |v| _deserialize(inner_type, v) }
|
303
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
304
|
-
k_type = Regexp.last_match[:k_type]
|
305
|
-
v_type = Regexp.last_match[:v_type]
|
306
|
-
{}.tap do |hash|
|
307
|
-
value.each do |k, v|
|
308
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
309
|
-
end
|
310
|
-
end
|
311
|
-
else # model
|
312
|
-
temp_model = CyberSource.const_get(type).new
|
313
|
-
temp_model.build_from_hash(value)
|
314
|
-
end
|
315
|
-
end
|
316
|
-
|
317
|
-
# Returns the string representation of the object
|
318
|
-
# @return [String] String presentation of the object
|
319
|
-
def to_s
|
320
|
-
to_hash.to_s
|
321
|
-
end
|
322
|
-
|
323
|
-
# to_body is an alias to to_hash (backward compatibility)
|
324
|
-
# @return [Hash] Returns the object in the form of hash
|
325
|
-
def to_body
|
326
|
-
to_hash
|
327
|
-
end
|
328
|
-
|
329
|
-
# Returns the object in the form of hash
|
330
|
-
# @return [Hash] Returns the object in the form of hash
|
331
|
-
def to_hash
|
332
|
-
hash = {}
|
333
|
-
self.class.attribute_map.each_pair do |attr, param|
|
334
|
-
value = self.send(attr)
|
335
|
-
next if value.nil?
|
336
|
-
hash[param] = _to_hash(value)
|
337
|
-
end
|
338
|
-
hash
|
339
|
-
end
|
340
|
-
|
341
|
-
# Outputs non-array value in the form of hash
|
342
|
-
# For object, use to_hash. Otherwise, just return the value
|
343
|
-
# @param [Object] value Any valid value
|
344
|
-
# @return [Hash] Returns the value in the form of hash
|
345
|
-
def _to_hash(value)
|
346
|
-
if value.is_a?(Array)
|
347
|
-
value.compact.map { |v| _to_hash(v) }
|
348
|
-
elsif value.is_a?(Hash)
|
349
|
-
{}.tap do |hash|
|
350
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
351
|
-
end
|
352
|
-
elsif value.respond_to? :to_hash
|
353
|
-
value.to_hash
|
354
|
-
else
|
355
|
-
value
|
356
|
-
end
|
357
|
-
end
|
358
|
-
end
|
359
|
-
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 InlineResponse2012SetupsPayments
|
16
|
+
attr_accessor :card_processing
|
17
|
+
|
18
|
+
attr_accessor :card_present_connect
|
19
|
+
|
20
|
+
attr_accessor :e_check
|
21
|
+
|
22
|
+
attr_accessor :payer_authentication
|
23
|
+
|
24
|
+
attr_accessor :digital_payments
|
25
|
+
|
26
|
+
attr_accessor :secure_acceptance
|
27
|
+
|
28
|
+
attr_accessor :virtual_terminal
|
29
|
+
|
30
|
+
attr_accessor :currency_conversion
|
31
|
+
|
32
|
+
attr_accessor :tax
|
33
|
+
|
34
|
+
attr_accessor :customer_invoicing
|
35
|
+
|
36
|
+
attr_accessor :recurring_billing
|
37
|
+
|
38
|
+
attr_accessor :cybs_ready_terminal
|
39
|
+
|
40
|
+
attr_accessor :payment_orchestration
|
41
|
+
|
42
|
+
attr_accessor :payouts
|
43
|
+
|
44
|
+
attr_accessor :pay_by_link
|
45
|
+
|
46
|
+
attr_accessor :unified_checkout
|
47
|
+
|
48
|
+
attr_accessor :receivables_manager
|
49
|
+
|
50
|
+
attr_accessor :service_fee
|
51
|
+
|
52
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
53
|
+
def self.attribute_map
|
54
|
+
{
|
55
|
+
:'card_processing' => :'cardProcessing',
|
56
|
+
:'card_present_connect' => :'cardPresentConnect',
|
57
|
+
:'e_check' => :'eCheck',
|
58
|
+
:'payer_authentication' => :'payerAuthentication',
|
59
|
+
:'digital_payments' => :'digitalPayments',
|
60
|
+
:'secure_acceptance' => :'secureAcceptance',
|
61
|
+
:'virtual_terminal' => :'virtualTerminal',
|
62
|
+
:'currency_conversion' => :'currencyConversion',
|
63
|
+
:'tax' => :'tax',
|
64
|
+
:'customer_invoicing' => :'customerInvoicing',
|
65
|
+
:'recurring_billing' => :'recurringBilling',
|
66
|
+
:'cybs_ready_terminal' => :'cybsReadyTerminal',
|
67
|
+
:'payment_orchestration' => :'paymentOrchestration',
|
68
|
+
:'payouts' => :'payouts',
|
69
|
+
:'pay_by_link' => :'payByLink',
|
70
|
+
:'unified_checkout' => :'unifiedCheckout',
|
71
|
+
:'receivables_manager' => :'receivablesManager',
|
72
|
+
:'service_fee' => :'serviceFee'
|
73
|
+
}
|
74
|
+
end
|
75
|
+
|
76
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
77
|
+
def self.json_map
|
78
|
+
{
|
79
|
+
:'card_processing' => :'card_processing',
|
80
|
+
:'card_present_connect' => :'card_present_connect',
|
81
|
+
:'e_check' => :'e_check',
|
82
|
+
:'payer_authentication' => :'payer_authentication',
|
83
|
+
:'digital_payments' => :'digital_payments',
|
84
|
+
:'secure_acceptance' => :'secure_acceptance',
|
85
|
+
:'virtual_terminal' => :'virtual_terminal',
|
86
|
+
:'currency_conversion' => :'currency_conversion',
|
87
|
+
:'tax' => :'tax',
|
88
|
+
:'customer_invoicing' => :'customer_invoicing',
|
89
|
+
:'recurring_billing' => :'recurring_billing',
|
90
|
+
:'cybs_ready_terminal' => :'cybs_ready_terminal',
|
91
|
+
:'payment_orchestration' => :'payment_orchestration',
|
92
|
+
:'payouts' => :'payouts',
|
93
|
+
:'pay_by_link' => :'pay_by_link',
|
94
|
+
:'unified_checkout' => :'unified_checkout',
|
95
|
+
:'receivables_manager' => :'receivables_manager',
|
96
|
+
:'service_fee' => :'service_fee'
|
97
|
+
}
|
98
|
+
end
|
99
|
+
|
100
|
+
# Attribute type mapping.
|
101
|
+
def self.swagger_types
|
102
|
+
{
|
103
|
+
:'card_processing' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
104
|
+
:'card_present_connect' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
105
|
+
:'e_check' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
106
|
+
:'payer_authentication' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
107
|
+
:'digital_payments' => :'InlineResponse2012SetupsPaymentsDigitalPayments',
|
108
|
+
:'secure_acceptance' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
109
|
+
:'virtual_terminal' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
110
|
+
:'currency_conversion' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
111
|
+
:'tax' => :'InlineResponse2012SetupsPaymentsDigitalPayments',
|
112
|
+
:'customer_invoicing' => :'InlineResponse2012SetupsPaymentsDigitalPayments',
|
113
|
+
:'recurring_billing' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
114
|
+
:'cybs_ready_terminal' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
115
|
+
:'payment_orchestration' => :'InlineResponse2012SetupsPaymentsDigitalPayments',
|
116
|
+
:'payouts' => :'InlineResponse2012SetupsPaymentsCardProcessing',
|
117
|
+
:'pay_by_link' => :'InlineResponse2012SetupsPaymentsDigitalPayments',
|
118
|
+
:'unified_checkout' => :'InlineResponse2012SetupsPaymentsDigitalPayments',
|
119
|
+
:'receivables_manager' => :'InlineResponse2012SetupsPaymentsDigitalPayments',
|
120
|
+
:'service_fee' => :'InlineResponse2012SetupsPaymentsCardProcessing'
|
121
|
+
}
|
122
|
+
end
|
123
|
+
|
124
|
+
# Initializes the object
|
125
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
126
|
+
def initialize(attributes = {})
|
127
|
+
return unless attributes.is_a?(Hash)
|
128
|
+
|
129
|
+
# convert string to symbol for hash key
|
130
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
131
|
+
|
132
|
+
if attributes.has_key?(:'cardProcessing')
|
133
|
+
self.card_processing = attributes[:'cardProcessing']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.has_key?(:'cardPresentConnect')
|
137
|
+
self.card_present_connect = attributes[:'cardPresentConnect']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.has_key?(:'eCheck')
|
141
|
+
self.e_check = attributes[:'eCheck']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.has_key?(:'payerAuthentication')
|
145
|
+
self.payer_authentication = attributes[:'payerAuthentication']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.has_key?(:'digitalPayments')
|
149
|
+
self.digital_payments = attributes[:'digitalPayments']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.has_key?(:'secureAcceptance')
|
153
|
+
self.secure_acceptance = attributes[:'secureAcceptance']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.has_key?(:'virtualTerminal')
|
157
|
+
self.virtual_terminal = attributes[:'virtualTerminal']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.has_key?(:'currencyConversion')
|
161
|
+
self.currency_conversion = attributes[:'currencyConversion']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.has_key?(:'tax')
|
165
|
+
self.tax = attributes[:'tax']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.has_key?(:'customerInvoicing')
|
169
|
+
self.customer_invoicing = attributes[:'customerInvoicing']
|
170
|
+
end
|
171
|
+
|
172
|
+
if attributes.has_key?(:'recurringBilling')
|
173
|
+
self.recurring_billing = attributes[:'recurringBilling']
|
174
|
+
end
|
175
|
+
|
176
|
+
if attributes.has_key?(:'cybsReadyTerminal')
|
177
|
+
self.cybs_ready_terminal = attributes[:'cybsReadyTerminal']
|
178
|
+
end
|
179
|
+
|
180
|
+
if attributes.has_key?(:'paymentOrchestration')
|
181
|
+
self.payment_orchestration = attributes[:'paymentOrchestration']
|
182
|
+
end
|
183
|
+
|
184
|
+
if attributes.has_key?(:'payouts')
|
185
|
+
self.payouts = attributes[:'payouts']
|
186
|
+
end
|
187
|
+
|
188
|
+
if attributes.has_key?(:'payByLink')
|
189
|
+
self.pay_by_link = attributes[:'payByLink']
|
190
|
+
end
|
191
|
+
|
192
|
+
if attributes.has_key?(:'unifiedCheckout')
|
193
|
+
self.unified_checkout = attributes[:'unifiedCheckout']
|
194
|
+
end
|
195
|
+
|
196
|
+
if attributes.has_key?(:'receivablesManager')
|
197
|
+
self.receivables_manager = attributes[:'receivablesManager']
|
198
|
+
end
|
199
|
+
|
200
|
+
if attributes.has_key?(:'serviceFee')
|
201
|
+
self.service_fee = attributes[:'serviceFee']
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
206
|
+
# @return Array for valid properties with the reasons
|
207
|
+
def list_invalid_properties
|
208
|
+
invalid_properties = Array.new
|
209
|
+
invalid_properties
|
210
|
+
end
|
211
|
+
|
212
|
+
# Check to see if the all the properties in the model are valid
|
213
|
+
# @return true if the model is valid
|
214
|
+
def valid?
|
215
|
+
true
|
216
|
+
end
|
217
|
+
|
218
|
+
# Checks equality by comparing each attribute.
|
219
|
+
# @param [Object] Object to be compared
|
220
|
+
def ==(o)
|
221
|
+
return true if self.equal?(o)
|
222
|
+
self.class == o.class &&
|
223
|
+
card_processing == o.card_processing &&
|
224
|
+
card_present_connect == o.card_present_connect &&
|
225
|
+
e_check == o.e_check &&
|
226
|
+
payer_authentication == o.payer_authentication &&
|
227
|
+
digital_payments == o.digital_payments &&
|
228
|
+
secure_acceptance == o.secure_acceptance &&
|
229
|
+
virtual_terminal == o.virtual_terminal &&
|
230
|
+
currency_conversion == o.currency_conversion &&
|
231
|
+
tax == o.tax &&
|
232
|
+
customer_invoicing == o.customer_invoicing &&
|
233
|
+
recurring_billing == o.recurring_billing &&
|
234
|
+
cybs_ready_terminal == o.cybs_ready_terminal &&
|
235
|
+
payment_orchestration == o.payment_orchestration &&
|
236
|
+
payouts == o.payouts &&
|
237
|
+
pay_by_link == o.pay_by_link &&
|
238
|
+
unified_checkout == o.unified_checkout &&
|
239
|
+
receivables_manager == o.receivables_manager &&
|
240
|
+
service_fee == o.service_fee
|
241
|
+
end
|
242
|
+
|
243
|
+
# @see the `==` method
|
244
|
+
# @param [Object] Object to be compared
|
245
|
+
def eql?(o)
|
246
|
+
self == o
|
247
|
+
end
|
248
|
+
|
249
|
+
# Calculates hash code according to all attributes.
|
250
|
+
# @return [Fixnum] Hash code
|
251
|
+
def hash
|
252
|
+
[card_processing, card_present_connect, e_check, payer_authentication, digital_payments, secure_acceptance, virtual_terminal, currency_conversion, tax, customer_invoicing, recurring_billing, cybs_ready_terminal, payment_orchestration, payouts, pay_by_link, unified_checkout, receivables_manager, service_fee].hash
|
253
|
+
end
|
254
|
+
|
255
|
+
# Builds the object from hash
|
256
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
257
|
+
# @return [Object] Returns the model itself
|
258
|
+
def build_from_hash(attributes)
|
259
|
+
return nil unless attributes.is_a?(Hash)
|
260
|
+
self.class.swagger_types.each_pair do |key, type|
|
261
|
+
if type =~ /\AArray<(.*)>/i
|
262
|
+
# check to ensure the input is an array given that the the attribute
|
263
|
+
# is documented as an array but the input is not
|
264
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
265
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
266
|
+
end
|
267
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
268
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
269
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
270
|
+
end
|
271
|
+
|
272
|
+
self
|
273
|
+
end
|
274
|
+
|
275
|
+
# Deserializes the data based on type
|
276
|
+
# @param string type Data type
|
277
|
+
# @param string value Value to be deserialized
|
278
|
+
# @return [Object] Deserialized data
|
279
|
+
def _deserialize(type, value)
|
280
|
+
case type.to_sym
|
281
|
+
when :DateTime
|
282
|
+
DateTime.parse(value)
|
283
|
+
when :Date
|
284
|
+
Date.parse(value)
|
285
|
+
when :String
|
286
|
+
value.to_s
|
287
|
+
when :Integer
|
288
|
+
value.to_i
|
289
|
+
when :Float
|
290
|
+
value.to_f
|
291
|
+
when :BOOLEAN
|
292
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
293
|
+
true
|
294
|
+
else
|
295
|
+
false
|
296
|
+
end
|
297
|
+
when :Object
|
298
|
+
# generic object (usually a Hash), return directly
|
299
|
+
value
|
300
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
301
|
+
inner_type = Regexp.last_match[:inner_type]
|
302
|
+
value.map { |v| _deserialize(inner_type, v) }
|
303
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
304
|
+
k_type = Regexp.last_match[:k_type]
|
305
|
+
v_type = Regexp.last_match[:v_type]
|
306
|
+
{}.tap do |hash|
|
307
|
+
value.each do |k, v|
|
308
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
309
|
+
end
|
310
|
+
end
|
311
|
+
else # model
|
312
|
+
temp_model = CyberSource.const_get(type).new
|
313
|
+
temp_model.build_from_hash(value)
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|
317
|
+
# Returns the string representation of the object
|
318
|
+
# @return [String] String presentation of the object
|
319
|
+
def to_s
|
320
|
+
to_hash.to_s
|
321
|
+
end
|
322
|
+
|
323
|
+
# to_body is an alias to to_hash (backward compatibility)
|
324
|
+
# @return [Hash] Returns the object in the form of hash
|
325
|
+
def to_body
|
326
|
+
to_hash
|
327
|
+
end
|
328
|
+
|
329
|
+
# Returns the object in the form of hash
|
330
|
+
# @return [Hash] Returns the object in the form of hash
|
331
|
+
def to_hash
|
332
|
+
hash = {}
|
333
|
+
self.class.attribute_map.each_pair do |attr, param|
|
334
|
+
value = self.send(attr)
|
335
|
+
next if value.nil?
|
336
|
+
hash[param] = _to_hash(value)
|
337
|
+
end
|
338
|
+
hash
|
339
|
+
end
|
340
|
+
|
341
|
+
# Outputs non-array value in the form of hash
|
342
|
+
# For object, use to_hash. Otherwise, just return the value
|
343
|
+
# @param [Object] value Any valid value
|
344
|
+
# @return [Hash] Returns the value in the form of hash
|
345
|
+
def _to_hash(value)
|
346
|
+
if value.is_a?(Array)
|
347
|
+
value.compact.map { |v| _to_hash(v) }
|
348
|
+
elsif value.is_a?(Hash)
|
349
|
+
{}.tap do |hash|
|
350
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
351
|
+
end
|
352
|
+
elsif value.respond_to? :to_hash
|
353
|
+
value.to_hash
|
354
|
+
else
|
355
|
+
value
|
356
|
+
end
|
357
|
+
end
|
358
|
+
end
|
359
|
+
end
|