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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f742c1e0cba5df3ac474cb3aed04fbf0b79ca7d4f0c9d15d607cc3f4b16f799
|
4
|
+
data.tar.gz: d8a2aa86cab6ddb236a7efd4a53119a53712e7a8ad8e9f251d89fd2f0eac6442
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2363dde323e343560f08ccacbd35660211d7af912f496207245f0bccfc2bc72e15d210b79a4c7d6792066d62f223d90330f7bbd9f870077860735a53ed686d8d
|
7
|
+
data.tar.gz: 844e2109bd726f0f1bb1776a46fa1040e9350cdc7286fc77606a5ec08a8fcaaf65e97b4c879c2150947aa35f76fb945ceeeb7bb0d1bca67faf7935d832b949cc
|
@@ -1,23 +1,24 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
2
|
+
s.name = "authenticationSDK"
|
3
|
+
s.version = "0.0.1"
|
4
|
+
s.platform = Gem::Platform::RUBY
|
5
|
+
s.date = "2018-07-17"
|
6
|
+
s.summary = "Cybersource Payments REST API Ruby Gem"
|
7
|
+
s.description = "Move your business forward with the Cybersource Payments REST API"
|
8
|
+
s.authors = ["cybersource"]
|
9
|
+
s.email = ""
|
10
|
+
s.files = Dir.glob("{lib}/**/*")
|
11
|
+
|
12
|
+
s.required_ruby_version = '>= 2.2.2'
|
13
|
+
s.required_rubygems_version = '>= 1.3.6'
|
11
14
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
s.add_development_dependency 'rubocop', '~> 0.57.2'
|
23
|
-
end
|
15
|
+
s.add_runtime_dependency 'activesupport', '~> 5.2', '>= 5.2.0'
|
16
|
+
s.add_runtime_dependency 'json', '~> 2.1.0', '>= 1.8.1'
|
17
|
+
s.add_runtime_dependency 'interface','~> 1.0', '>= 1.0.4'
|
18
|
+
s.add_runtime_dependency 'jwt', '~> 2.1.0'
|
19
|
+
|
20
|
+
s.add_development_dependency 'rspec', '~> 2.1'
|
21
|
+
s.add_development_dependency 'simplecov'
|
22
|
+
s.add_development_dependency 'rubocop', '~> 0.57.2'
|
23
|
+
end
|
24
|
+
|
@@ -22,7 +22,7 @@ class SignatureParameter
|
|
22
22
|
if request_type == Constants::GET_REQUEST_TYPE || request_type == Constants::DELETE_REQUEST_TYPE
|
23
23
|
targetUrl=gettargetUrlForGetDelete(request_type,merchantconfig_obj)
|
24
24
|
signatureString << targetUrl + "\n"
|
25
|
-
elsif request_type == Constants::POST_REQUEST_TYPE || request_type == Constants::PUT_REQUEST_TYPE
|
25
|
+
elsif request_type == Constants::POST_REQUEST_TYPE || request_type == Constants::PUT_REQUEST_TYPE || request_type == Constants::PATCH_REQUEST_TYPE
|
26
26
|
targetUrl=gettargetUrlForPutPost(request_type,merchantconfig_obj)
|
27
27
|
signatureString << targetUrl + "\n"
|
28
28
|
payload = merchantconfig_obj.requestJsonData
|
@@ -56,6 +56,8 @@ class SignatureParameter
|
|
56
56
|
targetUrlForPutPost = Constants::POST_REQUEST_TYPE_LOWER + ' ' + merchantconfig_obj.requestTarget
|
57
57
|
elsif request_type == Constants::PUT_REQUEST_TYPE
|
58
58
|
targetUrlForPutPost = Constants::PUT_REQUEST_TYPE_LOWER + ' ' + merchantconfig_obj.requestTarget
|
59
|
+
elsif request_type == Constants::PATCH_REQUEST_TYPE
|
60
|
+
targetUrlForPutPost = Constants::PATCH_REQUEST_TYPE_LOWER + ' ' + merchantconfig_obj.requestTarget
|
59
61
|
end
|
60
62
|
return targetUrlForPutPost
|
61
63
|
end
|
@@ -41,7 +41,9 @@ class GenerateHttpSignature
|
|
41
41
|
headers = 'host date (request-target)' + ' ' + Constants::V_C_MERCHANT_ID
|
42
42
|
elsif request_type == Constants::PUT_REQUEST_TYPE
|
43
43
|
headers = 'host date (request-target) digest ' + Constants::V_C_MERCHANT_ID
|
44
|
-
|
44
|
+
elsif request_type == Constants::PATCH_REQUEST_TYPE
|
45
|
+
headers = 'host date (request-target) digest ' + Constants::V_C_MERCHANT_ID
|
46
|
+
else
|
45
47
|
raise StandardError.new(Constants::ERROR_PREFIX + Constants::INVALID_REQUEST_TYPE_METHOD)
|
46
48
|
end
|
47
49
|
return headers
|
@@ -16,7 +16,7 @@ class GenerateJwtToken
|
|
16
16
|
request_type = merchantconfig_obj.requestType.upcase
|
17
17
|
filePath = merchantconfig_obj.keysDirectory + '/' + merchantconfig_obj.keyFilename + '.p12'
|
18
18
|
if (!File.exist?(filePath))
|
19
|
-
raise Constants::ERROR_PREFIX + Constants::FILE_NOT_FOUND + filePath
|
19
|
+
raise Constants::ERROR_PREFIX + Constants::FILE_NOT_FOUND + File.expand_path(filePath)
|
20
20
|
end
|
21
21
|
p12File = File.binread(filePath)
|
22
22
|
jwtBody=getJwtBody(request_type, gmtDatetime, merchantconfig_obj, log_obj)
|
@@ -47,7 +47,7 @@ class GenerateJwtToken
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
def getJwtBody(request_type, gmtDatetime, merchantconfig_obj,log_obj)
|
50
|
-
if request_type == Constants::POST_REQUEST_TYPE || request_type == Constants::PUT_REQUEST_TYPE
|
50
|
+
if request_type == Constants::POST_REQUEST_TYPE || request_type == Constants::PUT_REQUEST_TYPE || request_type == Constants::PATCH_REQUEST_TYPE
|
51
51
|
payload = merchantconfig_obj.requestJsonData
|
52
52
|
# Note: Digest is not passed for GET calls
|
53
53
|
digest = DigestGeneration.new.generateDigest(payload, log_obj)
|
@@ -5,6 +5,8 @@ class Constants
|
|
5
5
|
POST_REQUEST_TYPE_LOWER = 'post' unless const_defined?(:POST_REQUEST_TYPE_LOWER)
|
6
6
|
|
7
7
|
PUT_REQUEST_TYPE_LOWER = 'put' unless const_defined?(:PUT_REQUEST_TYPE_LOWER)
|
8
|
+
|
9
|
+
PATCH_REQUEST_TYPE_LOWER = 'patch' unless const_defined?(:PATCH_REQUEST_TYPE_LOWER)
|
8
10
|
|
9
11
|
DELETE_REQUEST_TYPE_LOWER = 'delete' unless const_defined?(:DELETE_REQUEST_TYPE_LOWER)
|
10
12
|
|
@@ -13,6 +15,8 @@ class Constants
|
|
13
15
|
POST_REQUEST_TYPE = 'POST' unless const_defined?(:POST_REQUEST_TYPE)
|
14
16
|
|
15
17
|
PUT_REQUEST_TYPE = 'PUT' unless const_defined?(:PUT_REQUEST_TYPE)
|
18
|
+
|
19
|
+
PATCH_REQUEST_TYPE = 'PATCH' unless const_defined?(:PATCH_REQUEST_TYPE)
|
16
20
|
|
17
21
|
DELETE_REQUEST_TYPE = 'DELETE' unless const_defined?(:DELETE_REQUEST_TYPE)
|
18
22
|
|
@@ -16,8 +16,9 @@ module CyberSource
|
|
16
16
|
class CaptureApi
|
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
|
+
@api_client.set_configuration(config)
|
21
22
|
end
|
22
23
|
# Capture a Payment
|
23
24
|
# Include the payment ID in the POST request to capture the payment amount.
|
@@ -58,6 +59,8 @@ module CyberSource
|
|
58
59
|
header_params = {}
|
59
60
|
# HTTP header 'Accept' (if needed)
|
60
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'])
|
61
64
|
|
62
65
|
# form parameters
|
63
66
|
form_params = {}
|
@@ -77,57 +80,5 @@ module CyberSource
|
|
77
80
|
end
|
78
81
|
return data, status_code, headers
|
79
82
|
end
|
80
|
-
# Retrieve a Capture
|
81
|
-
# Include the capture ID in the GET request to retrieve the capture details.
|
82
|
-
# @param id The capture ID returned from a previous capture request.
|
83
|
-
# @param [Hash] opts the optional parameters
|
84
|
-
# @return [InlineResponse2004]
|
85
|
-
def get_capture(id, opts = {})
|
86
|
-
data, _status_code, _headers = get_capture_with_http_info(id, opts)
|
87
|
-
data
|
88
|
-
end
|
89
|
-
|
90
|
-
# Retrieve a Capture
|
91
|
-
# Include the capture ID in the GET request to retrieve the capture details.
|
92
|
-
# @param id The capture ID returned from a previous capture request.
|
93
|
-
# @param [Hash] opts the optional parameters
|
94
|
-
# @return [Array<(InlineResponse2004, Fixnum, Hash)>] InlineResponse2004 data, response status code and response headers
|
95
|
-
def get_capture_with_http_info(id, opts = {})
|
96
|
-
if @api_client.config.debugging
|
97
|
-
@api_client.config.logger.debug 'Calling API: CaptureApi.get_capture ...'
|
98
|
-
end
|
99
|
-
# verify the required parameter 'id' is set
|
100
|
-
if @api_client.config.client_side_validation && id.nil?
|
101
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CaptureApi.get_capture"
|
102
|
-
end
|
103
|
-
# resource path
|
104
|
-
local_var_path = 'pts/v2/captures/{id}'.sub('{' + 'id' + '}', id.to_s)
|
105
|
-
|
106
|
-
# query parameters
|
107
|
-
query_params = {}
|
108
|
-
|
109
|
-
# header parameters
|
110
|
-
header_params = {}
|
111
|
-
# HTTP header 'Accept' (if needed)
|
112
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
|
113
|
-
|
114
|
-
# form parameters
|
115
|
-
form_params = {}
|
116
|
-
|
117
|
-
# http body (model)
|
118
|
-
post_body = nil
|
119
|
-
auth_names = []
|
120
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
121
|
-
:header_params => header_params,
|
122
|
-
:query_params => query_params,
|
123
|
-
:form_params => form_params,
|
124
|
-
:body => post_body,
|
125
|
-
:auth_names => auth_names,
|
126
|
-
:return_type => 'InlineResponse2004')
|
127
|
-
if @api_client.config.debugging
|
128
|
-
@api_client.config.logger.debug "API called: CaptureApi#get_capture\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
129
|
-
end
|
130
|
-
return data, status_code, headers
|
131
|
-
end
|
132
83
|
end
|
133
84
|
end
|
@@ -16,8 +16,9 @@ module CyberSource
|
|
16
16
|
class CreditApi
|
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
|
+
@api_client.set_configuration(config)
|
21
22
|
end
|
22
23
|
# Process a Credit
|
23
24
|
# POST to the credit resource to credit funds to a specified credit card.
|
@@ -52,6 +53,8 @@ module CyberSource
|
|
52
53
|
header_params = {}
|
53
54
|
# HTTP header 'Accept' (if needed)
|
54
55
|
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
|
56
|
+
# HTTP header 'Content-Type'
|
57
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
55
58
|
|
56
59
|
# form parameters
|
57
60
|
form_params = {}
|
@@ -71,57 +74,5 @@ module CyberSource
|
|
71
74
|
end
|
72
75
|
return data, status_code, headers
|
73
76
|
end
|
74
|
-
# Retrieve a Credit
|
75
|
-
# Include the credit ID in the GET request to return details of the credit.
|
76
|
-
# @param id The credit ID returned from a previous stand-alone credit request.
|
77
|
-
# @param [Hash] opts the optional parameters
|
78
|
-
# @return [InlineResponse2006]
|
79
|
-
def get_credit(id, opts = {})
|
80
|
-
data, _status_code, _headers = get_credit_with_http_info(id, opts)
|
81
|
-
return data, _status_code, _headers
|
82
|
-
end
|
83
|
-
|
84
|
-
# Retrieve a Credit
|
85
|
-
# Include the credit ID in the GET request to return details of the credit.
|
86
|
-
# @param id The credit ID returned from a previous stand-alone credit request.
|
87
|
-
# @param [Hash] opts the optional parameters
|
88
|
-
# @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
|
89
|
-
def get_credit_with_http_info(id, opts = {})
|
90
|
-
if @api_client.config.debugging
|
91
|
-
@api_client.config.logger.debug 'Calling API: CreditApi.get_credit ...'
|
92
|
-
end
|
93
|
-
# verify the required parameter 'id' is set
|
94
|
-
if @api_client.config.client_side_validation && id.nil?
|
95
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling CreditApi.get_credit"
|
96
|
-
end
|
97
|
-
# resource path
|
98
|
-
local_var_path = 'pts/v2/credits/{id}'.sub('{' + 'id' + '}', id.to_s)
|
99
|
-
|
100
|
-
# query parameters
|
101
|
-
query_params = {}
|
102
|
-
|
103
|
-
# header parameters
|
104
|
-
header_params = {}
|
105
|
-
# HTTP header 'Accept' (if needed)
|
106
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json'])
|
107
|
-
|
108
|
-
# form parameters
|
109
|
-
form_params = {}
|
110
|
-
|
111
|
-
# http body (model)
|
112
|
-
post_body = nil
|
113
|
-
auth_names = []
|
114
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
115
|
-
:header_params => header_params,
|
116
|
-
:query_params => query_params,
|
117
|
-
:form_params => form_params,
|
118
|
-
:body => post_body,
|
119
|
-
:auth_names => auth_names,
|
120
|
-
:return_type => 'InlineResponse2006')
|
121
|
-
if @api_client.config.debugging
|
122
|
-
@api_client.config.logger.debug "API called: CreditApi#get_credit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
123
|
-
end
|
124
|
-
return data, status_code, headers
|
125
|
-
end
|
126
77
|
end
|
127
78
|
end
|
@@ -13,13 +13,14 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'uri'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
16
|
+
class FlexTokenApi
|
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
|
+
@api_client.set_configuration(config)
|
21
22
|
end
|
22
|
-
# Tokenize card
|
23
|
+
# Flex Tokenize card
|
23
24
|
# Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser.
|
24
25
|
# @param [Hash] opts the optional parameters
|
25
26
|
# @option opts [TokenizeRequest] :tokenize_request
|
@@ -29,14 +30,14 @@ module CyberSource
|
|
29
30
|
return data, _status_code, _headers
|
30
31
|
end
|
31
32
|
|
32
|
-
# Tokenize card
|
33
|
+
# Flex Tokenize card
|
33
34
|
# Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser.
|
34
35
|
# @param [Hash] opts the optional parameters
|
35
36
|
# @option opts [TokenizeRequest] :tokenize_request
|
36
37
|
# @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
|
37
38
|
def tokenize_with_http_info(opts = {})
|
38
39
|
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API:
|
40
|
+
@api_client.config.logger.debug 'Calling API: FlexTokenApi.tokenize ...'
|
40
41
|
end
|
41
42
|
# resource path
|
42
43
|
local_var_path = 'flex/v1/tokens/'
|
@@ -48,6 +49,8 @@ module CyberSource
|
|
48
49
|
header_params = {}
|
49
50
|
# HTTP header 'Accept' (if needed)
|
50
51
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
52
|
+
# HTTP header 'Content-Type'
|
53
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
51
54
|
|
52
55
|
# form parameters
|
53
56
|
form_params = {}
|
@@ -63,7 +66,7 @@ module CyberSource
|
|
63
66
|
:auth_names => auth_names,
|
64
67
|
:return_type => 'InlineResponse2001')
|
65
68
|
if @api_client.config.debugging
|
66
|
-
@api_client.config.logger.debug "API called:
|
69
|
+
@api_client.config.logger.debug "API called: FlexTokenApi#tokenize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
67
70
|
end
|
68
71
|
return data, status_code, headers
|
69
72
|
end
|
@@ -0,0 +1,254 @@
|
|
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 'uri'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class InstrumentIdentifierApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default, config)
|
20
|
+
@api_client = api_client
|
21
|
+
@api_client.set_configuration(config)
|
22
|
+
end
|
23
|
+
# Delete an Instrument Identifier
|
24
|
+
# @param profile_id The id of a profile containing user specific TMS configuration.
|
25
|
+
# @param token_id The TokenId of an Instrument Identifier.
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [nil]
|
28
|
+
def tms_v1_instrumentidentifiers_token_id_delete(profile_id, token_id, opts = {})
|
29
|
+
data, _status_code, _headers = tms_v1_instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, opts)
|
30
|
+
return data, _status_code, _headers
|
31
|
+
end
|
32
|
+
|
33
|
+
# Delete an Instrument Identifier
|
34
|
+
# @param profile_id The id of a profile containing user specific TMS configuration.
|
35
|
+
# @param token_id The TokenId of an Instrument Identifier.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
38
|
+
def tms_v1_instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, opts = {})
|
39
|
+
if @api_client.config.debugging
|
40
|
+
@api_client.config.logger.debug 'Calling API: InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete ...'
|
41
|
+
end
|
42
|
+
# verify the required parameter 'profile_id' is set
|
43
|
+
if @api_client.config.client_side_validation && profile_id.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'profile_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete"
|
45
|
+
end
|
46
|
+
# if @api_client.config.client_side_validation && profile_id > 36
|
47
|
+
# fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete, must be smaller than or equal to 36.'
|
48
|
+
# end
|
49
|
+
|
50
|
+
# if @api_client.config.client_side_validation && profile_id < 36
|
51
|
+
# fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete, must be greater than or equal to 36.'
|
52
|
+
# end
|
53
|
+
|
54
|
+
# # verify the required parameter 'token_id' is set
|
55
|
+
# if @api_client.config.client_side_validation && token_id.nil?
|
56
|
+
# fail ArgumentError, "Missing the required parameter 'token_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete"
|
57
|
+
# end
|
58
|
+
# if @api_client.config.client_side_validation && token_id > 32
|
59
|
+
# fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete, must be smaller than or equal to 32.'
|
60
|
+
# end
|
61
|
+
|
62
|
+
# if @api_client.config.client_side_validation && token_id < 16
|
63
|
+
# fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_delete, must be greater than or equal to 16.'
|
64
|
+
# end
|
65
|
+
|
66
|
+
# resource path
|
67
|
+
local_var_path = 'tms/v1/instrumentidentifiers/{tokenId}'.sub('{' + 'tokenId' + '}', token_id.to_s)
|
68
|
+
|
69
|
+
# query parameters
|
70
|
+
query_params = {}
|
71
|
+
|
72
|
+
# header parameters
|
73
|
+
header_params = {}
|
74
|
+
# HTTP header 'Accept' (if needed)
|
75
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
76
|
+
# HTTP header 'Content-Type'
|
77
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
78
|
+
header_params[:'profile-id'] = profile_id
|
79
|
+
|
80
|
+
# form parameters
|
81
|
+
form_params = {}
|
82
|
+
|
83
|
+
# http body (model)
|
84
|
+
post_body = nil
|
85
|
+
auth_names = []
|
86
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
87
|
+
:header_params => header_params,
|
88
|
+
:query_params => query_params,
|
89
|
+
:form_params => form_params,
|
90
|
+
:body => post_body,
|
91
|
+
:auth_names => auth_names)
|
92
|
+
if @api_client.config.debugging
|
93
|
+
@api_client.config.logger.debug "API called: InstrumentIdentifierApi#tms_v1_instrumentidentifiers_token_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
94
|
+
end
|
95
|
+
return data, status_code, headers
|
96
|
+
end
|
97
|
+
# Retrieve an Instrument Identifier
|
98
|
+
# @param profile_id The id of a profile containing user specific TMS configuration.
|
99
|
+
# @param token_id The TokenId of an Instrument Identifier.
|
100
|
+
# @param [Hash] opts the optional parameters
|
101
|
+
# @return [InlineResponse20010]
|
102
|
+
def tms_v1_instrumentidentifiers_token_id_get(profile_id, token_id, opts = {})
|
103
|
+
data, _status_code, _headers = tms_v1_instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, opts)
|
104
|
+
return data, _status_code, _headers
|
105
|
+
end
|
106
|
+
|
107
|
+
# Retrieve an Instrument Identifier
|
108
|
+
# @param profile_id The id of a profile containing user specific TMS configuration.
|
109
|
+
# @param token_id The TokenId of an Instrument Identifier.
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @return [Array<(InlineResponse20010, Fixnum, Hash)>] InlineResponse20010 data, response status code and response headers
|
112
|
+
def tms_v1_instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, opts = {})
|
113
|
+
if @api_client.config.debugging
|
114
|
+
@api_client.config.logger.debug 'Calling API: InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get ...'
|
115
|
+
end
|
116
|
+
# verify the required parameter 'profile_id' is set
|
117
|
+
if @api_client.config.client_side_validation && profile_id.nil?
|
118
|
+
fail ArgumentError, "Missing the required parameter 'profile_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get"
|
119
|
+
end
|
120
|
+
# if @api_client.config.client_side_validation && profile_id > 36
|
121
|
+
# fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get, must be smaller than or equal to 36.'
|
122
|
+
# end
|
123
|
+
|
124
|
+
# if @api_client.config.client_side_validation && profile_id < 36
|
125
|
+
# fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get, must be greater than or equal to 36.'
|
126
|
+
# end
|
127
|
+
|
128
|
+
# # verify the required parameter 'token_id' is set
|
129
|
+
if @api_client.config.client_side_validation && token_id.nil?
|
130
|
+
fail ArgumentError, "Missing the required parameter 'token_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get"
|
131
|
+
end
|
132
|
+
# if @api_client.config.client_side_validation && token_id > 32
|
133
|
+
# fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get, must be smaller than or equal to 32.'
|
134
|
+
# end
|
135
|
+
|
136
|
+
# if @api_client.config.client_side_validation && token_id < 16
|
137
|
+
# fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_get, must be greater than or equal to 16.'
|
138
|
+
# end
|
139
|
+
|
140
|
+
# resource path
|
141
|
+
local_var_path = 'tms/v1/instrumentidentifiers/{tokenId}'.sub('{' + 'tokenId' + '}', token_id.to_s)
|
142
|
+
|
143
|
+
# query parameters
|
144
|
+
query_params = {}
|
145
|
+
|
146
|
+
# header parameters
|
147
|
+
header_params = {}
|
148
|
+
# HTTP header 'Accept' (if needed)
|
149
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
150
|
+
# HTTP header 'Content-Type'
|
151
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
152
|
+
header_params[:'profile-id'] = profile_id
|
153
|
+
|
154
|
+
# form parameters
|
155
|
+
form_params = {}
|
156
|
+
|
157
|
+
# http body (model)
|
158
|
+
post_body = nil
|
159
|
+
auth_names = []
|
160
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
161
|
+
:header_params => header_params,
|
162
|
+
:query_params => query_params,
|
163
|
+
:form_params => form_params,
|
164
|
+
:body => post_body,
|
165
|
+
:auth_names => auth_names,
|
166
|
+
:return_type => 'InlineResponse20010')
|
167
|
+
if @api_client.config.debugging
|
168
|
+
@api_client.config.logger.debug "API called: InstrumentIdentifierApi#tms_v1_instrumentidentifiers_token_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
169
|
+
end
|
170
|
+
return data, status_code, headers
|
171
|
+
end
|
172
|
+
# Update a Instrument Identifier
|
173
|
+
# @param profile_id The id of a profile containing user specific TMS configuration.
|
174
|
+
# @param token_id The TokenId of an Instrument Identifier.
|
175
|
+
# @param body Please specify the previous transaction Id to update.
|
176
|
+
# @param [Hash] opts the optional parameters
|
177
|
+
# @return [InlineResponse20010]
|
178
|
+
def tms_v1_instrumentidentifiers_token_id_patch(profile_id, token_id, body, opts = {})
|
179
|
+
data, _status_code, _headers = tms_v1_instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, body, opts)
|
180
|
+
return data, _status_code, _headers
|
181
|
+
end
|
182
|
+
|
183
|
+
# Update a Instrument Identifier
|
184
|
+
# @param profile_id The id of a profile containing user specific TMS configuration.
|
185
|
+
# @param token_id The TokenId of an Instrument Identifier.
|
186
|
+
# @param body Please specify the previous transaction Id to update.
|
187
|
+
# @param [Hash] opts the optional parameters
|
188
|
+
# @return [Array<(InlineResponse20010, Fixnum, Hash)>] InlineResponse20010 data, response status code and response headers
|
189
|
+
def tms_v1_instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, body, opts = {})
|
190
|
+
if @api_client.config.debugging
|
191
|
+
@api_client.config.logger.debug 'Calling API: InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch ...'
|
192
|
+
end
|
193
|
+
# verify the required parameter 'profile_id' is set
|
194
|
+
if @api_client.config.client_side_validation && profile_id.nil?
|
195
|
+
fail ArgumentError, "Missing the required parameter 'profile_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch"
|
196
|
+
end
|
197
|
+
# if @api_client.config.client_side_validation && profile_id > 36
|
198
|
+
# fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch, must be smaller than or equal to 36.'
|
199
|
+
# end
|
200
|
+
|
201
|
+
# if @api_client.config.client_side_validation && profile_id < 36
|
202
|
+
# fail ArgumentError, 'invalid value for "profile_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch, must be greater than or equal to 36.'
|
203
|
+
# end
|
204
|
+
|
205
|
+
# # verify the required parameter 'token_id' is set
|
206
|
+
if @api_client.config.client_side_validation && token_id.nil?
|
207
|
+
fail ArgumentError, "Missing the required parameter 'token_id' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch"
|
208
|
+
end
|
209
|
+
# if @api_client.config.client_side_validation && token_id > 32
|
210
|
+
# fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch, must be smaller than or equal to 32.'
|
211
|
+
# end
|
212
|
+
|
213
|
+
# if @api_client.config.client_side_validation && token_id < 16
|
214
|
+
# fail ArgumentError, 'invalid value for "token_id" when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch, must be greater than or equal to 16.'
|
215
|
+
# end
|
216
|
+
|
217
|
+
# verify the required parameter 'body' is set
|
218
|
+
if @api_client.config.client_side_validation && body.nil?
|
219
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling InstrumentIdentifierApi.tms_v1_instrumentidentifiers_token_id_patch"
|
220
|
+
end
|
221
|
+
# resource path
|
222
|
+
local_var_path = 'tms/v1/instrumentidentifiers/{tokenId}'.sub('{' + 'tokenId' + '}', token_id.to_s)
|
223
|
+
|
224
|
+
# query parameters
|
225
|
+
query_params = {}
|
226
|
+
|
227
|
+
# header parameters
|
228
|
+
header_params = {}
|
229
|
+
# HTTP header 'Accept' (if needed)
|
230
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
231
|
+
# HTTP header 'Content-Type'
|
232
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
233
|
+
header_params[:'profile-id'] = profile_id
|
234
|
+
|
235
|
+
# form parameters
|
236
|
+
form_params = {}
|
237
|
+
|
238
|
+
# http body (model)
|
239
|
+
post_body = @api_client.object_to_http_body(body)
|
240
|
+
auth_names = []
|
241
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
242
|
+
:header_params => header_params,
|
243
|
+
:query_params => query_params,
|
244
|
+
:form_params => form_params,
|
245
|
+
:body => post_body,
|
246
|
+
:auth_names => auth_names,
|
247
|
+
:return_type => 'InlineResponse20010')
|
248
|
+
if @api_client.config.debugging
|
249
|
+
@api_client.config.logger.debug "API called: InstrumentIdentifierApi#tms_v1_instrumentidentifiers_token_id_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
250
|
+
end
|
251
|
+
return data, status_code, headers
|
252
|
+
end
|
253
|
+
end
|
254
|
+
end
|