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,495 +1,495 @@
|
|
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 Ptsv2payoutsSenderInformation
|
16
|
-
# Reference number generated by you that uniquely identifies the sender.
|
17
|
-
attr_accessor :reference_number
|
18
|
-
|
19
|
-
attr_accessor :account
|
20
|
-
|
21
|
-
# First name of the sender. This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported.Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to the processor.
|
22
|
-
attr_accessor :first_name
|
23
|
-
|
24
|
-
# Recipient middle initial (Optional).
|
25
|
-
attr_accessor :middle_initial
|
26
|
-
|
27
|
-
# Middle name of the sender. This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to sent to the processor.
|
28
|
-
attr_accessor :middle_name
|
29
|
-
|
30
|
-
# Last name of the sender. This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to sent to the processor.
|
31
|
-
attr_accessor :last_name
|
32
|
-
|
33
|
-
# Name of sender. **Funds Disbursement** This value is the name of the originator sending the funds disbursement. * CTV, Paymentech (30)
|
34
|
-
attr_accessor :name
|
35
|
-
|
36
|
-
# Street address of sender. **Funds Disbursement** This value is the address of the originator sending the funds disbursement.
|
37
|
-
attr_accessor :address1
|
38
|
-
|
39
|
-
# City of sender. **Funds Disbursement** This value is the city of the originator sending the funds disbursement.
|
40
|
-
attr_accessor :locality
|
41
|
-
|
42
|
-
# Sender's state. Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf).
|
43
|
-
attr_accessor :administrative_area
|
44
|
-
|
45
|
-
# Country of sender. Use the [ISO Standard Country Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf). * CTV (3)
|
46
|
-
attr_accessor :country_code
|
47
|
-
|
48
|
-
# Sender's postal code. Required only for FDCCompass.
|
49
|
-
attr_accessor :postal_code
|
50
|
-
|
51
|
-
# Sender's phone number. Required only for FDCCompass.
|
52
|
-
attr_accessor :phone_number
|
53
|
-
|
54
|
-
# Sender's date of birth in YYYYMMDD format. Required only for FDCCompass.
|
55
|
-
attr_accessor :date_of_birth
|
56
|
-
|
57
|
-
# Customer's government-assigned tax identification number.
|
58
|
-
attr_accessor :vat_registration_number
|
59
|
-
|
60
|
-
# #### Visa Platform Connect This tag will contain the type of sender identification. The valid values are: • BTHD (Date of birth) • CUID (Customer identification (unspecified)) • NTID (National identification) • PASN (Passport number) • DRLN (Driver license) • TXIN (Tax identification) • CPNY (Company registration number) • PRXY (Proxy identification) • SSNB (Social security number) • ARNB (Alien registration number) • LAWE (Law enforcement identification) • MILI (Military identification) • TRVL (Travel identification (non-passport)) • EMAL (Email) • PHON (Phone number)
|
61
|
-
attr_accessor :personal_id_type
|
62
|
-
|
63
|
-
# #### Visa Platform Connect This tag will denote whether the tax ID is a business or individual tax ID when personal ID Type contains the value of TXIN (Tax identification). The valid values are: • B (Business) • I (Individual)
|
64
|
-
attr_accessor :type
|
65
|
-
|
66
|
-
# #### Visa Platform Connect This tag will contain an acquirer-populated value associated with the API : senderInformation.personalIdType which will identify the personal ID type of the sender.
|
67
|
-
attr_accessor :identification_number
|
68
|
-
|
69
|
-
# Sender's alias name.
|
70
|
-
attr_accessor :alias_name
|
71
|
-
|
72
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
73
|
-
def self.attribute_map
|
74
|
-
{
|
75
|
-
:'reference_number' => :'referenceNumber',
|
76
|
-
:'account' => :'account',
|
77
|
-
:'first_name' => :'firstName',
|
78
|
-
:'middle_initial' => :'middleInitial',
|
79
|
-
:'middle_name' => :'middleName',
|
80
|
-
:'last_name' => :'lastName',
|
81
|
-
:'name' => :'name',
|
82
|
-
:'address1' => :'address1',
|
83
|
-
:'locality' => :'locality',
|
84
|
-
:'administrative_area' => :'administrativeArea',
|
85
|
-
:'country_code' => :'countryCode',
|
86
|
-
:'postal_code' => :'postalCode',
|
87
|
-
:'phone_number' => :'phoneNumber',
|
88
|
-
:'date_of_birth' => :'dateOfBirth',
|
89
|
-
:'vat_registration_number' => :'vatRegistrationNumber',
|
90
|
-
:'personal_id_type' => :'personalIdType',
|
91
|
-
:'type' => :'type',
|
92
|
-
:'identification_number' => :'identificationNumber',
|
93
|
-
:'alias_name' => :'aliasName'
|
94
|
-
}
|
95
|
-
end
|
96
|
-
|
97
|
-
# Attribute mapping from JSON key to ruby-style variable name.
|
98
|
-
def self.json_map
|
99
|
-
{
|
100
|
-
:'reference_number' => :'reference_number',
|
101
|
-
:'account' => :'account',
|
102
|
-
:'first_name' => :'first_name',
|
103
|
-
:'middle_initial' => :'middle_initial',
|
104
|
-
:'middle_name' => :'middle_name',
|
105
|
-
:'last_name' => :'last_name',
|
106
|
-
:'name' => :'name',
|
107
|
-
:'address1' => :'address1',
|
108
|
-
:'locality' => :'locality',
|
109
|
-
:'administrative_area' => :'administrative_area',
|
110
|
-
:'country_code' => :'country_code',
|
111
|
-
:'postal_code' => :'postal_code',
|
112
|
-
:'phone_number' => :'phone_number',
|
113
|
-
:'date_of_birth' => :'date_of_birth',
|
114
|
-
:'vat_registration_number' => :'vat_registration_number',
|
115
|
-
:'personal_id_type' => :'personal_id_type',
|
116
|
-
:'type' => :'type',
|
117
|
-
:'identification_number' => :'identification_number',
|
118
|
-
:'alias_name' => :'alias_name'
|
119
|
-
}
|
120
|
-
end
|
121
|
-
|
122
|
-
# Attribute type mapping.
|
123
|
-
def self.swagger_types
|
124
|
-
{
|
125
|
-
:'reference_number' => :'String',
|
126
|
-
:'account' => :'Ptsv2payoutsSenderInformationAccount',
|
127
|
-
:'first_name' => :'String',
|
128
|
-
:'middle_initial' => :'String',
|
129
|
-
:'middle_name' => :'String',
|
130
|
-
:'last_name' => :'String',
|
131
|
-
:'name' => :'String',
|
132
|
-
:'address1' => :'String',
|
133
|
-
:'locality' => :'String',
|
134
|
-
:'administrative_area' => :'String',
|
135
|
-
:'country_code' => :'String',
|
136
|
-
:'postal_code' => :'String',
|
137
|
-
:'phone_number' => :'String',
|
138
|
-
:'date_of_birth' => :'String',
|
139
|
-
:'vat_registration_number' => :'String',
|
140
|
-
:'personal_id_type' => :'String',
|
141
|
-
:'type' => :'String',
|
142
|
-
:'identification_number' => :'String',
|
143
|
-
:'alias_name' => :'String'
|
144
|
-
}
|
145
|
-
end
|
146
|
-
|
147
|
-
# Initializes the object
|
148
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
149
|
-
def initialize(attributes = {})
|
150
|
-
return unless attributes.is_a?(Hash)
|
151
|
-
|
152
|
-
# convert string to symbol for hash key
|
153
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
154
|
-
|
155
|
-
if attributes.has_key?(:'referenceNumber')
|
156
|
-
self.reference_number = attributes[:'referenceNumber']
|
157
|
-
end
|
158
|
-
|
159
|
-
if attributes.has_key?(:'account')
|
160
|
-
self.account = attributes[:'account']
|
161
|
-
end
|
162
|
-
|
163
|
-
if attributes.has_key?(:'firstName')
|
164
|
-
self.first_name = attributes[:'firstName']
|
165
|
-
end
|
166
|
-
|
167
|
-
if attributes.has_key?(:'middleInitial')
|
168
|
-
self.middle_initial = attributes[:'middleInitial']
|
169
|
-
end
|
170
|
-
|
171
|
-
if attributes.has_key?(:'middleName')
|
172
|
-
self.middle_name = attributes[:'middleName']
|
173
|
-
end
|
174
|
-
|
175
|
-
if attributes.has_key?(:'lastName')
|
176
|
-
self.last_name = attributes[:'lastName']
|
177
|
-
end
|
178
|
-
|
179
|
-
if attributes.has_key?(:'name')
|
180
|
-
self.name = attributes[:'name']
|
181
|
-
end
|
182
|
-
|
183
|
-
if attributes.has_key?(:'address1')
|
184
|
-
self.address1 = attributes[:'address1']
|
185
|
-
end
|
186
|
-
|
187
|
-
if attributes.has_key?(:'locality')
|
188
|
-
self.locality = attributes[:'locality']
|
189
|
-
end
|
190
|
-
|
191
|
-
if attributes.has_key?(:'administrativeArea')
|
192
|
-
self.administrative_area = attributes[:'administrativeArea']
|
193
|
-
end
|
194
|
-
|
195
|
-
if attributes.has_key?(:'countryCode')
|
196
|
-
self.country_code = attributes[:'countryCode']
|
197
|
-
end
|
198
|
-
|
199
|
-
if attributes.has_key?(:'postalCode')
|
200
|
-
self.postal_code = attributes[:'postalCode']
|
201
|
-
end
|
202
|
-
|
203
|
-
if attributes.has_key?(:'phoneNumber')
|
204
|
-
self.phone_number = attributes[:'phoneNumber']
|
205
|
-
end
|
206
|
-
|
207
|
-
if attributes.has_key?(:'dateOfBirth')
|
208
|
-
self.date_of_birth = attributes[:'dateOfBirth']
|
209
|
-
end
|
210
|
-
|
211
|
-
if attributes.has_key?(:'vatRegistrationNumber')
|
212
|
-
self.vat_registration_number = attributes[:'vatRegistrationNumber']
|
213
|
-
end
|
214
|
-
|
215
|
-
if attributes.has_key?(:'personalIdType')
|
216
|
-
self.personal_id_type = attributes[:'personalIdType']
|
217
|
-
end
|
218
|
-
|
219
|
-
if attributes.has_key?(:'type')
|
220
|
-
self.type = attributes[:'type']
|
221
|
-
end
|
222
|
-
|
223
|
-
if attributes.has_key?(:'identificationNumber')
|
224
|
-
self.identification_number = attributes[:'identificationNumber']
|
225
|
-
end
|
226
|
-
|
227
|
-
if attributes.has_key?(:'aliasName')
|
228
|
-
self.alias_name = attributes[:'aliasName']
|
229
|
-
end
|
230
|
-
end
|
231
|
-
|
232
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
233
|
-
# @return Array for valid properties with the reasons
|
234
|
-
def list_invalid_properties
|
235
|
-
invalid_properties = Array.new
|
236
|
-
invalid_properties
|
237
|
-
end
|
238
|
-
|
239
|
-
# Check to see if the all the properties in the model are valid
|
240
|
-
# @return true if the model is valid
|
241
|
-
def valid?
|
242
|
-
true
|
243
|
-
end
|
244
|
-
|
245
|
-
# Custom attribute writer method with validation
|
246
|
-
# @param [Object] reference_number Value to be assigned
|
247
|
-
def reference_number=(reference_number)
|
248
|
-
@reference_number = reference_number
|
249
|
-
end
|
250
|
-
|
251
|
-
# Custom attribute writer method with validation
|
252
|
-
# @param [Object] first_name Value to be assigned
|
253
|
-
def first_name=(first_name)
|
254
|
-
@first_name = first_name
|
255
|
-
end
|
256
|
-
|
257
|
-
# Custom attribute writer method with validation
|
258
|
-
# @param [Object] middle_initial Value to be assigned
|
259
|
-
def middle_initial=(middle_initial)
|
260
|
-
@middle_initial = middle_initial
|
261
|
-
end
|
262
|
-
|
263
|
-
# Custom attribute writer method with validation
|
264
|
-
# @param [Object] middle_name Value to be assigned
|
265
|
-
def middle_name=(middle_name)
|
266
|
-
@middle_name = middle_name
|
267
|
-
end
|
268
|
-
|
269
|
-
# Custom attribute writer method with validation
|
270
|
-
# @param [Object] last_name Value to be assigned
|
271
|
-
def last_name=(last_name)
|
272
|
-
@last_name = last_name
|
273
|
-
end
|
274
|
-
|
275
|
-
# Custom attribute writer method with validation
|
276
|
-
# @param [Object] name Value to be assigned
|
277
|
-
def name=(name)
|
278
|
-
@name = name
|
279
|
-
end
|
280
|
-
|
281
|
-
# Custom attribute writer method with validation
|
282
|
-
# @param [Object] address1 Value to be assigned
|
283
|
-
def address1=(address1)
|
284
|
-
@address1 = address1
|
285
|
-
end
|
286
|
-
|
287
|
-
# Custom attribute writer method with validation
|
288
|
-
# @param [Object] locality Value to be assigned
|
289
|
-
def locality=(locality)
|
290
|
-
@locality = locality
|
291
|
-
end
|
292
|
-
|
293
|
-
# Custom attribute writer method with validation
|
294
|
-
# @param [Object] administrative_area Value to be assigned
|
295
|
-
def administrative_area=(administrative_area)
|
296
|
-
@administrative_area = administrative_area
|
297
|
-
end
|
298
|
-
|
299
|
-
# Custom attribute writer method with validation
|
300
|
-
# @param [Object] country_code Value to be assigned
|
301
|
-
def country_code=(country_code)
|
302
|
-
@country_code = country_code
|
303
|
-
end
|
304
|
-
|
305
|
-
# Custom attribute writer method with validation
|
306
|
-
# @param [Object] postal_code Value to be assigned
|
307
|
-
def postal_code=(postal_code)
|
308
|
-
@postal_code = postal_code
|
309
|
-
end
|
310
|
-
|
311
|
-
# Custom attribute writer method with validation
|
312
|
-
# @param [Object] phone_number Value to be assigned
|
313
|
-
def phone_number=(phone_number)
|
314
|
-
@phone_number = phone_number
|
315
|
-
end
|
316
|
-
|
317
|
-
# Custom attribute writer method with validation
|
318
|
-
# @param [Object] date_of_birth Value to be assigned
|
319
|
-
def date_of_birth=(date_of_birth)
|
320
|
-
@date_of_birth = date_of_birth
|
321
|
-
end
|
322
|
-
|
323
|
-
# Custom attribute writer method with validation
|
324
|
-
# @param [Object] vat_registration_number Value to be assigned
|
325
|
-
def vat_registration_number=(vat_registration_number)
|
326
|
-
@vat_registration_number = vat_registration_number
|
327
|
-
end
|
328
|
-
|
329
|
-
# Custom attribute writer method with validation
|
330
|
-
# @param [Object] personal_id_type Value to be assigned
|
331
|
-
def personal_id_type=(personal_id_type)
|
332
|
-
@personal_id_type = personal_id_type
|
333
|
-
end
|
334
|
-
|
335
|
-
# Custom attribute writer method with validation
|
336
|
-
# @param [Object] type Value to be assigned
|
337
|
-
def type=(type)
|
338
|
-
@type = type
|
339
|
-
end
|
340
|
-
|
341
|
-
# Custom attribute writer method with validation
|
342
|
-
# @param [Object] identification_number Value to be assigned
|
343
|
-
def identification_number=(identification_number)
|
344
|
-
@identification_number = identification_number
|
345
|
-
end
|
346
|
-
|
347
|
-
# Custom attribute writer method with validation
|
348
|
-
# @param [Object] alias_name Value to be assigned
|
349
|
-
def alias_name=(alias_name)
|
350
|
-
@alias_name = alias_name
|
351
|
-
end
|
352
|
-
|
353
|
-
# Checks equality by comparing each attribute.
|
354
|
-
# @param [Object] Object to be compared
|
355
|
-
def ==(o)
|
356
|
-
return true if self.equal?(o)
|
357
|
-
self.class == o.class &&
|
358
|
-
reference_number == o.reference_number &&
|
359
|
-
account == o.account &&
|
360
|
-
first_name == o.first_name &&
|
361
|
-
middle_initial == o.middle_initial &&
|
362
|
-
middle_name == o.middle_name &&
|
363
|
-
last_name == o.last_name &&
|
364
|
-
name == o.name &&
|
365
|
-
address1 == o.address1 &&
|
366
|
-
locality == o.locality &&
|
367
|
-
administrative_area == o.administrative_area &&
|
368
|
-
country_code == o.country_code &&
|
369
|
-
postal_code == o.postal_code &&
|
370
|
-
phone_number == o.phone_number &&
|
371
|
-
date_of_birth == o.date_of_birth &&
|
372
|
-
vat_registration_number == o.vat_registration_number &&
|
373
|
-
personal_id_type == o.personal_id_type &&
|
374
|
-
type == o.type &&
|
375
|
-
identification_number == o.identification_number &&
|
376
|
-
alias_name == o.alias_name
|
377
|
-
end
|
378
|
-
|
379
|
-
# @see the `==` method
|
380
|
-
# @param [Object] Object to be compared
|
381
|
-
def eql?(o)
|
382
|
-
self == o
|
383
|
-
end
|
384
|
-
|
385
|
-
# Calculates hash code according to all attributes.
|
386
|
-
# @return [Fixnum] Hash code
|
387
|
-
def hash
|
388
|
-
[reference_number, account, first_name, middle_initial, middle_name, last_name, name, address1, locality, administrative_area, country_code, postal_code, phone_number, date_of_birth, vat_registration_number, personal_id_type, type, identification_number, alias_name].hash
|
389
|
-
end
|
390
|
-
|
391
|
-
# Builds the object from hash
|
392
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
393
|
-
# @return [Object] Returns the model itself
|
394
|
-
def build_from_hash(attributes)
|
395
|
-
return nil unless attributes.is_a?(Hash)
|
396
|
-
self.class.swagger_types.each_pair do |key, type|
|
397
|
-
if type =~ /\AArray<(.*)>/i
|
398
|
-
# check to ensure the input is an array given that the the attribute
|
399
|
-
# is documented as an array but the input is not
|
400
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
401
|
-
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
402
|
-
end
|
403
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
404
|
-
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
405
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
406
|
-
end
|
407
|
-
|
408
|
-
self
|
409
|
-
end
|
410
|
-
|
411
|
-
# Deserializes the data based on type
|
412
|
-
# @param string type Data type
|
413
|
-
# @param string value Value to be deserialized
|
414
|
-
# @return [Object] Deserialized data
|
415
|
-
def _deserialize(type, value)
|
416
|
-
case type.to_sym
|
417
|
-
when :DateTime
|
418
|
-
DateTime.parse(value)
|
419
|
-
when :Date
|
420
|
-
Date.parse(value)
|
421
|
-
when :String
|
422
|
-
value.to_s
|
423
|
-
when :Integer
|
424
|
-
value.to_i
|
425
|
-
when :Float
|
426
|
-
value.to_f
|
427
|
-
when :BOOLEAN
|
428
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
429
|
-
true
|
430
|
-
else
|
431
|
-
false
|
432
|
-
end
|
433
|
-
when :Object
|
434
|
-
# generic object (usually a Hash), return directly
|
435
|
-
value
|
436
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
437
|
-
inner_type = Regexp.last_match[:inner_type]
|
438
|
-
value.map { |v| _deserialize(inner_type, v) }
|
439
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
440
|
-
k_type = Regexp.last_match[:k_type]
|
441
|
-
v_type = Regexp.last_match[:v_type]
|
442
|
-
{}.tap do |hash|
|
443
|
-
value.each do |k, v|
|
444
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
445
|
-
end
|
446
|
-
end
|
447
|
-
else # model
|
448
|
-
temp_model = CyberSource.const_get(type).new
|
449
|
-
temp_model.build_from_hash(value)
|
450
|
-
end
|
451
|
-
end
|
452
|
-
|
453
|
-
# Returns the string representation of the object
|
454
|
-
# @return [String] String presentation of the object
|
455
|
-
def to_s
|
456
|
-
to_hash.to_s
|
457
|
-
end
|
458
|
-
|
459
|
-
# to_body is an alias to to_hash (backward compatibility)
|
460
|
-
# @return [Hash] Returns the object in the form of hash
|
461
|
-
def to_body
|
462
|
-
to_hash
|
463
|
-
end
|
464
|
-
|
465
|
-
# Returns the object in the form of hash
|
466
|
-
# @return [Hash] Returns the object in the form of hash
|
467
|
-
def to_hash
|
468
|
-
hash = {}
|
469
|
-
self.class.attribute_map.each_pair do |attr, param|
|
470
|
-
value = self.send(attr)
|
471
|
-
next if value.nil?
|
472
|
-
hash[param] = _to_hash(value)
|
473
|
-
end
|
474
|
-
hash
|
475
|
-
end
|
476
|
-
|
477
|
-
# Outputs non-array value in the form of hash
|
478
|
-
# For object, use to_hash. Otherwise, just return the value
|
479
|
-
# @param [Object] value Any valid value
|
480
|
-
# @return [Hash] Returns the value in the form of hash
|
481
|
-
def _to_hash(value)
|
482
|
-
if value.is_a?(Array)
|
483
|
-
value.compact.map { |v| _to_hash(v) }
|
484
|
-
elsif value.is_a?(Hash)
|
485
|
-
{}.tap do |hash|
|
486
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
487
|
-
end
|
488
|
-
elsif value.respond_to? :to_hash
|
489
|
-
value.to_hash
|
490
|
-
else
|
491
|
-
value
|
492
|
-
end
|
493
|
-
end
|
494
|
-
end
|
495
|
-
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 Ptsv2payoutsSenderInformation
|
16
|
+
# Reference number generated by you that uniquely identifies the sender.
|
17
|
+
attr_accessor :reference_number
|
18
|
+
|
19
|
+
attr_accessor :account
|
20
|
+
|
21
|
+
# First name of the sender. This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported.Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to the processor.
|
22
|
+
attr_accessor :first_name
|
23
|
+
|
24
|
+
# Recipient middle initial (Optional).
|
25
|
+
attr_accessor :middle_initial
|
26
|
+
|
27
|
+
# Middle name of the sender. This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to sent to the processor.
|
28
|
+
attr_accessor :middle_name
|
29
|
+
|
30
|
+
# Last name of the sender. This field is applicable for AFT and OCT transactions. Only alpha numeric values are supported. Special characters not in the standard ASCII character set, are not supported and will be stripped before being sent to sent to the processor.
|
31
|
+
attr_accessor :last_name
|
32
|
+
|
33
|
+
# Name of sender. **Funds Disbursement** This value is the name of the originator sending the funds disbursement. * CTV, Paymentech (30)
|
34
|
+
attr_accessor :name
|
35
|
+
|
36
|
+
# Street address of sender. **Funds Disbursement** This value is the address of the originator sending the funds disbursement.
|
37
|
+
attr_accessor :address1
|
38
|
+
|
39
|
+
# City of sender. **Funds Disbursement** This value is the city of the originator sending the funds disbursement.
|
40
|
+
attr_accessor :locality
|
41
|
+
|
42
|
+
# Sender's state. Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf).
|
43
|
+
attr_accessor :administrative_area
|
44
|
+
|
45
|
+
# Country of sender. Use the [ISO Standard Country Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf). * CTV (3)
|
46
|
+
attr_accessor :country_code
|
47
|
+
|
48
|
+
# Sender's postal code. Required only for FDCCompass.
|
49
|
+
attr_accessor :postal_code
|
50
|
+
|
51
|
+
# Sender's phone number. Required only for FDCCompass.
|
52
|
+
attr_accessor :phone_number
|
53
|
+
|
54
|
+
# Sender's date of birth in YYYYMMDD format. Required only for FDCCompass.
|
55
|
+
attr_accessor :date_of_birth
|
56
|
+
|
57
|
+
# Customer's government-assigned tax identification number.
|
58
|
+
attr_accessor :vat_registration_number
|
59
|
+
|
60
|
+
# #### Visa Platform Connect This tag will contain the type of sender identification. The valid values are: • BTHD (Date of birth) • CUID (Customer identification (unspecified)) • NTID (National identification) • PASN (Passport number) • DRLN (Driver license) • TXIN (Tax identification) • CPNY (Company registration number) • PRXY (Proxy identification) • SSNB (Social security number) • ARNB (Alien registration number) • LAWE (Law enforcement identification) • MILI (Military identification) • TRVL (Travel identification (non-passport)) • EMAL (Email) • PHON (Phone number)
|
61
|
+
attr_accessor :personal_id_type
|
62
|
+
|
63
|
+
# #### Visa Platform Connect This tag will denote whether the tax ID is a business or individual tax ID when personal ID Type contains the value of TXIN (Tax identification). The valid values are: • B (Business) • I (Individual)
|
64
|
+
attr_accessor :type
|
65
|
+
|
66
|
+
# #### Visa Platform Connect This tag will contain an acquirer-populated value associated with the API : senderInformation.personalIdType which will identify the personal ID type of the sender.
|
67
|
+
attr_accessor :identification_number
|
68
|
+
|
69
|
+
# Sender's alias name.
|
70
|
+
attr_accessor :alias_name
|
71
|
+
|
72
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
73
|
+
def self.attribute_map
|
74
|
+
{
|
75
|
+
:'reference_number' => :'referenceNumber',
|
76
|
+
:'account' => :'account',
|
77
|
+
:'first_name' => :'firstName',
|
78
|
+
:'middle_initial' => :'middleInitial',
|
79
|
+
:'middle_name' => :'middleName',
|
80
|
+
:'last_name' => :'lastName',
|
81
|
+
:'name' => :'name',
|
82
|
+
:'address1' => :'address1',
|
83
|
+
:'locality' => :'locality',
|
84
|
+
:'administrative_area' => :'administrativeArea',
|
85
|
+
:'country_code' => :'countryCode',
|
86
|
+
:'postal_code' => :'postalCode',
|
87
|
+
:'phone_number' => :'phoneNumber',
|
88
|
+
:'date_of_birth' => :'dateOfBirth',
|
89
|
+
:'vat_registration_number' => :'vatRegistrationNumber',
|
90
|
+
:'personal_id_type' => :'personalIdType',
|
91
|
+
:'type' => :'type',
|
92
|
+
:'identification_number' => :'identificationNumber',
|
93
|
+
:'alias_name' => :'aliasName'
|
94
|
+
}
|
95
|
+
end
|
96
|
+
|
97
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
98
|
+
def self.json_map
|
99
|
+
{
|
100
|
+
:'reference_number' => :'reference_number',
|
101
|
+
:'account' => :'account',
|
102
|
+
:'first_name' => :'first_name',
|
103
|
+
:'middle_initial' => :'middle_initial',
|
104
|
+
:'middle_name' => :'middle_name',
|
105
|
+
:'last_name' => :'last_name',
|
106
|
+
:'name' => :'name',
|
107
|
+
:'address1' => :'address1',
|
108
|
+
:'locality' => :'locality',
|
109
|
+
:'administrative_area' => :'administrative_area',
|
110
|
+
:'country_code' => :'country_code',
|
111
|
+
:'postal_code' => :'postal_code',
|
112
|
+
:'phone_number' => :'phone_number',
|
113
|
+
:'date_of_birth' => :'date_of_birth',
|
114
|
+
:'vat_registration_number' => :'vat_registration_number',
|
115
|
+
:'personal_id_type' => :'personal_id_type',
|
116
|
+
:'type' => :'type',
|
117
|
+
:'identification_number' => :'identification_number',
|
118
|
+
:'alias_name' => :'alias_name'
|
119
|
+
}
|
120
|
+
end
|
121
|
+
|
122
|
+
# Attribute type mapping.
|
123
|
+
def self.swagger_types
|
124
|
+
{
|
125
|
+
:'reference_number' => :'String',
|
126
|
+
:'account' => :'Ptsv2payoutsSenderInformationAccount',
|
127
|
+
:'first_name' => :'String',
|
128
|
+
:'middle_initial' => :'String',
|
129
|
+
:'middle_name' => :'String',
|
130
|
+
:'last_name' => :'String',
|
131
|
+
:'name' => :'String',
|
132
|
+
:'address1' => :'String',
|
133
|
+
:'locality' => :'String',
|
134
|
+
:'administrative_area' => :'String',
|
135
|
+
:'country_code' => :'String',
|
136
|
+
:'postal_code' => :'String',
|
137
|
+
:'phone_number' => :'String',
|
138
|
+
:'date_of_birth' => :'String',
|
139
|
+
:'vat_registration_number' => :'String',
|
140
|
+
:'personal_id_type' => :'String',
|
141
|
+
:'type' => :'String',
|
142
|
+
:'identification_number' => :'String',
|
143
|
+
:'alias_name' => :'String'
|
144
|
+
}
|
145
|
+
end
|
146
|
+
|
147
|
+
# Initializes the object
|
148
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
149
|
+
def initialize(attributes = {})
|
150
|
+
return unless attributes.is_a?(Hash)
|
151
|
+
|
152
|
+
# convert string to symbol for hash key
|
153
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
154
|
+
|
155
|
+
if attributes.has_key?(:'referenceNumber')
|
156
|
+
self.reference_number = attributes[:'referenceNumber']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.has_key?(:'account')
|
160
|
+
self.account = attributes[:'account']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.has_key?(:'firstName')
|
164
|
+
self.first_name = attributes[:'firstName']
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes.has_key?(:'middleInitial')
|
168
|
+
self.middle_initial = attributes[:'middleInitial']
|
169
|
+
end
|
170
|
+
|
171
|
+
if attributes.has_key?(:'middleName')
|
172
|
+
self.middle_name = attributes[:'middleName']
|
173
|
+
end
|
174
|
+
|
175
|
+
if attributes.has_key?(:'lastName')
|
176
|
+
self.last_name = attributes[:'lastName']
|
177
|
+
end
|
178
|
+
|
179
|
+
if attributes.has_key?(:'name')
|
180
|
+
self.name = attributes[:'name']
|
181
|
+
end
|
182
|
+
|
183
|
+
if attributes.has_key?(:'address1')
|
184
|
+
self.address1 = attributes[:'address1']
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes.has_key?(:'locality')
|
188
|
+
self.locality = attributes[:'locality']
|
189
|
+
end
|
190
|
+
|
191
|
+
if attributes.has_key?(:'administrativeArea')
|
192
|
+
self.administrative_area = attributes[:'administrativeArea']
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes.has_key?(:'countryCode')
|
196
|
+
self.country_code = attributes[:'countryCode']
|
197
|
+
end
|
198
|
+
|
199
|
+
if attributes.has_key?(:'postalCode')
|
200
|
+
self.postal_code = attributes[:'postalCode']
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.has_key?(:'phoneNumber')
|
204
|
+
self.phone_number = attributes[:'phoneNumber']
|
205
|
+
end
|
206
|
+
|
207
|
+
if attributes.has_key?(:'dateOfBirth')
|
208
|
+
self.date_of_birth = attributes[:'dateOfBirth']
|
209
|
+
end
|
210
|
+
|
211
|
+
if attributes.has_key?(:'vatRegistrationNumber')
|
212
|
+
self.vat_registration_number = attributes[:'vatRegistrationNumber']
|
213
|
+
end
|
214
|
+
|
215
|
+
if attributes.has_key?(:'personalIdType')
|
216
|
+
self.personal_id_type = attributes[:'personalIdType']
|
217
|
+
end
|
218
|
+
|
219
|
+
if attributes.has_key?(:'type')
|
220
|
+
self.type = attributes[:'type']
|
221
|
+
end
|
222
|
+
|
223
|
+
if attributes.has_key?(:'identificationNumber')
|
224
|
+
self.identification_number = attributes[:'identificationNumber']
|
225
|
+
end
|
226
|
+
|
227
|
+
if attributes.has_key?(:'aliasName')
|
228
|
+
self.alias_name = attributes[:'aliasName']
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
232
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
233
|
+
# @return Array for valid properties with the reasons
|
234
|
+
def list_invalid_properties
|
235
|
+
invalid_properties = Array.new
|
236
|
+
invalid_properties
|
237
|
+
end
|
238
|
+
|
239
|
+
# Check to see if the all the properties in the model are valid
|
240
|
+
# @return true if the model is valid
|
241
|
+
def valid?
|
242
|
+
true
|
243
|
+
end
|
244
|
+
|
245
|
+
# Custom attribute writer method with validation
|
246
|
+
# @param [Object] reference_number Value to be assigned
|
247
|
+
def reference_number=(reference_number)
|
248
|
+
@reference_number = reference_number
|
249
|
+
end
|
250
|
+
|
251
|
+
# Custom attribute writer method with validation
|
252
|
+
# @param [Object] first_name Value to be assigned
|
253
|
+
def first_name=(first_name)
|
254
|
+
@first_name = first_name
|
255
|
+
end
|
256
|
+
|
257
|
+
# Custom attribute writer method with validation
|
258
|
+
# @param [Object] middle_initial Value to be assigned
|
259
|
+
def middle_initial=(middle_initial)
|
260
|
+
@middle_initial = middle_initial
|
261
|
+
end
|
262
|
+
|
263
|
+
# Custom attribute writer method with validation
|
264
|
+
# @param [Object] middle_name Value to be assigned
|
265
|
+
def middle_name=(middle_name)
|
266
|
+
@middle_name = middle_name
|
267
|
+
end
|
268
|
+
|
269
|
+
# Custom attribute writer method with validation
|
270
|
+
# @param [Object] last_name Value to be assigned
|
271
|
+
def last_name=(last_name)
|
272
|
+
@last_name = last_name
|
273
|
+
end
|
274
|
+
|
275
|
+
# Custom attribute writer method with validation
|
276
|
+
# @param [Object] name Value to be assigned
|
277
|
+
def name=(name)
|
278
|
+
@name = name
|
279
|
+
end
|
280
|
+
|
281
|
+
# Custom attribute writer method with validation
|
282
|
+
# @param [Object] address1 Value to be assigned
|
283
|
+
def address1=(address1)
|
284
|
+
@address1 = address1
|
285
|
+
end
|
286
|
+
|
287
|
+
# Custom attribute writer method with validation
|
288
|
+
# @param [Object] locality Value to be assigned
|
289
|
+
def locality=(locality)
|
290
|
+
@locality = locality
|
291
|
+
end
|
292
|
+
|
293
|
+
# Custom attribute writer method with validation
|
294
|
+
# @param [Object] administrative_area Value to be assigned
|
295
|
+
def administrative_area=(administrative_area)
|
296
|
+
@administrative_area = administrative_area
|
297
|
+
end
|
298
|
+
|
299
|
+
# Custom attribute writer method with validation
|
300
|
+
# @param [Object] country_code Value to be assigned
|
301
|
+
def country_code=(country_code)
|
302
|
+
@country_code = country_code
|
303
|
+
end
|
304
|
+
|
305
|
+
# Custom attribute writer method with validation
|
306
|
+
# @param [Object] postal_code Value to be assigned
|
307
|
+
def postal_code=(postal_code)
|
308
|
+
@postal_code = postal_code
|
309
|
+
end
|
310
|
+
|
311
|
+
# Custom attribute writer method with validation
|
312
|
+
# @param [Object] phone_number Value to be assigned
|
313
|
+
def phone_number=(phone_number)
|
314
|
+
@phone_number = phone_number
|
315
|
+
end
|
316
|
+
|
317
|
+
# Custom attribute writer method with validation
|
318
|
+
# @param [Object] date_of_birth Value to be assigned
|
319
|
+
def date_of_birth=(date_of_birth)
|
320
|
+
@date_of_birth = date_of_birth
|
321
|
+
end
|
322
|
+
|
323
|
+
# Custom attribute writer method with validation
|
324
|
+
# @param [Object] vat_registration_number Value to be assigned
|
325
|
+
def vat_registration_number=(vat_registration_number)
|
326
|
+
@vat_registration_number = vat_registration_number
|
327
|
+
end
|
328
|
+
|
329
|
+
# Custom attribute writer method with validation
|
330
|
+
# @param [Object] personal_id_type Value to be assigned
|
331
|
+
def personal_id_type=(personal_id_type)
|
332
|
+
@personal_id_type = personal_id_type
|
333
|
+
end
|
334
|
+
|
335
|
+
# Custom attribute writer method with validation
|
336
|
+
# @param [Object] type Value to be assigned
|
337
|
+
def type=(type)
|
338
|
+
@type = type
|
339
|
+
end
|
340
|
+
|
341
|
+
# Custom attribute writer method with validation
|
342
|
+
# @param [Object] identification_number Value to be assigned
|
343
|
+
def identification_number=(identification_number)
|
344
|
+
@identification_number = identification_number
|
345
|
+
end
|
346
|
+
|
347
|
+
# Custom attribute writer method with validation
|
348
|
+
# @param [Object] alias_name Value to be assigned
|
349
|
+
def alias_name=(alias_name)
|
350
|
+
@alias_name = alias_name
|
351
|
+
end
|
352
|
+
|
353
|
+
# Checks equality by comparing each attribute.
|
354
|
+
# @param [Object] Object to be compared
|
355
|
+
def ==(o)
|
356
|
+
return true if self.equal?(o)
|
357
|
+
self.class == o.class &&
|
358
|
+
reference_number == o.reference_number &&
|
359
|
+
account == o.account &&
|
360
|
+
first_name == o.first_name &&
|
361
|
+
middle_initial == o.middle_initial &&
|
362
|
+
middle_name == o.middle_name &&
|
363
|
+
last_name == o.last_name &&
|
364
|
+
name == o.name &&
|
365
|
+
address1 == o.address1 &&
|
366
|
+
locality == o.locality &&
|
367
|
+
administrative_area == o.administrative_area &&
|
368
|
+
country_code == o.country_code &&
|
369
|
+
postal_code == o.postal_code &&
|
370
|
+
phone_number == o.phone_number &&
|
371
|
+
date_of_birth == o.date_of_birth &&
|
372
|
+
vat_registration_number == o.vat_registration_number &&
|
373
|
+
personal_id_type == o.personal_id_type &&
|
374
|
+
type == o.type &&
|
375
|
+
identification_number == o.identification_number &&
|
376
|
+
alias_name == o.alias_name
|
377
|
+
end
|
378
|
+
|
379
|
+
# @see the `==` method
|
380
|
+
# @param [Object] Object to be compared
|
381
|
+
def eql?(o)
|
382
|
+
self == o
|
383
|
+
end
|
384
|
+
|
385
|
+
# Calculates hash code according to all attributes.
|
386
|
+
# @return [Fixnum] Hash code
|
387
|
+
def hash
|
388
|
+
[reference_number, account, first_name, middle_initial, middle_name, last_name, name, address1, locality, administrative_area, country_code, postal_code, phone_number, date_of_birth, vat_registration_number, personal_id_type, type, identification_number, alias_name].hash
|
389
|
+
end
|
390
|
+
|
391
|
+
# Builds the object from hash
|
392
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
393
|
+
# @return [Object] Returns the model itself
|
394
|
+
def build_from_hash(attributes)
|
395
|
+
return nil unless attributes.is_a?(Hash)
|
396
|
+
self.class.swagger_types.each_pair do |key, type|
|
397
|
+
if type =~ /\AArray<(.*)>/i
|
398
|
+
# check to ensure the input is an array given that the the attribute
|
399
|
+
# is documented as an array but the input is not
|
400
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
401
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
402
|
+
end
|
403
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
404
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
405
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
406
|
+
end
|
407
|
+
|
408
|
+
self
|
409
|
+
end
|
410
|
+
|
411
|
+
# Deserializes the data based on type
|
412
|
+
# @param string type Data type
|
413
|
+
# @param string value Value to be deserialized
|
414
|
+
# @return [Object] Deserialized data
|
415
|
+
def _deserialize(type, value)
|
416
|
+
case type.to_sym
|
417
|
+
when :DateTime
|
418
|
+
DateTime.parse(value)
|
419
|
+
when :Date
|
420
|
+
Date.parse(value)
|
421
|
+
when :String
|
422
|
+
value.to_s
|
423
|
+
when :Integer
|
424
|
+
value.to_i
|
425
|
+
when :Float
|
426
|
+
value.to_f
|
427
|
+
when :BOOLEAN
|
428
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
429
|
+
true
|
430
|
+
else
|
431
|
+
false
|
432
|
+
end
|
433
|
+
when :Object
|
434
|
+
# generic object (usually a Hash), return directly
|
435
|
+
value
|
436
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
437
|
+
inner_type = Regexp.last_match[:inner_type]
|
438
|
+
value.map { |v| _deserialize(inner_type, v) }
|
439
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
440
|
+
k_type = Regexp.last_match[:k_type]
|
441
|
+
v_type = Regexp.last_match[:v_type]
|
442
|
+
{}.tap do |hash|
|
443
|
+
value.each do |k, v|
|
444
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
445
|
+
end
|
446
|
+
end
|
447
|
+
else # model
|
448
|
+
temp_model = CyberSource.const_get(type).new
|
449
|
+
temp_model.build_from_hash(value)
|
450
|
+
end
|
451
|
+
end
|
452
|
+
|
453
|
+
# Returns the string representation of the object
|
454
|
+
# @return [String] String presentation of the object
|
455
|
+
def to_s
|
456
|
+
to_hash.to_s
|
457
|
+
end
|
458
|
+
|
459
|
+
# to_body is an alias to to_hash (backward compatibility)
|
460
|
+
# @return [Hash] Returns the object in the form of hash
|
461
|
+
def to_body
|
462
|
+
to_hash
|
463
|
+
end
|
464
|
+
|
465
|
+
# Returns the object in the form of hash
|
466
|
+
# @return [Hash] Returns the object in the form of hash
|
467
|
+
def to_hash
|
468
|
+
hash = {}
|
469
|
+
self.class.attribute_map.each_pair do |attr, param|
|
470
|
+
value = self.send(attr)
|
471
|
+
next if value.nil?
|
472
|
+
hash[param] = _to_hash(value)
|
473
|
+
end
|
474
|
+
hash
|
475
|
+
end
|
476
|
+
|
477
|
+
# Outputs non-array value in the form of hash
|
478
|
+
# For object, use to_hash. Otherwise, just return the value
|
479
|
+
# @param [Object] value Any valid value
|
480
|
+
# @return [Hash] Returns the value in the form of hash
|
481
|
+
def _to_hash(value)
|
482
|
+
if value.is_a?(Array)
|
483
|
+
value.compact.map { |v| _to_hash(v) }
|
484
|
+
elsif value.is_a?(Hash)
|
485
|
+
{}.tap do |hash|
|
486
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
487
|
+
end
|
488
|
+
elsif value.respond_to? :to_hash
|
489
|
+
value.to_hash
|
490
|
+
else
|
491
|
+
value
|
492
|
+
end
|
493
|
+
end
|
494
|
+
end
|
495
|
+
end
|