cybersource_rest_client 0.0.57 → 0.0.59
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/core/Authorization.rb +1 -1
- data/lib/cybersource_rest_client/api/batches_api.rb +8 -0
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +9 -9
- data/lib/cybersource_rest_client/api/token_api.rb +12 -8
- data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations.rb → card_processing_config.rb} +3 -3
- data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations_common.rb → card_processing_config_common.rb} +3 -3
- data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations_common_acquirer.rb → card_processing_config_common_acquirer.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations_common_currencies.rb → card_processing_config_common_currencies.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations_common_currencies_1.rb → card_processing_config_common_currencies_1.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_products_card_processing_config_common_merchant_descriptor_info.rb → card_processing_config_common_merchant_descriptor_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations_common_payment_types.rb → card_processing_config_common_payment_types.rb} +2 -2
- data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations_common_processors.rb → card_processing_config_common_processors.rb} +4 -4
- data/lib/cybersource_rest_client/models/{payments_products_virtual_terminal_configuration_information_configurations.rb → card_processing_config_features.rb} +3 -3
- data/lib/cybersource_rest_client/models/{payment_products_card_processing_config_card_not_present.rb → card_processing_config_features_card_not_present.rb} +3 -3
- data/lib/cybersource_rest_client/models/{payment_products_card_processing_config_card_not_present_installment.rb → card_processing_config_features_card_not_present_installment.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_products_card_processing_config_card_not_present_payouts.rb → card_processing_config_features_card_not_present_payouts.rb} +2 -2
- data/lib/cybersource_rest_client/models/{payment_products_card_processing_config_features_card_not_present_payouts_currencies.rb → card_processing_config_features_card_not_present_payouts_currencies.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_products_card_processing_config_card_not_present_processors.rb → card_processing_config_features_card_not_present_processors.rb} +2 -2
- data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations_features_card_present.rb → card_processing_config_features_card_present.rb} +2 -2
- data/lib/cybersource_rest_client/models/{payment_products_card_processing_config_card_present_processors.rb → card_processing_config_features_card_present_processors.rb} +1 -1
- data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_bundled_decision_manager_case_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_credit_request.rb +21 -1
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_configuration_information_configurations.rb → dm_config.rb} +5 -5
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_configuration_information_configurations_organization.rb → dm_config_organization.rb} +1 -1
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_configuration_information_configurations_portfolio_controls.rb → dm_config_portfolio_controls.rb} +1 -1
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_configuration_information_configurations_processing_options.rb → dm_config_processing_options.rb} +1 -1
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_configuration_information_configurations_thirdparty.rb → dm_config_thirdparty.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_configuration_information_configurations_thirdparty_provider.rb → dm_config_thirdparty_provider.rb} +8 -8
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_signifyd.rb → dm_config_thirdparty_provider_accurint.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_accurint_creds.rb → dm_config_thirdparty_provider_accurint_credentials.rb} +1 -1
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_configuration_information_configurations_thirdparty_provider_ekata.rb → dm_config_thirdparty_provider_credilink.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_credilink_creds.rb → dm_config_thirdparty_provider_credilink_credentials.rb} +1 -1
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_emailage.rb → dm_config_thirdparty_provider_ekata.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_ekata_creds.rb → dm_config_thirdparty_provider_ekata_credentials.rb} +1 -1
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_credilink.rb → dm_config_thirdparty_provider_emailage.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_perseuss.rb → dm_config_thirdparty_provider_perseuss.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_accurint.rb → dm_config_thirdparty_provider_signifyd.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_signifyd_creds.rb → dm_config_thirdparty_provider_signifyd_credentials.rb} +1 -1
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_targus.rb → dm_config_thirdparty_provider_targus.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_products_decision_manager_config_thirdparty_provider_targus_creds.rb → dm_config_thirdparty_provider_targus_credentials.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_e_check_configuration_information_configurations.rb → e_check_config.rb} +4 -4
- data/lib/cybersource_rest_client/models/{payments_products_e_check_configuration_information_configurations_common.rb → e_check_config_common.rb} +3 -3
- data/lib/cybersource_rest_client/models/{payments_products_e_check_configuration_information_configurations_common_internal_only.rb → e_check_config_common_internal_only.rb} +2 -2
- data/lib/cybersource_rest_client/models/{payments_products_e_check_config_common_internal_only_processors.rb → e_check_config_common_internal_only_processors.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_e_check_configuration_information_configurations_common_processors.rb → e_check_config_common_processors.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_e_check_configuration_information_configurations_features.rb → e_check_config_features.rb} +2 -2
- data/lib/cybersource_rest_client/models/{payment_products_e_check_config_account_validation_service.rb → e_check_config_features_account_validation_service.rb} +3 -3
- data/lib/cybersource_rest_client/models/{payment_products_e_check_config_account_validation_service_internal_only.rb → e_check_config_features_account_validation_service_internal_only.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_products_e_check_config_account_validation_service_processors.rb → e_check_config_features_account_validation_service_processors.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_e_check_configuration_information_configurations_underwriting.rb → e_check_config_underwriting.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_1_setups_payments.rb +15 -5
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get404_response.rb +1 -1
- data/lib/cybersource_rest_client/models/merchant_initiated_transaction_object.rb +242 -0
- data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +1 -1
- data/lib/cybersource_rest_client/models/patch_instrument_identifier_request.rb +8 -8
- data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_payer_authentication_configuration_information_configurations.rb → payer_auth_config.rb} +2 -2
- data/lib/cybersource_rest_client/models/{payments_products_payer_authentication_configuration_information_configurations_card_types.rb → payer_auth_config_card_types.rb} +9 -9
- data/lib/cybersource_rest_client/models/{payments_products_payer_authentication_configuration_information_configurations_card_types_cb.rb → payer_auth_config_card_types_cb.rb} +2 -2
- data/lib/cybersource_rest_client/models/{payment_products_payer_authentication_config_card_types_j_cbj_secure.rb → payer_auth_config_card_types_j_cbj_secure.rb} +2 -2
- data/lib/cybersource_rest_client/models/{payment_products_payer_authentication_config_card_types_verified.rb → payer_auth_config_card_types_verified_by_visa.rb} +2 -2
- data/lib/cybersource_rest_client/models/{payment_products_payer_authentication_config_card_types_verified_currencies.rb → payer_auth_config_card_types_verified_by_visa_currencies.rb} +1 -1
- data/lib/cybersource_rest_client/models/payments_products.rb +15 -5
- data/lib/cybersource_rest_client/models/payments_products_card_processing_configuration_information.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_products_e_check_configuration_information.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_products_payer_authentication_configuration_information.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_products_secure_acceptance_configuration_information.rb +1 -1
- data/lib/cybersource_rest_client/models/payments_products_virtual_terminal_configuration_information.rb +1 -1
- data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_consumer_authentication_information_issuer_information.rb → payments_strong_auth_issuer_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +1 -1
- data/lib/cybersource_rest_client/models/post_instrument_identifier_enrollment_request.rb +8 -8
- data/lib/cybersource_rest_client/models/post_instrument_identifier_request.rb +8 -8
- data/lib/cybersource_rest_client/models/post_payment_credentials_request.rb +191 -0
- data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +16 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_embedded_actions_capture.rb +1 -1
- 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_insights_information_response_insights.rb +22 -5
- 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_reversals_post201_response_issuer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_refund_options.rb +191 -0
- data/lib/cybersource_rest_client/models/ptsv2credits_recipient_information.rb +214 -0
- data/lib/cybersource_rest_client/models/{riskv1authenticationresults_order_information_line_items.rb → ptsv2credits_sender_information.rb} +78 -43
- data/lib/cybersource_rest_client/models/ptsv2credits_sender_information_account.rb +214 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_acquirer_information.rb +22 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +12 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information.rb +35 -5
- data/lib/cybersource_rest_client/models/risk_products_decision_manager_configuration_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information.rb +5 -17
- data/lib/cybersource_rest_client/models/riskv1decisions_acquirer_information.rb +248 -0
- data/lib/cybersource_rest_client/models/{payments_products_secure_acceptance_configuration_information_configurations.rb → sa_config.rb} +7 -7
- data/lib/cybersource_rest_client/models/{payments_products_secure_acceptance_configuration_information_configurations_checkout.rb → sa_config_checkout.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_secure_acceptance_configuration_information_configurations_contact_information.rb → sa_config_contact_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_secure_acceptance_configuration_information_configurations_notifications.rb → sa_config_notifications.rb} +3 -3
- data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance_config_notifications_customer_notifications.rb → sa_config_notifications_customer_notifications.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance_config_notifications_merchant_notifications.rb → sa_config_notifications_merchant_notifications.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_secure_acceptance_configuration_information_configurations_payment_methods.rb → sa_config_payment_methods.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_secure_acceptance_configuration_information_configurations_payment_types.rb → sa_config_payment_types.rb} +2 -2
- data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance_config_payment_types_card_types.rb → sa_config_payment_types_card_types.rb} +5 -5
- data/lib/cybersource_rest_client/models/{payment_products_secure_acceptance_config_payment_types_card_types_discover.rb → sa_config_payment_types_card_types_discover.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payments_products_secure_acceptance_configuration_information_configurations_service.rb → sa_config_service.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_authorization_options.rb → tms_authorization_options.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_authorization_options_initiator.rb → tms_authorization_options_initiator.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_merchant_initiated_transaction.rb → tms_authorization_options_initiator_merchant_initiated_transaction.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier.rb → tms_embedded_instrument_identifier.rb} +9 -9
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier__links.rb → tms_embedded_instrument_identifier__links.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_payment_instruments.rb → tms_embedded_instrument_identifier__links_payment_instruments.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier__links_self.rb → tms_embedded_instrument_identifier__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bank_account.rb → tms_embedded_instrument_identifier_bank_account.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_bill_to.rb → tms_embedded_instrument_identifier_bill_to.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_card.rb → tms_embedded_instrument_identifier_card.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_issuer.rb → tms_embedded_instrument_identifier_issuer.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded_instrument_identifier_metadata.rb → tms_embedded_instrument_identifier_metadata.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_processing_information.rb → tms_embedded_instrument_identifier_processing_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_tokenized_card.rb → tms_embedded_instrument_identifier_tokenized_card.rb} +26 -4
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_tokenized_card_card.rb → tms_embedded_instrument_identifier_tokenized_card_card.rb} +1 -1
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_processing_information.rb → tms_payment_instrument_processing_info.rb} +2 -2
- data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_processing_information_bank_transfer_options.rb → tms_payment_instrument_processing_info_bank_transfer_options.rb} +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument__embedded.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +21 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +28 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +40 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options_initiator.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_capture_options.rb +214 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_recurring_payment_information.rb +197 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_unscheduled_payment_information.rb +191 -0
- data/lib/cybersource_rest_client/models/{payments_products_card_processing_configuration_information_configurations_features.rb → vt_config.rb} +3 -3
- data/lib/cybersource_rest_client/models/{payments_products_virtual_terminal_configuration_information_configurations_card_not_present.rb → vt_config_card_not_present.rb} +3 -3
- data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_config_card_not_present_global_payment_info.rb → vt_config_card_not_present_global_payment_information.rb} +4 -4
- data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_config_card_not_present_global_payment_info_basic_info.rb → vt_config_card_not_present_global_payment_information_basic_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_config_card_not_present_merchant_defined_data_fields.rb → vt_config_card_not_present_global_payment_information_merchant_defined_data_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_config_card_not_present_payment_info.rb → vt_config_card_not_present_global_payment_information_payment_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_config_card_not_present_receipt_info.rb → vt_config_card_not_present_receipt_information.rb} +4 -4
- data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_config_card_not_present_receipt_info_email_receipt.rb → vt_config_card_not_present_receipt_information_email_receipt.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_config_card_not_present_receipt_info_header.rb → vt_config_card_not_present_receipt_information_header.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_products_virtual_terminal_config_card_not_present_receipt_info_order_info.rb → vt_config_card_not_present_receipt_information_order_information.rb} +1 -1
- data/lib/cybersource_rest_client.rb +99 -90
- metadata +127 -118
@@ -0,0 +1,214 @@
|
|
1
|
+
=begin
|
2
|
+
#CyberSource Merged Spec
|
3
|
+
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class Ptsv2creditsSenderInformationAccount
|
17
|
+
# Account number of the sender of the funds. For Gaming Payment of Winnings transactions this is the merchant account number. * Required for Mastercard Payment of Winnings (POW) transactions. * Must contain only ASCII characters in range 32-122. * Must not be greater than 50 characters. * Required for POW on Barclays.
|
18
|
+
attr_accessor :number
|
19
|
+
|
20
|
+
# Source of funds for the sender. For Gaming Payment of Winnings transactions this is the merchant account type. * Required for Mastercard Payment of Winnings (POW) transactions. * Valid values: * 00 - Other * 01 - RTN + Bank Account * 02 - IBAN * 03 - Card Account * 04 - Email * 05 - PhoneNumber * 06 - Bank account number (BAN) + Bank Identification Code (BIC) * 07 - Wallet ID * 08 - Social Network ID
|
21
|
+
attr_accessor :funds_source
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'number' => :'number',
|
27
|
+
:'funds_source' => :'fundsSource'
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
32
|
+
def self.json_map
|
33
|
+
{
|
34
|
+
:'number' => :'number',
|
35
|
+
:'funds_source' => :'funds_source'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
def self.swagger_types
|
41
|
+
{
|
42
|
+
:'number' => :'String',
|
43
|
+
:'funds_source' => :'String'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Initializes the object
|
48
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
49
|
+
def initialize(attributes = {})
|
50
|
+
return unless attributes.is_a?(Hash)
|
51
|
+
|
52
|
+
# convert string to symbol for hash key
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
54
|
+
|
55
|
+
if attributes.has_key?(:'number')
|
56
|
+
self.number = attributes[:'number']
|
57
|
+
end
|
58
|
+
|
59
|
+
if attributes.has_key?(:'fundsSource')
|
60
|
+
self.funds_source = attributes[:'fundsSource']
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
65
|
+
# @return Array for valid properties with the reasons
|
66
|
+
def list_invalid_properties
|
67
|
+
invalid_properties = Array.new
|
68
|
+
invalid_properties
|
69
|
+
end
|
70
|
+
|
71
|
+
# Check to see if the all the properties in the model are valid
|
72
|
+
# @return true if the model is valid
|
73
|
+
def valid?
|
74
|
+
true
|
75
|
+
end
|
76
|
+
|
77
|
+
# Custom attribute writer method with validation
|
78
|
+
# @param [Object] number Value to be assigned
|
79
|
+
def number=(number)
|
80
|
+
@number = number
|
81
|
+
end
|
82
|
+
|
83
|
+
# Custom attribute writer method with validation
|
84
|
+
# @param [Object] funds_source Value to be assigned
|
85
|
+
def funds_source=(funds_source)
|
86
|
+
@funds_source = funds_source
|
87
|
+
end
|
88
|
+
|
89
|
+
# Checks equality by comparing each attribute.
|
90
|
+
# @param [Object] Object to be compared
|
91
|
+
def ==(o)
|
92
|
+
return true if self.equal?(o)
|
93
|
+
self.class == o.class &&
|
94
|
+
number == o.number &&
|
95
|
+
funds_source == o.funds_source
|
96
|
+
end
|
97
|
+
|
98
|
+
# @see the `==` method
|
99
|
+
# @param [Object] Object to be compared
|
100
|
+
def eql?(o)
|
101
|
+
self == o
|
102
|
+
end
|
103
|
+
|
104
|
+
# Calculates hash code according to all attributes.
|
105
|
+
# @return [Fixnum] Hash code
|
106
|
+
def hash
|
107
|
+
[number, funds_source].hash
|
108
|
+
end
|
109
|
+
|
110
|
+
# Builds the object from hash
|
111
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
112
|
+
# @return [Object] Returns the model itself
|
113
|
+
def build_from_hash(attributes)
|
114
|
+
return nil unless attributes.is_a?(Hash)
|
115
|
+
self.class.swagger_types.each_pair do |key, type|
|
116
|
+
if type =~ /\AArray<(.*)>/i
|
117
|
+
# check to ensure the input is an array given that the the attribute
|
118
|
+
# is documented as an array but the input is not
|
119
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
120
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
121
|
+
end
|
122
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
123
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
124
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
125
|
+
end
|
126
|
+
|
127
|
+
self
|
128
|
+
end
|
129
|
+
|
130
|
+
# Deserializes the data based on type
|
131
|
+
# @param string type Data type
|
132
|
+
# @param string value Value to be deserialized
|
133
|
+
# @return [Object] Deserialized data
|
134
|
+
def _deserialize(type, value)
|
135
|
+
case type.to_sym
|
136
|
+
when :DateTime
|
137
|
+
DateTime.parse(value)
|
138
|
+
when :Date
|
139
|
+
Date.parse(value)
|
140
|
+
when :String
|
141
|
+
value.to_s
|
142
|
+
when :Integer
|
143
|
+
value.to_i
|
144
|
+
when :Float
|
145
|
+
value.to_f
|
146
|
+
when :BOOLEAN
|
147
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
148
|
+
true
|
149
|
+
else
|
150
|
+
false
|
151
|
+
end
|
152
|
+
when :Object
|
153
|
+
# generic object (usually a Hash), return directly
|
154
|
+
value
|
155
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
156
|
+
inner_type = Regexp.last_match[:inner_type]
|
157
|
+
value.map { |v| _deserialize(inner_type, v) }
|
158
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
159
|
+
k_type = Regexp.last_match[:k_type]
|
160
|
+
v_type = Regexp.last_match[:v_type]
|
161
|
+
{}.tap do |hash|
|
162
|
+
value.each do |k, v|
|
163
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
else # model
|
167
|
+
temp_model = CyberSource.const_get(type).new
|
168
|
+
temp_model.build_from_hash(value)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
# Returns the string representation of the object
|
173
|
+
# @return [String] String presentation of the object
|
174
|
+
def to_s
|
175
|
+
to_hash.to_s
|
176
|
+
end
|
177
|
+
|
178
|
+
# to_body is an alias to to_hash (backward compatibility)
|
179
|
+
# @return [Hash] Returns the object in the form of hash
|
180
|
+
def to_body
|
181
|
+
to_hash
|
182
|
+
end
|
183
|
+
|
184
|
+
# Returns the object in the form of hash
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
186
|
+
def to_hash
|
187
|
+
hash = {}
|
188
|
+
self.class.attribute_map.each_pair do |attr, param|
|
189
|
+
value = self.send(attr)
|
190
|
+
next if value.nil?
|
191
|
+
hash[param] = _to_hash(value)
|
192
|
+
end
|
193
|
+
hash
|
194
|
+
end
|
195
|
+
|
196
|
+
# Outputs non-array value in the form of hash
|
197
|
+
# For object, use to_hash. Otherwise, just return the value
|
198
|
+
# @param [Object] value Any valid value
|
199
|
+
# @return [Hash] Returns the value in the form of hash
|
200
|
+
def _to_hash(value)
|
201
|
+
if value.is_a?(Array)
|
202
|
+
value.compact.map { |v| _to_hash(v) }
|
203
|
+
elsif value.is_a?(Hash)
|
204
|
+
{}.tap do |hash|
|
205
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
206
|
+
end
|
207
|
+
elsif value.respond_to? :to_hash
|
208
|
+
value.to_hash
|
209
|
+
else
|
210
|
+
value
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
214
|
+
end
|
@@ -26,13 +26,17 @@ module CyberSource
|
|
26
26
|
# Username for the visa directory server that is created when your acquirer sets up your account. This ID might be the same as your merchant ID. the username can be 15 or 23 characters.
|
27
27
|
attr_accessor :merchant_id
|
28
28
|
|
29
|
+
# Acquirer assigned merchant id. Check if your processor supports this field.
|
30
|
+
attr_accessor :acquirer_merchant_id
|
31
|
+
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
33
|
def self.attribute_map
|
31
34
|
{
|
32
35
|
:'acquirer_bin' => :'acquirerBin',
|
33
36
|
:'country' => :'country',
|
34
37
|
:'password' => :'password',
|
35
|
-
:'merchant_id' => :'merchantId'
|
38
|
+
:'merchant_id' => :'merchantId',
|
39
|
+
:'acquirer_merchant_id' => :'acquirerMerchantId'
|
36
40
|
}
|
37
41
|
end
|
38
42
|
|
@@ -42,7 +46,8 @@ module CyberSource
|
|
42
46
|
:'acquirer_bin' => :'acquirer_bin',
|
43
47
|
:'country' => :'country',
|
44
48
|
:'password' => :'password',
|
45
|
-
:'merchant_id' => :'merchant_id'
|
49
|
+
:'merchant_id' => :'merchant_id',
|
50
|
+
:'acquirer_merchant_id' => :'acquirer_merchant_id'
|
46
51
|
}
|
47
52
|
end
|
48
53
|
|
@@ -52,7 +57,8 @@ module CyberSource
|
|
52
57
|
:'acquirer_bin' => :'String',
|
53
58
|
:'country' => :'String',
|
54
59
|
:'password' => :'String',
|
55
|
-
:'merchant_id' => :'String'
|
60
|
+
:'merchant_id' => :'String',
|
61
|
+
:'acquirer_merchant_id' => :'String'
|
56
62
|
}
|
57
63
|
end
|
58
64
|
|
@@ -79,6 +85,10 @@ module CyberSource
|
|
79
85
|
if attributes.has_key?(:'merchantId')
|
80
86
|
self.merchant_id = attributes[:'merchantId']
|
81
87
|
end
|
88
|
+
|
89
|
+
if attributes.has_key?(:'acquirerMerchantId')
|
90
|
+
self.acquirer_merchant_id = attributes[:'acquirerMerchantId']
|
91
|
+
end
|
82
92
|
end
|
83
93
|
|
84
94
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -118,6 +128,12 @@ module CyberSource
|
|
118
128
|
@merchant_id = merchant_id
|
119
129
|
end
|
120
130
|
|
131
|
+
# Custom attribute writer method with validation
|
132
|
+
# @param [Object] acquirer_merchant_id Value to be assigned
|
133
|
+
def acquirer_merchant_id=(acquirer_merchant_id)
|
134
|
+
@acquirer_merchant_id = acquirer_merchant_id
|
135
|
+
end
|
136
|
+
|
121
137
|
# Checks equality by comparing each attribute.
|
122
138
|
# @param [Object] Object to be compared
|
123
139
|
def ==(o)
|
@@ -126,7 +142,8 @@ module CyberSource
|
|
126
142
|
acquirer_bin == o.acquirer_bin &&
|
127
143
|
country == o.country &&
|
128
144
|
password == o.password &&
|
129
|
-
merchant_id == o.merchant_id
|
145
|
+
merchant_id == o.merchant_id &&
|
146
|
+
acquirer_merchant_id == o.acquirer_merchant_id
|
130
147
|
end
|
131
148
|
|
132
149
|
# @see the `==` method
|
@@ -138,7 +155,7 @@ module CyberSource
|
|
138
155
|
# Calculates hash code according to all attributes.
|
139
156
|
# @return [Fixnum] Hash code
|
140
157
|
def hash
|
141
|
-
[acquirer_bin, country, password, merchant_id].hash
|
158
|
+
[acquirer_bin, country, password, merchant_id, acquirer_merchant_id].hash
|
142
159
|
end
|
143
160
|
|
144
161
|
# Builds the object from hash
|
@@ -32,6 +32,9 @@ module CyberSource
|
|
32
32
|
# Flag that indicates whether the transaction is enabled for partial authorization. When the request includes this field, this value overrides the information in your account. Possible values: - `true`: Enable the transaction for partial authorization. - `false`: Do not enable the transaction for partial authorization. #### PIN debit Required field for partial authorizations that use PIN debit purchase; otherwise, not used. #### Used by **Authorization** Optional field. #### CyberSource through VisaNet To set the default for this field, contact CyberSource Customer Support. The value for this field corresponds to the following data in the TC 33 capture file5: - Record: CP01 TCR0 - Position: 164 - Field: Additional Authorization Indicators
|
33
33
|
attr_accessor :partial_auth_indicator
|
34
34
|
|
35
|
+
# Flag that indicates whether the transaction is an extended authorization.
|
36
|
+
attr_accessor :extend_auth_indicator
|
37
|
+
|
35
38
|
# Flag that indicates whether to return balance information. Possible values: - `true`: Return balance information. - `false`: Do not return balance information. #### Used by **Authorization** Required for a balance inquiry; otherwise, not used. #### PIN debit Required for a balance inquiry request of a PIN debit purchase; otherwise, not used.
|
36
39
|
attr_accessor :balance_inquiry
|
37
40
|
|
@@ -85,6 +88,7 @@ module CyberSource
|
|
85
88
|
:'verbal_auth_transaction_id' => :'verbalAuthTransactionId',
|
86
89
|
:'auth_indicator' => :'authIndicator',
|
87
90
|
:'partial_auth_indicator' => :'partialAuthIndicator',
|
91
|
+
:'extend_auth_indicator' => :'extendAuthIndicator',
|
88
92
|
:'balance_inquiry' => :'balanceInquiry',
|
89
93
|
:'ignore_avs_result' => :'ignoreAvsResult',
|
90
94
|
:'decline_avs_flags' => :'declineAvsFlags',
|
@@ -112,6 +116,7 @@ module CyberSource
|
|
112
116
|
:'verbal_auth_transaction_id' => :'verbal_auth_transaction_id',
|
113
117
|
:'auth_indicator' => :'auth_indicator',
|
114
118
|
:'partial_auth_indicator' => :'partial_auth_indicator',
|
119
|
+
:'extend_auth_indicator' => :'extend_auth_indicator',
|
115
120
|
:'balance_inquiry' => :'balance_inquiry',
|
116
121
|
:'ignore_avs_result' => :'ignore_avs_result',
|
117
122
|
:'decline_avs_flags' => :'decline_avs_flags',
|
@@ -139,6 +144,7 @@ module CyberSource
|
|
139
144
|
:'verbal_auth_transaction_id' => :'String',
|
140
145
|
:'auth_indicator' => :'String',
|
141
146
|
:'partial_auth_indicator' => :'BOOLEAN',
|
147
|
+
:'extend_auth_indicator' => :'String',
|
142
148
|
:'balance_inquiry' => :'BOOLEAN',
|
143
149
|
:'ignore_avs_result' => :'BOOLEAN',
|
144
150
|
:'decline_avs_flags' => :'Array<String>',
|
@@ -189,6 +195,10 @@ module CyberSource
|
|
189
195
|
self.partial_auth_indicator = attributes[:'partialAuthIndicator']
|
190
196
|
end
|
191
197
|
|
198
|
+
if attributes.has_key?(:'extendAuthIndicator')
|
199
|
+
self.extend_auth_indicator = attributes[:'extendAuthIndicator']
|
200
|
+
end
|
201
|
+
|
192
202
|
if attributes.has_key?(:'balanceInquiry')
|
193
203
|
self.balance_inquiry = attributes[:'balanceInquiry']
|
194
204
|
end
|
@@ -310,6 +320,7 @@ module CyberSource
|
|
310
320
|
verbal_auth_transaction_id == o.verbal_auth_transaction_id &&
|
311
321
|
auth_indicator == o.auth_indicator &&
|
312
322
|
partial_auth_indicator == o.partial_auth_indicator &&
|
323
|
+
extend_auth_indicator == o.extend_auth_indicator &&
|
313
324
|
balance_inquiry == o.balance_inquiry &&
|
314
325
|
ignore_avs_result == o.ignore_avs_result &&
|
315
326
|
decline_avs_flags == o.decline_avs_flags &&
|
@@ -336,7 +347,7 @@ module CyberSource
|
|
336
347
|
# Calculates hash code according to all attributes.
|
337
348
|
# @return [Fixnum] Hash code
|
338
349
|
def hash
|
339
|
-
[auth_type, pan_return_indicator, verbal_auth_code, verbal_auth_transaction_id, auth_indicator, partial_auth_indicator, balance_inquiry, ignore_avs_result, decline_avs_flags, ignore_cv_result, initiator, bill_payment, bill_payment_type, redemption_inquiry, transportation_mode, aggregated_auth_indicator, debt_recovery_indicator, deferred_auth_indicator, cash_advance_indicator, split_payment_transaction, card_verification_indicator].hash
|
350
|
+
[auth_type, pan_return_indicator, verbal_auth_code, verbal_auth_transaction_id, auth_indicator, partial_auth_indicator, extend_auth_indicator, balance_inquiry, ignore_avs_result, decline_avs_flags, ignore_cv_result, initiator, bill_payment, bill_payment_type, redemption_inquiry, transportation_mode, aggregated_auth_indicator, debt_recovery_indicator, deferred_auth_indicator, cash_advance_indicator, split_payment_transaction, card_verification_indicator].hash
|
340
351
|
end
|
341
352
|
|
342
353
|
# Builds the object from hash
|
@@ -18,11 +18,20 @@ module CyberSource
|
|
18
18
|
|
19
19
|
attr_accessor :customer
|
20
20
|
|
21
|
+
attr_accessor :payment_instrument
|
22
|
+
|
23
|
+
attr_accessor :instrument_identifier
|
24
|
+
|
25
|
+
attr_accessor :tokenized_card
|
26
|
+
|
21
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
28
|
def self.attribute_map
|
23
29
|
{
|
24
30
|
:'card' => :'card',
|
25
|
-
:'customer' => :'customer'
|
31
|
+
:'customer' => :'customer',
|
32
|
+
:'payment_instrument' => :'paymentInstrument',
|
33
|
+
:'instrument_identifier' => :'instrumentIdentifier',
|
34
|
+
:'tokenized_card' => :'tokenizedCard'
|
26
35
|
}
|
27
36
|
end
|
28
37
|
|
@@ -30,7 +39,10 @@ module CyberSource
|
|
30
39
|
def self.json_map
|
31
40
|
{
|
32
41
|
:'card' => :'card',
|
33
|
-
:'customer' => :'customer'
|
42
|
+
:'customer' => :'customer',
|
43
|
+
:'payment_instrument' => :'payment_instrument',
|
44
|
+
:'instrument_identifier' => :'instrument_identifier',
|
45
|
+
:'tokenized_card' => :'tokenized_card'
|
34
46
|
}
|
35
47
|
end
|
36
48
|
|
@@ -38,7 +50,10 @@ module CyberSource
|
|
38
50
|
def self.swagger_types
|
39
51
|
{
|
40
52
|
:'card' => :'Ptsv2payoutsPaymentInformationCard',
|
41
|
-
:'customer' => :'Ptsv2paymentsPaymentInformationCustomer'
|
53
|
+
:'customer' => :'Ptsv2paymentsPaymentInformationCustomer',
|
54
|
+
:'payment_instrument' => :'Ptsv2paymentsPaymentInformationPaymentInstrument',
|
55
|
+
:'instrument_identifier' => :'PtsV2PaymentsPost201ResponsePaymentInformationInstrumentIdentifier',
|
56
|
+
:'tokenized_card' => :'Ptsv2paymentsPaymentInformationTokenizedCard'
|
42
57
|
}
|
43
58
|
end
|
44
59
|
|
@@ -57,6 +72,18 @@ module CyberSource
|
|
57
72
|
if attributes.has_key?(:'customer')
|
58
73
|
self.customer = attributes[:'customer']
|
59
74
|
end
|
75
|
+
|
76
|
+
if attributes.has_key?(:'paymentInstrument')
|
77
|
+
self.payment_instrument = attributes[:'paymentInstrument']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.has_key?(:'instrumentIdentifier')
|
81
|
+
self.instrument_identifier = attributes[:'instrumentIdentifier']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.has_key?(:'tokenizedCard')
|
85
|
+
self.tokenized_card = attributes[:'tokenizedCard']
|
86
|
+
end
|
60
87
|
end
|
61
88
|
|
62
89
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -78,7 +105,10 @@ module CyberSource
|
|
78
105
|
return true if self.equal?(o)
|
79
106
|
self.class == o.class &&
|
80
107
|
card == o.card &&
|
81
|
-
customer == o.customer
|
108
|
+
customer == o.customer &&
|
109
|
+
payment_instrument == o.payment_instrument &&
|
110
|
+
instrument_identifier == o.instrument_identifier &&
|
111
|
+
tokenized_card == o.tokenized_card
|
82
112
|
end
|
83
113
|
|
84
114
|
# @see the `==` method
|
@@ -90,7 +120,7 @@ module CyberSource
|
|
90
120
|
# Calculates hash code according to all attributes.
|
91
121
|
# @return [Fixnum] Hash code
|
92
122
|
def hash
|
93
|
-
[card, customer].hash
|
123
|
+
[card, customer, payment_instrument, instrument_identifier, tokenized_card].hash
|
94
124
|
end
|
95
125
|
|
96
126
|
# Builds the object from hash
|
@@ -16,29 +16,24 @@ module CyberSource
|
|
16
16
|
class Riskv1authenticationresultsOrderInformation
|
17
17
|
attr_accessor :amount_details
|
18
18
|
|
19
|
-
attr_accessor :line_items
|
20
|
-
|
21
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
20
|
def self.attribute_map
|
23
21
|
{
|
24
|
-
:'amount_details' => :'amountDetails'
|
25
|
-
:'line_items' => :'lineItems'
|
22
|
+
:'amount_details' => :'amountDetails'
|
26
23
|
}
|
27
24
|
end
|
28
25
|
|
29
26
|
# Attribute mapping from JSON key to ruby-style variable name.
|
30
27
|
def self.json_map
|
31
28
|
{
|
32
|
-
:'amount_details' => :'amount_details'
|
33
|
-
:'line_items' => :'line_items'
|
29
|
+
:'amount_details' => :'amount_details'
|
34
30
|
}
|
35
31
|
end
|
36
32
|
|
37
33
|
# Attribute type mapping.
|
38
34
|
def self.swagger_types
|
39
35
|
{
|
40
|
-
:'amount_details' => :'Riskv1authenticationresultsOrderInformationAmountDetails'
|
41
|
-
:'line_items' => :'Array<Riskv1authenticationresultsOrderInformationLineItems>'
|
36
|
+
:'amount_details' => :'Riskv1authenticationresultsOrderInformationAmountDetails'
|
42
37
|
}
|
43
38
|
end
|
44
39
|
|
@@ -53,12 +48,6 @@ module CyberSource
|
|
53
48
|
if attributes.has_key?(:'amountDetails')
|
54
49
|
self.amount_details = attributes[:'amountDetails']
|
55
50
|
end
|
56
|
-
|
57
|
-
if attributes.has_key?(:'lineItems')
|
58
|
-
if (value = attributes[:'lineItems']).is_a?(Array)
|
59
|
-
self.line_items = value
|
60
|
-
end
|
61
|
-
end
|
62
51
|
end
|
63
52
|
|
64
53
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -79,8 +68,7 @@ module CyberSource
|
|
79
68
|
def ==(o)
|
80
69
|
return true if self.equal?(o)
|
81
70
|
self.class == o.class &&
|
82
|
-
amount_details == o.amount_details
|
83
|
-
line_items == o.line_items
|
71
|
+
amount_details == o.amount_details
|
84
72
|
end
|
85
73
|
|
86
74
|
# @see the `==` method
|
@@ -92,7 +80,7 @@ module CyberSource
|
|
92
80
|
# Calculates hash code according to all attributes.
|
93
81
|
# @return [Fixnum] Hash code
|
94
82
|
def hash
|
95
|
-
[amount_details
|
83
|
+
[amount_details].hash
|
96
84
|
end
|
97
85
|
|
98
86
|
# Builds the object from hash
|