cybersource_rest_client 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client.rb +3 -39
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +4 -4
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +2 -2
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +4 -4
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +4 -4
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +4 -10
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +2 -2
- data/lib/cybersource_rest_client/api/reports_api.rb +12 -25
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +4 -4
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +6 -6
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_credit_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_payment_instrument_request.rb +2 -48
- data/lib/cybersource_rest_client/models/create_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_search_request.rb +2 -2
- data/lib/cybersource_rest_client/models/embedded_instrument_identifier.rb +2 -48
- data/lib/cybersource_rest_client/models/file_detail.rb +1 -35
- data/lib/cybersource_rest_client/models/instrument_identifier.rb +2 -48
- data/lib/cybersource_rest_client/models/payment_instrument.rb +2 -48
- data/lib/cybersource_rest_client/models/payment_instrument_bank_account.rb +0 -34
- data/lib/cybersource_rest_client/models/payment_instrument_card.rb +2 -36
- data/lib/cybersource_rest_client/models/payment_instruments_for_instrument_identifier.rb +1 -35
- data/lib/cybersource_rest_client/models/personal_identification.rb +1 -35
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +0 -46
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +13 -37
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +7 -7
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs.rb +15 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_card_verification.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_merchant_advice.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +0 -46
- data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +1 -47
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +0 -46
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +0 -46
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +0 -46
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +0 -34
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post400_response.rb +0 -34
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +9 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +0 -34
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_issuer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +7 -41
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +32 -50
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +4 -26
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +1 -35
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +8 -8
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +32 -16
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details_surcharge.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_bill_to.rb +14 -48
- data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
- data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries.rb +1 -34
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +0 -22
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response.rb +0 -22
- data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +2 -48
- data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response.rb +8 -8
- data/lib/cybersource_rest_client/models/{reporting_v3_reports_get200_response_reports.rb → reporting_v3_reports_get200_response_report_search_results.rb} +4 -62
- data/lib/cybersource_rest_client/models/reporting_v3_reports_id_get200_response.rb +3 -61
- data/lib/cybersource_rest_client/models/reportingv3reports_report_preferences.rb +1 -35
- data/lib/cybersource_rest_client/models/request_body.rb +1 -35
- data/lib/cybersource_rest_client/models/request_body_1.rb +2 -47
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_ip_address.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post400_response.rb +0 -34
- data/lib/cybersource_rest_client/models/riskv1decisions_card_verification.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +5 -5
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +15 -15
- data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +1 -1
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response.rb +1 -35
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_bank_account.rb +0 -34
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_card.rb +2 -36
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_bank_transfer_options.rb +0 -34
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_instrument_identifier.rb +2 -48
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_payment_instruments.rb +2 -48
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response_personal_identification.rb +1 -35
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response.rb +2 -48
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_device_information.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_error_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_fraud_marking_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_bill_to.rb +47 -31
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to.rb +6 -6
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_account.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_mandate.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +23 -34
- data/lib/cybersource_rest_client/models/{risk_v1_authentications_post400_response.rb → tss_v2_transactions_get200_response_payment_information_payment_type_funding_source.rb} +37 -38
- 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_bank_transfer_options.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +14 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_device_information.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_payment_type.rb +9 -9
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/{riskv1authentications_device_information_raw_data.rb → tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.rb} +17 -27
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +0 -34
- data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_account_information.rb +1 -34
- data/lib/cybersource_rest_client/models/update_payment_instrument_request.rb +2 -48
- data/lib/cybersource_rest_client/models/v1_file_details_get200_response_file_details.rb +1 -35
- metadata +5 -43
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +0 -88
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +0 -88
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +0 -154
- data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +0 -275
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +0 -349
- data/lib/cybersource_rest_client/models/request.rb +0 -210
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +0 -285
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +0 -324
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +0 -294
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_consumer_authentication_information.rb +0 -429
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information.rb +0 -183
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information_amount_details.rb +0 -199
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +0 -214
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information.rb +0 -194
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +0 -267
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +0 -192
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +0 -264
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +0 -264
- data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +0 -196
- data/lib/cybersource_rest_client/models/riskv1authentications_client_reference_information.rb +0 -208
- data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information.rb +0 -552
- data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +0 -285
- data/lib/cybersource_rest_client/models/riskv1authentications_merchant_information.rb +0 -199
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information.rb +0 -258
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +0 -496
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +0 -371
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_ship_to.rb +0 -434
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +0 -192
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +0 -291
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +0 -291
- data/lib/cybersource_rest_client/models/riskv1authentications_recurring_payment_information.rb +0 -235
- data/lib/cybersource_rest_client/models/riskv1authentications_risk_information.rb +0 -183
- data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history.rb +0 -262
- data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history_account_history.rb +0 -209
- data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history_customer_account.rb +0 -279
- data/lib/cybersource_rest_client/models/riskv1authentications_travel_information.rb +0 -206
- data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_legs.rb +0 -259
- data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_passengers.rb +0 -224
data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb
CHANGED
@@ -16,7 +16,7 @@ module CyberSource
|
|
16
16
|
class PtsV2PaymentsPost201ResponsePaymentInformationBank
|
17
17
|
attr_accessor :account
|
18
18
|
|
19
|
-
#
|
19
|
+
# Corrected account number from the ACH verification service. For details, see `ecp_debit_corrected_routing_number` or `ecp_credit_corrected_routing_number` reply field descriptions in the [Electronic Check Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
20
20
|
attr_accessor :corrected_routing_number
|
21
21
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -23,7 +23,7 @@ module CyberSource
|
|
23
23
|
# Three-digit value that indicates the card type. Type of card to authorize. - 001 Visa - 002 Mastercard - 003 Amex - 004 Discover - 005: Diners Club - 007: JCB - 024: Maestro (UK Domestic) - 039 Encoded account number - 042: Maestro (International) For the complete list of possible values, see `card_type` field description in the [Credit Card Services Using the SCMP API Guide.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
24
24
|
attr_accessor :type
|
25
25
|
|
26
|
-
# Confidence level of the tokenization. This value is assigned by the token service provider. **Note** This field is supported only for **
|
26
|
+
# Confidence level of the tokenization. This value is assigned by the token service provider. **Note** This field is supported only for **Visa Platform Connect** and **FDC Nashville Global**.
|
27
27
|
attr_accessor :assurance_level
|
28
28
|
|
29
29
|
# One of two possible meanings: - The two-digit month in which a token expires. - The two-digit month in which a card expires. Format: `MM` Possible values: `01` through `12` **NOTE** The meaning of this field is dependent on the payment processor that is returning the value in an authorization reply. Please see the processor-specific details below. #### Barclays and Streamline For Maestro (UK Domestic) and Maestro (International) cards on Barclays and Streamline, this must be a valid value (`01` through `12`) 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 (`card_type=039`), if there is no expiration date on the card, use `12`.\\ **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Samsung Pay and Apple Pay Month in which the token expires. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. For processor-specific information, see the `customer_cc_expmo` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
@@ -32,7 +32,7 @@ module CyberSource
|
|
32
32
|
# One of two possible meanings: - The four-digit year in which a token expires. - The four-digit year in which a card expires. Format: `YYYY` Possible values: `1900` through `3000` Data type: Non-negative integer **NOTE** The meaning of this field is dependent on the payment processor that is returning the value in an authorization reply. Please see the processor-specific details below. #### 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 (`card_ type=039`), if there is no expiration date on the card, use `2021`. #### FDC Nashville Global and FDMS South You can send in 2 digits or 4 digits. When you send in 2 digits, they must be the last 2 digits of the year. #### Samsung Pay and Apple Pay Year in which the token expires. CyberSource includes this field in the reply message when it decrypts the payment blob for the tokenized transaction. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. For processor-specific information, see the `customer_cc_expyr` or `token_expiration_year` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
33
33
|
attr_accessor :expiration_year
|
34
34
|
|
35
|
-
# Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. **Note** This field is supported only for **
|
35
|
+
# Value that identifies your business and indicates that the cardholder’s account number is tokenized. This value is assigned by the token service provider and is unique within the token service provider’s database. **Note** This field is supported only for **Visa Platform Connect** and **FDC Nashville Global**.
|
36
36
|
attr_accessor :requestor_id
|
37
37
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb
CHANGED
@@ -20,7 +20,7 @@ module CyberSource
|
|
20
20
|
# Authorization code. Returned only when the processor returns this value.
|
21
21
|
attr_accessor :approval_code
|
22
22
|
|
23
|
-
# Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. #### Cielo For Cielo, this value is the non-sequential unit (NSU) and is supported for all transactions. The value is generated by Cielo or the issuing bank. #### Comercio Latino For Comercio Latino, this value is the proof of sale or non-sequential unit (NSU) number generated by the acquirers Cielo and Rede, or the issuing bank. ####
|
23
|
+
# Network transaction identifier (TID). You can use this value to identify a specific transaction when you are discussing the transaction with your processor. Not all processors provide this value. #### Cielo For Cielo, this value is the non-sequential unit (NSU) and is supported for all transactions. The value is generated by Cielo or the issuing bank. #### Comercio Latino For Comercio Latino, this value is the proof of sale or non-sequential unit (NSU) number generated by the acquirers Cielo and Rede, or the issuing bank. #### Visa Platform Connect and GPN For details about this value for Visa Platform Connect and GPN, see \"Network Transaction Identifiers\" in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
24
24
|
attr_accessor :transaction_id
|
25
25
|
|
26
26
|
# The description for this field is not available.
|
@@ -41,7 +41,7 @@ module CyberSource
|
|
41
41
|
# Processor-defined response category code. The associated detail error code is in the `responseCode` field of the service you requested. This field is supported only for: - Japanese issuers - Domestic transactions in Japan - Comercio Latino—processor transaction ID required for troubleshooting **Maximum length for processors**: - Comercio Latino: 32 - All other processors: 3
|
42
42
|
attr_accessor :response_category_code
|
43
43
|
|
44
|
-
# Name of the Japanese acquirer that processed the transaction. Returned only for
|
44
|
+
# Name of the Japanese acquirer that processed the transaction. Returned only for JCN Gateway. Please contact the CyberSource Japan Support Group for more information.
|
45
45
|
attr_accessor :forwarded_acquirer_code
|
46
46
|
|
47
47
|
attr_accessor :avs
|
@@ -58,13 +58,13 @@ module CyberSource
|
|
58
58
|
|
59
59
|
attr_accessor :consumer_authentication_response
|
60
60
|
|
61
|
-
# This field is returned only for **American Express Direct** and **
|
61
|
+
# This field is returned only for **American Express Direct** and **Visa Platform Connect**. #### American Express Direct System trace audit number (STAN). This value identifies the transaction and is useful when investigating a chargeback dispute. #### Visa Platform Connect System trace number that must be printed on the customer’s receipt. For details, see `receipt_number` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
62
62
|
attr_accessor :system_trace_audit_number
|
63
63
|
|
64
64
|
# Visa-generated reference number that identifies a card-present transaction for which you provided one of the following: - Visa primary account number (PAN) - Visa-generated token for a PAN This reference number serves as a link to the cardholder account and to all transactions for that account.
|
65
65
|
attr_accessor :payment_account_reference_number
|
66
66
|
|
67
|
-
# Transaction integrity classification provided by Mastercard. This value specifies Mastercard’s evaluation of the transaction’s safety and security. This field is returned only for **
|
67
|
+
# Transaction integrity classification provided by Mastercard. This value specifies Mastercard’s evaluation of the transaction’s safety and security. This field is returned only for **Visa Platform Connect**. For card-present transactions, possible values: - `A1`: EMV or token in a secure, trusted environment - `B1`: EMV or chip equivalent - `C1`: Magnetic stripe - `E1`: Key entered - `U0`: Unclassified For card-not-present transactions, possible values: - `A2`: Digital transactions - `B2`: Authenticated checkout - `C2`: Transaction validation - `D2`: Enhanced data - `E2`: Generic messaging - `U0`: Unclassified For information about these values, contact Mastercard or your acquirer. #### Visa Platform Connect The value for this field corresponds to the following data in the TC 33 capture file,<sup>1</sup>: - Record: CP01 TCR6 - Position: 136-137 - Field: Mastercard Transaction Integrity Classification <sup>1</sup> The TC 33 Capture file contains information about the purchases and refunds that a merchant submits to CyberSource. Visa Platform Connect creates the TC 33 Capture file at the end of the day and sends it to the merchant’s acquirer, who uses this information to facilitate end-of-day clearing processing with payment networks.
|
68
68
|
attr_accessor :transaction_integrity_code
|
69
69
|
|
70
70
|
# Referral response number for a verbal authorization with FDMS Nashville when using an American Express card. Give this number to American Express when you call them for the verbal authorization.
|
@@ -73,13 +73,13 @@ module CyberSource
|
|
73
73
|
# Transaction identifier that CyberSource generates. You have the option of printing the sales slip number on the receipt. This field is supported only for **JCN Gateway**.
|
74
74
|
attr_accessor :sales_slip_number
|
75
75
|
|
76
|
-
# Mastercard service that was used for the transaction. Mastercard provides this value to CyberSource. Possible value: - 53: Mastercard card-on-file token service ####
|
76
|
+
# Mastercard service that was used for the transaction. Mastercard provides this value to CyberSource. Possible value: - 53: Mastercard card-on-file token service #### Visa Platform Connect The value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR6 - Position: 133-134 - Field: Mastercard Merchant on-behalf service. **Note** This field is returned only for Visa Platform Connect.
|
77
77
|
attr_accessor :master_card_service_code
|
78
78
|
|
79
|
-
# Result of the Mastercard card-on-file token service. Mastercard provides this value to CyberSource. Possible values: - `C`: Service completed successfully. - `F`: One of the following: - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 81 for an authorization or authorization reversal. - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 01 for a tokenized request. - Token requestor ID is missing or formatted incorrectly. - `I`: One of the following: - Invalid token requestor ID. - Suspended or deactivated token. - Invalid token (not in mapping table). - `T`: Invalid combination of token requestor ID and token. - `U`: Expired token. - `W`: Primary account number (PAN) listed in electronic warning bulletin. **Note** This field is returned only for **
|
79
|
+
# Result of the Mastercard card-on-file token service. Mastercard provides this value to CyberSource. Possible values: - `C`: Service completed successfully. - `F`: One of the following: - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 81 for an authorization or authorization reversal. - Incorrect Mastercard POS entry mode. The Mastercard POS entry mode should be 01 for a tokenized request. - Token requestor ID is missing or formatted incorrectly. - `I`: One of the following: - Invalid token requestor ID. - Suspended or deactivated token. - Invalid token (not in mapping table). - `T`: Invalid combination of token requestor ID and token. - `U`: Expired token. - `W`: Primary account number (PAN) listed in electronic warning bulletin. **Note** This field is returned only for **Visa Platform Connect**.
|
80
80
|
attr_accessor :master_card_service_reply_code
|
81
81
|
|
82
|
-
# Type of authentication for which the transaction qualifies as determined by the Mastercard authentication service, which confirms the identity of the cardholder. Mastercard provides this value to CyberSource. Possible values: - `1`: Transaction qualifies for Mastercard authentication type 1. - `2`: Transaction qualifies for Mastercard authentication type 2. ####
|
82
|
+
# Type of authentication for which the transaction qualifies as determined by the Mastercard authentication service, which confirms the identity of the cardholder. Mastercard provides this value to CyberSource. Possible values: - `1`: Transaction qualifies for Mastercard authentication type 1. - `2`: Transaction qualifies for Mastercard authentication type 2. #### Visa Platform Connect The value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR6 - Position: 132 - Field: Mastercard Member Defined service. **Note** This field is returned only for Visa Platform Connect.
|
83
83
|
attr_accessor :master_card_authentication_type
|
84
84
|
|
85
85
|
# Name of the Processor.
|
@@ -57,6 +57,10 @@ 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 !@code.nil? && @code.to_s.length > 1
|
61
|
+
invalid_properties.push('invalid value for "code", the character length must be smaller than or equal to 1.')
|
62
|
+
end
|
63
|
+
|
60
64
|
if !@code_raw.nil? && @code_raw.to_s.length > 10
|
61
65
|
invalid_properties.push('invalid value for "code_raw", the character length must be smaller than or equal to 10.')
|
62
66
|
end
|
@@ -67,10 +71,21 @@ module CyberSource
|
|
67
71
|
# Check to see if the all the properties in the model are valid
|
68
72
|
# @return true if the model is valid
|
69
73
|
def valid?
|
74
|
+
return false if !@code.nil? && @code.to_s.length > 1
|
70
75
|
return false if !@code_raw.nil? && @code_raw.to_s.length > 10
|
71
76
|
true
|
72
77
|
end
|
73
78
|
|
79
|
+
# Custom attribute writer method with validation
|
80
|
+
# @param [Object] code Value to be assigned
|
81
|
+
def code=(code)
|
82
|
+
if !code.nil? && code.to_s.length > 1
|
83
|
+
fail ArgumentError, 'invalid value for "code", the character length must be smaller than or equal to 1.'
|
84
|
+
end
|
85
|
+
|
86
|
+
@code = code
|
87
|
+
end
|
88
|
+
|
74
89
|
# Custom attribute writer method with validation
|
75
90
|
# @param [Object] code_raw Value to be assigned
|
76
91
|
def code_raw=(code_raw)
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class PtsV2PaymentsPost201ResponseProcessorInformationCardVerification
|
17
|
-
# CVN result code. For details, see the `auth_cv_result` 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/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
17
|
+
# CVN result code. For details, see the `auth_cv_result` reply 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/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
18
18
|
attr_accessor :result_code
|
19
19
|
|
20
20
|
# CVN result code sent directly from the processor. Returned only when the processor returns this value. **Important** Do not use this field to evaluate the result of card verification. Use for debugging purposes only.
|
@@ -17,7 +17,7 @@ module CyberSource
|
|
17
17
|
# Reason the recurring payment transaction was declined. For some processors, this field is used only for Mastercard. For other processors, this field is used for Visa and Mastercard. And for other processors, this field is not implemented. Possible values: - `00`: Response not provided. - `01`: New account information is available. Obtain the new information. - `02`: Try again later. - `03`: Do not try again. Obtain another type of payment from the customer. - `04`: Problem with a token or a partial shipment indicator. - `21`: Recurring payment cancellation service. - `99`: An unknown value was returned from the processor. For processor-specific information, see the `auth_merchant_advice_code` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
18
18
|
attr_accessor :code
|
19
19
|
|
20
|
-
# Raw merchant advice code sent directly from the processor. This field is used only for Mastercard. ####
|
20
|
+
# Raw merchant advice code sent directly from the processor. This field is used only for Mastercard. #### Visa Platform Connect The value for this field corresponds to the following data in the TC 33 capture file1: - Record: CP01 TCR7 - Position: 96-99 - Field: Response Data-Merchant Advice Code For processor-specific information, see the `auth_merchant_advice_code_raw` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
21
21
|
attr_accessor :code_raw
|
22
22
|
|
23
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -28,28 +28,6 @@ module CyberSource
|
|
28
28
|
|
29
29
|
attr_accessor :details
|
30
30
|
|
31
|
-
class EnumAttributeValidator
|
32
|
-
attr_reader :datatype
|
33
|
-
attr_reader :allowable_values
|
34
|
-
|
35
|
-
def initialize(datatype, allowable_values)
|
36
|
-
@allowable_values = allowable_values.map do |value|
|
37
|
-
case datatype.to_s
|
38
|
-
when /Integer/i
|
39
|
-
value.to_i
|
40
|
-
when /Float/i
|
41
|
-
value.to_f
|
42
|
-
else
|
43
|
-
value
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
def valid?(value)
|
49
|
-
!value || allowable_values.include?(value)
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
54
32
|
def self.attribute_map
|
55
33
|
{
|
@@ -113,33 +91,9 @@ module CyberSource
|
|
113
91
|
# Check to see if the all the properties in the model are valid
|
114
92
|
# @return true if the model is valid
|
115
93
|
def valid?
|
116
|
-
status_validator = EnumAttributeValidator.new('String', ['INVALID_REQUEST'])
|
117
|
-
return false unless status_validator.valid?(@status)
|
118
|
-
reason_validator = EnumAttributeValidator.new('String', ['MISSING_FIELD', 'INVALID_DATA', 'DUPLICATE_REQUEST', 'INVALID_CARD', 'CARD_TYPE_NOT_ACCEPTED', 'INVALID_MERCHANT_CONFIGURATION', 'PROCESSOR_UNAVAILABLE', 'INVALID_AMOUNT', 'INVALID_CARD_TYPE', 'DEBIT_CARD_USEAGE_EXCEEDD_LIMIT'])
|
119
|
-
return false unless reason_validator.valid?(@reason)
|
120
94
|
true
|
121
95
|
end
|
122
96
|
|
123
|
-
# Custom attribute writer method checking allowed values (enum).
|
124
|
-
# @param [Object] status Object to be assigned
|
125
|
-
def status=(status)
|
126
|
-
validator = EnumAttributeValidator.new('String', ['INVALID_REQUEST'])
|
127
|
-
unless validator.valid?(status)
|
128
|
-
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
129
|
-
end
|
130
|
-
@status = status
|
131
|
-
end
|
132
|
-
|
133
|
-
# Custom attribute writer method checking allowed values (enum).
|
134
|
-
# @param [Object] reason Object to be assigned
|
135
|
-
def reason=(reason)
|
136
|
-
validator = EnumAttributeValidator.new('String', ['MISSING_FIELD', 'INVALID_DATA', 'DUPLICATE_REQUEST', 'INVALID_CARD', 'CARD_TYPE_NOT_ACCEPTED', 'INVALID_MERCHANT_CONFIGURATION', 'PROCESSOR_UNAVAILABLE', 'INVALID_AMOUNT', 'INVALID_CARD_TYPE', 'DEBIT_CARD_USEAGE_EXCEEDD_LIMIT'])
|
137
|
-
unless validator.valid?(reason)
|
138
|
-
fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.'
|
139
|
-
end
|
140
|
-
@reason = reason
|
141
|
-
end
|
142
|
-
|
143
97
|
# Checks equality by comparing each attribute.
|
144
98
|
# @param [Object] Object to be compared
|
145
99
|
def ==(o)
|
@@ -20,34 +20,12 @@ module CyberSource
|
|
20
20
|
# The status of the submitted transaction. Possible values: - SERVER_ERROR
|
21
21
|
attr_accessor :status
|
22
22
|
|
23
|
-
# The reason of the status. Possible values: - SYSTEM_ERROR - SERVER_TIMEOUT - SERVICE_TIMEOUT - INVALID_OR_MISSING_CONFIG
|
23
|
+
# The reason of the status. Possible values: - SYSTEM_ERROR - SERVER_TIMEOUT - SERVICE_TIMEOUT - INVALID_OR_MISSING_CONFIG
|
24
24
|
attr_accessor :reason
|
25
25
|
|
26
26
|
# The detail message related to the status and reason listed above.
|
27
27
|
attr_accessor :message
|
28
28
|
|
29
|
-
class EnumAttributeValidator
|
30
|
-
attr_reader :datatype
|
31
|
-
attr_reader :allowable_values
|
32
|
-
|
33
|
-
def initialize(datatype, allowable_values)
|
34
|
-
@allowable_values = allowable_values.map do |value|
|
35
|
-
case datatype.to_s
|
36
|
-
when /Integer/i
|
37
|
-
value.to_i
|
38
|
-
when /Float/i
|
39
|
-
value.to_f
|
40
|
-
else
|
41
|
-
value
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
def valid?(value)
|
47
|
-
!value || allowable_values.include?(value)
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
30
|
def self.attribute_map
|
53
31
|
{
|
@@ -103,33 +81,9 @@ module CyberSource
|
|
103
81
|
# Check to see if the all the properties in the model are valid
|
104
82
|
# @return true if the model is valid
|
105
83
|
def valid?
|
106
|
-
status_validator = EnumAttributeValidator.new('String', ['SERVER_ERROR'])
|
107
|
-
return false unless status_validator.valid?(@status)
|
108
|
-
reason_validator = EnumAttributeValidator.new('String', ['SYSTEM_ERROR', 'SERVER_TIMEOUT', 'SERVICE_TIMEOUT', 'INVALID_OR_MISSING_CONFIG', 'PROCESSOR_TIMEOUT'])
|
109
|
-
return false unless reason_validator.valid?(@reason)
|
110
84
|
true
|
111
85
|
end
|
112
86
|
|
113
|
-
# Custom attribute writer method checking allowed values (enum).
|
114
|
-
# @param [Object] status Object to be assigned
|
115
|
-
def status=(status)
|
116
|
-
validator = EnumAttributeValidator.new('String', ['SERVER_ERROR'])
|
117
|
-
unless validator.valid?(status)
|
118
|
-
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
119
|
-
end
|
120
|
-
@status = status
|
121
|
-
end
|
122
|
-
|
123
|
-
# Custom attribute writer method checking allowed values (enum).
|
124
|
-
# @param [Object] reason Object to be assigned
|
125
|
-
def reason=(reason)
|
126
|
-
validator = EnumAttributeValidator.new('String', ['SYSTEM_ERROR', 'SERVER_TIMEOUT', 'SERVICE_TIMEOUT', 'INVALID_OR_MISSING_CONFIG', 'PROCESSOR_TIMEOUT'])
|
127
|
-
unless validator.valid?(reason)
|
128
|
-
fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.'
|
129
|
-
end
|
130
|
-
@reason = reason
|
131
|
-
end
|
132
|
-
|
133
87
|
# Checks equality by comparing each attribute.
|
134
88
|
# @param [Object] Object to be compared
|
135
89
|
def ==(o)
|
@@ -36,28 +36,6 @@ module CyberSource
|
|
36
36
|
|
37
37
|
attr_accessor :order_information
|
38
38
|
|
39
|
-
class EnumAttributeValidator
|
40
|
-
attr_reader :datatype
|
41
|
-
attr_reader :allowable_values
|
42
|
-
|
43
|
-
def initialize(datatype, allowable_values)
|
44
|
-
@allowable_values = allowable_values.map do |value|
|
45
|
-
case datatype.to_s
|
46
|
-
when /Integer/i
|
47
|
-
value.to_i
|
48
|
-
when /Float/i
|
49
|
-
value.to_f
|
50
|
-
else
|
51
|
-
value
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
def valid?(value)
|
57
|
-
!value || allowable_values.include?(value)
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
39
|
# Attribute mapping from ruby-style variable name to JSON key.
|
62
40
|
def self.attribute_map
|
63
41
|
{
|
@@ -152,8 +130,6 @@ module CyberSource
|
|
152
130
|
# @return true if the model is valid
|
153
131
|
def valid?
|
154
132
|
return false if !@id.nil? && @id.to_s.length > 26
|
155
|
-
status_validator = EnumAttributeValidator.new('String', ['PENDING'])
|
156
|
-
return false unless status_validator.valid?(@status)
|
157
133
|
return false if !@reconciliation_id.nil? && @reconciliation_id.to_s.length > 60
|
158
134
|
true
|
159
135
|
end
|
@@ -168,16 +144,6 @@ module CyberSource
|
|
168
144
|
@id = id
|
169
145
|
end
|
170
146
|
|
171
|
-
# Custom attribute writer method checking allowed values (enum).
|
172
|
-
# @param [Object] status Object to be assigned
|
173
|
-
def status=(status)
|
174
|
-
validator = EnumAttributeValidator.new('String', ['PENDING'])
|
175
|
-
unless validator.valid?(status)
|
176
|
-
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
177
|
-
end
|
178
|
-
@status = status
|
179
|
-
end
|
180
|
-
|
181
147
|
# Custom attribute writer method with validation
|
182
148
|
# @param [Object] reconciliation_id Value to be assigned
|
183
149
|
def reconciliation_id=(reconciliation_id)
|
@@ -17,7 +17,7 @@ module CyberSource
|
|
17
17
|
# Processor transaction ID. This value identifies the transaction on a host system. This value is supported only for Moneris. It contains this information: - Terminal used to process the transaction - Shift during which the transaction took place - Batch number - Transaction number within the batch You must store this value. If you give the customer a receipt, display this value on the receipt. Example For the value 66012345001069003: - Terminal ID = 66012345 - Shift number = 001 - Batch number = 069 - Transaction number = 003
|
18
18
|
attr_accessor :transaction_id
|
19
19
|
|
20
|
-
# Name of the Japanese acquirer that processed the transaction. Returned only for
|
20
|
+
# Name of the Japanese acquirer that processed the transaction. Returned only for JCN Gateway. Please contact the CyberSource Japan Support Group for more information.
|
21
21
|
attr_accessor :forwarded_acquirer_code
|
22
22
|
|
23
23
|
# Identifier that was assigned to you by your acquirer. This value must be printed on the receipt. This field is supported only on **American Express Direct**, **FDC Nashville Global**, and **SIX**.
|
@@ -28,28 +28,6 @@ module CyberSource
|
|
28
28
|
|
29
29
|
attr_accessor :details
|
30
30
|
|
31
|
-
class EnumAttributeValidator
|
32
|
-
attr_reader :datatype
|
33
|
-
attr_reader :allowable_values
|
34
|
-
|
35
|
-
def initialize(datatype, allowable_values)
|
36
|
-
@allowable_values = allowable_values.map do |value|
|
37
|
-
case datatype.to_s
|
38
|
-
when /Integer/i
|
39
|
-
value.to_i
|
40
|
-
when /Float/i
|
41
|
-
value.to_f
|
42
|
-
else
|
43
|
-
value
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
def valid?(value)
|
49
|
-
!value || allowable_values.include?(value)
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
54
32
|
def self.attribute_map
|
55
33
|
{
|
@@ -113,33 +91,9 @@ module CyberSource
|
|
113
91
|
# Check to see if the all the properties in the model are valid
|
114
92
|
# @return true if the model is valid
|
115
93
|
def valid?
|
116
|
-
status_validator = EnumAttributeValidator.new('String', ['INVALID_REQUEST'])
|
117
|
-
return false unless status_validator.valid?(@status)
|
118
|
-
reason_validator = EnumAttributeValidator.new('String', ['MISSING_FIELD', 'INVALID_DATA', 'DUPLICATE_REQUEST', 'INVALID_CARD', 'INVALID_MERCHANT_CONFIGURATION', 'INVALID_AMOUNT', 'CAPTURE_ALREADY_VOIDED', 'ACCOUNT_NOT_ALLOWED_CREDIT'])
|
119
|
-
return false unless reason_validator.valid?(@reason)
|
120
94
|
true
|
121
95
|
end
|
122
96
|
|
123
|
-
# Custom attribute writer method checking allowed values (enum).
|
124
|
-
# @param [Object] status Object to be assigned
|
125
|
-
def status=(status)
|
126
|
-
validator = EnumAttributeValidator.new('String', ['INVALID_REQUEST'])
|
127
|
-
unless validator.valid?(status)
|
128
|
-
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
129
|
-
end
|
130
|
-
@status = status
|
131
|
-
end
|
132
|
-
|
133
|
-
# Custom attribute writer method checking allowed values (enum).
|
134
|
-
# @param [Object] reason Object to be assigned
|
135
|
-
def reason=(reason)
|
136
|
-
validator = EnumAttributeValidator.new('String', ['MISSING_FIELD', 'INVALID_DATA', 'DUPLICATE_REQUEST', 'INVALID_CARD', 'INVALID_MERCHANT_CONFIGURATION', 'INVALID_AMOUNT', 'CAPTURE_ALREADY_VOIDED', 'ACCOUNT_NOT_ALLOWED_CREDIT'])
|
137
|
-
unless validator.valid?(reason)
|
138
|
-
fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.'
|
139
|
-
end
|
140
|
-
@reason = reason
|
141
|
-
end
|
142
|
-
|
143
97
|
# Checks equality by comparing each attribute.
|
144
98
|
# @param [Object] Object to be compared
|
145
99
|
def ==(o)
|
@@ -40,28 +40,6 @@ module CyberSource
|
|
40
40
|
|
41
41
|
attr_accessor :point_of_sale_information
|
42
42
|
|
43
|
-
class EnumAttributeValidator
|
44
|
-
attr_reader :datatype
|
45
|
-
attr_reader :allowable_values
|
46
|
-
|
47
|
-
def initialize(datatype, allowable_values)
|
48
|
-
@allowable_values = allowable_values.map do |value|
|
49
|
-
case datatype.to_s
|
50
|
-
when /Integer/i
|
51
|
-
value.to_i
|
52
|
-
when /Float/i
|
53
|
-
value.to_f
|
54
|
-
else
|
55
|
-
value
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
def valid?(value)
|
61
|
-
!value || allowable_values.include?(value)
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
66
44
|
def self.attribute_map
|
67
45
|
{
|
@@ -168,8 +146,6 @@ module CyberSource
|
|
168
146
|
# @return true if the model is valid
|
169
147
|
def valid?
|
170
148
|
return false if !@id.nil? && @id.to_s.length > 26
|
171
|
-
status_validator = EnumAttributeValidator.new('String', ['REVERSED'])
|
172
|
-
return false unless status_validator.valid?(@status)
|
173
149
|
return false if !@reconciliation_id.nil? && @reconciliation_id.to_s.length > 60
|
174
150
|
true
|
175
151
|
end
|
@@ -184,16 +160,6 @@ module CyberSource
|
|
184
160
|
@id = id
|
185
161
|
end
|
186
162
|
|
187
|
-
# Custom attribute writer method checking allowed values (enum).
|
188
|
-
# @param [Object] status Object to be assigned
|
189
|
-
def status=(status)
|
190
|
-
validator = EnumAttributeValidator.new('String', ['REVERSED'])
|
191
|
-
unless validator.valid?(status)
|
192
|
-
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
193
|
-
end
|
194
|
-
@status = status
|
195
|
-
end
|
196
|
-
|
197
163
|
# Custom attribute writer method with validation
|
198
164
|
# @param [Object] reconciliation_id Value to be assigned
|
199
165
|
def reconciliation_id=(reconciliation_id)
|