cybersource_rest_client 0.0.29 → 0.0.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/authentication/oauth/OAuthToken.rb +15 -0
- data/lib/AuthenticationSDK/core/Authorization.rb +4 -1
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +93 -19
- data/lib/AuthenticationSDK/util/Constants.rb +78 -76
- data/lib/cybersource_rest_client.rb +19 -9
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +3 -3
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +3 -3
- data/lib/cybersource_rest_client/api/o_auth_api.rb +104 -0
- data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
- data/lib/cybersource_rest_client/api/refund_api.rb +4 -4
- data/lib/cybersource_rest_client/api/void_api.rb +4 -4
- data/lib/cybersource_rest_client/api_client.rb +31 -8
- data/lib/cybersource_rest_client/configuration.rb +2 -2
- data/lib/cybersource_rest_client/models/access_token_response.rb +244 -0
- data/lib/cybersource_rest_client/models/add_negative_list_request.rb +1 -1
- data/lib/cybersource_rest_client/models/bad_request_error.rb +192 -0
- data/lib/cybersource_rest_client/models/create_access_token_request.rb +254 -0
- data/lib/cybersource_rest_client/models/fraud_marking_action_request.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_customer_information.rb +20 -4
- data/lib/cybersource_rest_client/models/invoicingv2invoices_customer_information.rb +20 -4
- data/lib/cybersource_rest_client/models/{payment_instrument_list_for_customer.rb → payment_instrument_list.rb} +3 -3
- data/lib/cybersource_rest_client/models/{payment_instrument_list_for_customer__embedded.rb → payment_instrument_list__embedded.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_for_customer__links.rb → payment_instrument_list__links.rb} +6 -6
- data/lib/cybersource_rest_client/models/{payment_instrument_list_for_customer__links_first.rb → payment_instrument_list__links_first.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_for_customer__links_last.rb → payment_instrument_list__links_last.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_for_customer__links_next.rb → payment_instrument_list__links_next.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_for_customer__links_prev.rb → payment_instrument_list__links_prev.rb} +1 -1
- data/lib/cybersource_rest_client/models/{payment_instrument_list_for_customer__links_self.rb → payment_instrument_list__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +10 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +11 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information.rb +13 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_reward_points_details.rb +270 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +242 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +17 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +6 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +60 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_health_care_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +6 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +36 -38
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_recurring_payment_information.rb +24 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_risk_information.rb +15 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_risk_information_auxiliary_data.rb +207 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +6 -0
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +4 -4
- data/lib/cybersource_rest_client/models/resource_not_found_error.rb +192 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +3 -3
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +3 -3
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +3 -3
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_fluid_data.rb +3 -3
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_client_reference_information.rb +17 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_consumer_authentication_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +1 -11
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +3 -3
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_risk_information.rb +15 -4
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_client_reference_information.rb +224 -0
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +13 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/unauthorized_client_error.rb +192 -0
- data/lib/cybersource_rest_client/models/validate_export_compliance_request.rb +1 -1
- data/lib/cybersource_rest_client/models/verify_customer_address_request.rb +1 -1
- metadata +120 -101
- data/lib/AuthenticationSDK/resource/TRRReports.json +0 -12
- data/lib/AuthenticationSDK/resource/cybs.yml +0 -31
- data/lib/AuthenticationSDK/resource/request.json +0 -54
- data/lib/AuthenticationSDK/resource/request_capture.json +0 -11
- data/lib/AuthenticationSDK/resource/testrest.p12 +0 -0
- data/lib/AuthenticationSDK/spec/Authorization_spec.rb +0 -274
- data/lib/AuthenticationSDK/spec/MerchantConfigData.rb +0 -59
- data/lib/AuthenticationSDK/spec/MerchantConfig_spec.rb +0 -116
- data/lib/AuthenticationSDK/spec/PostRequestData.json +0 -54
- data/lib/AuthenticationSDK/spec/PutRequestData.json +0 -12
- data/lib/AuthenticationSDK/spec/ResponseCodeMessage_spec.rb +0 -60
- data/lib/AuthenticationSDK/spec/spec_helper.rb +0 -12
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_card.rb +0 -184
@@ -30,7 +30,7 @@ module CyberSource
|
|
30
30
|
def self.swagger_types
|
31
31
|
{
|
32
32
|
:'risk_information' => :'Riskv1decisionsidmarkingRiskInformation',
|
33
|
-
:'client_reference_information' => :'
|
33
|
+
:'client_reference_information' => :'Riskv1liststypeentriesClientReferenceInformation'
|
34
34
|
}
|
35
35
|
end
|
36
36
|
|
@@ -17,17 +17,22 @@ module CyberSource
|
|
17
17
|
# Payer name for the invoice.
|
18
18
|
attr_accessor :name
|
19
19
|
|
20
|
+
# Your identifier for the customer. When a subscription or customer profile is being created, the maximum length for this field for most processors is 30. Otherwise, the maximum length is 100. #### Comercio Latino For recurring payments in Mexico, the value is the customer’s contract number. Note Before you request the authorization, you must inform the issuer of the customer contract numbers that will be used for recurring transactions. #### Worldpay VAP For a follow-on credit with Worldpay VAP, CyberSource checks the following locations, in the order given, for a customer account ID value and uses the first value it finds: 1. `customer_account_id` value in the follow-on credit request 2. Customer account ID value that was used for the capture that is being credited 3. Customer account ID value that was used for the original authorization If a customer account ID value cannot be found in any of these locations, then no value is used. For processor-specific information, see the `customer_account_id` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
21
|
+
attr_accessor :merchant_customer_id
|
22
|
+
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
24
|
def self.attribute_map
|
22
25
|
{
|
23
|
-
:'name' => :'name'
|
26
|
+
:'name' => :'name',
|
27
|
+
:'merchant_customer_id' => :'merchantCustomerId'
|
24
28
|
}
|
25
29
|
end
|
26
30
|
|
27
31
|
# Attribute type mapping.
|
28
32
|
def self.swagger_types
|
29
33
|
{
|
30
|
-
:'name' => :'String'
|
34
|
+
:'name' => :'String',
|
35
|
+
:'merchant_customer_id' => :'String'
|
31
36
|
}
|
32
37
|
end
|
33
38
|
|
@@ -42,6 +47,10 @@ module CyberSource
|
|
42
47
|
if attributes.has_key?(:'name')
|
43
48
|
self.name = attributes[:'name']
|
44
49
|
end
|
50
|
+
|
51
|
+
if attributes.has_key?(:'merchantCustomerId')
|
52
|
+
self.merchant_customer_id = attributes[:'merchantCustomerId']
|
53
|
+
end
|
45
54
|
end
|
46
55
|
|
47
56
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -63,12 +72,19 @@ module CyberSource
|
|
63
72
|
@name = name
|
64
73
|
end
|
65
74
|
|
75
|
+
# Custom attribute writer method with validation
|
76
|
+
# @param [Object] merchant_customer_id Value to be assigned
|
77
|
+
def merchant_customer_id=(merchant_customer_id)
|
78
|
+
@merchant_customer_id = merchant_customer_id
|
79
|
+
end
|
80
|
+
|
66
81
|
# Checks equality by comparing each attribute.
|
67
82
|
# @param [Object] Object to be compared
|
68
83
|
def ==(o)
|
69
84
|
return true if self.equal?(o)
|
70
85
|
self.class == o.class &&
|
71
|
-
name == o.name
|
86
|
+
name == o.name &&
|
87
|
+
merchant_customer_id == o.merchant_customer_id
|
72
88
|
end
|
73
89
|
|
74
90
|
# @see the `==` method
|
@@ -80,7 +96,7 @@ module CyberSource
|
|
80
96
|
# Calculates hash code according to all attributes.
|
81
97
|
# @return [Fixnum] Hash code
|
82
98
|
def hash
|
83
|
-
[name].hash
|
99
|
+
[name, merchant_customer_id].hash
|
84
100
|
end
|
85
101
|
|
86
102
|
# Builds the object from hash
|
@@ -21,11 +21,15 @@ module CyberSource
|
|
21
21
|
# Customer's email address, including the full domain name. #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. **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_email` request-level field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) #### Invoicing Email address for the customer for sending the invoice. If the invoice is in SENT status and email is updated, the old email customer payment link won't work and you must resend the invoice with the new payment link. #### Chase Paymentech Solutions Optional field. #### Credit Mutuel-CIC Optional field. #### OmniPay Direct Optional field. #### SIX Optional field. #### TSYS Acquiring Solutions Required when `processingInformation.billPaymentOptions.billPayment=true` and `pointOfSaleInformation.entryMode=keyed`. #### Worldpay VAP Optional field. #### All other processors Not used.
|
22
22
|
attr_accessor :email
|
23
23
|
|
24
|
+
# Your identifier for the customer. When a subscription or customer profile is being created, the maximum length for this field for most processors is 30. Otherwise, the maximum length is 100. #### Comercio Latino For recurring payments in Mexico, the value is the customer’s contract number. Note Before you request the authorization, you must inform the issuer of the customer contract numbers that will be used for recurring transactions. #### Worldpay VAP For a follow-on credit with Worldpay VAP, CyberSource checks the following locations, in the order given, for a customer account ID value and uses the first value it finds: 1. `customer_account_id` value in the follow-on credit request 2. Customer account ID value that was used for the capture that is being credited 3. Customer account ID value that was used for the original authorization If a customer account ID value cannot be found in any of these locations, then no value is used. For processor-specific information, see the `customer_account_id` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
25
|
+
attr_accessor :merchant_customer_id
|
26
|
+
|
24
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
28
|
def self.attribute_map
|
26
29
|
{
|
27
30
|
:'name' => :'name',
|
28
|
-
:'email' => :'email'
|
31
|
+
:'email' => :'email',
|
32
|
+
:'merchant_customer_id' => :'merchantCustomerId'
|
29
33
|
}
|
30
34
|
end
|
31
35
|
|
@@ -33,7 +37,8 @@ module CyberSource
|
|
33
37
|
def self.swagger_types
|
34
38
|
{
|
35
39
|
:'name' => :'String',
|
36
|
-
:'email' => :'String'
|
40
|
+
:'email' => :'String',
|
41
|
+
:'merchant_customer_id' => :'String'
|
37
42
|
}
|
38
43
|
end
|
39
44
|
|
@@ -52,6 +57,10 @@ module CyberSource
|
|
52
57
|
if attributes.has_key?(:'email')
|
53
58
|
self.email = attributes[:'email']
|
54
59
|
end
|
60
|
+
|
61
|
+
if attributes.has_key?(:'merchantCustomerId')
|
62
|
+
self.merchant_customer_id = attributes[:'merchantCustomerId']
|
63
|
+
end
|
55
64
|
end
|
56
65
|
|
57
66
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -79,13 +88,20 @@ module CyberSource
|
|
79
88
|
@email = email
|
80
89
|
end
|
81
90
|
|
91
|
+
# Custom attribute writer method with validation
|
92
|
+
# @param [Object] merchant_customer_id Value to be assigned
|
93
|
+
def merchant_customer_id=(merchant_customer_id)
|
94
|
+
@merchant_customer_id = merchant_customer_id
|
95
|
+
end
|
96
|
+
|
82
97
|
# Checks equality by comparing each attribute.
|
83
98
|
# @param [Object] Object to be compared
|
84
99
|
def ==(o)
|
85
100
|
return true if self.equal?(o)
|
86
101
|
self.class == o.class &&
|
87
102
|
name == o.name &&
|
88
|
-
email == o.email
|
103
|
+
email == o.email &&
|
104
|
+
merchant_customer_id == o.merchant_customer_id
|
89
105
|
end
|
90
106
|
|
91
107
|
# @see the `==` method
|
@@ -97,7 +113,7 @@ module CyberSource
|
|
97
113
|
# Calculates hash code according to all attributes.
|
98
114
|
# @return [Fixnum] Hash code
|
99
115
|
def hash
|
100
|
-
[name, email].hash
|
116
|
+
[name, email, merchant_customer_id].hash
|
101
117
|
end
|
102
118
|
|
103
119
|
# Builds the object from hash
|
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
16
|
+
class PaymentInstrumentList
|
17
17
|
attr_accessor :_links
|
18
18
|
|
19
19
|
# The offset parameter supplied in the request.
|
@@ -45,12 +45,12 @@ module CyberSource
|
|
45
45
|
# Attribute type mapping.
|
46
46
|
def self.swagger_types
|
47
47
|
{
|
48
|
-
:'_links' => :'
|
48
|
+
:'_links' => :'PaymentInstrumentListLinks',
|
49
49
|
:'offset' => :'Integer',
|
50
50
|
:'limit' => :'Integer',
|
51
51
|
:'count' => :'Integer',
|
52
52
|
:'total' => :'Integer',
|
53
|
-
:'_embedded' => :'
|
53
|
+
:'_embedded' => :'PaymentInstrumentListEmbedded'
|
54
54
|
}
|
55
55
|
end
|
56
56
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
# Payment Instrument Resources.
|
17
|
-
class
|
17
|
+
class PaymentInstrumentListEmbedded
|
18
18
|
attr_accessor :payment_instruments
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
16
|
+
class PaymentInstrumentListLinks
|
17
17
|
attr_accessor :_self
|
18
18
|
|
19
19
|
attr_accessor :first
|
@@ -38,11 +38,11 @@ module CyberSource
|
|
38
38
|
# Attribute type mapping.
|
39
39
|
def self.swagger_types
|
40
40
|
{
|
41
|
-
:'_self' => :'
|
42
|
-
:'first' => :'
|
43
|
-
:'prev' => :'
|
44
|
-
:'_next' => :'
|
45
|
-
:'last' => :'
|
41
|
+
:'_self' => :'PaymentInstrumentListLinksSelf',
|
42
|
+
:'first' => :'PaymentInstrumentListLinksFirst',
|
43
|
+
:'prev' => :'PaymentInstrumentListLinksPrev',
|
44
|
+
:'_next' => :'PaymentInstrumentListLinksNext',
|
45
|
+
:'last' => :'PaymentInstrumentListLinksLast'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -38,6 +38,8 @@ module CyberSource
|
|
38
38
|
|
39
39
|
attr_accessor :issuer_information
|
40
40
|
|
41
|
+
attr_accessor :payment_account_information
|
42
|
+
|
41
43
|
attr_accessor :payment_information
|
42
44
|
|
43
45
|
attr_accessor :order_information
|
@@ -65,6 +67,7 @@ module CyberSource
|
|
65
67
|
:'processing_information' => :'processingInformation',
|
66
68
|
:'processor_information' => :'processorInformation',
|
67
69
|
:'issuer_information' => :'issuerInformation',
|
70
|
+
:'payment_account_information' => :'paymentAccountInformation',
|
68
71
|
:'payment_information' => :'paymentInformation',
|
69
72
|
:'order_information' => :'orderInformation',
|
70
73
|
:'point_of_sale_information' => :'pointOfSaleInformation',
|
@@ -88,6 +91,7 @@ module CyberSource
|
|
88
91
|
:'processing_information' => :'PtsV2PaymentsPost201ResponseProcessingInformation',
|
89
92
|
:'processor_information' => :'PtsV2PaymentsPost201ResponseProcessorInformation',
|
90
93
|
:'issuer_information' => :'PtsV2PaymentsPost201ResponseIssuerInformation',
|
94
|
+
:'payment_account_information' => :'PtsV2PaymentsPost201ResponsePaymentAccountInformation',
|
91
95
|
:'payment_information' => :'PtsV2PaymentsPost201ResponsePaymentInformation',
|
92
96
|
:'order_information' => :'PtsV2PaymentsPost201ResponseOrderInformation',
|
93
97
|
:'point_of_sale_information' => :'PtsV2PaymentsPost201ResponsePointOfSaleInformation',
|
@@ -146,6 +150,10 @@ module CyberSource
|
|
146
150
|
self.issuer_information = attributes[:'issuerInformation']
|
147
151
|
end
|
148
152
|
|
153
|
+
if attributes.has_key?(:'paymentAccountInformation')
|
154
|
+
self.payment_account_information = attributes[:'paymentAccountInformation']
|
155
|
+
end
|
156
|
+
|
149
157
|
if attributes.has_key?(:'paymentInformation')
|
150
158
|
self.payment_information = attributes[:'paymentInformation']
|
151
159
|
end
|
@@ -215,6 +223,7 @@ module CyberSource
|
|
215
223
|
processing_information == o.processing_information &&
|
216
224
|
processor_information == o.processor_information &&
|
217
225
|
issuer_information == o.issuer_information &&
|
226
|
+
payment_account_information == o.payment_account_information &&
|
218
227
|
payment_information == o.payment_information &&
|
219
228
|
order_information == o.order_information &&
|
220
229
|
point_of_sale_information == o.point_of_sale_information &&
|
@@ -233,7 +242,7 @@ module CyberSource
|
|
233
242
|
# Calculates hash code according to all attributes.
|
234
243
|
# @return [Fixnum] Hash code
|
235
244
|
def hash
|
236
|
-
[_links, id, submit_time_utc, status, reconciliation_id, error_information, client_reference_information, processing_information, processor_information, issuer_information, payment_information, order_information, point_of_sale_information, installment_information, token_information, risk_information, consumer_authentication_information].hash
|
245
|
+
[_links, id, submit_time_utc, status, reconciliation_id, error_information, client_reference_information, processing_information, processor_information, issuer_information, payment_account_information, payment_information, order_information, point_of_sale_information, installment_information, token_information, risk_information, consumer_authentication_information].hash
|
237
246
|
end
|
238
247
|
|
239
248
|
# Builds the object from hash
|
@@ -14,6 +14,9 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation
|
17
|
+
# JSON Web Token (JWT) used to authenticate the consumer with the authentication provider, such as, CardinalCommerce or Rupay. Note - Max Length of this field is 2048 characters.
|
18
|
+
attr_accessor :access_token
|
19
|
+
|
17
20
|
# Identifies the UI Type the ACS will use to complete the challenge. **NOTE**: Only available for App transactions using the Cardinal Mobile SDK.
|
18
21
|
attr_accessor :acs_rendering_type
|
19
22
|
|
@@ -136,6 +139,7 @@ module CyberSource
|
|
136
139
|
# Attribute mapping from ruby-style variable name to JSON key.
|
137
140
|
def self.attribute_map
|
138
141
|
{
|
142
|
+
:'access_token' => :'accessToken',
|
139
143
|
:'acs_rendering_type' => :'acsRenderingType',
|
140
144
|
:'acs_transaction_id' => :'acsTransactionId',
|
141
145
|
:'acs_url' => :'acsUrl',
|
@@ -182,6 +186,7 @@ module CyberSource
|
|
182
186
|
# Attribute type mapping.
|
183
187
|
def self.swagger_types
|
184
188
|
{
|
189
|
+
:'access_token' => :'String',
|
185
190
|
:'acs_rendering_type' => :'String',
|
186
191
|
:'acs_transaction_id' => :'String',
|
187
192
|
:'acs_url' => :'String',
|
@@ -233,6 +238,10 @@ module CyberSource
|
|
233
238
|
# convert string to symbol for hash key
|
234
239
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
235
240
|
|
241
|
+
if attributes.has_key?(:'accessToken')
|
242
|
+
self.access_token = attributes[:'accessToken']
|
243
|
+
end
|
244
|
+
|
236
245
|
if attributes.has_key?(:'acsRenderingType')
|
237
246
|
self.acs_rendering_type = attributes[:'acsRenderingType']
|
238
247
|
end
|
@@ -538,6 +547,7 @@ module CyberSource
|
|
538
547
|
def ==(o)
|
539
548
|
return true if self.equal?(o)
|
540
549
|
self.class == o.class &&
|
550
|
+
access_token == o.access_token &&
|
541
551
|
acs_rendering_type == o.acs_rendering_type &&
|
542
552
|
acs_transaction_id == o.acs_transaction_id &&
|
543
553
|
acs_url == o.acs_url &&
|
@@ -589,7 +599,7 @@ module CyberSource
|
|
589
599
|
# Calculates hash code according to all attributes.
|
590
600
|
# @return [Fixnum] Hash code
|
591
601
|
def hash
|
592
|
-
[acs_rendering_type, acs_transaction_id, acs_url, authentication_path, authorization_payload, authentication_transaction_id, cardholder_message, cavv, cavv_algorithm, challenge_cancel_code, challenge_required, decoupled_authentication_indicator, directory_server_error_code, directory_server_error_description, ecommerce_indicator, eci, eci_raw, effective_authentication_type, ivr, network_score, pareq, pares_status, proof_xml, proxy_pan, sdk_transaction_id, signed_pares_status_reason, specification_version, step_up_url, three_ds_server_transaction_id, ucaf_authentication_data, ucaf_collection_indicator, veres_enrolled, white_list_status_source, xid, directory_server_transaction_id, authentication_result, authentication_status_msg, indicator, interaction_counter, white_list_status].hash
|
602
|
+
[access_token, acs_rendering_type, acs_transaction_id, acs_url, authentication_path, authorization_payload, authentication_transaction_id, cardholder_message, cavv, cavv_algorithm, challenge_cancel_code, challenge_required, decoupled_authentication_indicator, directory_server_error_code, directory_server_error_description, ecommerce_indicator, eci, eci_raw, effective_authentication_type, ivr, network_score, pareq, pares_status, proof_xml, proxy_pan, sdk_transaction_id, signed_pares_status_reason, specification_version, step_up_url, three_ds_server_transaction_id, ucaf_authentication_data, ucaf_collection_indicator, veres_enrolled, white_list_status_source, xid, directory_server_transaction_id, authentication_result, authentication_status_msg, indicator, interaction_counter, white_list_status].hash
|
593
603
|
end
|
594
604
|
|
595
605
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information.rb
CHANGED
@@ -18,11 +18,14 @@ module CyberSource
|
|
18
18
|
|
19
19
|
attr_accessor :invoice_details
|
20
20
|
|
21
|
+
attr_accessor :reward_points_details
|
22
|
+
|
21
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
24
|
def self.attribute_map
|
23
25
|
{
|
24
26
|
:'amount_details' => :'amountDetails',
|
25
|
-
:'invoice_details' => :'invoiceDetails'
|
27
|
+
:'invoice_details' => :'invoiceDetails',
|
28
|
+
:'reward_points_details' => :'rewardPointsDetails'
|
26
29
|
}
|
27
30
|
end
|
28
31
|
|
@@ -30,7 +33,8 @@ module CyberSource
|
|
30
33
|
def self.swagger_types
|
31
34
|
{
|
32
35
|
:'amount_details' => :'PtsV2PaymentsPost201ResponseOrderInformationAmountDetails',
|
33
|
-
:'invoice_details' => :'PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails'
|
36
|
+
:'invoice_details' => :'PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails',
|
37
|
+
:'reward_points_details' => :'PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails'
|
34
38
|
}
|
35
39
|
end
|
36
40
|
|
@@ -49,6 +53,10 @@ module CyberSource
|
|
49
53
|
if attributes.has_key?(:'invoiceDetails')
|
50
54
|
self.invoice_details = attributes[:'invoiceDetails']
|
51
55
|
end
|
56
|
+
|
57
|
+
if attributes.has_key?(:'rewardPointsDetails')
|
58
|
+
self.reward_points_details = attributes[:'rewardPointsDetails']
|
59
|
+
end
|
52
60
|
end
|
53
61
|
|
54
62
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -70,7 +78,8 @@ module CyberSource
|
|
70
78
|
return true if self.equal?(o)
|
71
79
|
self.class == o.class &&
|
72
80
|
amount_details == o.amount_details &&
|
73
|
-
invoice_details == o.invoice_details
|
81
|
+
invoice_details == o.invoice_details &&
|
82
|
+
reward_points_details == o.reward_points_details
|
74
83
|
end
|
75
84
|
|
76
85
|
# @see the `==` method
|
@@ -82,7 +91,7 @@ module CyberSource
|
|
82
91
|
# Calculates hash code according to all attributes.
|
83
92
|
# @return [Fixnum] Hash code
|
84
93
|
def hash
|
85
|
-
[amount_details, invoice_details].hash
|
94
|
+
[amount_details, invoice_details, reward_points_details].hash
|
86
95
|
end
|
87
96
|
|
88
97
|
# Builds the object from hash
|
@@ -0,0 +1,270 @@
|
|
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 PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails
|
17
|
+
# Loyalty points total balance before redemption. For Example: Points, such as 100
|
18
|
+
attr_accessor :points_before_redemption
|
19
|
+
|
20
|
+
# The total value of loyalty points before redemption in the default currency. Max characters is 12 excluding the \".\" symbol For Example: Points, such as 20.00
|
21
|
+
attr_accessor :points_value_before_redemption
|
22
|
+
|
23
|
+
# Number of loyalty points that were redeemed. For Example: Points, such as 100
|
24
|
+
attr_accessor :points_redeemed
|
25
|
+
|
26
|
+
# The value of the loyalty points that were redeemed in the default currency. Max characters is 12 excluding the \".\" symbol For Example: Points, such as 100.00
|
27
|
+
attr_accessor :points_value_redeemed
|
28
|
+
|
29
|
+
# Loyalty Points remaining total balance after redemption. For Example: Points, such as 20.00
|
30
|
+
attr_accessor :points_after_redemption
|
31
|
+
|
32
|
+
# The value of the remaining loyalty points after redumption in the default currency. Max characters is 12 excluding the \".\" symbol For Example: Points, such as 20.00
|
33
|
+
attr_accessor :points_value_after_redemption
|
34
|
+
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
+
def self.attribute_map
|
37
|
+
{
|
38
|
+
:'points_before_redemption' => :'pointsBeforeRedemption',
|
39
|
+
:'points_value_before_redemption' => :'pointsValueBeforeRedemption',
|
40
|
+
:'points_redeemed' => :'pointsRedeemed',
|
41
|
+
:'points_value_redeemed' => :'pointsValueRedeemed',
|
42
|
+
:'points_after_redemption' => :'pointsAfterRedemption',
|
43
|
+
:'points_value_after_redemption' => :'pointsValueAfterRedemption'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Attribute type mapping.
|
48
|
+
def self.swagger_types
|
49
|
+
{
|
50
|
+
:'points_before_redemption' => :'String',
|
51
|
+
:'points_value_before_redemption' => :'String',
|
52
|
+
:'points_redeemed' => :'String',
|
53
|
+
:'points_value_redeemed' => :'String',
|
54
|
+
:'points_after_redemption' => :'String',
|
55
|
+
:'points_value_after_redemption' => :'String'
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
# Initializes the object
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
+
def initialize(attributes = {})
|
62
|
+
return unless attributes.is_a?(Hash)
|
63
|
+
|
64
|
+
# convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
66
|
+
|
67
|
+
if attributes.has_key?(:'pointsBeforeRedemption')
|
68
|
+
self.points_before_redemption = attributes[:'pointsBeforeRedemption']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'pointsValueBeforeRedemption')
|
72
|
+
self.points_value_before_redemption = attributes[:'pointsValueBeforeRedemption']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.has_key?(:'pointsRedeemed')
|
76
|
+
self.points_redeemed = attributes[:'pointsRedeemed']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.has_key?(:'pointsValueRedeemed')
|
80
|
+
self.points_value_redeemed = attributes[:'pointsValueRedeemed']
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.has_key?(:'pointsAfterRedemption')
|
84
|
+
self.points_after_redemption = attributes[:'pointsAfterRedemption']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.has_key?(:'pointsValueAfterRedemption')
|
88
|
+
self.points_value_after_redemption = attributes[:'pointsValueAfterRedemption']
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
93
|
+
# @return Array for valid properties with the reasons
|
94
|
+
def list_invalid_properties
|
95
|
+
invalid_properties = Array.new
|
96
|
+
invalid_properties
|
97
|
+
end
|
98
|
+
|
99
|
+
# Check to see if the all the properties in the model are valid
|
100
|
+
# @return true if the model is valid
|
101
|
+
def valid?
|
102
|
+
true
|
103
|
+
end
|
104
|
+
|
105
|
+
# Custom attribute writer method with validation
|
106
|
+
# @param [Object] points_before_redemption Value to be assigned
|
107
|
+
def points_before_redemption=(points_before_redemption)
|
108
|
+
@points_before_redemption = points_before_redemption
|
109
|
+
end
|
110
|
+
|
111
|
+
# Custom attribute writer method with validation
|
112
|
+
# @param [Object] points_value_before_redemption Value to be assigned
|
113
|
+
def points_value_before_redemption=(points_value_before_redemption)
|
114
|
+
@points_value_before_redemption = points_value_before_redemption
|
115
|
+
end
|
116
|
+
|
117
|
+
# Custom attribute writer method with validation
|
118
|
+
# @param [Object] points_redeemed Value to be assigned
|
119
|
+
def points_redeemed=(points_redeemed)
|
120
|
+
@points_redeemed = points_redeemed
|
121
|
+
end
|
122
|
+
|
123
|
+
# Custom attribute writer method with validation
|
124
|
+
# @param [Object] points_value_redeemed Value to be assigned
|
125
|
+
def points_value_redeemed=(points_value_redeemed)
|
126
|
+
@points_value_redeemed = points_value_redeemed
|
127
|
+
end
|
128
|
+
|
129
|
+
# Custom attribute writer method with validation
|
130
|
+
# @param [Object] points_after_redemption Value to be assigned
|
131
|
+
def points_after_redemption=(points_after_redemption)
|
132
|
+
@points_after_redemption = points_after_redemption
|
133
|
+
end
|
134
|
+
|
135
|
+
# Custom attribute writer method with validation
|
136
|
+
# @param [Object] points_value_after_redemption Value to be assigned
|
137
|
+
def points_value_after_redemption=(points_value_after_redemption)
|
138
|
+
@points_value_after_redemption = points_value_after_redemption
|
139
|
+
end
|
140
|
+
|
141
|
+
# Checks equality by comparing each attribute.
|
142
|
+
# @param [Object] Object to be compared
|
143
|
+
def ==(o)
|
144
|
+
return true if self.equal?(o)
|
145
|
+
self.class == o.class &&
|
146
|
+
points_before_redemption == o.points_before_redemption &&
|
147
|
+
points_value_before_redemption == o.points_value_before_redemption &&
|
148
|
+
points_redeemed == o.points_redeemed &&
|
149
|
+
points_value_redeemed == o.points_value_redeemed &&
|
150
|
+
points_after_redemption == o.points_after_redemption &&
|
151
|
+
points_value_after_redemption == o.points_value_after_redemption
|
152
|
+
end
|
153
|
+
|
154
|
+
# @see the `==` method
|
155
|
+
# @param [Object] Object to be compared
|
156
|
+
def eql?(o)
|
157
|
+
self == o
|
158
|
+
end
|
159
|
+
|
160
|
+
# Calculates hash code according to all attributes.
|
161
|
+
# @return [Fixnum] Hash code
|
162
|
+
def hash
|
163
|
+
[points_before_redemption, points_value_before_redemption, points_redeemed, points_value_redeemed, points_after_redemption, points_value_after_redemption].hash
|
164
|
+
end
|
165
|
+
|
166
|
+
# Builds the object from hash
|
167
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
168
|
+
# @return [Object] Returns the model itself
|
169
|
+
def build_from_hash(attributes)
|
170
|
+
return nil unless attributes.is_a?(Hash)
|
171
|
+
self.class.swagger_types.each_pair do |key, type|
|
172
|
+
if type =~ /\AArray<(.*)>/i
|
173
|
+
# check to ensure the input is an array given that the the attribute
|
174
|
+
# is documented as an array but the input is not
|
175
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
176
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
177
|
+
end
|
178
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
179
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
180
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
181
|
+
end
|
182
|
+
|
183
|
+
self
|
184
|
+
end
|
185
|
+
|
186
|
+
# Deserializes the data based on type
|
187
|
+
# @param string type Data type
|
188
|
+
# @param string value Value to be deserialized
|
189
|
+
# @return [Object] Deserialized data
|
190
|
+
def _deserialize(type, value)
|
191
|
+
case type.to_sym
|
192
|
+
when :DateTime
|
193
|
+
DateTime.parse(value)
|
194
|
+
when :Date
|
195
|
+
Date.parse(value)
|
196
|
+
when :String
|
197
|
+
value.to_s
|
198
|
+
when :Integer
|
199
|
+
value.to_i
|
200
|
+
when :Float
|
201
|
+
value.to_f
|
202
|
+
when :BOOLEAN
|
203
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
204
|
+
true
|
205
|
+
else
|
206
|
+
false
|
207
|
+
end
|
208
|
+
when :Object
|
209
|
+
# generic object (usually a Hash), return directly
|
210
|
+
value
|
211
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
212
|
+
inner_type = Regexp.last_match[:inner_type]
|
213
|
+
value.map { |v| _deserialize(inner_type, v) }
|
214
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
215
|
+
k_type = Regexp.last_match[:k_type]
|
216
|
+
v_type = Regexp.last_match[:v_type]
|
217
|
+
{}.tap do |hash|
|
218
|
+
value.each do |k, v|
|
219
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
220
|
+
end
|
221
|
+
end
|
222
|
+
else # model
|
223
|
+
temp_model = CyberSource.const_get(type).new
|
224
|
+
temp_model.build_from_hash(value)
|
225
|
+
end
|
226
|
+
end
|
227
|
+
|
228
|
+
# Returns the string representation of the object
|
229
|
+
# @return [String] String presentation of the object
|
230
|
+
def to_s
|
231
|
+
to_hash.to_s
|
232
|
+
end
|
233
|
+
|
234
|
+
# to_body is an alias to to_hash (backward compatibility)
|
235
|
+
# @return [Hash] Returns the object in the form of hash
|
236
|
+
def to_body
|
237
|
+
to_hash
|
238
|
+
end
|
239
|
+
|
240
|
+
# Returns the object in the form of hash
|
241
|
+
# @return [Hash] Returns the object in the form of hash
|
242
|
+
def to_hash
|
243
|
+
hash = {}
|
244
|
+
self.class.attribute_map.each_pair do |attr, param|
|
245
|
+
value = self.send(attr)
|
246
|
+
next if value.nil?
|
247
|
+
hash[param] = _to_hash(value)
|
248
|
+
end
|
249
|
+
hash
|
250
|
+
end
|
251
|
+
|
252
|
+
# Outputs non-array value in the form of hash
|
253
|
+
# For object, use to_hash. Otherwise, just return the value
|
254
|
+
# @param [Object] value Any valid value
|
255
|
+
# @return [Hash] Returns the value in the form of hash
|
256
|
+
def _to_hash(value)
|
257
|
+
if value.is_a?(Array)
|
258
|
+
value.compact.map { |v| _to_hash(v) }
|
259
|
+
elsif value.is_a?(Hash)
|
260
|
+
{}.tap do |hash|
|
261
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
262
|
+
end
|
263
|
+
elsif value.respond_to? :to_hash
|
264
|
+
value.to_hash
|
265
|
+
else
|
266
|
+
value
|
267
|
+
end
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|