cybersource_rest_client 0.0.85 → 0.0.86
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/util/Cache.rb +9 -6
- data/lib/AuthenticationSDK/util/Utility.rb +16 -5
- data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +1868 -122
- data/lib/cybersource_rest_client/api/bin_lookup_api.rb +3 -3
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
- data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +1 -1
- data/lib/cybersource_rest_client/api/foreign_exchange_rates_api.rb +146 -0
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +9 -9
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +94 -4
- data/lib/cybersource_rest_client/api/merchant_capabilities_api.rb +1065 -0
- data/lib/cybersource_rest_client/api/merchant_defined_fields_api.rb +361 -0
- data/lib/cybersource_rest_client/api/network_tokens_api.rb +4 -4
- data/lib/cybersource_rest_client/api/offers_api.rb +3 -3
- data/lib/cybersource_rest_client/api/orders_api.rb +2 -2
- data/lib/cybersource_rest_client/api/payment_tokens_api.rb +1 -1
- data/lib/cybersource_rest_client/api/plans_api.rb +1 -1
- data/lib/cybersource_rest_client/api/pull_funds_api.rb +3 -3
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +2 -2
- data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +2 -2
- data/lib/cybersource_rest_client/api/transaction_query_api.rb +158 -0
- data/lib/cybersource_rest_client/api/transaction_risk_labeling_api.rb +104 -0
- data/lib/cybersource_rest_client/models/acp_checkout_session_response_buyer.rb +254 -0
- data/lib/cybersource_rest_client/models/acp_complete_checkout_request.rb +205 -0
- data/lib/cybersource_rest_client/models/acp_complete_checkout_response_buyer.rb +254 -0
- data/lib/cybersource_rest_client/models/acp_complete_checkout_session_buyer.rb +254 -0
- data/lib/cybersource_rest_client/models/acp_create_checkout_session_buyer.rb +254 -0
- data/lib/cybersource_rest_client/models/acp_create_checkout_session_request.rb +217 -0
- data/lib/cybersource_rest_client/models/acp_update_checkout_session_buyer.rb +254 -0
- data/lib/cybersource_rest_client/models/acp_update_checkout_session_request.rb +224 -0
- data/lib/cybersource_rest_client/models/activate_merchant_key_response200.rb +356 -0
- data/lib/cybersource_rest_client/models/add_agent_key_response201.rb +356 -0
- data/lib/cybersource_rest_client/models/agent_registration_conflict_response409.rb +196 -0
- data/lib/cybersource_rest_client/models/agent_registration_response201.rb +356 -0
- data/lib/cybersource_rest_client/models/agent_registration_response201_keys.rb +308 -0
- data/lib/cybersource_rest_client/models/agent_registration_validation_error_response422.rb +214 -0
- data/lib/cybersource_rest_client/models/agent_registration_validation_error_response422_errors.rb +212 -0
- data/lib/cybersource_rest_client/models/agent_request.rb +286 -0
- data/lib/cybersource_rest_client/models/agent_update.rb +237 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information_tenant_configurations.rb +1 -1
- data/lib/cybersource_rest_client/models/body_1.rb +189 -0
- data/lib/cybersource_rest_client/models/body_2.rb +224 -0
- data/lib/cybersource_rest_client/models/consumer_authentication_response.rb +196 -0
- data/lib/cybersource_rest_client/models/create_payment_link_request.rb +17 -5
- data/lib/cybersource_rest_client/models/deactivate_merchant_key_response200.rb +196 -0
- data/lib/cybersource_rest_client/models/iccv1agents_keys.rb +239 -0
- data/lib/cybersource_rest_client/models/iccv1checkout_sessions_fulfillment_address.rb +344 -0
- data/lib/cybersource_rest_client/models/iccv1checkout_sessions_items.rb +222 -0
- data/lib/cybersource_rest_client/models/iccv1checkout_sessionssession_id_fulfillment_address.rb +344 -0
- data/lib/cybersource_rest_client/models/iccv1checkout_sessionssession_idcomplete_payment_data.rb +222 -0
- data/lib/cybersource_rest_client/models/iccv1checkout_sessionssession_idcomplete_payment_data_billing_address.rb +344 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_discounts.rb +206 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_discounts_allocations.rb +202 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_discounts_applied.rb +237 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment.rb +193 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_destinations.rb +246 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_groups.rb +228 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_methods.rb +252 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_options.rb +215 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_totals.rb +202 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_item.rb +207 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_line_items.rb +211 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment.rb +217 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment_billing_address.rb +235 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment_credential.rb +202 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment_handlers.rb +259 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment_instruments.rb +288 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessionssession_id_discounts.rb +206 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessionssession_id_fulfillment.rb +193 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessionssession_id_payment.rb +217 -0
- data/lib/cybersource_rest_client/models/iccv1merchants_api_integrations.rb +225 -0
- data/lib/cybersource_rest_client/models/iccv1merchants_encryption_key.rb +245 -0
- data/lib/cybersource_rest_client/models/iccv1merchants_protocol_interactions.rb +236 -0
- data/lib/cybersource_rest_client/models/iccv1merchants_web_integrations.rb +225 -0
- data/lib/cybersource_rest_client/models/iccv1productsfeed_products.rb +1368 -0
- data/lib/cybersource_rest_client/models/inline_response_200_16.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_200_17.rb +317 -0
- data/lib/cybersource_rest_client/models/inline_response_200_17_fulfillment_address.rb +344 -0
- data/lib/cybersource_rest_client/models/inline_response_200_17_order.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_200_18.rb +308 -0
- data/lib/cybersource_rest_client/models/inline_response_200_19.rb +302 -0
- data/lib/cybersource_rest_client/models/inline_response_200_19_errors.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_200_19_google_merchant.rb +237 -0
- data/lib/cybersource_rest_client/models/inline_response_200_19_google_merchant_products.rb +259 -0
- data/lib/cybersource_rest_client/models/inline_response_200_20.rb +259 -0
- data/lib/cybersource_rest_client/models/inline_response_200_20_products.rb +1081 -0
- data/lib/cybersource_rest_client/models/inline_response_200_21.rb +201 -0
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_5_integration_information_tenant_configurations.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_10.rb +277 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_7_payloads.rb → inline_response_201_10_payloads.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_7_payloads_test_payload.rb → inline_response_201_10_payloads_test_payload.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_11.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_201_12.rb +297 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_9_client_reference_information.rb → inline_response_201_12_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_9_error_information.rb → inline_response_201_12_error_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_9_order_information.rb → inline_response_201_12_order_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_9_order_information_currency_conversion.rb → inline_response_201_12_order_information_currency_conversion.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_9_order_information_currency_conversion_offer.rb → inline_response_201_12_order_information_currency_conversion_offer.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_9_processor_information.rb → inline_response_201_12_processor_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_13.rb +318 -0
- data/lib/cybersource_rest_client/models/inline_response_201_13_fulfillment_address.rb +344 -0
- data/lib/cybersource_rest_client/models/inline_response_201_13_fulfillment_options.rb +290 -0
- data/lib/cybersource_rest_client/models/inline_response_201_13_item.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_13_line_items.rb +256 -0
- data/lib/cybersource_rest_client/models/inline_response_201_13_links.rb +212 -0
- data/lib/cybersource_rest_client/models/inline_response_201_13_messages.rb +250 -0
- data/lib/cybersource_rest_client/models/inline_response_201_13_payment_provider.rb +204 -0
- data/lib/cybersource_rest_client/models/inline_response_201_13_totals.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14.rb +312 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14_discounts.rb +206 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14_fulfillment.rb +193 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14_item.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14_line_items.rb +225 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14_order.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14_payment.rb +217 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14_ucp.rb +204 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14_ucp_capabilities.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_201_3.rb +33 -54
- data/lib/cybersource_rest_client/models/inline_response_201_3_results.rb +190 -0
- data/lib/cybersource_rest_client/models/inline_response_201_3_results_risk_insights.rb +235 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4.rb +51 -62
- data/lib/cybersource_rest_client/models/inline_response_201_4_error_information.rb +225 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4_error_information_details.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4_order_information.rb +189 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4_order_information_amount_details.rb +315 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4_processing_information.rb +189 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4_processing_information_routing.rb +196 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4_processor_information.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5.rb +78 -19
- data/lib/cybersource_rest_client/models/{inline_response_401_1__links.rb → inline_response_201_5__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/inline_response_201_5__links_self.rb +201 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_acquirer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_client_reference_information.rb +196 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_error_information.rb +225 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_error_information_details.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_merchant_information.rb +196 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_order_information.rb +189 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_order_information_amount_details.rb +264 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_payment_information.rb +223 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_payment_information_card.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_processing_information.rb +240 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_processing_information_payouts_options.rb +196 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_processor_information.rb +548 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_processor_information_card_verification.rb +196 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_transactions.rb +239 -0
- data/lib/cybersource_rest_client/models/inline_response_201_6.rb +45 -111
- data/lib/cybersource_rest_client/models/{inline_response_201_3_payout_information.rb → inline_response_201_6_payout_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_3_payout_information_pull_funds.rb → inline_response_201_6_payout_information_pull_funds.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_3_payout_information_push_funds.rb → inline_response_201_6_payout_information_push_funds.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_7.rb +76 -72
- data/lib/cybersource_rest_client/models/{inline_response_201_4_integration_information.rb → inline_response_201_7_integration_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_4_integration_information_tenant_configurations.rb → inline_response_201_7_integration_information_tenant_configurations.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_4_organization_information.rb → inline_response_201_7_organization_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_4_product_information_setups.rb → inline_response_201_7_product_information_setups.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_4_registration_information.rb → inline_response_201_7_registration_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_4_setups.rb → inline_response_201_7_setups.rb} +4 -4
- data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_commerce_solutions.rb → inline_response_201_7_setups_commerce_solutions.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_risk.rb → inline_response_201_7_setups_risk.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_value_added_services.rb → inline_response_201_7_setups_value_added_services.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_8.rb +26 -6
- data/lib/cybersource_rest_client/models/{inline_response_201_5_key_information.rb → inline_response_201_8_key_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5_key_information_error_information.rb → inline_response_201_8_key_information_error_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5_key_information_error_information_details.rb → inline_response_201_8_key_information_error_information_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_9.rb +107 -90
- data/lib/cybersource_rest_client/models/inline_response_202__links.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_10.rb +58 -36
- data/lib/cybersource_rest_client/models/{inline_response_400_8_fields.rb → inline_response_400_10_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_11.rb +35 -42
- data/lib/cybersource_rest_client/models/{inline_response_400_9_details.rb → inline_response_400_11_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_12.rb +27 -26
- data/lib/cybersource_rest_client/models/inline_response_400_12_details.rb +18 -7
- data/lib/cybersource_rest_client/models/inline_response_400_13.rb +38 -77
- data/lib/cybersource_rest_client/models/inline_response_400_14.rb +235 -0
- data/lib/cybersource_rest_client/models/{inline_response_400_10_details.rb → inline_response_400_14_details.rb} +8 -19
- data/lib/cybersource_rest_client/models/inline_response_400_15.rb +281 -0
- data/lib/cybersource_rest_client/models/inline_response_400_16.rb +235 -0
- data/lib/cybersource_rest_client/models/inline_response_400_3.rb +42 -13
- data/lib/cybersource_rest_client/models/inline_response_400_4.rb +47 -13
- data/lib/cybersource_rest_client/models/inline_response_400_5.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_6.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_7.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_8.rb +37 -60
- data/lib/cybersource_rest_client/models/inline_response_400_9.rb +6 -6
- data/lib/cybersource_rest_client/models/inline_response_401.rb +51 -33
- data/lib/cybersource_rest_client/models/inline_response_401_1.rb +44 -56
- data/lib/cybersource_rest_client/models/inline_response_401_2.rb +223 -0
- data/lib/cybersource_rest_client/models/inline_response_401_3.rb +253 -0
- data/lib/cybersource_rest_client/models/inline_response_401_3__links.rb +189 -0
- data/lib/cybersource_rest_client/models/{inline_response_401_1__links_self.rb → inline_response_401_3__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_401_1_fields.rb → inline_response_401_3_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_404_3.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_422_1.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_502_2.rb +55 -26
- data/lib/cybersource_rest_client/models/inline_response_502_3.rb +21 -15
- data/lib/cybersource_rest_client/models/inline_response_502_4.rb +223 -0
- data/lib/cybersource_rest_client/models/inline_response_502_5.rb +251 -0
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +18 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoice_information.rb +2 -2
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_cancel200_response.rb +17 -5
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_invoice_information.rb +20 -3
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_publish200_response.rb +17 -5
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_send200_response.rb +17 -5
- data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +18 -1
- data/lib/cybersource_rest_client/models/invoicingv2invoices_invoice_information.rb +20 -3
- data/lib/cybersource_rest_client/models/invoicingv2invoicesid_invoice_information.rb +20 -3
- data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information_line_items.rb +26 -9
- data/lib/cybersource_rest_client/models/iplv2paymentlinks_purchase_information.rb +85 -5
- data/lib/cybersource_rest_client/models/iplv2paymentlinksid_purchase_information.rb +85 -5
- data/lib/cybersource_rest_client/models/key_request.rb +239 -0
- data/lib/cybersource_rest_client/models/key_request_1.rb +245 -0
- data/lib/cybersource_rest_client/models/key_update.rb +224 -0
- data/lib/cybersource_rest_client/models/key_update_1.rb +235 -0
- data/lib/cybersource_rest_client/models/label_request.rb +268 -0
- data/lib/cybersource_rest_client/models/list_agent_keys_response200.rb +245 -0
- data/lib/cybersource_rest_client/models/list_agent_keys_response200_pagination.rb +276 -0
- data/lib/cybersource_rest_client/models/list_merchant_keys_response200.rb +262 -0
- data/lib/cybersource_rest_client/models/merchant_defined_field_core_1.rb +315 -0
- data/lib/cybersource_rest_client/models/merchant_defined_field_definition_request_1.rb +315 -0
- data/lib/cybersource_rest_client/models/merchant_registration_response201.rb +395 -0
- data/lib/cybersource_rest_client/models/merchant_registration_response201_keys.rb +324 -0
- data/lib/cybersource_rest_client/models/merchant_registration_validation_error_response422.rb +193 -0
- data/lib/cybersource_rest_client/models/merchant_registration_validation_error_response422_detail.rb +215 -0
- data/lib/cybersource_rest_client/models/merchant_request.rb +317 -0
- data/lib/cybersource_rest_client/models/merchant_update.rb +270 -0
- data/lib/cybersource_rest_client/models/patch_registration_body.rb +234 -0
- data/lib/cybersource_rest_client/models/pbl_payment_links_get200_response.rb +17 -5
- data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response.rb +17 -5
- data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response_purchase_information.rb +81 -1
- data/lib/cybersource_rest_client/models/{tms_tokenized_card_delete_request.rb → post_tokenized_card_delete_request.rb} +1 -1
- data/lib/cybersource_rest_client/models/processing_info_authorization_options.rb +14 -1
- data/lib/cybersource_rest_client/models/product_feed_request.rb +230 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +37 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +11 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_card_verification.rb +214 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_recurring_payment_information.rb +0 -14
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_acquirer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_client_reference_information.rb +257 -0
- data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_client_reference_information_partner.rb +213 -0
- data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_order_information.rb +189 -0
- data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_order_information_amount_details.rb +299 -0
- data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_processing_information.rb +240 -0
- data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_processing_information_routing.rb +205 -0
- data/lib/cybersource_rest_client/models/ptsv2payoutstransactionqueryid_client_reference_information.rb +247 -0
- data/lib/cybersource_rest_client/models/{boardingv1registrations_integration_information_tenant_information.rb → tenant_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +12 -1
- data/lib/cybersource_rest_client/models/ucp_checkout_session_response_buyer.rb +202 -0
- data/lib/cybersource_rest_client/models/ucp_complete_checkout_request.rb +201 -0
- data/lib/cybersource_rest_client/models/ucp_create_checkout_session_buyer.rb +202 -0
- data/lib/cybersource_rest_client/models/ucp_create_checkout_session_request.rb +249 -0
- data/lib/cybersource_rest_client/models/ucp_update_checkout_session_buyer.rb +202 -0
- data/lib/cybersource_rest_client/models/ucp_update_checkout_session_request.rb +255 -0
- data/lib/cybersource_rest_client/models/unified_risk_labels_post400_response.rb +230 -0
- data/lib/cybersource_rest_client/models/unified_risk_labels_post400_response_errors.rb +223 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_labels.rb +230 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_labels_authentication_outcome.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_labels_payment_authorization_decision.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_labels_return.rb +202 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_labels_transaction_decision.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_labels_transaction_outcome.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction.rb +196 -0
- data/lib/cybersource_rest_client/models/update_payment_link_request.rb +17 -5
- data/lib/cybersource_rest_client.rb +2172 -2011
- metadata +194 -33
data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb
CHANGED
|
@@ -54,6 +54,9 @@ module CyberSource
|
|
|
54
54
|
# Whether you would like to receive payment notification for successful transaction
|
|
55
55
|
attr_accessor :enable_merchant_email_notifications
|
|
56
56
|
|
|
57
|
+
# The merchant's email address for receiving payment notifications.
|
|
58
|
+
attr_accessor :merchant_email
|
|
59
|
+
|
|
57
60
|
# A list of custom labels that allows you to override (rename) default field names and control the visibility of specific fields on invoices and items. If the list is empty, the labels will not be overwritten.
|
|
58
61
|
attr_accessor :custom_labels
|
|
59
62
|
|
|
@@ -76,6 +79,7 @@ module CyberSource
|
|
|
76
79
|
:'phone_number' => :'phoneNumber',
|
|
77
80
|
:'email' => :'email',
|
|
78
81
|
:'enable_merchant_email_notifications' => :'enableMerchantEmailNotifications',
|
|
82
|
+
:'merchant_email' => :'merchantEmail',
|
|
79
83
|
:'custom_labels' => :'customLabels',
|
|
80
84
|
:'custom_redirect_urls' => :'customRedirectUrls'
|
|
81
85
|
}
|
|
@@ -98,6 +102,7 @@ module CyberSource
|
|
|
98
102
|
:'phone_number' => :'phone_number',
|
|
99
103
|
:'email' => :'email',
|
|
100
104
|
:'enable_merchant_email_notifications' => :'enable_merchant_email_notifications',
|
|
105
|
+
:'merchant_email' => :'merchant_email',
|
|
101
106
|
:'custom_labels' => :'custom_labels',
|
|
102
107
|
:'custom_redirect_urls' => :'custom_redirect_urls'
|
|
103
108
|
}
|
|
@@ -120,6 +125,7 @@ module CyberSource
|
|
|
120
125
|
:'phone_number' => :'BOOLEAN',
|
|
121
126
|
:'email' => :'BOOLEAN',
|
|
122
127
|
:'enable_merchant_email_notifications' => :'BOOLEAN',
|
|
128
|
+
:'merchant_email' => :'String',
|
|
123
129
|
:'custom_labels' => :'Array<InvoicingV2InvoicesPost201ResponseInvoiceInformationCustomLabels>',
|
|
124
130
|
:'custom_redirect_urls' => :'InvoicingV2InvoiceSettingsGet200ResponseInvoiceSettingsInformationCustomRedirectUrls'
|
|
125
131
|
}
|
|
@@ -199,6 +205,10 @@ module CyberSource
|
|
|
199
205
|
self.enable_merchant_email_notifications = false
|
|
200
206
|
end
|
|
201
207
|
|
|
208
|
+
if attributes.has_key?(:'merchantEmail')
|
|
209
|
+
self.merchant_email = attributes[:'merchantEmail']
|
|
210
|
+
end
|
|
211
|
+
|
|
202
212
|
if attributes.has_key?(:'customLabels')
|
|
203
213
|
if (value = attributes[:'customLabels']).is_a?(Array)
|
|
204
214
|
self.custom_labels = value
|
|
@@ -265,6 +275,12 @@ module CyberSource
|
|
|
265
275
|
@vat_registration_number = vat_registration_number
|
|
266
276
|
end
|
|
267
277
|
|
|
278
|
+
# Custom attribute writer method with validation
|
|
279
|
+
# @param [Object] merchant_email Value to be assigned
|
|
280
|
+
def merchant_email=(merchant_email)
|
|
281
|
+
@merchant_email = merchant_email
|
|
282
|
+
end
|
|
283
|
+
|
|
268
284
|
# Checks equality by comparing each attribute.
|
|
269
285
|
# @param [Object] Object to be compared
|
|
270
286
|
def ==(o)
|
|
@@ -284,6 +300,7 @@ module CyberSource
|
|
|
284
300
|
phone_number == o.phone_number &&
|
|
285
301
|
email == o.email &&
|
|
286
302
|
enable_merchant_email_notifications == o.enable_merchant_email_notifications &&
|
|
303
|
+
merchant_email == o.merchant_email &&
|
|
287
304
|
custom_labels == o.custom_labels &&
|
|
288
305
|
custom_redirect_urls == o.custom_redirect_urls
|
|
289
306
|
end
|
|
@@ -297,7 +314,7 @@ module CyberSource
|
|
|
297
314
|
# Calculates hash code according to all attributes.
|
|
298
315
|
# @return [Fixnum] Hash code
|
|
299
316
|
def hash
|
|
300
|
-
[merchant_logo, merchant_display_name, custom_email_message, enable_reminders, header_style, delivery_language, default_currency_code, payer_authentication_in_invoicing, show_vat_number, vat_registration_number, ship_to, phone_number, email, enable_merchant_email_notifications, custom_labels, custom_redirect_urls].hash
|
|
317
|
+
[merchant_logo, merchant_display_name, custom_email_message, enable_reminders, header_style, delivery_language, default_currency_code, payer_authentication_in_invoicing, show_vat_number, vat_registration_number, ship_to, phone_number, email, enable_merchant_email_notifications, merchant_email, custom_labels, custom_redirect_urls].hash
|
|
301
318
|
end
|
|
302
319
|
|
|
303
320
|
# Builds the object from hash
|
|
@@ -17,13 +17,16 @@ module CyberSource
|
|
|
17
17
|
# Invoice Number.
|
|
18
18
|
attr_accessor :invoice_number
|
|
19
19
|
|
|
20
|
+
# The transaction reference number (TRN) is a identifier assigned to each payment transaction that allows merchants, customers, and payment processors to track and reference specific transactions throughout their lifecycle. When provided, this value is passed to the payment processor as the reconciliation ID for the payment. For invoices this is typically the invoice number, and for purchase or donation links it is typically the link identifier. Only letters and numbers are allowed; spaces and other special characters are not permitted.
|
|
21
|
+
attr_accessor :transaction_reference_number
|
|
22
|
+
|
|
20
23
|
# The description included in the invoice.
|
|
21
24
|
attr_accessor :description
|
|
22
25
|
|
|
23
|
-
# The invoice due date. This field is required for creating an invoice. Format: `YYYY-MM-DD`, where `YYYY` = year, `MM` = month, and `DD` = day
|
|
26
|
+
# The invoice due date. This field is required for creating an invoice. Format: `YYYY-MM-DD`, where `YYYY` = year, `MM` = month, and `DD` = day. The invoice link automatically expires 12 months after the due date.
|
|
24
27
|
attr_accessor :due_date
|
|
25
28
|
|
|
26
|
-
# Define an expiration date for the link. Format: `YYYY-MM-DD`, where `YYYY` = year, `MM` = month, and `DD` = day
|
|
29
|
+
# Define an expiration date for the link. The date must be today or in the future. Format: `YYYY-MM-DD`, where `YYYY` = year, `MM` = month, and `DD` = day. The invoice link automatically expires 12 months after the due date.
|
|
27
30
|
attr_accessor :expiration_date
|
|
28
31
|
|
|
29
32
|
# If set to `true`, we send the invoice immediately. If set to `false`, the invoice remains in draft mode.
|
|
@@ -39,6 +42,7 @@ module CyberSource
|
|
|
39
42
|
def self.attribute_map
|
|
40
43
|
{
|
|
41
44
|
:'invoice_number' => :'invoiceNumber',
|
|
45
|
+
:'transaction_reference_number' => :'transactionReferenceNumber',
|
|
42
46
|
:'description' => :'description',
|
|
43
47
|
:'due_date' => :'dueDate',
|
|
44
48
|
:'expiration_date' => :'expirationDate',
|
|
@@ -52,6 +56,7 @@ module CyberSource
|
|
|
52
56
|
def self.json_map
|
|
53
57
|
{
|
|
54
58
|
:'invoice_number' => :'invoice_number',
|
|
59
|
+
:'transaction_reference_number' => :'transaction_reference_number',
|
|
55
60
|
:'description' => :'description',
|
|
56
61
|
:'due_date' => :'due_date',
|
|
57
62
|
:'expiration_date' => :'expiration_date',
|
|
@@ -65,6 +70,7 @@ module CyberSource
|
|
|
65
70
|
def self.swagger_types
|
|
66
71
|
{
|
|
67
72
|
:'invoice_number' => :'String',
|
|
73
|
+
:'transaction_reference_number' => :'String',
|
|
68
74
|
:'description' => :'String',
|
|
69
75
|
:'due_date' => :'Date',
|
|
70
76
|
:'expiration_date' => :'Date',
|
|
@@ -86,6 +92,10 @@ module CyberSource
|
|
|
86
92
|
self.invoice_number = attributes[:'invoiceNumber']
|
|
87
93
|
end
|
|
88
94
|
|
|
95
|
+
if attributes.has_key?(:'transactionReferenceNumber')
|
|
96
|
+
self.transaction_reference_number = attributes[:'transactionReferenceNumber']
|
|
97
|
+
end
|
|
98
|
+
|
|
89
99
|
if attributes.has_key?(:'description')
|
|
90
100
|
self.description = attributes[:'description']
|
|
91
101
|
end
|
|
@@ -138,6 +148,12 @@ module CyberSource
|
|
|
138
148
|
true
|
|
139
149
|
end
|
|
140
150
|
|
|
151
|
+
# Custom attribute writer method with validation
|
|
152
|
+
# @param [Object] transaction_reference_number Value to be assigned
|
|
153
|
+
def transaction_reference_number=(transaction_reference_number)
|
|
154
|
+
@transaction_reference_number = transaction_reference_number
|
|
155
|
+
end
|
|
156
|
+
|
|
141
157
|
# Custom attribute writer method with validation
|
|
142
158
|
# @param [Object] description Value to be assigned
|
|
143
159
|
def description=(description)
|
|
@@ -154,6 +170,7 @@ module CyberSource
|
|
|
154
170
|
return true if self.equal?(o)
|
|
155
171
|
self.class == o.class &&
|
|
156
172
|
invoice_number == o.invoice_number &&
|
|
173
|
+
transaction_reference_number == o.transaction_reference_number &&
|
|
157
174
|
description == o.description &&
|
|
158
175
|
due_date == o.due_date &&
|
|
159
176
|
expiration_date == o.expiration_date &&
|
|
@@ -171,7 +188,7 @@ module CyberSource
|
|
|
171
188
|
# Calculates hash code according to all attributes.
|
|
172
189
|
# @return [Fixnum] Hash code
|
|
173
190
|
def hash
|
|
174
|
-
[invoice_number, description, due_date, expiration_date, send_immediately, allow_partial_payments, delivery_mode].hash
|
|
191
|
+
[invoice_number, transaction_reference_number, description, due_date, expiration_date, send_immediately, allow_partial_payments, delivery_mode].hash
|
|
175
192
|
end
|
|
176
193
|
|
|
177
194
|
# Builds the object from hash
|
|
@@ -14,13 +14,16 @@ require 'date'
|
|
|
14
14
|
module CyberSource
|
|
15
15
|
# Contains the updatable invoice information.
|
|
16
16
|
class Invoicingv2invoicesidInvoiceInformation
|
|
17
|
+
# The transaction reference number (TRN) is a identifier assigned to each payment transaction that allows merchants, customers, and payment processors to track and reference specific transactions throughout their lifecycle. When provided, this value is passed to the payment processor as the reconciliation ID for the payment. For invoices this is typically the invoice number, and for purchase or donation links it is typically the link identifier. Only letters and numbers are allowed; spaces and other special characters are not permitted.
|
|
18
|
+
attr_accessor :transaction_reference_number
|
|
19
|
+
|
|
17
20
|
# The description included in the invoice.
|
|
18
21
|
attr_accessor :description
|
|
19
22
|
|
|
20
|
-
# The invoice due date. This field is required for creating an invoice. Format: `YYYY-MM-DD`, where `YYYY` = year, `MM` = month, and `DD` = day
|
|
23
|
+
# The invoice due date. This field is required for creating an invoice. Format: `YYYY-MM-DD`, where `YYYY` = year, `MM` = month, and `DD` = day. The invoice link automatically expires 12 months after the due date.
|
|
21
24
|
attr_accessor :due_date
|
|
22
25
|
|
|
23
|
-
# Define an expiration date for the link. Format: `YYYY-MM-DD`, where `YYYY` = year, `MM` = month, and `DD` = day
|
|
26
|
+
# Define an expiration date for the link. The date must be today or in the future. Format: `YYYY-MM-DD`, where `YYYY` = year, `MM` = month, and `DD` = day. The invoice link automatically expires 12 months after the due date.
|
|
24
27
|
attr_accessor :expiration_date
|
|
25
28
|
|
|
26
29
|
# If set to `true`, we send the invoice immediately. If set to `false`, the invoice remains in draft mode.
|
|
@@ -35,6 +38,7 @@ module CyberSource
|
|
|
35
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
39
|
def self.attribute_map
|
|
37
40
|
{
|
|
41
|
+
:'transaction_reference_number' => :'transactionReferenceNumber',
|
|
38
42
|
:'description' => :'description',
|
|
39
43
|
:'due_date' => :'dueDate',
|
|
40
44
|
:'expiration_date' => :'expirationDate',
|
|
@@ -47,6 +51,7 @@ module CyberSource
|
|
|
47
51
|
# Attribute mapping from JSON key to ruby-style variable name.
|
|
48
52
|
def self.json_map
|
|
49
53
|
{
|
|
54
|
+
:'transaction_reference_number' => :'transaction_reference_number',
|
|
50
55
|
:'description' => :'description',
|
|
51
56
|
:'due_date' => :'due_date',
|
|
52
57
|
:'expiration_date' => :'expiration_date',
|
|
@@ -59,6 +64,7 @@ module CyberSource
|
|
|
59
64
|
# Attribute type mapping.
|
|
60
65
|
def self.swagger_types
|
|
61
66
|
{
|
|
67
|
+
:'transaction_reference_number' => :'String',
|
|
62
68
|
:'description' => :'String',
|
|
63
69
|
:'due_date' => :'Date',
|
|
64
70
|
:'expiration_date' => :'Date',
|
|
@@ -76,6 +82,10 @@ module CyberSource
|
|
|
76
82
|
# convert string to symbol for hash key
|
|
77
83
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
78
84
|
|
|
85
|
+
if attributes.has_key?(:'transactionReferenceNumber')
|
|
86
|
+
self.transaction_reference_number = attributes[:'transactionReferenceNumber']
|
|
87
|
+
end
|
|
88
|
+
|
|
79
89
|
if attributes.has_key?(:'description')
|
|
80
90
|
self.description = attributes[:'description']
|
|
81
91
|
end
|
|
@@ -128,6 +138,12 @@ module CyberSource
|
|
|
128
138
|
true
|
|
129
139
|
end
|
|
130
140
|
|
|
141
|
+
# Custom attribute writer method with validation
|
|
142
|
+
# @param [Object] transaction_reference_number Value to be assigned
|
|
143
|
+
def transaction_reference_number=(transaction_reference_number)
|
|
144
|
+
@transaction_reference_number = transaction_reference_number
|
|
145
|
+
end
|
|
146
|
+
|
|
131
147
|
# Custom attribute writer method with validation
|
|
132
148
|
# @param [Object] description Value to be assigned
|
|
133
149
|
def description=(description)
|
|
@@ -143,6 +159,7 @@ module CyberSource
|
|
|
143
159
|
def ==(o)
|
|
144
160
|
return true if self.equal?(o)
|
|
145
161
|
self.class == o.class &&
|
|
162
|
+
transaction_reference_number == o.transaction_reference_number &&
|
|
146
163
|
description == o.description &&
|
|
147
164
|
due_date == o.due_date &&
|
|
148
165
|
expiration_date == o.expiration_date &&
|
|
@@ -160,7 +177,7 @@ module CyberSource
|
|
|
160
177
|
# Calculates hash code according to all attributes.
|
|
161
178
|
# @return [Fixnum] Hash code
|
|
162
179
|
def hash
|
|
163
|
-
[description, due_date, expiration_date, send_immediately, allow_partial_payments, delivery_mode].hash
|
|
180
|
+
[transaction_reference_number, description, due_date, expiration_date, send_immediately, allow_partial_payments, delivery_mode].hash
|
|
164
181
|
end
|
|
165
182
|
|
|
166
183
|
# Builds the object from hash
|
|
@@ -29,18 +29,21 @@ module CyberSource
|
|
|
29
29
|
# Brief description of item.
|
|
30
30
|
attr_accessor :product_description
|
|
31
31
|
|
|
32
|
-
# Discount amount applied to the item. Maximum of 2 decimal places. You may provide either discountAmount or discountPercent (not both).
|
|
32
|
+
# Discount amount applied to the item. Maximum of 2 decimal places. You may provide either discountAmount or discountPercent (not both). Example: 0.60
|
|
33
33
|
attr_accessor :discount_amount
|
|
34
34
|
|
|
35
|
-
# Discount rate applied to the item. Maximum of 3 decimal places. You may provide either discountAmount or discountPercent (not both). If
|
|
35
|
+
# Discount rate applied to the item. Maximum of 3 decimal places. You may provide either discountAmount or discountPercent (not both). If you add discountPercent, a discountAmount will be calculated automatically. Example: 5.00 (=5.00%)
|
|
36
36
|
attr_accessor :discount_percent
|
|
37
37
|
|
|
38
|
-
# Tax amount applied to the item. This value cannot be negative. Maximum of 2 decimal places. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. If taxAmount is provided but taxRate is not, the taxRate will be calculated.
|
|
38
|
+
# Tax amount applied to the item. This value cannot be negative. Maximum of 2 decimal places. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. If taxAmount is provided but taxRate is not, the taxRate will be calculated. Example: 2.86
|
|
39
39
|
attr_accessor :tax_amount
|
|
40
40
|
|
|
41
|
-
# Tax rate applied to the item. Valid range: 1.001% to 99.999%. Maximum of 3 decimal places. If a taxRate is provided but taxAmount is missing or incorrect, the taxAmount based on the given taxRate will be overwritten. Example:
|
|
41
|
+
# Tax rate applied to the item. Valid range: 1.001% to 99.999%. Maximum of 3 decimal places. If a taxRate is provided but taxAmount is missing or incorrect, the taxAmount based on the given taxRate will be overwritten. Example: 25.00 (=25.00%)
|
|
42
42
|
attr_accessor :tax_rate
|
|
43
43
|
|
|
44
|
+
# Total amount for the line item after discount and tax, calculated per single unit. Formula: (unitPrice - discountAmount) + taxAmount. This field is calculated automatically and does not need to be provided in the request. Example: 14.31
|
|
45
|
+
attr_accessor :total_amount
|
|
46
|
+
|
|
44
47
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
48
|
def self.attribute_map
|
|
46
49
|
{
|
|
@@ -52,7 +55,8 @@ module CyberSource
|
|
|
52
55
|
:'discount_amount' => :'discountAmount',
|
|
53
56
|
:'discount_percent' => :'discountPercent',
|
|
54
57
|
:'tax_amount' => :'taxAmount',
|
|
55
|
-
:'tax_rate' => :'taxRate'
|
|
58
|
+
:'tax_rate' => :'taxRate',
|
|
59
|
+
:'total_amount' => :'totalAmount'
|
|
56
60
|
}
|
|
57
61
|
end
|
|
58
62
|
|
|
@@ -67,7 +71,8 @@ module CyberSource
|
|
|
67
71
|
:'discount_amount' => :'discount_amount',
|
|
68
72
|
:'discount_percent' => :'discount_percent',
|
|
69
73
|
:'tax_amount' => :'tax_amount',
|
|
70
|
-
:'tax_rate' => :'tax_rate'
|
|
74
|
+
:'tax_rate' => :'tax_rate',
|
|
75
|
+
:'total_amount' => :'total_amount'
|
|
71
76
|
}
|
|
72
77
|
end
|
|
73
78
|
|
|
@@ -82,7 +87,8 @@ module CyberSource
|
|
|
82
87
|
:'discount_amount' => :'String',
|
|
83
88
|
:'discount_percent' => :'String',
|
|
84
89
|
:'tax_amount' => :'String',
|
|
85
|
-
:'tax_rate' => :'String'
|
|
90
|
+
:'tax_rate' => :'String',
|
|
91
|
+
:'total_amount' => :'String'
|
|
86
92
|
}
|
|
87
93
|
end
|
|
88
94
|
|
|
@@ -129,6 +135,10 @@ module CyberSource
|
|
|
129
135
|
if attributes.has_key?(:'taxRate')
|
|
130
136
|
self.tax_rate = attributes[:'taxRate']
|
|
131
137
|
end
|
|
138
|
+
|
|
139
|
+
if attributes.has_key?(:'totalAmount')
|
|
140
|
+
self.total_amount = attributes[:'totalAmount']
|
|
141
|
+
end
|
|
132
142
|
end
|
|
133
143
|
|
|
134
144
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -207,6 +217,12 @@ module CyberSource
|
|
|
207
217
|
@tax_rate = tax_rate
|
|
208
218
|
end
|
|
209
219
|
|
|
220
|
+
# Custom attribute writer method with validation
|
|
221
|
+
# @param [Object] total_amount Value to be assigned
|
|
222
|
+
def total_amount=(total_amount)
|
|
223
|
+
@total_amount = total_amount
|
|
224
|
+
end
|
|
225
|
+
|
|
210
226
|
# Checks equality by comparing each attribute.
|
|
211
227
|
# @param [Object] Object to be compared
|
|
212
228
|
def ==(o)
|
|
@@ -220,7 +236,8 @@ module CyberSource
|
|
|
220
236
|
discount_amount == o.discount_amount &&
|
|
221
237
|
discount_percent == o.discount_percent &&
|
|
222
238
|
tax_amount == o.tax_amount &&
|
|
223
|
-
tax_rate == o.tax_rate
|
|
239
|
+
tax_rate == o.tax_rate &&
|
|
240
|
+
total_amount == o.total_amount
|
|
224
241
|
end
|
|
225
242
|
|
|
226
243
|
# @see the `==` method
|
|
@@ -232,7 +249,7 @@ module CyberSource
|
|
|
232
249
|
# Calculates hash code according to all attributes.
|
|
233
250
|
# @return [Fixnum] Hash code
|
|
234
251
|
def hash
|
|
235
|
-
[product_sku, product_name, quantity, unit_price, product_description, discount_amount, discount_percent, tax_amount, tax_rate].hash
|
|
252
|
+
[product_sku, product_name, quantity, unit_price, product_description, discount_amount, discount_percent, tax_amount, tax_rate, total_amount].hash
|
|
236
253
|
end
|
|
237
254
|
|
|
238
255
|
# Builds the object from hash
|
|
@@ -17,24 +17,48 @@ module CyberSource
|
|
|
17
17
|
# The purchase number
|
|
18
18
|
attr_accessor :purchase_number
|
|
19
19
|
|
|
20
|
+
# The transaction reference number (TRN) is a identifier assigned to each payment transaction that allows merchants, customers, and payment processors to track and reference specific transactions throughout their lifecycle. When provided, this value is passed to the payment processor as the reconciliation ID for the payment. For invoices this is typically the invoice number, and for purchase or donation links it is typically the link identifier. Only letters and numbers are allowed; spaces and other special characters are not permitted.
|
|
21
|
+
attr_accessor :transaction_reference_number
|
|
22
|
+
|
|
23
|
+
# Define an expiration date for the link. The date must be today or in the future. Format: `YYYY-MM-DD`, where `YYYY` = year, `MM` = month, and `DD` = day. The invoice link automatically expires 12 months after the due date.
|
|
24
|
+
attr_accessor :expiration_date
|
|
25
|
+
|
|
26
|
+
# Define an expiry amount for the link. Must be null or greater than 0. If the total price of all transactions for this link exceeds the expiry amount, the link will expire.
|
|
27
|
+
attr_accessor :expiration_amount
|
|
28
|
+
|
|
29
|
+
# Define an expiration quantity for the link. Must be null or greater than 0. If the total quantity of items sold exceeds the expiration quantity, the link is expired.
|
|
30
|
+
attr_accessor :expiration_quantity
|
|
31
|
+
|
|
20
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
33
|
def self.attribute_map
|
|
22
34
|
{
|
|
23
|
-
:'purchase_number' => :'purchaseNumber'
|
|
35
|
+
:'purchase_number' => :'purchaseNumber',
|
|
36
|
+
:'transaction_reference_number' => :'transactionReferenceNumber',
|
|
37
|
+
:'expiration_date' => :'expirationDate',
|
|
38
|
+
:'expiration_amount' => :'expirationAmount',
|
|
39
|
+
:'expiration_quantity' => :'expirationQuantity'
|
|
24
40
|
}
|
|
25
41
|
end
|
|
26
42
|
|
|
27
43
|
# Attribute mapping from JSON key to ruby-style variable name.
|
|
28
44
|
def self.json_map
|
|
29
45
|
{
|
|
30
|
-
:'purchase_number' => :'purchase_number'
|
|
46
|
+
:'purchase_number' => :'purchase_number',
|
|
47
|
+
:'transaction_reference_number' => :'transaction_reference_number',
|
|
48
|
+
:'expiration_date' => :'expiration_date',
|
|
49
|
+
:'expiration_amount' => :'expiration_amount',
|
|
50
|
+
:'expiration_quantity' => :'expiration_quantity'
|
|
31
51
|
}
|
|
32
52
|
end
|
|
33
53
|
|
|
34
54
|
# Attribute type mapping.
|
|
35
55
|
def self.swagger_types
|
|
36
56
|
{
|
|
37
|
-
:'purchase_number' => :'String'
|
|
57
|
+
:'purchase_number' => :'String',
|
|
58
|
+
:'transaction_reference_number' => :'String',
|
|
59
|
+
:'expiration_date' => :'Date',
|
|
60
|
+
:'expiration_amount' => :'String',
|
|
61
|
+
:'expiration_quantity' => :'String'
|
|
38
62
|
}
|
|
39
63
|
end
|
|
40
64
|
|
|
@@ -49,6 +73,22 @@ module CyberSource
|
|
|
49
73
|
if attributes.has_key?(:'purchaseNumber')
|
|
50
74
|
self.purchase_number = attributes[:'purchaseNumber']
|
|
51
75
|
end
|
|
76
|
+
|
|
77
|
+
if attributes.has_key?(:'transactionReferenceNumber')
|
|
78
|
+
self.transaction_reference_number = attributes[:'transactionReferenceNumber']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.has_key?(:'expirationDate')
|
|
82
|
+
self.expiration_date = attributes[:'expirationDate']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.has_key?(:'expirationAmount')
|
|
86
|
+
self.expiration_amount = attributes[:'expirationAmount']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.has_key?(:'expirationQuantity')
|
|
90
|
+
self.expiration_quantity = attributes[:'expirationQuantity']
|
|
91
|
+
end
|
|
52
92
|
end
|
|
53
93
|
|
|
54
94
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -59,6 +99,14 @@ module CyberSource
|
|
|
59
99
|
invalid_properties.push('invalid value for "purchase_number", purchase_number cannot be nil.')
|
|
60
100
|
end
|
|
61
101
|
|
|
102
|
+
#if !@expiration_amount.nil? && @expiration_amount !~ Regexp.new(/^[0-9]+(\\.[0-9]+)?$/)
|
|
103
|
+
#invalid_properties.push('invalid value for "expiration_amount", must conform to the pattern /^[0-9]+(\\.[0-9]+)?$/.')
|
|
104
|
+
#end
|
|
105
|
+
|
|
106
|
+
#if !@expiration_quantity.nil? && @expiration_quantity !~ Regexp.new(/^[0-9]+$/)
|
|
107
|
+
#invalid_properties.push('invalid value for "expiration_quantity", must conform to the pattern /^[0-9]+$/.')
|
|
108
|
+
#end
|
|
109
|
+
|
|
62
110
|
invalid_properties
|
|
63
111
|
end
|
|
64
112
|
|
|
@@ -66,6 +114,8 @@ module CyberSource
|
|
|
66
114
|
# @return true if the model is valid
|
|
67
115
|
def valid?
|
|
68
116
|
return false if @purchase_number.nil?
|
|
117
|
+
#return false if !@expiration_amount.nil? && @expiration_amount !~ Regexp.new(/^[0-9]+(\\.[0-9]+)?$/)
|
|
118
|
+
#return false if !@expiration_quantity.nil? && @expiration_quantity !~ Regexp.new(/^[0-9]+$/)
|
|
69
119
|
true
|
|
70
120
|
end
|
|
71
121
|
|
|
@@ -79,12 +129,42 @@ module CyberSource
|
|
|
79
129
|
@purchase_number = purchase_number
|
|
80
130
|
end
|
|
81
131
|
|
|
132
|
+
# Custom attribute writer method with validation
|
|
133
|
+
# @param [Object] transaction_reference_number Value to be assigned
|
|
134
|
+
def transaction_reference_number=(transaction_reference_number)
|
|
135
|
+
@transaction_reference_number = transaction_reference_number
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Custom attribute writer method with validation
|
|
139
|
+
# @param [Object] expiration_amount Value to be assigned
|
|
140
|
+
def expiration_amount=(expiration_amount)
|
|
141
|
+
#if !expiration_amount.nil? && expiration_amount !~ Regexp.new(/^[0-9]+(\\.[0-9]+)?$/)
|
|
142
|
+
#fail ArgumentError, 'invalid value for "expiration_amount", must conform to the pattern /^[0-9]+(\\.[0-9]+)?$/.'
|
|
143
|
+
#end
|
|
144
|
+
|
|
145
|
+
@expiration_amount = expiration_amount
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Custom attribute writer method with validation
|
|
149
|
+
# @param [Object] expiration_quantity Value to be assigned
|
|
150
|
+
def expiration_quantity=(expiration_quantity)
|
|
151
|
+
#if !expiration_quantity.nil? && expiration_quantity !~ Regexp.new(/^[0-9]+$/)
|
|
152
|
+
#fail ArgumentError, 'invalid value for "expiration_quantity", must conform to the pattern /^[0-9]+$/.'
|
|
153
|
+
#end
|
|
154
|
+
|
|
155
|
+
@expiration_quantity = expiration_quantity
|
|
156
|
+
end
|
|
157
|
+
|
|
82
158
|
# Checks equality by comparing each attribute.
|
|
83
159
|
# @param [Object] Object to be compared
|
|
84
160
|
def ==(o)
|
|
85
161
|
return true if self.equal?(o)
|
|
86
162
|
self.class == o.class &&
|
|
87
|
-
purchase_number == o.purchase_number
|
|
163
|
+
purchase_number == o.purchase_number &&
|
|
164
|
+
transaction_reference_number == o.transaction_reference_number &&
|
|
165
|
+
expiration_date == o.expiration_date &&
|
|
166
|
+
expiration_amount == o.expiration_amount &&
|
|
167
|
+
expiration_quantity == o.expiration_quantity
|
|
88
168
|
end
|
|
89
169
|
|
|
90
170
|
# @see the `==` method
|
|
@@ -96,7 +176,7 @@ module CyberSource
|
|
|
96
176
|
# Calculates hash code according to all attributes.
|
|
97
177
|
# @return [Fixnum] Hash code
|
|
98
178
|
def hash
|
|
99
|
-
[purchase_number].hash
|
|
179
|
+
[purchase_number, transaction_reference_number, expiration_date, expiration_amount, expiration_quantity].hash
|
|
100
180
|
end
|
|
101
181
|
|
|
102
182
|
# Builds the object from hash
|
|
@@ -17,24 +17,48 @@ module CyberSource
|
|
|
17
17
|
# The purchase number
|
|
18
18
|
attr_accessor :purchase_number
|
|
19
19
|
|
|
20
|
+
# The transaction reference number (TRN) is a identifier assigned to each payment transaction that allows merchants, customers, and payment processors to track and reference specific transactions throughout their lifecycle. When provided, this value is passed to the payment processor as the reconciliation ID for the payment. For invoices this is typically the invoice number, and for purchase or donation links it is typically the link identifier. Only letters and numbers are allowed; spaces and other special characters are not permitted.
|
|
21
|
+
attr_accessor :transaction_reference_number
|
|
22
|
+
|
|
23
|
+
# Define an expiration date for the link. The date must be today or in the future. Format: `YYYY-MM-DD`, where `YYYY` = year, `MM` = month, and `DD` = day. The invoice link automatically expires 12 months after the due date.
|
|
24
|
+
attr_accessor :expiration_date
|
|
25
|
+
|
|
26
|
+
# Define an expiry amount for the link. Must be null or greater than 0. If the total price of all transactions for this link exceeds the expiry amount, the link will expire.
|
|
27
|
+
attr_accessor :expiration_amount
|
|
28
|
+
|
|
29
|
+
# Define an expiration quantity for the link. Must be null or greater than 0. If the total quantity of items sold exceeds the expiration quantity, the link is expired.
|
|
30
|
+
attr_accessor :expiration_quantity
|
|
31
|
+
|
|
20
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
33
|
def self.attribute_map
|
|
22
34
|
{
|
|
23
|
-
:'purchase_number' => :'purchaseNumber'
|
|
35
|
+
:'purchase_number' => :'purchaseNumber',
|
|
36
|
+
:'transaction_reference_number' => :'transactionReferenceNumber',
|
|
37
|
+
:'expiration_date' => :'expirationDate',
|
|
38
|
+
:'expiration_amount' => :'expirationAmount',
|
|
39
|
+
:'expiration_quantity' => :'expirationQuantity'
|
|
24
40
|
}
|
|
25
41
|
end
|
|
26
42
|
|
|
27
43
|
# Attribute mapping from JSON key to ruby-style variable name.
|
|
28
44
|
def self.json_map
|
|
29
45
|
{
|
|
30
|
-
:'purchase_number' => :'purchase_number'
|
|
46
|
+
:'purchase_number' => :'purchase_number',
|
|
47
|
+
:'transaction_reference_number' => :'transaction_reference_number',
|
|
48
|
+
:'expiration_date' => :'expiration_date',
|
|
49
|
+
:'expiration_amount' => :'expiration_amount',
|
|
50
|
+
:'expiration_quantity' => :'expiration_quantity'
|
|
31
51
|
}
|
|
32
52
|
end
|
|
33
53
|
|
|
34
54
|
# Attribute type mapping.
|
|
35
55
|
def self.swagger_types
|
|
36
56
|
{
|
|
37
|
-
:'purchase_number' => :'String'
|
|
57
|
+
:'purchase_number' => :'String',
|
|
58
|
+
:'transaction_reference_number' => :'String',
|
|
59
|
+
:'expiration_date' => :'Date',
|
|
60
|
+
:'expiration_amount' => :'String',
|
|
61
|
+
:'expiration_quantity' => :'String'
|
|
38
62
|
}
|
|
39
63
|
end
|
|
40
64
|
|
|
@@ -49,18 +73,44 @@ module CyberSource
|
|
|
49
73
|
if attributes.has_key?(:'purchaseNumber')
|
|
50
74
|
self.purchase_number = attributes[:'purchaseNumber']
|
|
51
75
|
end
|
|
76
|
+
|
|
77
|
+
if attributes.has_key?(:'transactionReferenceNumber')
|
|
78
|
+
self.transaction_reference_number = attributes[:'transactionReferenceNumber']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.has_key?(:'expirationDate')
|
|
82
|
+
self.expiration_date = attributes[:'expirationDate']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.has_key?(:'expirationAmount')
|
|
86
|
+
self.expiration_amount = attributes[:'expirationAmount']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.has_key?(:'expirationQuantity')
|
|
90
|
+
self.expiration_quantity = attributes[:'expirationQuantity']
|
|
91
|
+
end
|
|
52
92
|
end
|
|
53
93
|
|
|
54
94
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
55
95
|
# @return Array for valid properties with the reasons
|
|
56
96
|
def list_invalid_properties
|
|
57
97
|
invalid_properties = Array.new
|
|
98
|
+
#if !@expiration_amount.nil? && @expiration_amount !~ Regexp.new(/^[0-9]+(\\.[0-9]+)?$/)
|
|
99
|
+
#invalid_properties.push('invalid value for "expiration_amount", must conform to the pattern /^[0-9]+(\\.[0-9]+)?$/.')
|
|
100
|
+
#end
|
|
101
|
+
|
|
102
|
+
#if !@expiration_quantity.nil? && @expiration_quantity !~ Regexp.new(/^[0-9]+$/)
|
|
103
|
+
#invalid_properties.push('invalid value for "expiration_quantity", must conform to the pattern /^[0-9]+$/.')
|
|
104
|
+
#end
|
|
105
|
+
|
|
58
106
|
invalid_properties
|
|
59
107
|
end
|
|
60
108
|
|
|
61
109
|
# Check to see if the all the properties in the model are valid
|
|
62
110
|
# @return true if the model is valid
|
|
63
111
|
def valid?
|
|
112
|
+
#return false if !@expiration_amount.nil? && @expiration_amount !~ Regexp.new(/^[0-9]+(\\.[0-9]+)?$/)
|
|
113
|
+
#return false if !@expiration_quantity.nil? && @expiration_quantity !~ Regexp.new(/^[0-9]+$/)
|
|
64
114
|
true
|
|
65
115
|
end
|
|
66
116
|
|
|
@@ -70,12 +120,42 @@ module CyberSource
|
|
|
70
120
|
@purchase_number = purchase_number
|
|
71
121
|
end
|
|
72
122
|
|
|
123
|
+
# Custom attribute writer method with validation
|
|
124
|
+
# @param [Object] transaction_reference_number Value to be assigned
|
|
125
|
+
def transaction_reference_number=(transaction_reference_number)
|
|
126
|
+
@transaction_reference_number = transaction_reference_number
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Custom attribute writer method with validation
|
|
130
|
+
# @param [Object] expiration_amount Value to be assigned
|
|
131
|
+
def expiration_amount=(expiration_amount)
|
|
132
|
+
#if !expiration_amount.nil? && expiration_amount !~ Regexp.new(/^[0-9]+(\\.[0-9]+)?$/)
|
|
133
|
+
#fail ArgumentError, 'invalid value for "expiration_amount", must conform to the pattern /^[0-9]+(\\.[0-9]+)?$/.'
|
|
134
|
+
#end
|
|
135
|
+
|
|
136
|
+
@expiration_amount = expiration_amount
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Custom attribute writer method with validation
|
|
140
|
+
# @param [Object] expiration_quantity Value to be assigned
|
|
141
|
+
def expiration_quantity=(expiration_quantity)
|
|
142
|
+
#if !expiration_quantity.nil? && expiration_quantity !~ Regexp.new(/^[0-9]+$/)
|
|
143
|
+
#fail ArgumentError, 'invalid value for "expiration_quantity", must conform to the pattern /^[0-9]+$/.'
|
|
144
|
+
#end
|
|
145
|
+
|
|
146
|
+
@expiration_quantity = expiration_quantity
|
|
147
|
+
end
|
|
148
|
+
|
|
73
149
|
# Checks equality by comparing each attribute.
|
|
74
150
|
# @param [Object] Object to be compared
|
|
75
151
|
def ==(o)
|
|
76
152
|
return true if self.equal?(o)
|
|
77
153
|
self.class == o.class &&
|
|
78
|
-
purchase_number == o.purchase_number
|
|
154
|
+
purchase_number == o.purchase_number &&
|
|
155
|
+
transaction_reference_number == o.transaction_reference_number &&
|
|
156
|
+
expiration_date == o.expiration_date &&
|
|
157
|
+
expiration_amount == o.expiration_amount &&
|
|
158
|
+
expiration_quantity == o.expiration_quantity
|
|
79
159
|
end
|
|
80
160
|
|
|
81
161
|
# @see the `==` method
|
|
@@ -87,7 +167,7 @@ module CyberSource
|
|
|
87
167
|
# Calculates hash code according to all attributes.
|
|
88
168
|
# @return [Fixnum] Hash code
|
|
89
169
|
def hash
|
|
90
|
-
[purchase_number].hash
|
|
170
|
+
[purchase_number, transaction_reference_number, expiration_date, expiration_amount, expiration_quantity].hash
|
|
91
171
|
end
|
|
92
172
|
|
|
93
173
|
# Builds the object from hash
|