cybersource_rest_client 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AuthenticationSDK/Cybersource.gemspec +22 -21
- data/AuthenticationSDK/authentication/http/GetSignatureParameter.rb +3 -1
- data/AuthenticationSDK/authentication/http/HttpSignatureHeader.rb +3 -1
- data/AuthenticationSDK/authentication/jwt/JwtToken.rb +2 -2
- data/AuthenticationSDK/util/Constants.rb +4 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/api/capture_api.rb +4 -53
- data/lib/{cyberSource_client → cybersource_rest_client}/api/credit_api.rb +4 -53
- data/lib/{cyberSource_client/api/tokenization_api.rb → cybersource_rest_client/api/flex_token_api.rb} +9 -6
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +254 -0
- data/lib/cybersource_rest_client/api/instrument_identifiers_api.rb +91 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/api/key_generation_api.rb +11 -12
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +86 -0
- data/lib/{cyberSource_client/api/instrument_identifier_api.rb → cybersource_rest_client/api/payment_instruments_api.rb} +171 -150
- data/lib/cybersource_rest_client/api/payments_api.rb +78 -0
- data/lib/{cyberSource_client/api/default_api.rb → cybersource_rest_client/api/process_a_payout_api.rb} +8 -6
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +129 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/api/refund_api.rb +6 -53
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +156 -0
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +100 -0
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +262 -0
- data/lib/cybersource_rest_client/api/reports_api.rb +257 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/api/reversal_api.rb +4 -53
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +132 -0
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +169 -0
- data/lib/cybersource_rest_client/api/transaction_batch_api.rb +77 -0
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +86 -0
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +78 -0
- data/lib/cybersource_rest_client/api/user_management_api.rb +84 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/api/void_api.rb +10 -53
- data/lib/{cyberSource_client → cybersource_rest_client}/api_client.rb +33 -23
- data/lib/{cyberSource_client → cybersource_rest_client}/api_error.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/configuration.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/auth_reversal_request.rb +5 -5
- data/lib/{cyberSource_client → cybersource_rest_client}/models/body.rb +5 -5
- data/lib/{cyberSource_client → cybersource_rest_client}/models/body_1.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/body_2.rb +9 -9
- data/lib/{cyberSource_client → cybersource_rest_client}/models/body_3.rb +9 -9
- data/lib/{cyberSource_client → cybersource_rest_client}/models/capture_payment_request.rb +11 -11
- data/lib/{cyberSource_client → cybersource_rest_client}/models/card_info.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/create_credit_request.rb +11 -11
- data/lib/{cyberSource_client → cybersource_rest_client}/models/create_payment_request.rb +13 -13
- data/lib/cybersource_rest_client/models/create_search_request.rb +244 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/der_public_key.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/error.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/error_links.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/error_response.rb +0 -0
- data/lib/{cyberSource_client/models/paymentsflexv1tokens_card_info.rb → cybersource_rest_client/models/flexv1tokens_card_info.rb} +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/generate_public_key_request.rb +69 -4
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_200.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_200_1.rb +0 -0
- data/lib/{cyberSource_client/models/inline_response_200_7.rb → cybersource_rest_client/models/inline_response_200_10.rb} +6 -6
- data/lib/{cyberSource_client/models/inline_response_200_8.rb → cybersource_rest_client/models/inline_response_200_11.rb} +2 -2
- data/lib/{cyberSource_client/models/inline_response_200_8__links.rb → cybersource_rest_client/models/inline_response_200_11__links.rb} +6 -6
- data/lib/{cyberSource_client/models/inline_response_200_8__links_first.rb → cybersource_rest_client/models/inline_response_200_11__links_first.rb} +1 -1
- data/lib/{cyberSource_client/models/inline_response_200_8__links_last.rb → cybersource_rest_client/models/inline_response_200_11__links_last.rb} +1 -1
- data/lib/{cyberSource_client/models/inline_response_200_8__links_next.rb → cybersource_rest_client/models/inline_response_200_11__links_next.rb} +1 -1
- data/lib/{cyberSource_client/models/inline_response_200_8__links_prev.rb → cybersource_rest_client/models/inline_response_200_11__links_prev.rb} +1 -1
- data/lib/{cyberSource_client/models/inline_response_200_8__links_self.rb → cybersource_rest_client/models/inline_response_200_11__links_self.rb} +1 -1
- data/lib/{cyberSource_client/models/inline_response_200_4.rb → cybersource_rest_client/models/inline_response_200_12.rb} +176 -82
- data/lib/cybersource_rest_client/models/inline_response_200_12_application_information.rb +225 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_application_information_applications.rb +254 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_buyer_information.rb +224 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_client_reference_information.rb +239 -0
- data/lib/{cyberSource_client/models/inline_response_200_2_processor_information.rb → cybersource_rest_client/models/inline_response_200_12_consumer_authentication_information.rb} +62 -30
- data/lib/{cyberSource_client/models/inline_response_200_2_device_information.rb → cybersource_rest_client/models/inline_response_200_12_device_information.rb} +38 -23
- data/lib/cybersource_rest_client/models/inline_response_200_12_error_information.rb +205 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_fraud_marking_information.rb +184 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_installment_information.rb +184 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_merchant_defined_information.rb +224 -0
- data/lib/{cyberSource_client/models/paymentinstruments_merchant_information.rb → cybersource_rest_client/models/inline_response_200_12_merchant_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/inline_response_200_12_merchant_information_merchant_descriptor.rb +199 -0
- data/lib/{cyberSource_client/models/v2paymentsidrefunds_order_information.rb → cybersource_rest_client/models/inline_response_200_12_order_information.rb} +13 -21
- data/lib/cybersource_rest_client/models/inline_response_200_12_order_information_amount_details.rb +274 -0
- data/lib/{cyberSource_client/models/inline_response_200_2_order_information_bill_to.rb → cybersource_rest_client/models/inline_response_200_12_order_information_bill_to.rb} +108 -43
- data/lib/{cyberSource_client/models/inline_response_200_2_order_information_line_items.rb → cybersource_rest_client/models/inline_response_200_12_order_information_line_items.rb} +34 -255
- data/lib/{cyberSource_client/models/inline_response_200_2_order_information_ship_to.rb → cybersource_rest_client/models/inline_response_200_12_order_information_ship_to.rb} +24 -29
- data/lib/cybersource_rest_client/models/inline_response_200_12_order_information_shipping_details.rb +209 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information_account_features.rb +249 -0
- data/lib/{cyberSource_client/models/inline_response_200_4_order_information.rb → cybersource_rest_client/models/inline_response_200_12_payment_information_bank.rb} +52 -40
- data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information_bank_account.rb +244 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information_bank_mandate.rb +204 -0
- data/lib/{cyberSource_client/models/inline_response_200_2_payment_information_card.rb → cybersource_rest_client/models/inline_response_200_12_payment_information_card.rb} +166 -12
- data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information_invoice.rb +204 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_payment_information_payment_type.rb +244 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_point_of_sale_information.rb +233 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_processing_information.rb +252 -0
- data/lib/{cyberSource_client/models/inline_response_200_2_processing_information.rb → cybersource_rest_client/models/inline_response_200_12_processing_information_authorization_options.rb} +17 -17
- data/lib/cybersource_rest_client/models/inline_response_200_12_processing_information_bank_transfer_options.rb +184 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_processor_information.rb +309 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_processor_information_ach_verification.rb +224 -0
- data/lib/{cyberSource_client/models/inline_response_200_2_processor_information_card_verification.rb → cybersource_rest_client/models/inline_response_200_12_processor_information_card_verification.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_12_processor_information_electronic_verification_results.rb +424 -0
- data/lib/{cyberSource_client/models/inline_response_200_2_processor_information_avs.rb → cybersource_rest_client/models/inline_response_200_12_processor_information_processor.rb} +17 -17
- data/lib/cybersource_rest_client/models/inline_response_200_12_risk_information.rb +233 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12_risk_information_profile.rb +194 -0
- data/lib/{cyberSource_client/models/inline_response_200_2_payment_information.rb → cybersource_rest_client/models/inline_response_200_12_risk_information_score.rb} +18 -14
- data/lib/cybersource_rest_client/models/inline_response_200_12_sender_information.rb +199 -0
- data/lib/{cyberSource_client/models/inline_response_201__embedded.rb → cybersource_rest_client/models/inline_response_200_13.rb} +10 -8
- data/lib/cybersource_rest_client/models/inline_response_200_13_account_information.rb +282 -0
- data/lib/cybersource_rest_client/models/inline_response_200_13_contact_information.rb +210 -0
- data/lib/cybersource_rest_client/models/inline_response_200_13_organization_information.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_200_13_users.rb +201 -0
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +204 -0
- data/lib/cybersource_rest_client/models/inline_response_200_2__links.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_200_2__links_self.rb +192 -0
- data/lib/cybersource_rest_client/models/inline_response_200_2_transaction_batches.rb +277 -0
- data/lib/cybersource_rest_client/models/inline_response_200_3.rb +186 -0
- data/lib/cybersource_rest_client/models/inline_response_200_3_notification_of_changes.rb +255 -0
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_200_4_report_definitions.rb +243 -0
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +254 -0
- data/lib/cybersource_rest_client/models/inline_response_200_5_attributes.rb +237 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_report_preferences.rb +229 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_subscriptions.rb +354 -0
- data/lib/cybersource_rest_client/models/inline_response_200_7.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_200_7_reports.rb +373 -0
- data/lib/cybersource_rest_client/models/inline_response_200_8.rb +376 -0
- data/lib/{cyberSource_client/models/inline_response_201__embedded_capture.rb → cybersource_rest_client/models/inline_response_200_9.rb} +11 -10
- data/lib/cybersource_rest_client/models/inline_response_200_9__links.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_200_9__links_files.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_200_9__links_self.rb +192 -0
- data/lib/cybersource_rest_client/models/inline_response_200_9_file_details.rb +278 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_200_der.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_200_jwk.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201.rb +1 -10
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_1.rb +2 -2
- data/lib/{cyberSource_client/models/inline_response_201__embedded_capture__links.rb → cybersource_rest_client/models/inline_response_201_1__links.rb} +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_1_authorization_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_1_processor_information.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_1_reversal_amount_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_2.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_2__links.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_2_order_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_2_order_information_amount_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_2_processor_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_3.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_3__links.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_3_order_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_3_processor_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_3_refund_amount_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_4.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_4_credit_amount_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_5.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_5_void_amount_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_6.rb +9 -9
- data/lib/{cyberSource_client/models/inline_response_200_5.rb → cybersource_rest_client/models/inline_response_201_7.rb} +99 -87
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded.rb +186 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded__links.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_buyer_information.rb +199 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_client_reference_information.rb +219 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_consumer_authentication_information.rb +209 -0
- data/lib/{cyberSource_client/models/inline_response_200_4_device_information.rb → cybersource_rest_client/models/inline_response_201_7__embedded_device_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_merchant_information.rb +199 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_order_information.rb +201 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_order_information_bill_to.rb +299 -0
- data/lib/{cyberSource_client/models/inline_response_200_4_order_information_ship_to.rb → cybersource_rest_client/models/inline_response_201_7__embedded_order_information_ship_to.rb} +85 -35
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_payment_information.rb +201 -0
- data/lib/{cyberSource_client/models/inline_response_200_2_payment_information_tokenized_card.rb → cybersource_rest_client/models/inline_response_201_7__embedded_payment_information_card.rb} +31 -81
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_payment_information_payment_method.rb +184 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_point_of_sale_information.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_point_of_sale_information_partner.rb +199 -0
- data/lib/{cyberSource_client/models/inline_response_200_4_processing_information.rb → cybersource_rest_client/models/inline_response_201_7__embedded_processing_information.rb} +9 -8
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_processor_information.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_risk_information.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_risk_information_providers.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_201_7__embedded_risk_information_providers_fingerprint.rb +249 -0
- data/lib/{cyberSource_client/models/inline_response_200_2.rb → cybersource_rest_client/models/inline_response_201_7__embedded_transaction_summaries.rb} +103 -123
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201__links.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201__links_self.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_client_reference_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_error_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_error_information_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_order_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_order_information_amount_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_order_information_invoice_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_payment_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_payment_information_account_features.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_payment_information_card.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_payment_information_tokenized_card.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_point_of_sale_information.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_point_of_sale_information_emv.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information.rb +5 -5
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_avs.rb +10 -7
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_card_verification.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_consumer_authentication_response.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_customer.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_electronic_verification_results.rb +10 -10
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_issuer.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_201_processor_information_merchant_advice.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_400.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_400_1.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_400_2.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_400_3.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_400_4.rb +0 -0
- data/lib/cybersource_rest_client/models/inline_response_400_5.rb +193 -0
- data/lib/cybersource_rest_client/models/inline_response_400_5_error_information.rb +203 -0
- data/lib/cybersource_rest_client/models/inline_response_400_5_error_information_details.rb +194 -0
- data/lib/{cyberSource_client/models/inline_response_400_5.rb → cybersource_rest_client/models/inline_response_400_6.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_7.rb +247 -0
- data/lib/cybersource_rest_client/models/inline_response_400_7_fields.rb +205 -0
- data/lib/{cyberSource_client/models/inline_response_400_6.rb → cybersource_rest_client/models/inline_response_400_8.rb} +2 -2
- data/lib/cybersource_rest_client/models/inline_response_400_9.rb +249 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_409.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_409__links.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_409__links_payment_instruments.rb +0 -0
- data/lib/cybersource_rest_client/models/inline_response_500.rb +193 -0
- data/lib/cybersource_rest_client/models/inline_response_500_error_information.rb +194 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_502.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_default.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_default__links.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_default__links_next.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_default_response_status.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/inline_response_default_response_status_details.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/json_web_key.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/key_parameters.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/key_result.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/link.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/links.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/oct_create_payment_request.rb +6 -6
- data/lib/{cyberSource_client/models/v2credits_point_of_sale_information.rb → cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2credits_point_of_sale_information_emv.rb → cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv.rb} +1 -1
- data/lib/{cyberSource_client/models/v2credits_processing_information.rb → cybersource_rest_client/models/ptsv2credits_processing_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_aggregator_information.rb → cybersource_rest_client/models/ptsv2payments_aggregator_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_aggregator_information_sub_merchant.rb → cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb} +10 -10
- data/lib/{cyberSource_client/models/v2payments_buyer_information.rb → cybersource_rest_client/models/ptsv2payments_buyer_information.rb} +4 -4
- data/lib/{cyberSource_client/models/v2payments_buyer_information_personal_identification.rb → cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_client_reference_information.rb → cybersource_rest_client/models/ptsv2payments_client_reference_information.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_consumer_authentication_information.rb → cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_device_information.rb → cybersource_rest_client/models/ptsv2payments_device_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_merchant_defined_information.rb → cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb} +3 -3
- data/lib/{cyberSource_client/models/v2payments_merchant_information.rb → cybersource_rest_client/models/ptsv2payments_merchant_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_merchant_information_merchant_descriptor.rb → cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_order_information.rb → cybersource_rest_client/models/ptsv2payments_order_information.rb} +7 -7
- data/lib/{cyberSource_client/models/v2payments_order_information_amount_details.rb → cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb} +5 -5
- data/lib/{cyberSource_client/models/v2payments_order_information_amount_details_amex_additional_amounts.rb → cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_order_information_amount_details_surcharge.rb → cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_order_information_amount_details_tax_details.rb → cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_order_information_bill_to.rb → cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb} +9 -9
- data/lib/{cyberSource_client/models/v2payments_order_information_invoice_details.rb → cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb} +34 -4
- data/lib/{cyberSource_client/models/v2payments_order_information_invoice_details_transaction_advice_addendum.rb → cybersource_rest_client/models/ptsv2payments_order_information_invoice_details_transaction_advice_addendum.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_order_information_line_items.rb → cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_order_information_ship_to.rb → cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_order_information_shipping_details.rb → cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_payment_information.rb → cybersource_rest_client/models/ptsv2payments_payment_information.rb} +5 -5
- data/lib/{cyberSource_client/models/v2payments_payment_information_card.rb → cybersource_rest_client/models/ptsv2payments_payment_information_card.rb} +3 -3
- data/lib/{cyberSource_client/models/v2payments_payment_information_customer.rb → cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb} +8 -11
- data/lib/{cyberSource_client/models/v2payments_payment_information_fluid_data.rb → cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_payment_information_tokenized_card.rb → cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb} +4 -4
- data/lib/{cyberSource_client/models/v2payments_point_of_sale_information.rb → cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb} +5 -5
- data/lib/{cyberSource_client/models/v2payments_point_of_sale_information_emv.rb → cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_processing_information.rb → cybersource_rest_client/models/ptsv2payments_processing_information.rb} +6 -6
- data/lib/{cyberSource_client/models/v2payments_processing_information_authorization_options.rb → cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_processing_information_authorization_options_initiator.rb → cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payments_processing_information_authorization_options_merchant_initiated_transaction.rb → cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_merchant_initiated_transaction.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_processing_information_capture_options.rb → cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_processing_information_issuer.rb → cybersource_rest_client/models/ptsv2payments_processing_information_issuer.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_processing_information_recurring_options.rb → cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payments_recipient_information.rb → cybersource_rest_client/models/ptsv2payments_recipient_information.rb} +4 -4
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_aggregator_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_aggregator_information_sub_merchant.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb} +9 -9
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_buyer_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_merchant_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb} +2 -2
- data/lib/{cyberSource_client/models/inline_response_200_2_order_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information.rb} +7 -7
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information_amount_details.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb} +3 -3
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information_bill_to.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb} +6 -6
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information_invoice_details.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb} +3 -3
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information_ship_to.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information_shipping_details.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_shipping_details.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_payment_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_point_of_sale_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_point_of_sale_information_emv.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_processing_information.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb} +4 -4
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_processing_information_authorization_options.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_processing_information_capture_options.rb → cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidrefunds_merchant_information.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidcaptures_order_information.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information.rb} +7 -7
- data/lib/{cyberSource_client/models/v2paymentsidrefunds_order_information_line_items.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidrefunds_payment_information.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidrefunds_payment_information_card.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb} +3 -3
- data/lib/{cyberSource_client/models/v2paymentsidrefunds_point_of_sale_information.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidrefunds_processing_information.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidrefunds_processing_information_recurring_options.rb → cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidreversals_client_reference_information.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidreversals_order_information.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_order_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidreversals_order_information_line_items.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidreversals_point_of_sale_information.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information.rb} +1 -1
- data/lib/{cyberSource_client/models/v2paymentsidreversals_processing_information.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2paymentsidreversals_reversal_information.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb} +8 -5
- data/lib/{cyberSource_client/models/v2paymentsidreversals_reversal_information_amount_details.rb → cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payouts_merchant_information.rb → cybersource_rest_client/models/ptsv2payouts_merchant_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payouts_merchant_information_merchant_descriptor.rb → cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payouts_order_information.rb → cybersource_rest_client/models/ptsv2payouts_order_information.rb} +3 -3
- data/lib/{cyberSource_client/models/v2payouts_order_information_amount_details.rb → cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb} +8 -24
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details_surcharge.rb +199 -0
- data/lib/{cyberSource_client/models/v2payouts_order_information_bill_to.rb → cybersource_rest_client/models/ptsv2payouts_order_information_bill_to.rb} +5 -5
- data/lib/{cyberSource_client/models/v2payouts_payment_information.rb → cybersource_rest_client/models/ptsv2payouts_payment_information.rb} +2 -2
- data/lib/{cyberSource_client/models/v2payouts_payment_information_card.rb → cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb} +4 -4
- data/lib/{cyberSource_client/models/v2payouts_processing_information.rb → cybersource_rest_client/models/ptsv2payouts_processing_information.rb} +3 -3
- data/lib/{cyberSource_client/models/v2payouts_processing_information_payouts_options.rb → cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payouts_recipient_information.rb → cybersource_rest_client/models/ptsv2payouts_recipient_information.rb} +1 -1
- data/lib/{cyberSource_client/models/v2payouts_sender_information.rb → cybersource_rest_client/models/ptsv2payouts_sender_information.rb} +6 -6
- data/lib/{cyberSource_client/models/v2payouts_sender_information_account.rb → cybersource_rest_client/models/ptsv2payouts_sender_information_account.rb} +2 -2
- data/lib/{cyberSource_client → cybersource_rest_client}/models/refund_capture_request.rb +11 -11
- data/lib/{cyberSource_client → cybersource_rest_client}/models/refund_payment_request.rb +11 -11
- data/lib/cybersource_rest_client/models/request_body.rb +463 -0
- data/lib/cybersource_rest_client/models/request_body_1.rb +415 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/response_status.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/response_status_details.rb +0 -0
- data/lib/{cyberSource_client/models/instrumentidentifiers__links.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers__links.rb} +4 -4
- data/lib/{cyberSource_client/models/instrumentidentifiers__links_self.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers__links_self.rb} +1 -1
- data/lib/{cyberSource_client/models/instrumentidentifiers_authorization_options_merchant_initiated_transaction.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_authorization_options_merchant_initiated_transaction.rb} +1 -1
- data/lib/{cyberSource_client/models/instrumentidentifiers_bank_account.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_bank_account.rb} +1 -1
- data/lib/{cyberSource_client/models/instrumentidentifiers_card.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_card.rb} +1 -1
- data/lib/{cyberSource_client/models/instrumentidentifiers_details.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_details.rb} +1 -1
- data/lib/{cyberSource_client/models/instrumentidentifiers_metadata.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_metadata.rb} +1 -1
- data/lib/{cyberSource_client/models/instrumentidentifiers_processing_information.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_processing_information.rb} +2 -2
- data/lib/{cyberSource_client/models/instrumentidentifiers_processing_information_authorization_options.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_processing_information_authorization_options.rb} +2 -2
- data/lib/{cyberSource_client/models/instrumentidentifiers_processing_information_authorization_options_initiator.rb → cybersource_rest_client/models/tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.rb} +2 -2
- data/lib/{cyberSource_client/models/paymentinstruments_bank_account.rb → cybersource_rest_client/models/tmsv1paymentinstruments_bank_account.rb} +1 -1
- data/lib/{cyberSource_client/models/paymentinstruments_bill_to.rb → cybersource_rest_client/models/tmsv1paymentinstruments_bill_to.rb} +1 -1
- data/lib/{cyberSource_client/models/paymentinstruments_buyer_information.rb → cybersource_rest_client/models/tmsv1paymentinstruments_buyer_information.rb} +2 -2
- data/lib/{cyberSource_client/models/paymentinstruments_buyer_information_issued_by.rb → cybersource_rest_client/models/tmsv1paymentinstruments_buyer_information_issued_by.rb} +1 -1
- data/lib/{cyberSource_client/models/paymentinstruments_buyer_information_personal_identification.rb → cybersource_rest_client/models/tmsv1paymentinstruments_buyer_information_personal_identification.rb} +2 -2
- data/lib/{cyberSource_client/models/paymentinstruments_card.rb → cybersource_rest_client/models/tmsv1paymentinstruments_card.rb} +1 -1
- data/lib/{cyberSource_client/models/paymentinstruments_instrument_identifier.rb → cybersource_rest_client/models/tmsv1paymentinstruments_instrument_identifier.rb} +6 -6
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_merchant_information.rb +183 -0
- data/lib/{cyberSource_client/models/paymentinstruments_merchant_information_merchant_descriptor.rb → cybersource_rest_client/models/tmsv1paymentinstruments_merchant_information_merchant_descriptor.rb} +1 -1
- data/lib/{cyberSource_client/models/paymentinstruments_processing_information.rb → cybersource_rest_client/models/tmsv1paymentinstruments_processing_information.rb} +2 -2
- data/lib/{cyberSource_client/models/paymentinstruments_processing_information_bank_transfer_options.rb → cybersource_rest_client/models/tmsv1paymentinstruments_processing_information_bank_transfer_options.rb} +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/tokenize_parameters.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/tokenize_request.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/tokenize_result.rb +0 -0
- data/lib/{cyberSource_client → cybersource_rest_client}/models/void_capture_request.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/void_credit_request.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/void_payment_request.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/models/void_refund_request.rb +1 -1
- data/lib/{cyberSource_client → cybersource_rest_client}/version.rb +0 -0
- data/lib/cybersource_rest_client.rb +369 -0
- metadata +338 -255
- data/lib/cyberSource_client/api/payment_api.rb +0 -127
- data/lib/cyberSource_client/api/payment_instrument_api.rb +0 -312
- data/lib/cyberSource_client/models/inline_response_200_2_buyer_information.rb +0 -270
- data/lib/cyberSource_client/models/inline_response_200_2_merchant_information.rb +0 -233
- data/lib/cyberSource_client/models/inline_response_200_2_order_information_amount_details.rb +0 -385
- data/lib/cyberSource_client/models/inline_response_200_2_order_information_invoice_details.rb +0 -315
- data/lib/cyberSource_client/models/inline_response_200_3.rb +0 -314
- data/lib/cyberSource_client/models/inline_response_200_4_order_information_amount_details.rb +0 -360
- data/lib/cyberSource_client/models/inline_response_200_4_order_information_invoice_details.rb +0 -305
- data/lib/cyberSource_client/models/inline_response_200_4_processing_information_authorization_options.rb +0 -199
- data/lib/cyberSource_client/models/inline_response_200_6.rb +0 -305
- data/lib/cyberSource_client.rb +0 -286
@@ -16,60 +16,9 @@ module CyberSource
|
|
16
16
|
class VoidApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
|
-
def initialize(api_client = ApiClient.default)
|
19
|
+
def initialize(api_client = ApiClient.default, config)
|
20
20
|
@api_client = api_client
|
21
|
-
|
22
|
-
# Retrieve A Void
|
23
|
-
# Include the void ID in the GET request to retrieve the void details.
|
24
|
-
# @param id The void ID returned from a previous void request.
|
25
|
-
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [InlineResponse2015]
|
27
|
-
def get_void(id, opts = {})
|
28
|
-
data, _status_code, _headers = get_void_with_http_info(id, opts)
|
29
|
-
return data, _status_code, _headers
|
30
|
-
end
|
31
|
-
|
32
|
-
# Retrieve A Void
|
33
|
-
# Include the void ID in the GET request to retrieve the void details.
|
34
|
-
# @param id The void ID returned from a previous void request.
|
35
|
-
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(InlineResponse2015, Fixnum, Hash)>] InlineResponse2015 data, response status code and response headers
|
37
|
-
def get_void_with_http_info(id, opts = {})
|
38
|
-
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: VoidApi.get_void ...'
|
40
|
-
end
|
41
|
-
# verify the required parameter 'id' is set
|
42
|
-
if @api_client.config.client_side_validation && id.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling VoidApi.get_void"
|
44
|
-
end
|
45
|
-
# resource path
|
46
|
-
local_var_path = 'pts/v2/voids/{id}'.sub('{' + 'id' + '}', id.to_s)
|
47
|
-
|
48
|
-
# query parameters
|
49
|
-
query_params = {}
|
50
|
-
|
51
|
-
# header parameters
|
52
|
-
header_params = {}
|
53
|
-
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
|
55
|
-
|
56
|
-
# form parameters
|
57
|
-
form_params = {}
|
58
|
-
|
59
|
-
# http body (model)
|
60
|
-
post_body = nil
|
61
|
-
auth_names = []
|
62
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
63
|
-
:header_params => header_params,
|
64
|
-
:query_params => query_params,
|
65
|
-
:form_params => form_params,
|
66
|
-
:body => post_body,
|
67
|
-
:auth_names => auth_names,
|
68
|
-
:return_type => 'InlineResponse2015')
|
69
|
-
if @api_client.config.debugging
|
70
|
-
@api_client.config.logger.debug "API called: VoidApi#get_void\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
71
|
-
end
|
72
|
-
return data, status_code, headers
|
21
|
+
@api_client.set_configuration(config)
|
73
22
|
end
|
74
23
|
# Void a Capture
|
75
24
|
# Include the capture ID in the POST request to cancel the capture.
|
@@ -110,6 +59,8 @@ module CyberSource
|
|
110
59
|
header_params = {}
|
111
60
|
# HTTP header 'Accept' (if needed)
|
112
61
|
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
|
62
|
+
# HTTP header 'Content-Type'
|
63
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
113
64
|
|
114
65
|
# form parameters
|
115
66
|
form_params = {}
|
@@ -168,6 +119,8 @@ module CyberSource
|
|
168
119
|
header_params = {}
|
169
120
|
# HTTP header 'Accept' (if needed)
|
170
121
|
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
|
122
|
+
# HTTP header 'Content-Type'
|
123
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
171
124
|
|
172
125
|
# form parameters
|
173
126
|
form_params = {}
|
@@ -226,6 +179,8 @@ module CyberSource
|
|
226
179
|
header_params = {}
|
227
180
|
# HTTP header 'Accept' (if needed)
|
228
181
|
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
|
182
|
+
# HTTP header 'Content-Type'
|
183
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
229
184
|
|
230
185
|
# form parameters
|
231
186
|
form_params = {}
|
@@ -284,6 +239,8 @@ module CyberSource
|
|
284
239
|
header_params = {}
|
285
240
|
# HTTP header 'Accept' (if needed)
|
286
241
|
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
|
242
|
+
# HTTP header 'Content-Type'
|
243
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
287
244
|
|
288
245
|
# form parameters
|
289
246
|
form_params = {}
|
@@ -74,7 +74,7 @@ module CyberSource
|
|
74
74
|
else
|
75
75
|
data = nil
|
76
76
|
end
|
77
|
-
return
|
77
|
+
return response.body, response.code, response.headers
|
78
78
|
end
|
79
79
|
|
80
80
|
# Builds the HTTP request
|
@@ -89,10 +89,10 @@ module CyberSource
|
|
89
89
|
def build_request(http_method, path, opts = {})
|
90
90
|
url = build_request_url(path)
|
91
91
|
body_params = opts[:body] || {}
|
92
|
-
|
92
|
+
query_params = opts[:query_params] || {}
|
93
|
+
headers = CallAuthenticationHeader(http_method, path, body_params, opts[:header_params], query_params)
|
93
94
|
http_method = http_method.to_sym.downcase
|
94
95
|
header_params = @default_headers.merge(headers || {})
|
95
|
-
query_params = opts[:query_params] || {}
|
96
96
|
form_params = opts[:form_params] || {}
|
97
97
|
|
98
98
|
|
@@ -127,46 +127,49 @@ module CyberSource
|
|
127
127
|
download_file(request) if opts[:return_type] == 'File'
|
128
128
|
request
|
129
129
|
end
|
130
|
+
# set merchantConfig
|
131
|
+
def set_configuration(config)
|
132
|
+
require_relative '../../AuthenticationSDK/core/Merchantconfig.rb'
|
133
|
+
$merchantconfig_obj = Merchantconfig.new(config)
|
134
|
+
end
|
130
135
|
# Calling Authentication
|
131
|
-
def CallAuthenticationHeader(http_method, path, body_params, header_params)
|
132
|
-
require Dir.getwd + '/data/Configuration.rb'
|
133
|
-
require_relative '../../AuthenticationSDK/core/Merchantconfig.rb'
|
136
|
+
def CallAuthenticationHeader(http_method, path, body_params, header_params, query_params)
|
137
|
+
# require Dir.getwd + '/data/Configuration.rb'
|
134
138
|
require_relative '../../AuthenticationSDK/core/Authorization.rb'
|
135
139
|
require_relative '../../AuthenticationSDK/authentication/payloadDigest/Digest.rb'
|
136
|
-
|
137
|
-
request_target = @config.base_path + path
|
140
|
+
request_target = get_query_param(path, query_params)
|
138
141
|
# Request Type. [Non-Editable]
|
139
142
|
request_type = http_method.to_s
|
140
|
-
cybsproperty_obj = MerchantConfiguration.new.merchantConfigProp
|
141
|
-
merchantconfig_obj = Merchantconfig.new(cybsproperty_obj)
|
142
|
-
log_obj = Log.new merchantconfig_obj.logDirectory, merchantconfig_obj.logFilename, merchantconfig_obj.logSize, merchantconfig_obj.enableLog
|
143
|
+
# cybsproperty_obj = MerchantConfiguration.new.merchantConfigProp
|
144
|
+
# $merchantconfig_obj = Merchantconfig.new(cybsproperty_obj)
|
145
|
+
log_obj = Log.new $merchantconfig_obj.logDirectory, $merchantconfig_obj.logFilename, $merchantconfig_obj.logSize, $merchantconfig_obj.enableLog
|
143
146
|
# Set Request Type into the merchant config object.
|
144
|
-
merchantconfig_obj.requestType = request_type
|
147
|
+
$merchantconfig_obj.requestType = request_type
|
145
148
|
# Set Request Target into the merchant config object.
|
146
|
-
merchantconfig_obj.requestTarget = request_target
|
149
|
+
$merchantconfig_obj.requestTarget = request_target
|
147
150
|
# Construct the URL.
|
148
|
-
url = Constants::HTTPS_URI_PREFIX + merchantconfig_obj.requestHost + merchantconfig_obj.requestTarget
|
151
|
+
url = Constants::HTTPS_URI_PREFIX + $merchantconfig_obj.requestHost + $merchantconfig_obj.requestTarget
|
149
152
|
# set Request Json to Merchant config object
|
150
|
-
merchantconfig_obj.requestJsonData = body_params
|
153
|
+
$merchantconfig_obj.requestJsonData = body_params
|
151
154
|
# Set URL into the merchant config object.
|
152
|
-
merchantconfig_obj.requestUrl = url
|
155
|
+
$merchantconfig_obj.requestUrl = url
|
153
156
|
# Calling APISDK, Apisdk.controller.
|
154
157
|
gmtDateTime = DateTime.now.httpdate
|
155
|
-
token = Authorization.new.getToken(merchantconfig_obj, gmtDateTime, log_obj)
|
158
|
+
token = Authorization.new.getToken($merchantconfig_obj, gmtDateTime, log_obj)
|
156
159
|
# HTTP header 'Accept' (if needed)
|
157
|
-
if merchantconfig_obj.authenticationType.upcase == Constants::AUTH_TYPE_HTTP
|
160
|
+
if $merchantconfig_obj.authenticationType.upcase == Constants::AUTH_TYPE_HTTP
|
158
161
|
# Appending headers for Get Connection
|
159
|
-
header_params['v-c-merchant-id'] = merchantconfig_obj.merchantId
|
162
|
+
header_params['v-c-merchant-id'] = $merchantconfig_obj.merchantId
|
160
163
|
header_params['Date'] = gmtDateTime
|
161
|
-
header_params['Host'] = merchantconfig_obj.requestHost
|
164
|
+
header_params['Host'] = $merchantconfig_obj.requestHost
|
162
165
|
header_params['Signature'] = token
|
163
|
-
if request_type == Constants::POST_REQUEST_TYPE
|
166
|
+
if request_type == Constants::POST_REQUEST_TYPE || request_type == Constants::PUT_REQUEST_TYPE || request_type == Constants::PATCH_REQUEST_TYPE
|
164
167
|
digest = DigestGeneration.new.generateDigest(body_params, log_obj)
|
165
168
|
digest_payload = Constants::SHA256 + digest
|
166
169
|
header_params['Digest'] = digest_payload
|
167
170
|
end
|
168
171
|
end
|
169
|
-
if merchantconfig_obj.authenticationType.upcase == Constants::AUTH_TYPE_JWT
|
172
|
+
if $merchantconfig_obj.authenticationType.upcase == Constants::AUTH_TYPE_JWT
|
170
173
|
token = "Bearer " + token
|
171
174
|
header_params['Authorization'] = token
|
172
175
|
end
|
@@ -175,7 +178,14 @@ module CyberSource
|
|
175
178
|
end
|
176
179
|
return header_params
|
177
180
|
end
|
178
|
-
|
181
|
+
def get_query_param(path, query_params)
|
182
|
+
if !query_params.empty?
|
183
|
+
request_target = @config.base_path + path + '?' + URI.encode_www_form(query_params)
|
184
|
+
else
|
185
|
+
request_target = @config.base_path + path
|
186
|
+
end
|
187
|
+
request_target
|
188
|
+
end
|
179
189
|
# Check if the given MIME is a JSON MIME.
|
180
190
|
# JSON MIME examples:
|
181
191
|
# application/json
|
File without changes
|
@@ -140,7 +140,7 @@ module CyberSource
|
|
140
140
|
@params_encoding = nil
|
141
141
|
@cert_file = nil
|
142
142
|
@key_file = nil
|
143
|
-
@debugging =
|
143
|
+
@debugging = true
|
144
144
|
@inject_format = false
|
145
145
|
@force_ending_format = false
|
146
146
|
@logger = defined?(Rails) ? Rails.logger : Logger.new(STDOUT)
|
@@ -38,11 +38,11 @@ module CyberSource
|
|
38
38
|
# Attribute type mapping.
|
39
39
|
def self.swagger_types
|
40
40
|
{
|
41
|
-
:'client_reference_information' => :'
|
42
|
-
:'reversal_information' => :'
|
43
|
-
:'processing_information' => :'
|
44
|
-
:'order_information' => :'
|
45
|
-
:'point_of_sale_information' => :'
|
41
|
+
:'client_reference_information' => :'Ptsv2paymentsidreversalsClientReferenceInformation',
|
42
|
+
:'reversal_information' => :'Ptsv2paymentsidreversalsReversalInformation',
|
43
|
+
:'processing_information' => :'Ptsv2paymentsidreversalsProcessingInformation',
|
44
|
+
:'order_information' => :'Ptsv2paymentsidreversalsOrderInformation',
|
45
|
+
:'point_of_sale_information' => :'Ptsv2paymentsidreversalsPointOfSaleInformation'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -72,14 +72,14 @@ module CyberSource
|
|
72
72
|
# Attribute type mapping.
|
73
73
|
def self.swagger_types
|
74
74
|
{
|
75
|
-
:'_links' => :'
|
75
|
+
:'_links' => :'Tmsv1instrumentidentifiersLinks',
|
76
76
|
:'id' => :'String',
|
77
77
|
:'object' => :'String',
|
78
78
|
:'state' => :'String',
|
79
|
-
:'card' => :'
|
80
|
-
:'bank_account' => :'
|
81
|
-
:'processing_information' => :'
|
82
|
-
:'metadata' => :'
|
79
|
+
:'card' => :'Tmsv1instrumentidentifiersCard',
|
80
|
+
:'bank_account' => :'Tmsv1instrumentidentifiersBankAccount',
|
81
|
+
:'processing_information' => :'Tmsv1instrumentidentifiersProcessingInformation',
|
82
|
+
:'metadata' => :'Tmsv1instrumentidentifiersMetadata'
|
83
83
|
}
|
84
84
|
end
|
85
85
|
|
@@ -84,18 +84,18 @@ module CyberSource
|
|
84
84
|
# Attribute type mapping.
|
85
85
|
def self.swagger_types
|
86
86
|
{
|
87
|
-
:'_links' => :'
|
87
|
+
:'_links' => :'Tmsv1instrumentidentifiersLinks',
|
88
88
|
:'id' => :'String',
|
89
89
|
:'object' => :'String',
|
90
90
|
:'state' => :'String',
|
91
|
-
:'bank_account' => :'
|
92
|
-
:'card' => :'
|
93
|
-
:'buyer_information' => :'
|
94
|
-
:'bill_to' => :'
|
95
|
-
:'processing_information' => :'
|
96
|
-
:'merchant_information' => :'
|
97
|
-
:'meta_data' => :'
|
98
|
-
:'instrument_identifier' => :'
|
91
|
+
:'bank_account' => :'Tmsv1paymentinstrumentsBankAccount',
|
92
|
+
:'card' => :'Tmsv1paymentinstrumentsCard',
|
93
|
+
:'buyer_information' => :'Tmsv1paymentinstrumentsBuyerInformation',
|
94
|
+
:'bill_to' => :'Tmsv1paymentinstrumentsBillTo',
|
95
|
+
:'processing_information' => :'Tmsv1paymentinstrumentsProcessingInformation',
|
96
|
+
:'merchant_information' => :'Tmsv1paymentinstrumentsMerchantInformation',
|
97
|
+
:'meta_data' => :'Tmsv1instrumentidentifiersMetadata',
|
98
|
+
:'instrument_identifier' => :'Tmsv1paymentinstrumentsInstrumentIdentifier'
|
99
99
|
}
|
100
100
|
end
|
101
101
|
|
@@ -84,18 +84,18 @@ module CyberSource
|
|
84
84
|
# Attribute type mapping.
|
85
85
|
def self.swagger_types
|
86
86
|
{
|
87
|
-
:'_links' => :'
|
87
|
+
:'_links' => :'Tmsv1instrumentidentifiersLinks',
|
88
88
|
:'id' => :'String',
|
89
89
|
:'object' => :'String',
|
90
90
|
:'state' => :'String',
|
91
|
-
:'bank_account' => :'
|
92
|
-
:'card' => :'
|
93
|
-
:'buyer_information' => :'
|
94
|
-
:'bill_to' => :'
|
95
|
-
:'processing_information' => :'
|
96
|
-
:'merchant_information' => :'
|
97
|
-
:'meta_data' => :'
|
98
|
-
:'instrument_identifier' => :'
|
91
|
+
:'bank_account' => :'Tmsv1paymentinstrumentsBankAccount',
|
92
|
+
:'card' => :'Tmsv1paymentinstrumentsCard',
|
93
|
+
:'buyer_information' => :'Tmsv1paymentinstrumentsBuyerInformation',
|
94
|
+
:'bill_to' => :'Tmsv1paymentinstrumentsBillTo',
|
95
|
+
:'processing_information' => :'Tmsv1paymentinstrumentsProcessingInformation',
|
96
|
+
:'merchant_information' => :'Tmsv1paymentinstrumentsMerchantInformation',
|
97
|
+
:'meta_data' => :'Tmsv1instrumentidentifiersMetadata',
|
98
|
+
:'instrument_identifier' => :'Tmsv1paymentinstrumentsInstrumentIdentifier'
|
99
99
|
}
|
100
100
|
end
|
101
101
|
|
@@ -32,7 +32,7 @@ module CyberSource
|
|
32
32
|
|
33
33
|
attr_accessor :point_of_sale_information
|
34
34
|
|
35
|
-
#
|
35
|
+
# Description of this field is not available.
|
36
36
|
attr_accessor :merchant_defined_information
|
37
37
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -54,16 +54,16 @@ module CyberSource
|
|
54
54
|
# Attribute type mapping.
|
55
55
|
def self.swagger_types
|
56
56
|
{
|
57
|
-
:'client_reference_information' => :'
|
58
|
-
:'processing_information' => :'
|
59
|
-
:'payment_information' => :'
|
60
|
-
:'order_information' => :'
|
61
|
-
:'buyer_information' => :'
|
62
|
-
:'device_information' => :'
|
63
|
-
:'merchant_information' => :'
|
64
|
-
:'aggregator_information' => :'
|
65
|
-
:'point_of_sale_information' => :'
|
66
|
-
:'merchant_defined_information' => :'Array<
|
57
|
+
:'client_reference_information' => :'Ptsv2paymentsClientReferenceInformation',
|
58
|
+
:'processing_information' => :'Ptsv2paymentsidcapturesProcessingInformation',
|
59
|
+
:'payment_information' => :'Ptsv2paymentsidcapturesPaymentInformation',
|
60
|
+
:'order_information' => :'Ptsv2paymentsidcapturesOrderInformation',
|
61
|
+
:'buyer_information' => :'Ptsv2paymentsidcapturesBuyerInformation',
|
62
|
+
:'device_information' => :'Ptsv2paymentsDeviceInformation',
|
63
|
+
:'merchant_information' => :'Ptsv2paymentsidcapturesMerchantInformation',
|
64
|
+
:'aggregator_information' => :'Ptsv2paymentsidcapturesAggregatorInformation',
|
65
|
+
:'point_of_sale_information' => :'Ptsv2paymentsidcapturesPointOfSaleInformation',
|
66
|
+
:'merchant_defined_information' => :'Array<Ptsv2paymentsMerchantDefinedInformation>'
|
67
67
|
}
|
68
68
|
end
|
69
69
|
|
File without changes
|
@@ -32,7 +32,7 @@ module CyberSource
|
|
32
32
|
|
33
33
|
attr_accessor :point_of_sale_information
|
34
34
|
|
35
|
-
#
|
35
|
+
# Description of this field is not available.
|
36
36
|
attr_accessor :merchant_defined_information
|
37
37
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -54,16 +54,16 @@ module CyberSource
|
|
54
54
|
# Attribute type mapping.
|
55
55
|
def self.swagger_types
|
56
56
|
{
|
57
|
-
:'client_reference_information' => :'
|
58
|
-
:'processing_information' => :'
|
59
|
-
:'payment_information' => :'
|
60
|
-
:'order_information' => :'
|
61
|
-
:'buyer_information' => :'
|
62
|
-
:'device_information' => :'
|
63
|
-
:'merchant_information' => :'
|
64
|
-
:'aggregator_information' => :'
|
65
|
-
:'point_of_sale_information' => :'
|
66
|
-
:'merchant_defined_information' => :'Array<
|
57
|
+
:'client_reference_information' => :'Ptsv2paymentsClientReferenceInformation',
|
58
|
+
:'processing_information' => :'Ptsv2creditsProcessingInformation',
|
59
|
+
:'payment_information' => :'Ptsv2paymentsidrefundsPaymentInformation',
|
60
|
+
:'order_information' => :'Ptsv2paymentsidrefundsOrderInformation',
|
61
|
+
:'buyer_information' => :'Ptsv2paymentsidcapturesBuyerInformation',
|
62
|
+
:'device_information' => :'Ptsv2paymentsDeviceInformation',
|
63
|
+
:'merchant_information' => :'Ptsv2paymentsidrefundsMerchantInformation',
|
64
|
+
:'aggregator_information' => :'Ptsv2paymentsidcapturesAggregatorInformation',
|
65
|
+
:'point_of_sale_information' => :'Ptsv2creditsPointOfSaleInformation',
|
66
|
+
:'merchant_defined_information' => :'Array<Ptsv2paymentsMerchantDefinedInformation>'
|
67
67
|
}
|
68
68
|
end
|
69
69
|
|
@@ -36,7 +36,7 @@ module CyberSource
|
|
36
36
|
|
37
37
|
attr_accessor :point_of_sale_information
|
38
38
|
|
39
|
-
#
|
39
|
+
# Description of this field is not available.
|
40
40
|
attr_accessor :merchant_defined_information
|
41
41
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -60,18 +60,18 @@ module CyberSource
|
|
60
60
|
# Attribute type mapping.
|
61
61
|
def self.swagger_types
|
62
62
|
{
|
63
|
-
:'client_reference_information' => :'
|
64
|
-
:'processing_information' => :'
|
65
|
-
:'payment_information' => :'
|
66
|
-
:'order_information' => :'
|
67
|
-
:'buyer_information' => :'
|
68
|
-
:'recipient_information' => :'
|
69
|
-
:'device_information' => :'
|
70
|
-
:'merchant_information' => :'
|
71
|
-
:'aggregator_information' => :'
|
72
|
-
:'consumer_authentication_information' => :'
|
73
|
-
:'point_of_sale_information' => :'
|
74
|
-
:'merchant_defined_information' => :'Array<
|
63
|
+
:'client_reference_information' => :'Ptsv2paymentsClientReferenceInformation',
|
64
|
+
:'processing_information' => :'Ptsv2paymentsProcessingInformation',
|
65
|
+
:'payment_information' => :'Ptsv2paymentsPaymentInformation',
|
66
|
+
:'order_information' => :'Ptsv2paymentsOrderInformation',
|
67
|
+
:'buyer_information' => :'Ptsv2paymentsBuyerInformation',
|
68
|
+
:'recipient_information' => :'Ptsv2paymentsRecipientInformation',
|
69
|
+
:'device_information' => :'Ptsv2paymentsDeviceInformation',
|
70
|
+
:'merchant_information' => :'Ptsv2paymentsMerchantInformation',
|
71
|
+
:'aggregator_information' => :'Ptsv2paymentsAggregatorInformation',
|
72
|
+
:'consumer_authentication_information' => :'Ptsv2paymentsConsumerAuthenticationInformation',
|
73
|
+
:'point_of_sale_information' => :'Ptsv2paymentsPointOfSaleInformation',
|
74
|
+
:'merchant_defined_information' => :'Array<Ptsv2paymentsMerchantDefinedInformation>'
|
75
75
|
}
|
76
76
|
end
|
77
77
|
|