cybersource_rest_client 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client.rb +68 -8
- data/lib/cybersource_rest_client/api/capture_api.rb +19 -8
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +112 -0
- data/lib/cybersource_rest_client/api/credit_api.rb +19 -8
- data/lib/cybersource_rest_client/api/flex_token_api.rb +18 -7
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +88 -55
- data/lib/cybersource_rest_client/api/instrument_identifiers_api.rb +24 -13
- data/lib/cybersource_rest_client/api/key_generation_api.rb +18 -7
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +115 -0
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +20 -9
- data/lib/cybersource_rest_client/api/payment_instruments_api.rb +144 -89
- data/lib/cybersource_rest_client/api/payments_api.rb +19 -8
- data/lib/cybersource_rest_client/api/process_a_payout_api.rb +21 -9
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +27 -10
- data/lib/cybersource_rest_client/api/refund_api.rb +37 -15
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +50 -19
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +25 -10
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +104 -43
- data/lib/cybersource_rest_client/api/reports_api.rb +83 -27
- data/lib/cybersource_rest_client/api/reversal_api.rb +19 -8
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +39 -17
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +45 -15
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +89 -13
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +19 -8
- data/lib/cybersource_rest_client/api/user_management_api.rb +19 -8
- data/lib/cybersource_rest_client/api/void_api.rb +73 -29
- data/lib/cybersource_rest_client/api_client.rb +24 -12
- data/lib/cybersource_rest_client/configuration.rb +1 -1
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +14 -5
- data/lib/cybersource_rest_client/models/create_credit_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_payment_request.rb +23 -5
- data/lib/cybersource_rest_client/models/inline_response_400.rb +59 -14
- data/lib/cybersource_rest_client/models/inline_response_400_1.rb +202 -0
- data/lib/cybersource_rest_client/models/{reporting_v3_notificationof_changes_get400_response_fields.rb → inline_response_400_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response_transaction_batches.rb +7 -7
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response.rb +286 -0
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_authorization_options_merchant_initiated_transaction.rb → pts_v1_transaction_batches_id_get200_response__links.rb} +10 -9
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links_transactions.rb +193 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +20 -2
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options.rb +199 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +34 -7
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information.rb +40 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +519 -0
- data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_processor_information_issuer.rb → pts_v2_payments_post201_response_issuer_information.rb} +31 -6
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +208 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank_account.rb +199 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +2 -17
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_bank_transfer_options.rb +224 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +75 -16
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_ach_verification.rb +224 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs.rb +0 -15
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing.rb +249 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +63 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +11 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_authorization_information.rb +29 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +199 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +350 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +239 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information_details.rb +228 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +234 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +274 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +299 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card.rb +224 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_status_information.rb +228 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post502_response.rb +260 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post_response.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb +186 -4
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +18 -9
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +349 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +9 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +29 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +3 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +15 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +249 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +364 -0
- data/lib/cybersource_rest_client/models/{ptsv2payments_processing_information_issuer.rb → ptsv2payments_issuer_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +66 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +0 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_fee_descriptor.rb +249 -0
- data/lib/cybersource_rest_client/models/{ptsv2payments_processing_information_authorization_options_merchant_initiated_transaction.rb → ptsv2payments_merchant_initiated_transaction.rb} +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +84 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +32 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +12 -28
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +349 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +55 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +139 -14
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +208 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +299 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +47 -37
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +1 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +3 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +253 -16
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +12 -12
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +20 -20
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +32 -12
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +424 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +8 -8
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +579 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +39 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +59 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +11 -27
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +30 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +9 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +22 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +5 -20
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +14 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information.rb +10 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_amount_details.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb +0 -15
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_client_reference_information.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +0 -15
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +0 -15
- data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
- data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response.rb +213 -0
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_conversion_details.rb +275 -0
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_notes.rb +204 -0
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response.rb +266 -0
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries.rb +281 -0
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_total_purchases.rb +203 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response.rb +273 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_authorizations.rb +255 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_fee_and_funding_details.rb +290 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_others.rb +260 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_request_details.rb +235 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlement_statuses.rb +240 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb +304 -0
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +1 -0
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_attributes.rb +2 -0
- data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +13 -13
- data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response_reports.rb +18 -8
- data/lib/cybersource_rest_client/models/reporting_v3_reports_id_get200_response.rb +15 -15
- data/lib/cybersource_rest_client/models/{reporting_v3_report_subscriptions_get200_response_report_preferences.rb → reporting_v3_reports_id_get200_response_report_preferences.rb} +1 -1
- data/lib/cybersource_rest_client/models/{reporting_v3_notificationof_changes_get400_response.rb → reportingv3_report_downloads_get400_response.rb} +42 -52
- data/lib/cybersource_rest_client/models/reportingv3_report_downloads_get400_response_details.rb +195 -0
- data/lib/cybersource_rest_client/models/reportingv3reports_report_preferences.rb +229 -0
- data/lib/cybersource_rest_client/models/request_body.rb +74 -104
- data/lib/cybersource_rest_client/models/request_body_1.rb +159 -55
- data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_get200_response.rb +331 -0
- data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_post201_response_card.rb +302 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_bank_account.rb +48 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_card.rb +24 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_merchant_initiated_transaction.rb +199 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_bill_to.rb +183 -0
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_buyer_information.rb +39 -0
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_instrument_identifier.rb +24 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.rb +0 -15
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +0 -30
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +184 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_amount_details.rb +224 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +0 -15
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/ums_v1_users_get400_response.rb +271 -0
- metadata +70 -10
- data/lib/cybersource_rest_client/api/transaction_batch_api.rb +0 -77
@@ -17,7 +17,7 @@ module CyberSource
|
|
17
17
|
# Total amount of the refund.
|
18
18
|
attr_accessor :refund_amount
|
19
19
|
|
20
|
-
# Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API.
|
20
|
+
# Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your request for Payment API. **DCC for First Data**\\ Your local currency. For details, see \"Dynamic Currency Conversion for First Data,\" page 113.
|
21
21
|
attr_accessor :currency
|
22
22
|
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -17,10 +17,10 @@ module CyberSource
|
|
17
17
|
# Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
|
18
18
|
attr_accessor :submit_time_utc
|
19
19
|
|
20
|
-
# The status of the submitted transaction.
|
20
|
+
# The status of the submitted transaction. Possible values: - INVALID_REQUEST
|
21
21
|
attr_accessor :status
|
22
22
|
|
23
|
-
# The reason of the status.
|
23
|
+
# The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_CARD - INVALID_MERCHANT_CONFIGURATION - INVALID_AMOUNT - CAPTURE_ALREADY_VOIDED - ACCOUNT_NOT_ALLOWED_CREDIT
|
24
24
|
attr_accessor :reason
|
25
25
|
|
26
26
|
# The detail message related to the status and reason listed above.
|
@@ -22,7 +22,7 @@ module CyberSource
|
|
22
22
|
# Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
|
23
23
|
attr_accessor :submit_time_utc
|
24
24
|
|
25
|
-
# The status of the submitted transaction.
|
25
|
+
# The status of the submitted transaction. Possible values: - REVERSED
|
26
26
|
attr_accessor :status
|
27
27
|
|
28
28
|
# The reconciliation id for the submitted transaction. This value is not returned for all processors.
|
@@ -34,6 +34,8 @@ module CyberSource
|
|
34
34
|
|
35
35
|
attr_accessor :processor_information
|
36
36
|
|
37
|
+
attr_accessor :issuer_information
|
38
|
+
|
37
39
|
attr_accessor :authorization_information
|
38
40
|
|
39
41
|
attr_accessor :point_of_sale_information
|
@@ -71,6 +73,7 @@ module CyberSource
|
|
71
73
|
:'client_reference_information' => :'clientReferenceInformation',
|
72
74
|
:'reversal_amount_details' => :'reversalAmountDetails',
|
73
75
|
:'processor_information' => :'processorInformation',
|
76
|
+
:'issuer_information' => :'issuerInformation',
|
74
77
|
:'authorization_information' => :'authorizationInformation',
|
75
78
|
:'point_of_sale_information' => :'pointOfSaleInformation'
|
76
79
|
}
|
@@ -87,6 +90,7 @@ module CyberSource
|
|
87
90
|
:'client_reference_information' => :'PtsV2PaymentsPost201ResponseClientReferenceInformation',
|
88
91
|
:'reversal_amount_details' => :'PtsV2PaymentsReversalsPost201ResponseReversalAmountDetails',
|
89
92
|
:'processor_information' => :'PtsV2PaymentsReversalsPost201ResponseProcessorInformation',
|
93
|
+
:'issuer_information' => :'PtsV2PaymentsReversalsPost201ResponseIssuerInformation',
|
90
94
|
:'authorization_information' => :'PtsV2PaymentsReversalsPost201ResponseAuthorizationInformation',
|
91
95
|
:'point_of_sale_information' => :'Ptsv2paymentsidreversalsPointOfSaleInformation'
|
92
96
|
}
|
@@ -132,6 +136,10 @@ module CyberSource
|
|
132
136
|
self.processor_information = attributes[:'processorInformation']
|
133
137
|
end
|
134
138
|
|
139
|
+
if attributes.has_key?(:'issuerInformation')
|
140
|
+
self.issuer_information = attributes[:'issuerInformation']
|
141
|
+
end
|
142
|
+
|
135
143
|
if attributes.has_key?(:'authorizationInformation')
|
136
144
|
self.authorization_information = attributes[:'authorizationInformation']
|
137
145
|
end
|
@@ -209,6 +217,7 @@ module CyberSource
|
|
209
217
|
client_reference_information == o.client_reference_information &&
|
210
218
|
reversal_amount_details == o.reversal_amount_details &&
|
211
219
|
processor_information == o.processor_information &&
|
220
|
+
issuer_information == o.issuer_information &&
|
212
221
|
authorization_information == o.authorization_information &&
|
213
222
|
point_of_sale_information == o.point_of_sale_information
|
214
223
|
end
|
@@ -222,7 +231,7 @@ module CyberSource
|
|
222
231
|
# Calculates hash code according to all attributes.
|
223
232
|
# @return [Fixnum] Hash code
|
224
233
|
def hash
|
225
|
-
[_links, id, submit_time_utc, status, reconciliation_id, client_reference_information, reversal_amount_details, processor_information, authorization_information, point_of_sale_information].hash
|
234
|
+
[_links, id, submit_time_utc, status, reconciliation_id, client_reference_information, reversal_amount_details, processor_information, issuer_information, authorization_information, point_of_sale_information].hash
|
226
235
|
end
|
227
236
|
|
228
237
|
# Builds the object from hash
|
@@ -20,11 +20,15 @@ module CyberSource
|
|
20
20
|
# Reply flag for the original transaction.
|
21
21
|
attr_accessor :reason_code
|
22
22
|
|
23
|
+
# Flag indicating whether a full authorization reversal was successfully submitted. Possible values: - Y: The authorization reversal was successfully submitted. - N: The authorization reversal was not successfully submitted. You must send a credit request for a refund. This field is supported only for **FDC Nashville Global**.
|
24
|
+
attr_accessor :reversal_submitted
|
25
|
+
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:'approval_code' => :'approvalCode',
|
27
|
-
:'reason_code' => :'reasonCode'
|
30
|
+
:'reason_code' => :'reasonCode',
|
31
|
+
:'reversal_submitted' => :'reversalSubmitted'
|
28
32
|
}
|
29
33
|
end
|
30
34
|
|
@@ -32,7 +36,8 @@ module CyberSource
|
|
32
36
|
def self.swagger_types
|
33
37
|
{
|
34
38
|
:'approval_code' => :'String',
|
35
|
-
:'reason_code' => :'String'
|
39
|
+
:'reason_code' => :'String',
|
40
|
+
:'reversal_submitted' => :'String'
|
36
41
|
}
|
37
42
|
end
|
38
43
|
|
@@ -51,6 +56,10 @@ module CyberSource
|
|
51
56
|
if attributes.has_key?(:'reasonCode')
|
52
57
|
self.reason_code = attributes[:'reasonCode']
|
53
58
|
end
|
59
|
+
|
60
|
+
if attributes.has_key?(:'reversalSubmitted')
|
61
|
+
self.reversal_submitted = attributes[:'reversalSubmitted']
|
62
|
+
end
|
54
63
|
end
|
55
64
|
|
56
65
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -65,6 +74,10 @@ module CyberSource
|
|
65
74
|
invalid_properties.push('invalid value for "reason_code", the character length must be smaller than or equal to 50.')
|
66
75
|
end
|
67
76
|
|
77
|
+
if !@reversal_submitted.nil? && @reversal_submitted.to_s.length > 1
|
78
|
+
invalid_properties.push('invalid value for "reversal_submitted", the character length must be smaller than or equal to 1.')
|
79
|
+
end
|
80
|
+
|
68
81
|
invalid_properties
|
69
82
|
end
|
70
83
|
|
@@ -73,6 +86,7 @@ module CyberSource
|
|
73
86
|
def valid?
|
74
87
|
return false if !@approval_code.nil? && @approval_code.to_s.length > 6
|
75
88
|
return false if !@reason_code.nil? && @reason_code.to_s.length > 50
|
89
|
+
return false if !@reversal_submitted.nil? && @reversal_submitted.to_s.length > 1
|
76
90
|
true
|
77
91
|
end
|
78
92
|
|
@@ -96,13 +110,24 @@ module CyberSource
|
|
96
110
|
@reason_code = reason_code
|
97
111
|
end
|
98
112
|
|
113
|
+
# Custom attribute writer method with validation
|
114
|
+
# @param [Object] reversal_submitted Value to be assigned
|
115
|
+
def reversal_submitted=(reversal_submitted)
|
116
|
+
if !reversal_submitted.nil? && reversal_submitted.to_s.length > 1
|
117
|
+
fail ArgumentError, 'invalid value for "reversal_submitted", the character length must be smaller than or equal to 1.'
|
118
|
+
end
|
119
|
+
|
120
|
+
@reversal_submitted = reversal_submitted
|
121
|
+
end
|
122
|
+
|
99
123
|
# Checks equality by comparing each attribute.
|
100
124
|
# @param [Object] Object to be compared
|
101
125
|
def ==(o)
|
102
126
|
return true if self.equal?(o)
|
103
127
|
self.class == o.class &&
|
104
128
|
approval_code == o.approval_code &&
|
105
|
-
reason_code == o.reason_code
|
129
|
+
reason_code == o.reason_code &&
|
130
|
+
reversal_submitted == o.reversal_submitted
|
106
131
|
end
|
107
132
|
|
108
133
|
# @see the `==` method
|
@@ -114,7 +139,7 @@ module CyberSource
|
|
114
139
|
# Calculates hash code according to all attributes.
|
115
140
|
# @return [Fixnum] Hash code
|
116
141
|
def hash
|
117
|
-
[approval_code, reason_code].hash
|
142
|
+
[approval_code, reason_code, reversal_submitted].hash
|
118
143
|
end
|
119
144
|
|
120
145
|
# Builds the object from hash
|
@@ -0,0 +1,199 @@
|
|
1
|
+
=begin
|
2
|
+
#CyberSource Flex API
|
3
|
+
|
4
|
+
#Simple PAN tokenization service
|
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.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class PtsV2PaymentsReversalsPost201ResponseIssuerInformation
|
17
|
+
# Additional authorization code that must be printed on the receipt when returned by the processor. This value is generated by the processor and is returned only for a successful transaction. This field is supported only on FDC Nashville Global and SIX.
|
18
|
+
attr_accessor :response_code
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'response_code' => :'responseCode'
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# Attribute type mapping.
|
28
|
+
def self.swagger_types
|
29
|
+
{
|
30
|
+
:'response_code' => :'String'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
|
34
|
+
# Initializes the object
|
35
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
36
|
+
def initialize(attributes = {})
|
37
|
+
return unless attributes.is_a?(Hash)
|
38
|
+
|
39
|
+
# convert string to symbol for hash key
|
40
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
41
|
+
|
42
|
+
if attributes.has_key?(:'responseCode')
|
43
|
+
self.response_code = attributes[:'responseCode']
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
48
|
+
# @return Array for valid properties with the reasons
|
49
|
+
def list_invalid_properties
|
50
|
+
invalid_properties = Array.new
|
51
|
+
if !@response_code.nil? && @response_code.to_s.length > 6
|
52
|
+
invalid_properties.push('invalid value for "response_code", the character length must be smaller than or equal to 6.')
|
53
|
+
end
|
54
|
+
|
55
|
+
invalid_properties
|
56
|
+
end
|
57
|
+
|
58
|
+
# Check to see if the all the properties in the model are valid
|
59
|
+
# @return true if the model is valid
|
60
|
+
def valid?
|
61
|
+
return false if !@response_code.nil? && @response_code.to_s.length > 6
|
62
|
+
true
|
63
|
+
end
|
64
|
+
|
65
|
+
# Custom attribute writer method with validation
|
66
|
+
# @param [Object] response_code Value to be assigned
|
67
|
+
def response_code=(response_code)
|
68
|
+
if !response_code.nil? && response_code.to_s.length > 6
|
69
|
+
fail ArgumentError, 'invalid value for "response_code", the character length must be smaller than or equal to 6.'
|
70
|
+
end
|
71
|
+
|
72
|
+
@response_code = response_code
|
73
|
+
end
|
74
|
+
|
75
|
+
# Checks equality by comparing each attribute.
|
76
|
+
# @param [Object] Object to be compared
|
77
|
+
def ==(o)
|
78
|
+
return true if self.equal?(o)
|
79
|
+
self.class == o.class &&
|
80
|
+
response_code == o.response_code
|
81
|
+
end
|
82
|
+
|
83
|
+
# @see the `==` method
|
84
|
+
# @param [Object] Object to be compared
|
85
|
+
def eql?(o)
|
86
|
+
self == o
|
87
|
+
end
|
88
|
+
|
89
|
+
# Calculates hash code according to all attributes.
|
90
|
+
# @return [Fixnum] Hash code
|
91
|
+
def hash
|
92
|
+
[response_code].hash
|
93
|
+
end
|
94
|
+
|
95
|
+
# Builds the object from hash
|
96
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
97
|
+
# @return [Object] Returns the model itself
|
98
|
+
def build_from_hash(attributes)
|
99
|
+
return nil unless attributes.is_a?(Hash)
|
100
|
+
self.class.swagger_types.each_pair do |key, type|
|
101
|
+
if type =~ /\AArray<(.*)>/i
|
102
|
+
# check to ensure the input is an array given that the the attribute
|
103
|
+
# is documented as an array but the input is not
|
104
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
105
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
106
|
+
end
|
107
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
108
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
109
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
110
|
+
end
|
111
|
+
|
112
|
+
self
|
113
|
+
end
|
114
|
+
|
115
|
+
# Deserializes the data based on type
|
116
|
+
# @param string type Data type
|
117
|
+
# @param string value Value to be deserialized
|
118
|
+
# @return [Object] Deserialized data
|
119
|
+
def _deserialize(type, value)
|
120
|
+
case type.to_sym
|
121
|
+
when :DateTime
|
122
|
+
DateTime.parse(value)
|
123
|
+
when :Date
|
124
|
+
Date.parse(value)
|
125
|
+
when :String
|
126
|
+
value.to_s
|
127
|
+
when :Integer
|
128
|
+
value.to_i
|
129
|
+
when :Float
|
130
|
+
value.to_f
|
131
|
+
when :BOOLEAN
|
132
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
133
|
+
true
|
134
|
+
else
|
135
|
+
false
|
136
|
+
end
|
137
|
+
when :Object
|
138
|
+
# generic object (usually a Hash), return directly
|
139
|
+
value
|
140
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
141
|
+
inner_type = Regexp.last_match[:inner_type]
|
142
|
+
value.map { |v| _deserialize(inner_type, v) }
|
143
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
144
|
+
k_type = Regexp.last_match[:k_type]
|
145
|
+
v_type = Regexp.last_match[:v_type]
|
146
|
+
{}.tap do |hash|
|
147
|
+
value.each do |k, v|
|
148
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
149
|
+
end
|
150
|
+
end
|
151
|
+
else # model
|
152
|
+
temp_model = CyberSource.const_get(type).new
|
153
|
+
temp_model.build_from_hash(value)
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
# Returns the string representation of the object
|
158
|
+
# @return [String] String presentation of the object
|
159
|
+
def to_s
|
160
|
+
to_hash.to_s
|
161
|
+
end
|
162
|
+
|
163
|
+
# to_body is an alias to to_hash (backward compatibility)
|
164
|
+
# @return [Hash] Returns the object in the form of hash
|
165
|
+
def to_body
|
166
|
+
to_hash
|
167
|
+
end
|
168
|
+
|
169
|
+
# Returns the object in the form of hash
|
170
|
+
# @return [Hash] Returns the object in the form of hash
|
171
|
+
def to_hash
|
172
|
+
hash = {}
|
173
|
+
self.class.attribute_map.each_pair do |attr, param|
|
174
|
+
value = self.send(attr)
|
175
|
+
next if value.nil?
|
176
|
+
hash[param] = _to_hash(value)
|
177
|
+
end
|
178
|
+
hash
|
179
|
+
end
|
180
|
+
|
181
|
+
# Outputs non-array value in the form of hash
|
182
|
+
# For object, use to_hash. Otherwise, just return the value
|
183
|
+
# @param [Object] value Any valid value
|
184
|
+
# @return [Hash] Returns the value in the form of hash
|
185
|
+
def _to_hash(value)
|
186
|
+
if value.is_a?(Array)
|
187
|
+
value.compact.map { |v| _to_hash(v) }
|
188
|
+
elsif value.is_a?(Hash)
|
189
|
+
{}.tap do |hash|
|
190
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
191
|
+
end
|
192
|
+
elsif value.respond_to? :to_hash
|
193
|
+
value.to_hash
|
194
|
+
else
|
195
|
+
value
|
196
|
+
end
|
197
|
+
end
|
198
|
+
end
|
199
|
+
end
|
@@ -20,7 +20,7 @@ module CyberSource
|
|
20
20
|
# Amount of the original transaction.
|
21
21
|
attr_accessor :original_transaction_amount
|
22
22
|
|
23
|
-
# Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API.
|
23
|
+
# Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your request for Payment API. **DCC for First Data**\\ Your local currency. For details, see \"Dynamic Currency Conversion for First Data,\" page 113.
|
24
24
|
attr_accessor :currency
|
25
25
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -17,10 +17,10 @@ module CyberSource
|
|
17
17
|
# Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
|
18
18
|
attr_accessor :submit_time_utc
|
19
19
|
|
20
|
-
# The status of the submitted transaction.
|
20
|
+
# The status of the submitted transaction. Possible values: - INVALID_REQUEST
|
21
21
|
attr_accessor :status
|
22
22
|
|
23
|
-
# The reason of the status.
|
23
|
+
# The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - PROCESSOR_UNAVAILABLE - AUTH_ALREADY_REVERSED - TRANSACTION_ALREADY_SETTLED - INVALID_AMOUNT - MISSING_AUTH - TRANSACTION_ALREADY_REVERSED_OR_SETTLED
|
24
24
|
attr_accessor :reason
|
25
25
|
|
26
26
|
# The detail message related to the status and reason listed above.
|
@@ -22,7 +22,7 @@ module CyberSource
|
|
22
22
|
# Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
|
23
23
|
attr_accessor :submit_time_utc
|
24
24
|
|
25
|
-
# The status of the submitted transaction.
|
25
|
+
# The status of the submitted transaction. Possible values: - VOIDED
|
26
26
|
attr_accessor :status
|
27
27
|
|
28
28
|
attr_accessor :client_reference_information
|
@@ -20,7 +20,7 @@ module CyberSource
|
|
20
20
|
# Amount of the original transaction.
|
21
21
|
attr_accessor :original_transaction_amount
|
22
22
|
|
23
|
-
# Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal or a capture, you must use the same currency that you used in your request for Payment API.
|
23
|
+
# Currency used for the order. Use the three-character ISO Standard Currency Codes. For an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your request for Payment API. **DCC for First Data**\\ Your local currency. For details, see \"Dynamic Currency Conversion for First Data,\" page 113.
|
24
24
|
attr_accessor :currency
|
25
25
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -17,10 +17,10 @@ module CyberSource
|
|
17
17
|
# Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
|
18
18
|
attr_accessor :submit_time_utc
|
19
19
|
|
20
|
-
# The status of the submitted transaction.
|
20
|
+
# The status of the submitted transaction. Possible values: - INVALID_REQUEST
|
21
21
|
attr_accessor :status
|
22
22
|
|
23
|
-
# The reason of the status.
|
23
|
+
# The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - NOT_VOIDABLE
|
24
24
|
attr_accessor :reason
|
25
25
|
|
26
26
|
# The detail message related to the status and reason listed above.
|
@@ -0,0 +1,350 @@
|
|
1
|
+
=begin
|
2
|
+
#CyberSource Flex API
|
3
|
+
|
4
|
+
#Simple PAN tokenization service
|
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.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class PtsV2PayoutsPost201Response
|
17
|
+
attr_accessor :_links
|
18
|
+
|
19
|
+
# An unique identification number assigned by CyberSource to identify the submitted request.
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
# Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
|
23
|
+
attr_accessor :submit_time_utc
|
24
|
+
|
25
|
+
# The status of the submitted transaction.
|
26
|
+
attr_accessor :status
|
27
|
+
|
28
|
+
# Cybersource or merchant generated transaction reference number. This is sent to the processor and is echoed back in the response to the merchant. This is This value is used for reconciliation purposes.
|
29
|
+
attr_accessor :reconciliation_id
|
30
|
+
|
31
|
+
attr_accessor :status_information
|
32
|
+
|
33
|
+
attr_accessor :error_information
|
34
|
+
|
35
|
+
attr_accessor :client_reference_information
|
36
|
+
|
37
|
+
attr_accessor :merchant_information
|
38
|
+
|
39
|
+
attr_accessor :order_information
|
40
|
+
|
41
|
+
attr_accessor :processor_information
|
42
|
+
|
43
|
+
attr_accessor :recipient_information
|
44
|
+
|
45
|
+
class EnumAttributeValidator
|
46
|
+
attr_reader :datatype
|
47
|
+
attr_reader :allowable_values
|
48
|
+
|
49
|
+
def initialize(datatype, allowable_values)
|
50
|
+
@allowable_values = allowable_values.map do |value|
|
51
|
+
case datatype.to_s
|
52
|
+
when /Integer/i
|
53
|
+
value.to_i
|
54
|
+
when /Float/i
|
55
|
+
value.to_f
|
56
|
+
else
|
57
|
+
value
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
def valid?(value)
|
63
|
+
!value || allowable_values.include?(value)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
68
|
+
def self.attribute_map
|
69
|
+
{
|
70
|
+
:'_links' => :'_links',
|
71
|
+
:'id' => :'id',
|
72
|
+
:'submit_time_utc' => :'submitTimeUtc',
|
73
|
+
:'status' => :'status',
|
74
|
+
:'reconciliation_id' => :'reconciliationId',
|
75
|
+
:'status_information' => :'statusInformation',
|
76
|
+
:'error_information' => :'errorInformation',
|
77
|
+
:'client_reference_information' => :'clientReferenceInformation',
|
78
|
+
:'merchant_information' => :'merchantInformation',
|
79
|
+
:'order_information' => :'orderInformation',
|
80
|
+
:'processor_information' => :'processorInformation',
|
81
|
+
:'recipient_information' => :'recipientInformation'
|
82
|
+
}
|
83
|
+
end
|
84
|
+
|
85
|
+
# Attribute type mapping.
|
86
|
+
def self.swagger_types
|
87
|
+
{
|
88
|
+
:'_links' => :'PtsV2PaymentsReversalsPost201ResponseLinks',
|
89
|
+
:'id' => :'String',
|
90
|
+
:'submit_time_utc' => :'String',
|
91
|
+
:'status' => :'String',
|
92
|
+
:'reconciliation_id' => :'String',
|
93
|
+
:'status_information' => :'PtsV2PayoutsPost201ResponseStatusInformation',
|
94
|
+
:'error_information' => :'PtsV2PayoutsPost201ResponseErrorInformation',
|
95
|
+
:'client_reference_information' => :'Ptsv2payoutsClientReferenceInformation',
|
96
|
+
:'merchant_information' => :'PtsV2PayoutsPost201ResponseMerchantInformation',
|
97
|
+
:'order_information' => :'PtsV2PayoutsPost201ResponseOrderInformation',
|
98
|
+
:'processor_information' => :'PtsV2PayoutsPost201ResponseProcessorInformation',
|
99
|
+
:'recipient_information' => :'PtsV2PayoutsPost201ResponseRecipientInformation'
|
100
|
+
}
|
101
|
+
end
|
102
|
+
|
103
|
+
# Initializes the object
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
+
def initialize(attributes = {})
|
106
|
+
return unless attributes.is_a?(Hash)
|
107
|
+
|
108
|
+
# convert string to symbol for hash key
|
109
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
110
|
+
|
111
|
+
if attributes.has_key?(:'_links')
|
112
|
+
self._links = attributes[:'_links']
|
113
|
+
end
|
114
|
+
|
115
|
+
if attributes.has_key?(:'id')
|
116
|
+
self.id = attributes[:'id']
|
117
|
+
end
|
118
|
+
|
119
|
+
if attributes.has_key?(:'submitTimeUtc')
|
120
|
+
self.submit_time_utc = attributes[:'submitTimeUtc']
|
121
|
+
end
|
122
|
+
|
123
|
+
if attributes.has_key?(:'status')
|
124
|
+
self.status = attributes[:'status']
|
125
|
+
end
|
126
|
+
|
127
|
+
if attributes.has_key?(:'reconciliationId')
|
128
|
+
self.reconciliation_id = attributes[:'reconciliationId']
|
129
|
+
end
|
130
|
+
|
131
|
+
if attributes.has_key?(:'statusInformation')
|
132
|
+
self.status_information = attributes[:'statusInformation']
|
133
|
+
end
|
134
|
+
|
135
|
+
if attributes.has_key?(:'errorInformation')
|
136
|
+
self.error_information = attributes[:'errorInformation']
|
137
|
+
end
|
138
|
+
|
139
|
+
if attributes.has_key?(:'clientReferenceInformation')
|
140
|
+
self.client_reference_information = attributes[:'clientReferenceInformation']
|
141
|
+
end
|
142
|
+
|
143
|
+
if attributes.has_key?(:'merchantInformation')
|
144
|
+
self.merchant_information = attributes[:'merchantInformation']
|
145
|
+
end
|
146
|
+
|
147
|
+
if attributes.has_key?(:'orderInformation')
|
148
|
+
self.order_information = attributes[:'orderInformation']
|
149
|
+
end
|
150
|
+
|
151
|
+
if attributes.has_key?(:'processorInformation')
|
152
|
+
self.processor_information = attributes[:'processorInformation']
|
153
|
+
end
|
154
|
+
|
155
|
+
if attributes.has_key?(:'recipientInformation')
|
156
|
+
self.recipient_information = attributes[:'recipientInformation']
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
161
|
+
# @return Array for valid properties with the reasons
|
162
|
+
def list_invalid_properties
|
163
|
+
invalid_properties = Array.new
|
164
|
+
if !@id.nil? && @id.to_s.length > 26
|
165
|
+
invalid_properties.push('invalid value for "id", the character length must be smaller than or equal to 26.')
|
166
|
+
end
|
167
|
+
|
168
|
+
if !@reconciliation_id.nil? && @reconciliation_id.to_s.length > 25
|
169
|
+
invalid_properties.push('invalid value for "reconciliation_id", the character length must be smaller than or equal to 25.')
|
170
|
+
end
|
171
|
+
|
172
|
+
invalid_properties
|
173
|
+
end
|
174
|
+
|
175
|
+
# Check to see if the all the properties in the model are valid
|
176
|
+
# @return true if the model is valid
|
177
|
+
def valid?
|
178
|
+
return false if !@id.nil? && @id.to_s.length > 26
|
179
|
+
status_validator = EnumAttributeValidator.new('String', ['ACCEPTED', 'DECLINED'])
|
180
|
+
return false unless status_validator.valid?(@status)
|
181
|
+
return false if !@reconciliation_id.nil? && @reconciliation_id.to_s.length > 25
|
182
|
+
true
|
183
|
+
end
|
184
|
+
|
185
|
+
# Custom attribute writer method with validation
|
186
|
+
# @param [Object] id Value to be assigned
|
187
|
+
def id=(id)
|
188
|
+
if !id.nil? && id.to_s.length > 26
|
189
|
+
fail ArgumentError, 'invalid value for "id", the character length must be smaller than or equal to 26.'
|
190
|
+
end
|
191
|
+
|
192
|
+
@id = id
|
193
|
+
end
|
194
|
+
|
195
|
+
# Custom attribute writer method checking allowed values (enum).
|
196
|
+
# @param [Object] status Object to be assigned
|
197
|
+
def status=(status)
|
198
|
+
validator = EnumAttributeValidator.new('String', ['ACCEPTED', 'DECLINED'])
|
199
|
+
unless validator.valid?(status)
|
200
|
+
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
201
|
+
end
|
202
|
+
@status = status
|
203
|
+
end
|
204
|
+
|
205
|
+
# Custom attribute writer method with validation
|
206
|
+
# @param [Object] reconciliation_id Value to be assigned
|
207
|
+
def reconciliation_id=(reconciliation_id)
|
208
|
+
if !reconciliation_id.nil? && reconciliation_id.to_s.length > 25
|
209
|
+
fail ArgumentError, 'invalid value for "reconciliation_id", the character length must be smaller than or equal to 25.'
|
210
|
+
end
|
211
|
+
|
212
|
+
@reconciliation_id = reconciliation_id
|
213
|
+
end
|
214
|
+
|
215
|
+
# Checks equality by comparing each attribute.
|
216
|
+
# @param [Object] Object to be compared
|
217
|
+
def ==(o)
|
218
|
+
return true if self.equal?(o)
|
219
|
+
self.class == o.class &&
|
220
|
+
_links == o._links &&
|
221
|
+
id == o.id &&
|
222
|
+
submit_time_utc == o.submit_time_utc &&
|
223
|
+
status == o.status &&
|
224
|
+
reconciliation_id == o.reconciliation_id &&
|
225
|
+
status_information == o.status_information &&
|
226
|
+
error_information == o.error_information &&
|
227
|
+
client_reference_information == o.client_reference_information &&
|
228
|
+
merchant_information == o.merchant_information &&
|
229
|
+
order_information == o.order_information &&
|
230
|
+
processor_information == o.processor_information &&
|
231
|
+
recipient_information == o.recipient_information
|
232
|
+
end
|
233
|
+
|
234
|
+
# @see the `==` method
|
235
|
+
# @param [Object] Object to be compared
|
236
|
+
def eql?(o)
|
237
|
+
self == o
|
238
|
+
end
|
239
|
+
|
240
|
+
# Calculates hash code according to all attributes.
|
241
|
+
# @return [Fixnum] Hash code
|
242
|
+
def hash
|
243
|
+
[_links, id, submit_time_utc, status, reconciliation_id, status_information, error_information, client_reference_information, merchant_information, order_information, processor_information, recipient_information].hash
|
244
|
+
end
|
245
|
+
|
246
|
+
# Builds the object from hash
|
247
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
248
|
+
# @return [Object] Returns the model itself
|
249
|
+
def build_from_hash(attributes)
|
250
|
+
return nil unless attributes.is_a?(Hash)
|
251
|
+
self.class.swagger_types.each_pair do |key, type|
|
252
|
+
if type =~ /\AArray<(.*)>/i
|
253
|
+
# check to ensure the input is an array given that the the attribute
|
254
|
+
# is documented as an array but the input is not
|
255
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
256
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
257
|
+
end
|
258
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
259
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
260
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
261
|
+
end
|
262
|
+
|
263
|
+
self
|
264
|
+
end
|
265
|
+
|
266
|
+
# Deserializes the data based on type
|
267
|
+
# @param string type Data type
|
268
|
+
# @param string value Value to be deserialized
|
269
|
+
# @return [Object] Deserialized data
|
270
|
+
def _deserialize(type, value)
|
271
|
+
case type.to_sym
|
272
|
+
when :DateTime
|
273
|
+
DateTime.parse(value)
|
274
|
+
when :Date
|
275
|
+
Date.parse(value)
|
276
|
+
when :String
|
277
|
+
value.to_s
|
278
|
+
when :Integer
|
279
|
+
value.to_i
|
280
|
+
when :Float
|
281
|
+
value.to_f
|
282
|
+
when :BOOLEAN
|
283
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
284
|
+
true
|
285
|
+
else
|
286
|
+
false
|
287
|
+
end
|
288
|
+
when :Object
|
289
|
+
# generic object (usually a Hash), return directly
|
290
|
+
value
|
291
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
292
|
+
inner_type = Regexp.last_match[:inner_type]
|
293
|
+
value.map { |v| _deserialize(inner_type, v) }
|
294
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
295
|
+
k_type = Regexp.last_match[:k_type]
|
296
|
+
v_type = Regexp.last_match[:v_type]
|
297
|
+
{}.tap do |hash|
|
298
|
+
value.each do |k, v|
|
299
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
300
|
+
end
|
301
|
+
end
|
302
|
+
else # model
|
303
|
+
temp_model = CyberSource.const_get(type).new
|
304
|
+
temp_model.build_from_hash(value)
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
# Returns the string representation of the object
|
309
|
+
# @return [String] String presentation of the object
|
310
|
+
def to_s
|
311
|
+
to_hash.to_s
|
312
|
+
end
|
313
|
+
|
314
|
+
# to_body is an alias to to_hash (backward compatibility)
|
315
|
+
# @return [Hash] Returns the object in the form of hash
|
316
|
+
def to_body
|
317
|
+
to_hash
|
318
|
+
end
|
319
|
+
|
320
|
+
# Returns the object in the form of hash
|
321
|
+
# @return [Hash] Returns the object in the form of hash
|
322
|
+
def to_hash
|
323
|
+
hash = {}
|
324
|
+
self.class.attribute_map.each_pair do |attr, param|
|
325
|
+
value = self.send(attr)
|
326
|
+
next if value.nil?
|
327
|
+
hash[param] = _to_hash(value)
|
328
|
+
end
|
329
|
+
hash
|
330
|
+
end
|
331
|
+
|
332
|
+
# Outputs non-array value in the form of hash
|
333
|
+
# For object, use to_hash. Otherwise, just return the value
|
334
|
+
# @param [Object] value Any valid value
|
335
|
+
# @return [Hash] Returns the value in the form of hash
|
336
|
+
def _to_hash(value)
|
337
|
+
if value.is_a?(Array)
|
338
|
+
value.compact.map { |v| _to_hash(v) }
|
339
|
+
elsif value.is_a?(Hash)
|
340
|
+
{}.tap do |hash|
|
341
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
342
|
+
end
|
343
|
+
elsif value.respond_to? :to_hash
|
344
|
+
value.to_hash
|
345
|
+
else
|
346
|
+
value
|
347
|
+
end
|
348
|
+
end
|
349
|
+
end
|
350
|
+
end
|