cybersource_rest_client 0.0.48 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +5 -0
- data/lib/AuthenticationSDK/util/Constants.rb +2 -0
- data/lib/cybersource_rest_client/api/batches_api.rb +330 -0
- data/lib/cybersource_rest_client/api/customer_api.rb +55 -47
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +112 -104
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +112 -104
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +93 -81
- data/lib/cybersource_rest_client/api/keymanagement_api.rb +3 -3
- data/lib/cybersource_rest_client/api/microform_integration_api.rb +89 -0
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +55 -49
- data/lib/cybersource_rest_client/api/payments_api.rb +71 -0
- data/lib/cybersource_rest_client/api/plans_api.rb +573 -0
- data/lib/cybersource_rest_client/api/push_funds_api.rb +131 -0
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +568 -0
- data/lib/cybersource_rest_client/api/taxes_api.rb +2 -2
- data/lib/cybersource_rest_client/api/token_api.rb +112 -0
- data/lib/cybersource_rest_client/api/transient_token_data_api.rb +2 -2
- data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +6 -5
- data/lib/cybersource_rest_client/api_client.rb +11 -0
- data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_risk_information_providers.rb → accountupdaterv1batches_included.rb} +9 -9
- data/lib/cybersource_rest_client/models/accountupdaterv1batches_included_tokens.rb +228 -0
- data/lib/cybersource_rest_client/models/body.rb +42 -32
- data/lib/cybersource_rest_client/models/create_plan_request.rb +201 -0
- data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +0 -18
- data/lib/cybersource_rest_client/models/{flexv1tokens_card_info.rb → create_subscription_request.rb} +44 -40
- data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_risk_information_providers_provider_name.rb → generate_capture_context_request.rb} +36 -17
- data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200.rb +19 -41
- data/lib/cybersource_rest_client/models/inline_response_200_1.rb +227 -0
- data/lib/cybersource_rest_client/models/inline_response_200_10.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_200_11.rb +236 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_keys.rb → inline_response_200_11_keys.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_12.rb +239 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__embedded.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__embedded__links_reports.rb +184 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_batches.rb +280 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__embedded_totals.rb +219 -0
- data/lib/cybersource_rest_client/models/inline_response_200_12__links.rb +193 -0
- data/lib/cybersource_rest_client/models/inline_response_200_13.rb +275 -0
- data/lib/cybersource_rest_client/models/inline_response_200_13__links.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_200_13__links_report.rb +183 -0
- data/lib/cybersource_rest_client/models/{tokenize_request.rb → inline_response_200_13_billing.rb} +32 -20
- data/lib/cybersource_rest_client/models/inline_response_200_14.rb +277 -0
- data/lib/cybersource_rest_client/models/inline_response_200_14_records.rb +201 -0
- data/lib/cybersource_rest_client/models/inline_response_200_14_response_record.rb +292 -0
- data/lib/cybersource_rest_client/models/inline_response_200_14_response_record_additional_updates.rb +232 -0
- data/lib/cybersource_rest_client/models/inline_response_200_14_source_record.rb +282 -0
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_200_3.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_200_3_plan_information.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6.rb +214 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6__links.rb +210 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_order_information.rb +192 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_order_information_bill_to.rb +206 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_payment_information_customer.rb +190 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_plan_information.rb +224 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_plan_information_billing_cycles.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_subscription_information.rb +242 -0
- data/lib/cybersource_rest_client/models/inline_response_200_6_subscriptions.rb +236 -0
- data/lib/cybersource_rest_client/models/inline_response_200_7.rb +245 -0
- data/lib/cybersource_rest_client/models/inline_response_200_8.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_200_9.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_200_9_subscription_information.rb +200 -0
- data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response.rb → inline_response_200__links.rb} +20 -21
- data/lib/cybersource_rest_client/models/inline_response_200_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_200_order_information_amount_details.rb +222 -0
- data/lib/cybersource_rest_client/models/inline_response_200_plan_information.rb +250 -0
- data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_cycles.rb +184 -0
- data/lib/cybersource_rest_client/models/inline_response_200_plan_information_billing_period.rb +195 -0
- data/lib/cybersource_rest_client/models/inline_response_200_plans.rb +218 -0
- data/lib/cybersource_rest_client/models/inline_response_201.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_201_1.rb +228 -0
- data/lib/cybersource_rest_client/models/{invoicing_v2_invoices_all_get200_response__links_1.rb → inline_response_201_1__links.rb} +23 -14
- data/lib/cybersource_rest_client/models/inline_response_201_1_subscription_information.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_201_plan_information.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_202.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_202_1.rb +228 -0
- data/lib/cybersource_rest_client/models/inline_response_202_1_subscription_information.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_202_2.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_202_2__links.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_202_2__links_status.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_202_subscription_information.rb +200 -0
- data/lib/cybersource_rest_client/models/inline_response_400_1.rb +33 -55
- data/lib/cybersource_rest_client/models/inline_response_400_2.rb +10 -9
- data/lib/cybersource_rest_client/models/inline_response_400_3.rb +55 -33
- data/lib/cybersource_rest_client/models/{inline_response_400_1_fields.rb → inline_response_400_3_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_4.rb +30 -71
- data/lib/cybersource_rest_client/models/inline_response_400_5.rb +225 -0
- data/lib/cybersource_rest_client/models/inline_response_400_6.rb +265 -0
- data/lib/cybersource_rest_client/models/{inline_response_400_4_details.rb → inline_response_400_6_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_errors.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_401.rb +241 -0
- data/lib/cybersource_rest_client/models/inline_response_401__links.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_401__links_self.rb +183 -0
- data/lib/cybersource_rest_client/models/inline_response_401_fields.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_403.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_403_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_404.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_409.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_409_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_410.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_410_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_412.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_412_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_424.rb +185 -0
- data/lib/cybersource_rest_client/models/inline_response_424_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/inline_response_500.rb +9 -38
- data/lib/cybersource_rest_client/models/inline_response_500_1.rb +214 -0
- data/lib/cybersource_rest_client/models/inline_response_500_errors.rb +194 -0
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response__links.rb +22 -13
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoices.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_tax_details.rb +2 -2
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +0 -18
- data/lib/cybersource_rest_client/models/{flex_v1_tokens_post200_response.rb → microformv2sessions_checkout_api_initialization.rb} +68 -59
- data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +15 -5
- data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
- data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +2 -2
- data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +4 -4
- data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +15 -5
- data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +15 -5
- data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
- data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +2 -2
- data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +4 -4
- data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +4 -4
- data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +15 -5
- data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +262 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +192 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_bill_to.rb +344 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_ship_to.rb +318 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information.rb +201 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_bank.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_bank_account.rb +184 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information_payment_type_method.rb +184 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +238 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information_avs.rb +190 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information_seller_protection.rb +184 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +0 -18
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +0 -9
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information.rb +5 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_client_reference_information.rb +226 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +17 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information.rb +215 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_aggregator_information_sub_merchant.rb +318 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_client_reference_information.rb +238 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_defined_information.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information.rb +225 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information_merchant_descriptor.rb +270 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information.rb +208 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_surcharge.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_point_of_service_information.rb +236 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +297 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_recurring_options.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options_funding_options.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_options_funding_options_initiator.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information.rb +384 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card.rb +281 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_customer.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_instrument_identifier.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card_payment_instrument.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_personal_identification.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information.rb +425 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_account.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_payment_information_card.rb +270 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_sender_information_personal_identification.rb +222 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +11 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +17 -19
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +30 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +1 -19
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type.rb +2 -12
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +12 -47
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +12 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +0 -36
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging.rb +0 -36
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +63 -4
- data/lib/cybersource_rest_client/models/{generate_public_key_request.rb → ptsv2paymentsidcaptures_buyer_information_personal_identification.rb} +15 -24
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +65 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +0 -36
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_client_reference_information.rb +297 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +1 -19
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +37 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_e_wallet.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_payment_type.rb +203 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_payment_type_method.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +35 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_refund_options.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2paymentsidvoids_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +0 -9
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_agreement_information.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_client_reference_information.rb +206 -0
- data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information.rb +192 -0
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_payment_information_customer.rb → ptsv2refreshpaymentstatusid_payment_information_customer.rb} +1 -1
- data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_payment_information_payment_type.rb +193 -0
- data/lib/cybersource_rest_client/models/ptsv2refreshpaymentstatusid_processing_information.rb +186 -0
- data/lib/cybersource_rest_client/models/push_funds201_response.rb +301 -0
- data/lib/cybersource_rest_client/models/push_funds201_response__links.rb +210 -0
- data/lib/cybersource_rest_client/models/push_funds201_response__links_customer.rb +195 -0
- data/lib/cybersource_rest_client/models/push_funds201_response__links_instrument_identifier.rb +195 -0
- data/lib/cybersource_rest_client/models/push_funds201_response__links_payment_instrument.rb +195 -0
- data/lib/cybersource_rest_client/models/push_funds201_response__links_self.rb +195 -0
- data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_jwk.rb → push_funds201_response_client_reference_information.rb} +28 -47
- data/lib/cybersource_rest_client/models/push_funds201_response_error_information.rb +217 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_error_information_details.rb +206 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_merchant_information.rb +183 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_merchant_information_merchant_descriptor.rb +222 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_order_information_amount_details.rb +247 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +264 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information.rb +183 -0
- data/lib/cybersource_rest_client/models/push_funds201_response_recipient_information_card.rb +206 -0
- data/lib/cybersource_rest_client/models/push_funds400_response.rb +247 -0
- data/lib/cybersource_rest_client/models/push_funds400_response_details.rb +194 -0
- data/lib/cybersource_rest_client/models/push_funds401_response.rb +226 -0
- data/lib/cybersource_rest_client/models/push_funds404_response.rb +226 -0
- data/lib/cybersource_rest_client/models/push_funds502_response.rb +236 -0
- data/lib/cybersource_rest_client/models/push_funds_request.rb +264 -0
- data/lib/cybersource_rest_client/models/rbsv1plans_client_reference_information.rb +229 -0
- data/lib/cybersource_rest_client/models/rbsv1plans_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1plans_order_information_amount_details.rb +240 -0
- data/lib/cybersource_rest_client/models/rbsv1plans_plan_information.rb +259 -0
- data/lib/cybersource_rest_client/models/rbsv1plans_plan_information_billing_cycles.rb +185 -0
- data/lib/cybersource_rest_client/models/rbsv1plansid_plan_information.rb +250 -0
- data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1plansid_processing_information_subscription_billing_options.rb +184 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb +245 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_payment_information_customer.rb +199 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_plan_information.rb +192 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information.rb +199 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_processing_information_authorization_options_initiator.rb +184 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_subscription_information.rb +246 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information_amount_details.rb +206 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_plan_information.rb +183 -0
- data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_subscription_information.rb +232 -0
- data/lib/cybersource_rest_client/models/refresh_payment_status_request.rb +210 -0
- data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
- data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +88 -4
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_export_compliance_information.rb +0 -18
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +1 -19
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +20 -4
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +0 -18
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +14 -4
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +17 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +152 -22
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +14 -4
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +1 -19
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +34 -2
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +1 -19
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tms_v2_customers_response.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +15 -5
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier.rb +4 -4
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bill_to.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_card.rb +3 -3
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_metadata.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card.rb +22 -4
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_metadata.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_processing_information_bank_transfer_options.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb +2 -2
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_metadata.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_merchant_initiated_transaction.rb +20 -4
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card.rb +15 -5
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_tokenized_card_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers_default_payment_instrument.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers_default_shipping_address.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers_merchant_defined_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tmsv2customers_metadata.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_invoice_details.rb +0 -9
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +0 -18
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +0 -18
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_users.rb +15 -4
- data/lib/cybersource_rest_client/models/{flex_v1_keys_post200_response_der.rb → update_plan_request.rb} +20 -24
- data/lib/cybersource_rest_client/models/update_subscription.rb +219 -0
- data/lib/cybersource_rest_client/models/vas_v2_payments_post201_response_tax_information.rb +2 -2
- data/lib/cybersource_rest_client/models/vas_v2_payments_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_line_items.rb +1 -19
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_acceptance.rb +5 -5
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_order_origin.rb +5 -5
- data/lib/cybersource_rest_client/models/vasv2tax_order_information_ship_to.rb +1 -1
- data/lib/cybersource_rest_client/models/vasv2tax_tax_information.rb +3 -3
- data/lib/cybersource_rest_client.rb +189 -16
- metadata +191 -18
- data/lib/cybersource_rest_client/api/key_generation_api.rb +0 -96
- data/lib/cybersource_rest_client/api/tokenization_api.rb +0 -89
@@ -0,0 +1,573 @@
|
|
1
|
+
=begin
|
2
|
+
#CyberSource Merged Spec
|
3
|
+
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'uri'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class PlansApi
|
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
|
+
# Activate a Plan
|
24
|
+
# Activate a Plan
|
25
|
+
# @param id Plan Id
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @option opts [Object] :activate_plan_request
|
28
|
+
# @return [InlineResponse2004]
|
29
|
+
def activate_plan(id, opts = {})
|
30
|
+
data, status_code, headers = activate_plan_with_http_info(id, opts)
|
31
|
+
return data, status_code, headers
|
32
|
+
end
|
33
|
+
|
34
|
+
# Activate a Plan
|
35
|
+
# Activate a Plan
|
36
|
+
# @param id Plan Id
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [Object] :activate_plan_request
|
39
|
+
# @return [Array<(InlineResponse2004, Fixnum, Hash)>] InlineResponse2004 data, response status code and response headers
|
40
|
+
def activate_plan_with_http_info(id, opts = {})
|
41
|
+
|
42
|
+
if @api_client.config.debugging
|
43
|
+
begin
|
44
|
+
raise
|
45
|
+
@api_client.config.logger.debug 'Calling API: PlansApi.activate_plan ...'
|
46
|
+
rescue
|
47
|
+
puts 'Cannot write to log'
|
48
|
+
end
|
49
|
+
end
|
50
|
+
# verify the required parameter 'id' is set
|
51
|
+
if @api_client.config.client_side_validation && id.nil?
|
52
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PlansApi.activate_plan"
|
53
|
+
end
|
54
|
+
# resource path
|
55
|
+
local_var_path = 'rbs/v1/plans/{id}/activate'.sub('{' + 'id' + '}', id.to_s)
|
56
|
+
|
57
|
+
# query parameters
|
58
|
+
query_params = {}
|
59
|
+
|
60
|
+
# header parameters
|
61
|
+
header_params = {}
|
62
|
+
# HTTP header 'Accept' (if needed)
|
63
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
64
|
+
# HTTP header 'Content-Type'
|
65
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
66
|
+
|
67
|
+
# form parameters
|
68
|
+
form_params = {}
|
69
|
+
|
70
|
+
# http body (model)
|
71
|
+
post_body = @api_client.object_to_http_body(opts[:'activate_plan_request'])
|
72
|
+
auth_names = []
|
73
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
74
|
+
:header_params => header_params,
|
75
|
+
:query_params => query_params,
|
76
|
+
:form_params => form_params,
|
77
|
+
:body => post_body,
|
78
|
+
:auth_names => auth_names,
|
79
|
+
:return_type => 'InlineResponse2004')
|
80
|
+
if @api_client.config.debugging
|
81
|
+
begin
|
82
|
+
raise
|
83
|
+
@api_client.config.logger.debug "API called: PlansApi#activate_plan\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
84
|
+
rescue
|
85
|
+
puts 'Cannot write to log'
|
86
|
+
end
|
87
|
+
end
|
88
|
+
return data, status_code, headers
|
89
|
+
end
|
90
|
+
# Create a Plan
|
91
|
+
# The recurring billing service enables you to manage payment plans and subscriptions for recurring payment schedules. It securely stores your customer's payment information and personal data within secure Visa data centers, reducing storage risks and PCI DSS scope through the use of *Token Management* (*TMS*). The three key elements of *Cybersource* Recurring Billing are: - **Token**: stores customer billing, shipping, and payment details. - **Plan**: stores the billing schedule. - **Subscription**: combines the token and plan, and defines the subscription start date, name, and description. The APIs in this section demonstrate the management of the Plans and Subscriptions. For Tokens please refer to [Token Management](#token-management)
|
92
|
+
# @param create_plan_request
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [InlineResponse201]
|
95
|
+
def create_plan(create_plan_request, opts = {})
|
96
|
+
data, status_code, headers = create_plan_with_http_info(create_plan_request, opts)
|
97
|
+
return data, status_code, headers
|
98
|
+
end
|
99
|
+
|
100
|
+
# Create a Plan
|
101
|
+
# The recurring billing service enables you to manage payment plans and subscriptions for recurring payment schedules. It securely stores your customer's payment information and personal data within secure Visa data centers, reducing storage risks and PCI DSS scope through the use of *Token Management* (*TMS*). The three key elements of *Cybersource* Recurring Billing are: - **Token**: stores customer billing, shipping, and payment details. - **Plan**: stores the billing schedule. - **Subscription**: combines the token and plan, and defines the subscription start date, name, and description. The APIs in this section demonstrate the management of the Plans and Subscriptions. For Tokens please refer to [Token Management](#token-management)
|
102
|
+
# @param create_plan_request
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @return [Array<(InlineResponse201, Fixnum, Hash)>] InlineResponse201 data, response status code and response headers
|
105
|
+
def create_plan_with_http_info(create_plan_request, opts = {})
|
106
|
+
|
107
|
+
if @api_client.config.debugging
|
108
|
+
begin
|
109
|
+
raise
|
110
|
+
@api_client.config.logger.debug 'Calling API: PlansApi.create_plan ...'
|
111
|
+
rescue
|
112
|
+
puts 'Cannot write to log'
|
113
|
+
end
|
114
|
+
end
|
115
|
+
# verify the required parameter 'create_plan_request' is set
|
116
|
+
if @api_client.config.client_side_validation && create_plan_request.nil?
|
117
|
+
fail ArgumentError, "Missing the required parameter 'create_plan_request' when calling PlansApi.create_plan"
|
118
|
+
end
|
119
|
+
# resource path
|
120
|
+
local_var_path = 'rbs/v1/plans'
|
121
|
+
|
122
|
+
# query parameters
|
123
|
+
query_params = {}
|
124
|
+
|
125
|
+
# header parameters
|
126
|
+
header_params = {}
|
127
|
+
# HTTP header 'Accept' (if needed)
|
128
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
129
|
+
# HTTP header 'Content-Type'
|
130
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
131
|
+
|
132
|
+
# form parameters
|
133
|
+
form_params = {}
|
134
|
+
|
135
|
+
# http body (model)
|
136
|
+
post_body = @api_client.object_to_http_body(create_plan_request)
|
137
|
+
auth_names = []
|
138
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
139
|
+
:header_params => header_params,
|
140
|
+
:query_params => query_params,
|
141
|
+
:form_params => form_params,
|
142
|
+
:body => post_body,
|
143
|
+
:auth_names => auth_names,
|
144
|
+
:return_type => 'InlineResponse201')
|
145
|
+
if @api_client.config.debugging
|
146
|
+
begin
|
147
|
+
raise
|
148
|
+
@api_client.config.logger.debug "API called: PlansApi#create_plan\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
149
|
+
rescue
|
150
|
+
puts 'Cannot write to log'
|
151
|
+
end
|
152
|
+
end
|
153
|
+
return data, status_code, headers
|
154
|
+
end
|
155
|
+
# Deactivate a Plan
|
156
|
+
# Deactivate a Plan
|
157
|
+
# @param id Plan Id
|
158
|
+
# @param [Hash] opts the optional parameters
|
159
|
+
# @option opts [Object] :deactivate_plan_request
|
160
|
+
# @return [InlineResponse2004]
|
161
|
+
def deactivate_plan(id, opts = {})
|
162
|
+
data, status_code, headers = deactivate_plan_with_http_info(id, opts)
|
163
|
+
return data, status_code, headers
|
164
|
+
end
|
165
|
+
|
166
|
+
# Deactivate a Plan
|
167
|
+
# Deactivate a Plan
|
168
|
+
# @param id Plan Id
|
169
|
+
# @param [Hash] opts the optional parameters
|
170
|
+
# @option opts [Object] :deactivate_plan_request
|
171
|
+
# @return [Array<(InlineResponse2004, Fixnum, Hash)>] InlineResponse2004 data, response status code and response headers
|
172
|
+
def deactivate_plan_with_http_info(id, opts = {})
|
173
|
+
|
174
|
+
if @api_client.config.debugging
|
175
|
+
begin
|
176
|
+
raise
|
177
|
+
@api_client.config.logger.debug 'Calling API: PlansApi.deactivate_plan ...'
|
178
|
+
rescue
|
179
|
+
puts 'Cannot write to log'
|
180
|
+
end
|
181
|
+
end
|
182
|
+
# verify the required parameter 'id' is set
|
183
|
+
if @api_client.config.client_side_validation && id.nil?
|
184
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PlansApi.deactivate_plan"
|
185
|
+
end
|
186
|
+
# resource path
|
187
|
+
local_var_path = 'rbs/v1/plans/{id}/deactivate'.sub('{' + 'id' + '}', id.to_s)
|
188
|
+
|
189
|
+
# query parameters
|
190
|
+
query_params = {}
|
191
|
+
|
192
|
+
# header parameters
|
193
|
+
header_params = {}
|
194
|
+
# HTTP header 'Accept' (if needed)
|
195
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
196
|
+
# HTTP header 'Content-Type'
|
197
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
198
|
+
|
199
|
+
# form parameters
|
200
|
+
form_params = {}
|
201
|
+
|
202
|
+
# http body (model)
|
203
|
+
post_body = @api_client.object_to_http_body(opts[:'deactivate_plan_request'])
|
204
|
+
auth_names = []
|
205
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
206
|
+
:header_params => header_params,
|
207
|
+
:query_params => query_params,
|
208
|
+
:form_params => form_params,
|
209
|
+
:body => post_body,
|
210
|
+
:auth_names => auth_names,
|
211
|
+
:return_type => 'InlineResponse2004')
|
212
|
+
if @api_client.config.debugging
|
213
|
+
begin
|
214
|
+
raise
|
215
|
+
@api_client.config.logger.debug "API called: PlansApi#deactivate_plan\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
216
|
+
rescue
|
217
|
+
puts 'Cannot write to log'
|
218
|
+
end
|
219
|
+
end
|
220
|
+
return data, status_code, headers
|
221
|
+
end
|
222
|
+
# Delete a Plan
|
223
|
+
# Delete a Plan is only allowed: - plan status is in `DRAFT` - plan status is in `ACTIVE`, and `INACTIVE` only allowed when no subscriptions attached to a plan in the lifetime of a plan
|
224
|
+
# @param id Plan Id
|
225
|
+
# @param [Hash] opts the optional parameters
|
226
|
+
# @return [InlineResponse2002]
|
227
|
+
def delete_plan(id, opts = {})
|
228
|
+
data, status_code, headers = delete_plan_with_http_info(id, opts)
|
229
|
+
return data, status_code, headers
|
230
|
+
end
|
231
|
+
|
232
|
+
# Delete a Plan
|
233
|
+
# Delete a Plan is only allowed: - plan status is in `DRAFT` - plan status is in `ACTIVE`, and `INACTIVE` only allowed when no subscriptions attached to a plan in the lifetime of a plan
|
234
|
+
# @param id Plan Id
|
235
|
+
# @param [Hash] opts the optional parameters
|
236
|
+
# @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
|
237
|
+
def delete_plan_with_http_info(id, opts = {})
|
238
|
+
|
239
|
+
if @api_client.config.debugging
|
240
|
+
begin
|
241
|
+
raise
|
242
|
+
@api_client.config.logger.debug 'Calling API: PlansApi.delete_plan ...'
|
243
|
+
rescue
|
244
|
+
puts 'Cannot write to log'
|
245
|
+
end
|
246
|
+
end
|
247
|
+
# verify the required parameter 'id' is set
|
248
|
+
if @api_client.config.client_side_validation && id.nil?
|
249
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PlansApi.delete_plan"
|
250
|
+
end
|
251
|
+
# resource path
|
252
|
+
local_var_path = 'rbs/v1/plans/{id}'.sub('{' + 'id' + '}', id.to_s)
|
253
|
+
|
254
|
+
# query parameters
|
255
|
+
query_params = {}
|
256
|
+
|
257
|
+
# header parameters
|
258
|
+
header_params = {}
|
259
|
+
# HTTP header 'Accept' (if needed)
|
260
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
261
|
+
# HTTP header 'Content-Type'
|
262
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
263
|
+
|
264
|
+
# form parameters
|
265
|
+
form_params = {}
|
266
|
+
|
267
|
+
# http body (model)
|
268
|
+
if 'DELETE' == 'POST'
|
269
|
+
post_body = '{}'
|
270
|
+
else
|
271
|
+
post_body = nil
|
272
|
+
end
|
273
|
+
auth_names = []
|
274
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
275
|
+
:header_params => header_params,
|
276
|
+
:query_params => query_params,
|
277
|
+
:form_params => form_params,
|
278
|
+
:body => post_body,
|
279
|
+
:auth_names => auth_names,
|
280
|
+
:return_type => 'InlineResponse2002')
|
281
|
+
if @api_client.config.debugging
|
282
|
+
begin
|
283
|
+
raise
|
284
|
+
@api_client.config.logger.debug "API called: PlansApi#delete_plan\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
285
|
+
rescue
|
286
|
+
puts 'Cannot write to log'
|
287
|
+
end
|
288
|
+
end
|
289
|
+
return data, status_code, headers
|
290
|
+
end
|
291
|
+
# Get a Plan
|
292
|
+
# Retrieve a Plan details by Plan Id.
|
293
|
+
# @param id Plan Id
|
294
|
+
# @param [Hash] opts the optional parameters
|
295
|
+
# @return [InlineResponse2001]
|
296
|
+
def get_plan(id, opts = {})
|
297
|
+
data, status_code, headers = get_plan_with_http_info(id, opts)
|
298
|
+
return data, status_code, headers
|
299
|
+
end
|
300
|
+
|
301
|
+
# Get a Plan
|
302
|
+
# Retrieve a Plan details by Plan Id.
|
303
|
+
# @param id Plan Id
|
304
|
+
# @param [Hash] opts the optional parameters
|
305
|
+
# @return [Array<(InlineResponse2001, Fixnum, Hash)>] InlineResponse2001 data, response status code and response headers
|
306
|
+
def get_plan_with_http_info(id, opts = {})
|
307
|
+
|
308
|
+
if @api_client.config.debugging
|
309
|
+
begin
|
310
|
+
raise
|
311
|
+
@api_client.config.logger.debug 'Calling API: PlansApi.get_plan ...'
|
312
|
+
rescue
|
313
|
+
puts 'Cannot write to log'
|
314
|
+
end
|
315
|
+
end
|
316
|
+
# verify the required parameter 'id' is set
|
317
|
+
if @api_client.config.client_side_validation && id.nil?
|
318
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PlansApi.get_plan"
|
319
|
+
end
|
320
|
+
# resource path
|
321
|
+
local_var_path = 'rbs/v1/plans/{id}'.sub('{' + 'id' + '}', id.to_s)
|
322
|
+
|
323
|
+
# query parameters
|
324
|
+
query_params = {}
|
325
|
+
|
326
|
+
# header parameters
|
327
|
+
header_params = {}
|
328
|
+
# HTTP header 'Accept' (if needed)
|
329
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
330
|
+
# HTTP header 'Content-Type'
|
331
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
332
|
+
|
333
|
+
# form parameters
|
334
|
+
form_params = {}
|
335
|
+
|
336
|
+
# http body (model)
|
337
|
+
if 'GET' == 'POST'
|
338
|
+
post_body = '{}'
|
339
|
+
else
|
340
|
+
post_body = nil
|
341
|
+
end
|
342
|
+
auth_names = []
|
343
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
344
|
+
:header_params => header_params,
|
345
|
+
:query_params => query_params,
|
346
|
+
:form_params => form_params,
|
347
|
+
:body => post_body,
|
348
|
+
:auth_names => auth_names,
|
349
|
+
:return_type => 'InlineResponse2001')
|
350
|
+
if @api_client.config.debugging
|
351
|
+
begin
|
352
|
+
raise
|
353
|
+
@api_client.config.logger.debug "API called: PlansApi#get_plan\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
354
|
+
rescue
|
355
|
+
puts 'Cannot write to log'
|
356
|
+
end
|
357
|
+
end
|
358
|
+
return data, status_code, headers
|
359
|
+
end
|
360
|
+
# Get a Plan Code
|
361
|
+
# Get a Unique Plan Code
|
362
|
+
# @param [Hash] opts the optional parameters
|
363
|
+
# @return [InlineResponse2005]
|
364
|
+
def get_plan_code(opts = {})
|
365
|
+
data, status_code, headers = get_plan_code_with_http_info(opts)
|
366
|
+
return data, status_code, headers
|
367
|
+
end
|
368
|
+
|
369
|
+
# Get a Plan Code
|
370
|
+
# Get a Unique Plan Code
|
371
|
+
# @param [Hash] opts the optional parameters
|
372
|
+
# @return [Array<(InlineResponse2005, Fixnum, Hash)>] InlineResponse2005 data, response status code and response headers
|
373
|
+
def get_plan_code_with_http_info(opts = {})
|
374
|
+
|
375
|
+
if @api_client.config.debugging
|
376
|
+
begin
|
377
|
+
raise
|
378
|
+
@api_client.config.logger.debug 'Calling API: PlansApi.get_plan_code ...'
|
379
|
+
rescue
|
380
|
+
puts 'Cannot write to log'
|
381
|
+
end
|
382
|
+
end
|
383
|
+
# resource path
|
384
|
+
local_var_path = 'rbs/v1/plans/code'
|
385
|
+
|
386
|
+
# query parameters
|
387
|
+
query_params = {}
|
388
|
+
|
389
|
+
# header parameters
|
390
|
+
header_params = {}
|
391
|
+
# HTTP header 'Accept' (if needed)
|
392
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
393
|
+
# HTTP header 'Content-Type'
|
394
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
395
|
+
|
396
|
+
# form parameters
|
397
|
+
form_params = {}
|
398
|
+
|
399
|
+
# http body (model)
|
400
|
+
if 'GET' == 'POST'
|
401
|
+
post_body = '{}'
|
402
|
+
else
|
403
|
+
post_body = nil
|
404
|
+
end
|
405
|
+
auth_names = []
|
406
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
407
|
+
:header_params => header_params,
|
408
|
+
:query_params => query_params,
|
409
|
+
:form_params => form_params,
|
410
|
+
:body => post_body,
|
411
|
+
:auth_names => auth_names,
|
412
|
+
:return_type => 'InlineResponse2005')
|
413
|
+
if @api_client.config.debugging
|
414
|
+
begin
|
415
|
+
raise
|
416
|
+
@api_client.config.logger.debug "API called: PlansApi#get_plan_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
417
|
+
rescue
|
418
|
+
puts 'Cannot write to log'
|
419
|
+
end
|
420
|
+
end
|
421
|
+
return data, status_code, headers
|
422
|
+
end
|
423
|
+
# Get a List of Plans
|
424
|
+
# Retrieve Plans by Plan Code & Plan Status.
|
425
|
+
# @param [Hash] opts the optional parameters
|
426
|
+
# @option opts [Integer] :offset Page offset number.
|
427
|
+
# @option opts [Integer] :limit Number of items to be returned. Default - `20`, Max - `100`
|
428
|
+
# @option opts [String] :code Filter by Plan Code
|
429
|
+
# @option opts [String] :status Filter by Plan Status
|
430
|
+
# @option opts [String] :name Filter by Plan Name. (First sub string or full string) **[Not Recommended]**
|
431
|
+
# @return [InlineResponse200]
|
432
|
+
def get_plans(opts = {})
|
433
|
+
data, status_code, headers = get_plans_with_http_info(opts)
|
434
|
+
return data, status_code, headers
|
435
|
+
end
|
436
|
+
|
437
|
+
# Get a List of Plans
|
438
|
+
# Retrieve Plans by Plan Code & Plan Status.
|
439
|
+
# @param [Hash] opts the optional parameters
|
440
|
+
# @option opts [Integer] :offset Page offset number.
|
441
|
+
# @option opts [Integer] :limit Number of items to be returned. Default - `20`, Max - `100`
|
442
|
+
# @option opts [String] :code Filter by Plan Code
|
443
|
+
# @option opts [String] :status Filter by Plan Status
|
444
|
+
# @option opts [String] :name Filter by Plan Name. (First sub string or full string) **[Not Recommended]**
|
445
|
+
# @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
|
446
|
+
def get_plans_with_http_info(opts = {})
|
447
|
+
|
448
|
+
if @api_client.config.debugging
|
449
|
+
begin
|
450
|
+
raise
|
451
|
+
@api_client.config.logger.debug 'Calling API: PlansApi.get_plans ...'
|
452
|
+
rescue
|
453
|
+
puts 'Cannot write to log'
|
454
|
+
end
|
455
|
+
end
|
456
|
+
# resource path
|
457
|
+
local_var_path = 'rbs/v1/plans'
|
458
|
+
|
459
|
+
# query parameters
|
460
|
+
query_params = {}
|
461
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
462
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
463
|
+
query_params[:'code'] = opts[:'code'] if !opts[:'code'].nil?
|
464
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
465
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
466
|
+
|
467
|
+
# header parameters
|
468
|
+
header_params = {}
|
469
|
+
# HTTP header 'Accept' (if needed)
|
470
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
471
|
+
# HTTP header 'Content-Type'
|
472
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
473
|
+
|
474
|
+
# form parameters
|
475
|
+
form_params = {}
|
476
|
+
|
477
|
+
# http body (model)
|
478
|
+
if 'GET' == 'POST'
|
479
|
+
post_body = '{}'
|
480
|
+
else
|
481
|
+
post_body = nil
|
482
|
+
end
|
483
|
+
auth_names = []
|
484
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
485
|
+
:header_params => header_params,
|
486
|
+
:query_params => query_params,
|
487
|
+
:form_params => form_params,
|
488
|
+
:body => post_body,
|
489
|
+
:auth_names => auth_names,
|
490
|
+
:return_type => 'InlineResponse200')
|
491
|
+
if @api_client.config.debugging
|
492
|
+
begin
|
493
|
+
raise
|
494
|
+
@api_client.config.logger.debug "API called: PlansApi#get_plans\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
495
|
+
rescue
|
496
|
+
puts 'Cannot write to log'
|
497
|
+
end
|
498
|
+
end
|
499
|
+
return data, status_code, headers
|
500
|
+
end
|
501
|
+
# Update a Plan
|
502
|
+
# Update a Plan Plan in `DRAFT` status - All updates are allowed on Plan with `DRAFT` status Plan in `ACTIVE` status [Following fields are **Not Updatable**] - `planInformation.billingPeriod` - `planInformation.billingCycles` [Update is only allowed to **increase** billingCycles] - `orderInformation.amountDetails.currency`
|
503
|
+
# @param id Plan Id
|
504
|
+
# @param update_plan_request
|
505
|
+
# @param [Hash] opts the optional parameters
|
506
|
+
# @return [InlineResponse2003]
|
507
|
+
def update_plan(id, update_plan_request, opts = {})
|
508
|
+
data, status_code, headers = update_plan_with_http_info(id, update_plan_request, opts)
|
509
|
+
return data, status_code, headers
|
510
|
+
end
|
511
|
+
|
512
|
+
# Update a Plan
|
513
|
+
# Update a Plan Plan in `DRAFT` status - All updates are allowed on Plan with `DRAFT` status Plan in `ACTIVE` status [Following fields are **Not Updatable**] - `planInformation.billingPeriod` - `planInformation.billingCycles` [Update is only allowed to **increase** billingCycles] - `orderInformation.amountDetails.currency`
|
514
|
+
# @param id Plan Id
|
515
|
+
# @param update_plan_request
|
516
|
+
# @param [Hash] opts the optional parameters
|
517
|
+
# @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers
|
518
|
+
def update_plan_with_http_info(id, update_plan_request, opts = {})
|
519
|
+
|
520
|
+
if @api_client.config.debugging
|
521
|
+
begin
|
522
|
+
raise
|
523
|
+
@api_client.config.logger.debug 'Calling API: PlansApi.update_plan ...'
|
524
|
+
rescue
|
525
|
+
puts 'Cannot write to log'
|
526
|
+
end
|
527
|
+
end
|
528
|
+
# verify the required parameter 'id' is set
|
529
|
+
if @api_client.config.client_side_validation && id.nil?
|
530
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PlansApi.update_plan"
|
531
|
+
end
|
532
|
+
# verify the required parameter 'update_plan_request' is set
|
533
|
+
if @api_client.config.client_side_validation && update_plan_request.nil?
|
534
|
+
fail ArgumentError, "Missing the required parameter 'update_plan_request' when calling PlansApi.update_plan"
|
535
|
+
end
|
536
|
+
# resource path
|
537
|
+
local_var_path = 'rbs/v1/plans/{id}'.sub('{' + 'id' + '}', id.to_s)
|
538
|
+
|
539
|
+
# query parameters
|
540
|
+
query_params = {}
|
541
|
+
|
542
|
+
# header parameters
|
543
|
+
header_params = {}
|
544
|
+
# HTTP header 'Accept' (if needed)
|
545
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
|
546
|
+
# HTTP header 'Content-Type'
|
547
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
548
|
+
|
549
|
+
# form parameters
|
550
|
+
form_params = {}
|
551
|
+
|
552
|
+
# http body (model)
|
553
|
+
post_body = @api_client.object_to_http_body(update_plan_request)
|
554
|
+
auth_names = []
|
555
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
556
|
+
:header_params => header_params,
|
557
|
+
:query_params => query_params,
|
558
|
+
:form_params => form_params,
|
559
|
+
:body => post_body,
|
560
|
+
:auth_names => auth_names,
|
561
|
+
:return_type => 'InlineResponse2003')
|
562
|
+
if @api_client.config.debugging
|
563
|
+
begin
|
564
|
+
raise
|
565
|
+
@api_client.config.logger.debug "API called: PlansApi#update_plan\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
566
|
+
rescue
|
567
|
+
puts 'Cannot write to log'
|
568
|
+
end
|
569
|
+
end
|
570
|
+
return data, status_code, headers
|
571
|
+
end
|
572
|
+
end
|
573
|
+
end
|