cybersource_rest_client 0.0.49 → 0.0.50
Sign up to get free protection for your applications and to get access to all the features.
- 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/plans_api.rb +573 -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/accountupdaterv1batches_included.rb +185 -0
- 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/generate_capture_context_request.rb +216 -0
- 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/{flex_v1_keys_post200_response_jwk.rb → inline_response_200_6_plan_information.rb} +40 -41
- 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/{generate_public_key_request.rb → inline_response_200_9.rb} +50 -21
- 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_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_order_information_ship_to.rb +1 -1
- 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_post400_response.rb +1 -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/ptsv2payments_installment_information.rb +0 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +0 -18
- 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.rb +1 -21
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +12 -47
- 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_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_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_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_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +0 -18
- 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/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/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_point_of_sale_information.rb +0 -18
- 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 +112 -13
- metadata +114 -15
- data/lib/cybersource_rest_client/api/key_generation_api.rb +0 -96
- data/lib/cybersource_rest_client/api/tokenization_api.rb +0 -89
data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb
CHANGED
@@ -66,60 +66,24 @@ module CyberSource
|
|
66
66
|
# @return Array for valid properties with the reasons
|
67
67
|
def list_invalid_properties
|
68
68
|
invalid_properties = Array.new
|
69
|
-
if !@capture_sequence_number.nil? && @capture_sequence_number > 99
|
70
|
-
invalid_properties.push('invalid value for "capture_sequence_number", must be smaller than or equal to 99.')
|
71
|
-
end
|
72
|
-
|
73
|
-
if !@capture_sequence_number.nil? && @capture_sequence_number < 1
|
74
|
-
invalid_properties.push('invalid value for "capture_sequence_number", must be greater than or equal to 1.')
|
75
|
-
end
|
76
|
-
|
77
|
-
if !@total_capture_count.nil? && @total_capture_count > 99
|
78
|
-
invalid_properties.push('invalid value for "total_capture_count", must be smaller than or equal to 99.')
|
79
|
-
end
|
80
|
-
|
81
|
-
if !@total_capture_count.nil? && @total_capture_count < 1
|
82
|
-
invalid_properties.push('invalid value for "total_capture_count", must be greater than or equal to 1.')
|
83
|
-
end
|
84
|
-
|
85
69
|
invalid_properties
|
86
70
|
end
|
87
71
|
|
88
72
|
# Check to see if the all the properties in the model are valid
|
89
73
|
# @return true if the model is valid
|
90
74
|
def valid?
|
91
|
-
return false if !@capture_sequence_number.nil? && @capture_sequence_number > 99
|
92
|
-
return false if !@capture_sequence_number.nil? && @capture_sequence_number < 1
|
93
|
-
return false if !@total_capture_count.nil? && @total_capture_count > 99
|
94
|
-
return false if !@total_capture_count.nil? && @total_capture_count < 1
|
95
75
|
true
|
96
76
|
end
|
97
77
|
|
98
78
|
# Custom attribute writer method with validation
|
99
79
|
# @param [Object] capture_sequence_number Value to be assigned
|
100
80
|
def capture_sequence_number=(capture_sequence_number)
|
101
|
-
if !capture_sequence_number.nil? && capture_sequence_number > 99
|
102
|
-
fail ArgumentError, 'invalid value for "capture_sequence_number", must be smaller than or equal to 99.'
|
103
|
-
end
|
104
|
-
|
105
|
-
if !capture_sequence_number.nil? && capture_sequence_number < 1
|
106
|
-
fail ArgumentError, 'invalid value for "capture_sequence_number", must be greater than or equal to 1.'
|
107
|
-
end
|
108
|
-
|
109
81
|
@capture_sequence_number = capture_sequence_number
|
110
82
|
end
|
111
83
|
|
112
84
|
# Custom attribute writer method with validation
|
113
85
|
# @param [Object] total_capture_count Value to be assigned
|
114
86
|
def total_capture_count=(total_capture_count)
|
115
|
-
if !total_capture_count.nil? && total_capture_count > 99
|
116
|
-
fail ArgumentError, 'invalid value for "total_capture_count", must be smaller than or equal to 99.'
|
117
|
-
end
|
118
|
-
|
119
|
-
if !total_capture_count.nil? && total_capture_count < 1
|
120
|
-
fail ArgumentError, 'invalid value for "total_capture_count", must be greater than or equal to 1.'
|
121
|
-
end
|
122
|
-
|
123
87
|
@total_capture_count = total_capture_count
|
124
88
|
end
|
125
89
|
|
@@ -419,32 +419,12 @@ module CyberSource
|
|
419
419
|
# @return Array for valid properties with the reasons
|
420
420
|
def list_invalid_properties
|
421
421
|
invalid_properties = Array.new
|
422
|
-
if !@number_of_rooms.nil? && @number_of_rooms > 99
|
423
|
-
invalid_properties.push('invalid value for "number_of_rooms", must be smaller than or equal to 99.')
|
424
|
-
end
|
425
|
-
|
426
|
-
if !@number_of_rooms.nil? && @number_of_rooms < 1
|
427
|
-
invalid_properties.push('invalid value for "number_of_rooms", must be greater than or equal to 1.')
|
428
|
-
end
|
429
|
-
|
430
|
-
if !@number_of_guests.nil? && @number_of_guests > 99
|
431
|
-
invalid_properties.push('invalid value for "number_of_guests", must be smaller than or equal to 99.')
|
432
|
-
end
|
433
|
-
|
434
|
-
if !@number_of_guests.nil? && @number_of_guests < 1
|
435
|
-
invalid_properties.push('invalid value for "number_of_guests", must be greater than or equal to 1.')
|
436
|
-
end
|
437
|
-
|
438
422
|
invalid_properties
|
439
423
|
end
|
440
424
|
|
441
425
|
# Check to see if the all the properties in the model are valid
|
442
426
|
# @return true if the model is valid
|
443
427
|
def valid?
|
444
|
-
return false if !@number_of_rooms.nil? && @number_of_rooms > 99
|
445
|
-
return false if !@number_of_rooms.nil? && @number_of_rooms < 1
|
446
|
-
return false if !@number_of_guests.nil? && @number_of_guests > 99
|
447
|
-
return false if !@number_of_guests.nil? && @number_of_guests < 1
|
448
428
|
true
|
449
429
|
end
|
450
430
|
|
@@ -469,28 +449,12 @@ module CyberSource
|
|
469
449
|
# Custom attribute writer method with validation
|
470
450
|
# @param [Object] number_of_rooms Value to be assigned
|
471
451
|
def number_of_rooms=(number_of_rooms)
|
472
|
-
if !number_of_rooms.nil? && number_of_rooms > 99
|
473
|
-
fail ArgumentError, 'invalid value for "number_of_rooms", must be smaller than or equal to 99.'
|
474
|
-
end
|
475
|
-
|
476
|
-
if !number_of_rooms.nil? && number_of_rooms < 1
|
477
|
-
fail ArgumentError, 'invalid value for "number_of_rooms", must be greater than or equal to 1.'
|
478
|
-
end
|
479
|
-
|
480
452
|
@number_of_rooms = number_of_rooms
|
481
453
|
end
|
482
454
|
|
483
455
|
# Custom attribute writer method with validation
|
484
456
|
# @param [Object] number_of_guests Value to be assigned
|
485
457
|
def number_of_guests=(number_of_guests)
|
486
|
-
if !number_of_guests.nil? && number_of_guests > 99
|
487
|
-
fail ArgumentError, 'invalid value for "number_of_guests", must be smaller than or equal to 99.'
|
488
|
-
end
|
489
|
-
|
490
|
-
if !number_of_guests.nil? && number_of_guests < 1
|
491
|
-
fail ArgumentError, 'invalid value for "number_of_guests", must be greater than or equal to 1.'
|
492
|
-
end
|
493
|
-
|
494
458
|
@number_of_guests = number_of_guests
|
495
459
|
end
|
496
460
|
|
@@ -57,22 +57,12 @@ module CyberSource
|
|
57
57
|
# @return Array for valid properties with the reasons
|
58
58
|
def list_invalid_properties
|
59
59
|
invalid_properties = Array.new
|
60
|
-
if !@number_of_nights.nil? && @number_of_nights > 9999
|
61
|
-
invalid_properties.push('invalid value for "number_of_nights", must be smaller than or equal to 9999.')
|
62
|
-
end
|
63
|
-
|
64
|
-
if !@number_of_nights.nil? && @number_of_nights < 1
|
65
|
-
invalid_properties.push('invalid value for "number_of_nights", must be greater than or equal to 1.')
|
66
|
-
end
|
67
|
-
|
68
60
|
invalid_properties
|
69
61
|
end
|
70
62
|
|
71
63
|
# Check to see if the all the properties in the model are valid
|
72
64
|
# @return true if the model is valid
|
73
65
|
def valid?
|
74
|
-
return false if !@number_of_nights.nil? && @number_of_nights > 9999
|
75
|
-
return false if !@number_of_nights.nil? && @number_of_nights < 1
|
76
66
|
true
|
77
67
|
end
|
78
68
|
|
@@ -85,14 +75,6 @@ module CyberSource
|
|
85
75
|
# Custom attribute writer method with validation
|
86
76
|
# @param [Object] number_of_nights Value to be assigned
|
87
77
|
def number_of_nights=(number_of_nights)
|
88
|
-
if !number_of_nights.nil? && number_of_nights > 9999
|
89
|
-
fail ArgumentError, 'invalid value for "number_of_nights", must be smaller than or equal to 9999.'
|
90
|
-
end
|
91
|
-
|
92
|
-
if !number_of_nights.nil? && number_of_nights < 1
|
93
|
-
fail ArgumentError, 'invalid value for "number_of_nights", must be greater than or equal to 1.'
|
94
|
-
end
|
95
|
-
|
96
78
|
@number_of_nights = number_of_nights
|
97
79
|
end
|
98
80
|
|
@@ -264,22 +264,12 @@ module CyberSource
|
|
264
264
|
# @return Array for valid properties with the reasons
|
265
265
|
def list_invalid_properties
|
266
266
|
invalid_properties = Array.new
|
267
|
-
if !@sequence.nil? && @sequence > 99
|
268
|
-
invalid_properties.push('invalid value for "sequence", must be smaller than or equal to 99.')
|
269
|
-
end
|
270
|
-
|
271
|
-
if !@total_count.nil? && @total_count > 99
|
272
|
-
invalid_properties.push('invalid value for "total_count", must be smaller than or equal to 99.')
|
273
|
-
end
|
274
|
-
|
275
267
|
invalid_properties
|
276
268
|
end
|
277
269
|
|
278
270
|
# Check to see if the all the properties in the model are valid
|
279
271
|
# @return true if the model is valid
|
280
272
|
def valid?
|
281
|
-
return false if !@sequence.nil? && @sequence > 99
|
282
|
-
return false if !@total_count.nil? && @total_count > 99
|
283
273
|
true
|
284
274
|
end
|
285
275
|
|
@@ -304,10 +294,6 @@ module CyberSource
|
|
304
294
|
# Custom attribute writer method with validation
|
305
295
|
# @param [Object] sequence Value to be assigned
|
306
296
|
def sequence=(sequence)
|
307
|
-
if !sequence.nil? && sequence > 99
|
308
|
-
fail ArgumentError, 'invalid value for "sequence", must be smaller than or equal to 99.'
|
309
|
-
end
|
310
|
-
|
311
297
|
@sequence = sequence
|
312
298
|
end
|
313
299
|
|
@@ -320,10 +306,6 @@ module CyberSource
|
|
320
306
|
# Custom attribute writer method with validation
|
321
307
|
# @param [Object] total_count Value to be assigned
|
322
308
|
def total_count=(total_count)
|
323
|
-
if !total_count.nil? && total_count > 99
|
324
|
-
fail ArgumentError, 'invalid value for "total_count", must be smaller than or equal to 99.'
|
325
|
-
end
|
326
|
-
|
327
309
|
@total_count = total_count
|
328
310
|
end
|
329
311
|
|
@@ -91,17 +91,12 @@ module CyberSource
|
|
91
91
|
# @return Array for valid properties with the reasons
|
92
92
|
def list_invalid_properties
|
93
93
|
invalid_properties = Array.new
|
94
|
-
if !@category_code.nil? && @category_code > 9999
|
95
|
-
invalid_properties.push('invalid value for "category_code", must be smaller than or equal to 9999.')
|
96
|
-
end
|
97
|
-
|
98
94
|
invalid_properties
|
99
95
|
end
|
100
96
|
|
101
97
|
# Check to see if the all the properties in the model are valid
|
102
98
|
# @return true if the model is valid
|
103
99
|
def valid?
|
104
|
-
return false if !@category_code.nil? && @category_code > 9999
|
105
100
|
true
|
106
101
|
end
|
107
102
|
|
@@ -114,10 +109,6 @@ module CyberSource
|
|
114
109
|
# Custom attribute writer method with validation
|
115
110
|
# @param [Object] category_code Value to be assigned
|
116
111
|
def category_code=(category_code)
|
117
|
-
if !category_code.nil? && category_code > 9999
|
118
|
-
fail ArgumentError, 'invalid value for "category_code", must be smaller than or equal to 9999.'
|
119
|
-
end
|
120
|
-
|
121
112
|
@category_code = category_code
|
122
113
|
end
|
123
114
|
|
data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb
CHANGED
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Ptsv2paymentsidcapturesOrderInformationShipTo
|
17
|
-
# State or province of the shipping address. Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf)
|
17
|
+
# State or province of the shipping address. Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf) (maximum length: 2) Required field for authorization if any shipping address information is included in the request and shipping to the U.S. or Canada; otherwise, optional. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder’s location when shipTo objects are not present.
|
18
18
|
attr_accessor :administrative_area
|
19
19
|
|
20
20
|
# Country of the shipping address. Use the two-character [ISO Standard Country Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf) Required field for authorization if any shipping address information is included in the request; otherwise, optional. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. Billing address objects will be used to determine the cardholder’s location when shipTo objects are not present.
|
@@ -57,60 +57,24 @@ module CyberSource
|
|
57
57
|
# @return Array for valid properties with the reasons
|
58
58
|
def list_invalid_properties
|
59
59
|
invalid_properties = Array.new
|
60
|
-
if !@capture_sequence_number.nil? && @capture_sequence_number > 99
|
61
|
-
invalid_properties.push('invalid value for "capture_sequence_number", must be smaller than or equal to 99.')
|
62
|
-
end
|
63
|
-
|
64
|
-
if !@capture_sequence_number.nil? && @capture_sequence_number < 1
|
65
|
-
invalid_properties.push('invalid value for "capture_sequence_number", must be greater than or equal to 1.')
|
66
|
-
end
|
67
|
-
|
68
|
-
if !@total_capture_count.nil? && @total_capture_count > 99
|
69
|
-
invalid_properties.push('invalid value for "total_capture_count", must be smaller than or equal to 99.')
|
70
|
-
end
|
71
|
-
|
72
|
-
if !@total_capture_count.nil? && @total_capture_count < 1
|
73
|
-
invalid_properties.push('invalid value for "total_capture_count", must be greater than or equal to 1.')
|
74
|
-
end
|
75
|
-
|
76
60
|
invalid_properties
|
77
61
|
end
|
78
62
|
|
79
63
|
# Check to see if the all the properties in the model are valid
|
80
64
|
# @return true if the model is valid
|
81
65
|
def valid?
|
82
|
-
return false if !@capture_sequence_number.nil? && @capture_sequence_number > 99
|
83
|
-
return false if !@capture_sequence_number.nil? && @capture_sequence_number < 1
|
84
|
-
return false if !@total_capture_count.nil? && @total_capture_count > 99
|
85
|
-
return false if !@total_capture_count.nil? && @total_capture_count < 1
|
86
66
|
true
|
87
67
|
end
|
88
68
|
|
89
69
|
# Custom attribute writer method with validation
|
90
70
|
# @param [Object] capture_sequence_number Value to be assigned
|
91
71
|
def capture_sequence_number=(capture_sequence_number)
|
92
|
-
if !capture_sequence_number.nil? && capture_sequence_number > 99
|
93
|
-
fail ArgumentError, 'invalid value for "capture_sequence_number", must be smaller than or equal to 99.'
|
94
|
-
end
|
95
|
-
|
96
|
-
if !capture_sequence_number.nil? && capture_sequence_number < 1
|
97
|
-
fail ArgumentError, 'invalid value for "capture_sequence_number", must be greater than or equal to 1.'
|
98
|
-
end
|
99
|
-
|
100
72
|
@capture_sequence_number = capture_sequence_number
|
101
73
|
end
|
102
74
|
|
103
75
|
# Custom attribute writer method with validation
|
104
76
|
# @param [Object] total_capture_count Value to be assigned
|
105
77
|
def total_capture_count=(total_capture_count)
|
106
|
-
if !total_capture_count.nil? && total_capture_count > 99
|
107
|
-
fail ArgumentError, 'invalid value for "total_capture_count", must be smaller than or equal to 99.'
|
108
|
-
end
|
109
|
-
|
110
|
-
if !total_capture_count.nil? && total_capture_count < 1
|
111
|
-
fail ArgumentError, 'invalid value for "total_capture_count", must be greater than or equal to 1.'
|
112
|
-
end
|
113
|
-
|
114
78
|
@total_capture_count = total_capture_count
|
115
79
|
end
|
116
80
|
|
@@ -83,27 +83,18 @@ module CyberSource
|
|
83
83
|
# @return Array for valid properties with the reasons
|
84
84
|
def list_invalid_properties
|
85
85
|
invalid_properties = Array.new
|
86
|
-
if !@category_code.nil? && @category_code > 9999
|
87
|
-
invalid_properties.push('invalid value for "category_code", must be smaller than or equal to 9999.')
|
88
|
-
end
|
89
|
-
|
90
86
|
invalid_properties
|
91
87
|
end
|
92
88
|
|
93
89
|
# Check to see if the all the properties in the model are valid
|
94
90
|
# @return true if the model is valid
|
95
91
|
def valid?
|
96
|
-
return false if !@category_code.nil? && @category_code > 9999
|
97
92
|
true
|
98
93
|
end
|
99
94
|
|
100
95
|
# Custom attribute writer method with validation
|
101
96
|
# @param [Object] category_code Value to be assigned
|
102
97
|
def category_code=(category_code)
|
103
|
-
if !category_code.nil? && category_code > 9999
|
104
|
-
fail ArgumentError, 'invalid value for "category_code", must be smaller than or equal to 9999.'
|
105
|
-
end
|
106
|
-
|
107
98
|
@category_code = category_code
|
108
99
|
end
|
109
100
|
|
data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb
CHANGED
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Ptsv2paymentsidrefundsOrderInformationLineItems
|
17
|
-
# Type of product. The value for this field is used to identify the product category (electronic, handling, physical, service, or shipping). The default value is `default`. If you are performing an authorization transaction (`processingOptions.capture` is set to `false`), and you set this field to a value other than `default` or one of the values related to shipping and/or handling, then `orderInformation.lineItems[].quantity`, `orderInformation.lineItems[].productName`, and `orderInformation.lineItems[].productSku` fields are required. Optional field. For details, see the `product_code` field description in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/). #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes.
|
17
|
+
# Type of product. The value for this field is used to identify the product category (electronic, handling, physical, service, or shipping). The default value is `default`. If you are performing an authorization transaction (`processingOptions.capture` is set to `false`), and you set this field to a value other than `default` or one of the values related to shipping and/or handling, then `orderInformation.lineItems[].quantity`, `orderInformation.lineItems[].productName`, and `orderInformation.lineItems[].productSku` fields are required. Optional field. For details, see the `product_code` field description in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/). #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. The Product Codes for the tax service are located in the Cybersource Tax Codes guide. Contact Customer Support to request the guide. If you don’t send a tax service Product Code in your tax request, product-based rules or exemptions will not be applied and the transaction will default to fully taxable in the locations where you’ve indicated you need to collect tax [by way of nexus, no nexus, or seller registration number fields].
|
18
18
|
attr_accessor :product_code
|
19
19
|
|
20
20
|
# For an authorization or capture transaction (`processingOptions.capture` is `true` or `false`), this field is required when `orderInformation.lineItems[].productCode` is not `default` or one of the other values that are related to shipping and/or handling. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes.
|
@@ -220,22 +220,12 @@ module CyberSource
|
|
220
220
|
# @return Array for valid properties with the reasons
|
221
221
|
def list_invalid_properties
|
222
222
|
invalid_properties = Array.new
|
223
|
-
if !@quantity.nil? && @quantity > 999999999
|
224
|
-
invalid_properties.push('invalid value for "quantity", must be smaller than or equal to 999999999.')
|
225
|
-
end
|
226
|
-
|
227
|
-
if !@quantity.nil? && @quantity < 1
|
228
|
-
invalid_properties.push('invalid value for "quantity", must be greater than or equal to 1.')
|
229
|
-
end
|
230
|
-
|
231
223
|
invalid_properties
|
232
224
|
end
|
233
225
|
|
234
226
|
# Check to see if the all the properties in the model are valid
|
235
227
|
# @return true if the model is valid
|
236
228
|
def valid?
|
237
|
-
return false if !@quantity.nil? && @quantity > 999999999
|
238
|
-
return false if !@quantity.nil? && @quantity < 1
|
239
229
|
true
|
240
230
|
end
|
241
231
|
|
@@ -260,14 +250,6 @@ module CyberSource
|
|
260
250
|
# Custom attribute writer method with validation
|
261
251
|
# @param [Object] quantity Value to be assigned
|
262
252
|
def quantity=(quantity)
|
263
|
-
if !quantity.nil? && quantity > 999999999
|
264
|
-
fail ArgumentError, 'invalid value for "quantity", must be smaller than or equal to 999999999.'
|
265
|
-
end
|
266
|
-
|
267
|
-
if !quantity.nil? && quantity < 1
|
268
|
-
fail ArgumentError, 'invalid value for "quantity", must be greater than or equal to 1.'
|
269
|
-
end
|
270
|
-
|
271
253
|
@quantity = quantity
|
272
254
|
end
|
273
255
|
|
@@ -23,7 +23,7 @@ module CyberSource
|
|
23
23
|
# Four-digit year in which the payment card expires. Format: `YYYY`. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (`1900` through `3000`) but is not required to be a valid expiration date. In other words, an expiration date that is in the past does not cause CyberSource to reject your request. However, an invalid expiration date might cause the issuer to reject your request. #### Encoded Account Numbers For encoded account numbers (**_type_**`=039`), if there is no expiration date on the card, use `2021`. #### FDMS Nashville Required field. #### FDC Nashville Global and FDMS South You can send in 2 digits or 4 digits. If you send in 2 digits, they must be the last 2 digits of the year. #### All other processors Required if `pointOfSaleInformation.entryMode=keyed`. However, this field is optional if your account is configured for relaxed requirements for address data and expiration date. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response.
|
24
24
|
attr_accessor :expiration_year
|
25
25
|
|
26
|
-
# Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
|
26
|
+
# Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay - '070': EFTPOS [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
|
27
27
|
attr_accessor :type
|
28
28
|
|
29
29
|
# Identifier for the issuing bank that provided the customer’s encoded account number. Contact your processor for the bank’s ID.
|
data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb
CHANGED
@@ -57,36 +57,18 @@ module CyberSource
|
|
57
57
|
# @return Array for valid properties with the reasons
|
58
58
|
def list_invalid_properties
|
59
59
|
invalid_properties = Array.new
|
60
|
-
if !@quantity.nil? && @quantity > 999999999
|
61
|
-
invalid_properties.push('invalid value for "quantity", must be smaller than or equal to 999999999.')
|
62
|
-
end
|
63
|
-
|
64
|
-
if !@quantity.nil? && @quantity < 1
|
65
|
-
invalid_properties.push('invalid value for "quantity", must be greater than or equal to 1.')
|
66
|
-
end
|
67
|
-
|
68
60
|
invalid_properties
|
69
61
|
end
|
70
62
|
|
71
63
|
# Check to see if the all the properties in the model are valid
|
72
64
|
# @return true if the model is valid
|
73
65
|
def valid?
|
74
|
-
return false if !@quantity.nil? && @quantity > 999999999
|
75
|
-
return false if !@quantity.nil? && @quantity < 1
|
76
66
|
true
|
77
67
|
end
|
78
68
|
|
79
69
|
# Custom attribute writer method with validation
|
80
70
|
# @param [Object] quantity Value to be assigned
|
81
71
|
def quantity=(quantity)
|
82
|
-
if !quantity.nil? && quantity > 999999999
|
83
|
-
fail ArgumentError, 'invalid value for "quantity", must be smaller than or equal to 999999999.'
|
84
|
-
end
|
85
|
-
|
86
|
-
if !quantity.nil? && quantity < 1
|
87
|
-
fail ArgumentError, 'invalid value for "quantity", must be greater than or equal to 1.'
|
88
|
-
end
|
89
|
-
|
90
72
|
@quantity = quantity
|
91
73
|
end
|
92
74
|
|
@@ -74,27 +74,18 @@ module CyberSource
|
|
74
74
|
# @return Array for valid properties with the reasons
|
75
75
|
def list_invalid_properties
|
76
76
|
invalid_properties = Array.new
|
77
|
-
if !@category_code.nil? && @category_code > 9999
|
78
|
-
invalid_properties.push('invalid value for "category_code", must be smaller than or equal to 9999.')
|
79
|
-
end
|
80
|
-
|
81
77
|
invalid_properties
|
82
78
|
end
|
83
79
|
|
84
80
|
# Check to see if the all the properties in the model are valid
|
85
81
|
# @return true if the model is valid
|
86
82
|
def valid?
|
87
|
-
return false if !@category_code.nil? && @category_code > 9999
|
88
83
|
true
|
89
84
|
end
|
90
85
|
|
91
86
|
# Custom attribute writer method with validation
|
92
87
|
# @param [Object] category_code Value to be assigned
|
93
88
|
def category_code=(category_code)
|
94
|
-
if !category_code.nil? && category_code > 9999
|
95
|
-
fail ArgumentError, 'invalid value for "category_code", must be smaller than or equal to 9999.'
|
96
|
-
end
|
97
|
-
|
98
89
|
@category_code = category_code
|
99
90
|
end
|
100
91
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Ptsv2payoutsPaymentInformationCard
|
17
|
-
# Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
|
17
|
+
# Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay - '070': EFTPOS [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
|
18
18
|
attr_accessor :type
|
19
19
|
|
20
20
|
# The customer’s payment card number, also known as the Primary Account Number (PAN). You can also use this field for encoded account numbers. #### FDMS Nashville Required. String (19) #### GPX Required if `pointOfSaleInformation.entryMode=keyed`. However, this field is optional if your account is configured for relaxed requirements for address data and expiration date. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### All other processors Required if `pointOfSaleInformation.entryMode=keyed`. However, this field is optional if your account is configured for relaxed requirements for address data and expiration date. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting.
|