cybersource_rest_client 0.0.37 → 0.0.38
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/http/GetSignatureParameter.rb +13 -6
- data/lib/AuthenticationSDK/authentication/http/HttpSignatureHeader.rb +13 -5
- data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +26 -11
- data/lib/AuthenticationSDK/authentication/oauth/OAuthToken.rb +11 -5
- data/lib/AuthenticationSDK/authentication/payloadDigest/digest.rb +2 -2
- data/lib/AuthenticationSDK/core/Authorization.rb +28 -20
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +72 -78
- data/lib/AuthenticationSDK/logging/log_configuration.rb +71 -0
- data/lib/AuthenticationSDK/logging/log_factory.rb +65 -0
- data/lib/AuthenticationSDK/logging/sensitive_logging.rb +101 -0
- data/lib/AuthenticationSDK/util/Cache.rb +1 -1
- data/lib/AuthenticationSDK/util/Constants.rb +25 -17
- data/lib/AuthenticationSDK/util/ExceptionHandler.rb +26 -0
- data/lib/AuthenticationSDK/util/PropertiesUtil.rb +2 -2
- data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +46 -46
- data/lib/cybersource_rest_client/api/capture_api.rb +16 -16
- data/lib/cybersource_rest_client/api/chargeback_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +16 -16
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/credit_api.rb +16 -16
- data/lib/cybersource_rest_client/api/customer_api.rb +61 -61
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +76 -76
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +76 -76
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +46 -46
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +16 -16
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +16 -16
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +91 -91
- data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/invoice_settings_api.rb +31 -31
- data/lib/cybersource_rest_client/api/invoices_api.rb +91 -91
- data/lib/cybersource_rest_client/api/key_generation_api.rb +16 -16
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +16 -16
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +16 -16
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +46 -46
- data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +16 -16
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +61 -61
- data/lib/cybersource_rest_client/api/payments_api.rb +31 -31
- data/lib/cybersource_rest_client/api/payouts_api.rb +16 -16
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/refund_api.rb +31 -31
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +31 -31
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +16 -16
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +76 -76
- data/lib/cybersource_rest_client/api/reports_api.rb +46 -46
- data/lib/cybersource_rest_client/api/retrieval_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +16 -16
- data/lib/cybersource_rest_client/api/reversal_api.rb +31 -31
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +31 -31
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +31 -31
- data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +46 -46
- data/lib/cybersource_rest_client/api/taxes_api.rb +31 -31
- data/lib/cybersource_rest_client/api/tokenization_api.rb +16 -16
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +46 -46
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/user_management_api.rb +16 -16
- data/lib/cybersource_rest_client/api/user_management_search_api.rb +16 -16
- data/lib/cybersource_rest_client/api/verification_api.rb +31 -31
- data/lib/cybersource_rest_client/api/void_api.rb +76 -76
- data/lib/cybersource_rest_client/api_client.rb +7 -8
- data/lib/cybersource_rest_client/models/create_adhoc_report_request.rb +2 -5
- data/lib/cybersource_rest_client/models/create_payment_request.rb +19 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +20 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +36 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +33 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_invoice_details.rb +191 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +49 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +33 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_e_wallet.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +191 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +14 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank.rb +215 -0
- data/lib/cybersource_rest_client/models/reportingv3reports_report_filters.rb +218 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +17 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +17 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +17 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_installment_information.rb +14 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +13 -4
- data/lib/cybersource_rest_client/utilities/flex/token_verification.rb +4 -4
- data/lib/cybersource_rest_client.rb +9 -2
- metadata +11 -4
- data/lib/AuthenticationSDK/core/Logger.rb +0 -26
- data/lib/AuthenticationSDK/util/ApiException.rb +0 -19
@@ -14,6 +14,9 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Riskv1authenticationresultsPaymentInformationTokenizedCard
|
17
|
+
# Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
|
18
|
+
attr_accessor :transaction_type
|
19
|
+
|
17
20
|
# Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
|
18
21
|
attr_accessor :type
|
19
22
|
|
@@ -29,6 +32,7 @@ module CyberSource
|
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
33
|
def self.attribute_map
|
31
34
|
{
|
35
|
+
:'transaction_type' => :'transactionType',
|
32
36
|
:'type' => :'type',
|
33
37
|
:'expiration_month' => :'expirationMonth',
|
34
38
|
:'expiration_year' => :'expirationYear',
|
@@ -39,6 +43,7 @@ module CyberSource
|
|
39
43
|
# Attribute type mapping.
|
40
44
|
def self.swagger_types
|
41
45
|
{
|
46
|
+
:'transaction_type' => :'String',
|
42
47
|
:'type' => :'String',
|
43
48
|
:'expiration_month' => :'String',
|
44
49
|
:'expiration_year' => :'String',
|
@@ -54,6 +59,10 @@ module CyberSource
|
|
54
59
|
# convert string to symbol for hash key
|
55
60
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
56
61
|
|
62
|
+
if attributes.has_key?(:'transactionType')
|
63
|
+
self.transaction_type = attributes[:'transactionType']
|
64
|
+
end
|
65
|
+
|
57
66
|
if attributes.has_key?(:'type')
|
58
67
|
self.type = attributes[:'type']
|
59
68
|
end
|
@@ -84,6 +93,12 @@ module CyberSource
|
|
84
93
|
true
|
85
94
|
end
|
86
95
|
|
96
|
+
# Custom attribute writer method with validation
|
97
|
+
# @param [Object] transaction_type Value to be assigned
|
98
|
+
def transaction_type=(transaction_type)
|
99
|
+
@transaction_type = transaction_type
|
100
|
+
end
|
101
|
+
|
87
102
|
# Custom attribute writer method with validation
|
88
103
|
# @param [Object] expiration_month Value to be assigned
|
89
104
|
def expiration_month=(expiration_month)
|
@@ -107,6 +122,7 @@ module CyberSource
|
|
107
122
|
def ==(o)
|
108
123
|
return true if self.equal?(o)
|
109
124
|
self.class == o.class &&
|
125
|
+
transaction_type == o.transaction_type &&
|
110
126
|
type == o.type &&
|
111
127
|
expiration_month == o.expiration_month &&
|
112
128
|
expiration_year == o.expiration_year &&
|
@@ -122,7 +138,7 @@ module CyberSource
|
|
122
138
|
# Calculates hash code according to all attributes.
|
123
139
|
# @return [Fixnum] Hash code
|
124
140
|
def hash
|
125
|
-
[type, expiration_month, expiration_year, number].hash
|
141
|
+
[transaction_type, type, expiration_month, expiration_year, number].hash
|
126
142
|
end
|
127
143
|
|
128
144
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb
CHANGED
@@ -14,6 +14,9 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Riskv1authenticationsPaymentInformationTokenizedCard
|
17
|
+
# Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
|
18
|
+
attr_accessor :transaction_type
|
19
|
+
|
17
20
|
# Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
|
18
21
|
attr_accessor :type
|
19
22
|
|
@@ -29,6 +32,7 @@ module CyberSource
|
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
33
|
def self.attribute_map
|
31
34
|
{
|
35
|
+
:'transaction_type' => :'transactionType',
|
32
36
|
:'type' => :'type',
|
33
37
|
:'expiration_month' => :'expirationMonth',
|
34
38
|
:'expiration_year' => :'expirationYear',
|
@@ -39,6 +43,7 @@ module CyberSource
|
|
39
43
|
# Attribute type mapping.
|
40
44
|
def self.swagger_types
|
41
45
|
{
|
46
|
+
:'transaction_type' => :'String',
|
42
47
|
:'type' => :'String',
|
43
48
|
:'expiration_month' => :'String',
|
44
49
|
:'expiration_year' => :'String',
|
@@ -54,6 +59,10 @@ module CyberSource
|
|
54
59
|
# convert string to symbol for hash key
|
55
60
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
56
61
|
|
62
|
+
if attributes.has_key?(:'transactionType')
|
63
|
+
self.transaction_type = attributes[:'transactionType']
|
64
|
+
end
|
65
|
+
|
57
66
|
if attributes.has_key?(:'type')
|
58
67
|
self.type = attributes[:'type']
|
59
68
|
end
|
@@ -104,6 +113,12 @@ module CyberSource
|
|
104
113
|
true
|
105
114
|
end
|
106
115
|
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param [Object] transaction_type Value to be assigned
|
118
|
+
def transaction_type=(transaction_type)
|
119
|
+
@transaction_type = transaction_type
|
120
|
+
end
|
121
|
+
|
107
122
|
# Custom attribute writer method with validation
|
108
123
|
# @param [Object] expiration_month Value to be assigned
|
109
124
|
def expiration_month=(expiration_month)
|
@@ -139,6 +154,7 @@ module CyberSource
|
|
139
154
|
def ==(o)
|
140
155
|
return true if self.equal?(o)
|
141
156
|
self.class == o.class &&
|
157
|
+
transaction_type == o.transaction_type &&
|
142
158
|
type == o.type &&
|
143
159
|
expiration_month == o.expiration_month &&
|
144
160
|
expiration_year == o.expiration_year &&
|
@@ -154,7 +170,7 @@ module CyberSource
|
|
154
170
|
# Calculates hash code according to all attributes.
|
155
171
|
# @return [Fixnum] Hash code
|
156
172
|
def hash
|
157
|
-
[type, expiration_month, expiration_year, number].hash
|
173
|
+
[transaction_type, type, expiration_month, expiration_year, number].hash
|
158
174
|
end
|
159
175
|
|
160
176
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb
CHANGED
@@ -15,6 +15,9 @@ require 'date'
|
|
15
15
|
module CyberSource
|
16
16
|
# Use this object to submit a payment network token instead of card-based values.
|
17
17
|
class Riskv1decisionsPaymentInformationTokenizedCard
|
18
|
+
# Type of transaction that provided the token data. This value does not specify the token service provider; it specifies the entity that provided you with information about the token. Possible value: - `2`: Near-field communication (NFC) transaction. The customer’s mobile device provided the token data for a contactless EMV transaction. For recurring transactions, use this value if the original transaction was a contactless EMV transaction. **NOTE** No CyberSource through VisaNet acquirers support EMV at this time. Required field for PIN debit credit or PIN debit purchase transactions that use payment network tokens; otherwise, not used.
|
19
|
+
attr_accessor :transaction_type
|
20
|
+
|
18
21
|
# Three-digit value that indicates the card type. **IMPORTANT** It is strongly recommended that you include the card type field in request messages even if it is optional for your processor and card type. Omitting the card type can cause the transaction to be processed with the wrong card type. Possible values: - `001`: Visa. For card-present transactions on all processors except SIX, the Visa Electron card type is processed the same way that the Visa debit card is processed. Use card type value `001` for Visa Electron. - `002`: Mastercard, Eurocard[^1], which is a European regional brand of Mastercard. - `003`: American Express - `004`: Discover - `005`: Diners Club - `006`: Carte Blanche[^1] - `007`: JCB[^1] - `014`: Enroute[^1] - `021`: JAL[^1] - `024`: Maestro (UK Domestic)[^1] - `031`: Delta[^1]: Use this value only for Ingenico ePayments. For other processors, use `001` for all Visa card types. - `033`: Visa Electron[^1]. Use this value only for Ingenico ePayments and SIX. For other processors, use `001` for all Visa card types. - `034`: Dankort[^1] - `036`: Cartes Bancaires[^1,4] - `037`: Carta Si[^1] - `039`: Encoded account number[^1] - `040`: UATP[^1] - `042`: Maestro (International)[^1] - `050`: Hipercard[^2,3] - `051`: Aura - `054`: Elo[^3] - `062`: China UnionPay [^1]: For this card type, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in your request for an authorization or a stand-alone credit. [^2]: For this card type on Cielo 3.0, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. This card type is not supported on Cielo 1.5. [^3]: For this card type on Getnet and Rede, you must include the `paymentInformation.card.type` or `paymentInformation.tokenizedCard.type` field in a request for an authorization or a stand-alone credit. [^4]: For this card type, you must include the `paymentInformation.card.type` in your request for any payer authentication services. #### Used by **Authorization** Required for Carte Blanche and JCB. Optional for all other card types. #### Card Present reply This field is included in the reply message when the client software that is installed on the POS terminal uses the token management service (TMS) to retrieve tokenized payment details. You must contact customer support to have your account enabled to receive these fields in the credit reply message. Returned by the Credit service. This reply field is only supported by the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX #### Google Pay transactions For PAN-based Google Pay transactions, this field is returned in the API response. #### GPX This field only supports transactions from the following card types: - Visa - Mastercard - AMEX - Discover - Diners - JCB - Union Pay International
|
19
22
|
attr_accessor :type
|
20
23
|
|
@@ -30,6 +33,7 @@ module CyberSource
|
|
30
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
34
|
def self.attribute_map
|
32
35
|
{
|
36
|
+
:'transaction_type' => :'transactionType',
|
33
37
|
:'type' => :'type',
|
34
38
|
:'number' => :'number',
|
35
39
|
:'expiration_month' => :'expirationMonth',
|
@@ -40,6 +44,7 @@ module CyberSource
|
|
40
44
|
# Attribute type mapping.
|
41
45
|
def self.swagger_types
|
42
46
|
{
|
47
|
+
:'transaction_type' => :'String',
|
43
48
|
:'type' => :'String',
|
44
49
|
:'number' => :'String',
|
45
50
|
:'expiration_month' => :'String',
|
@@ -55,6 +60,10 @@ module CyberSource
|
|
55
60
|
# convert string to symbol for hash key
|
56
61
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
57
62
|
|
63
|
+
if attributes.has_key?(:'transactionType')
|
64
|
+
self.transaction_type = attributes[:'transactionType']
|
65
|
+
end
|
66
|
+
|
58
67
|
if attributes.has_key?(:'type')
|
59
68
|
self.type = attributes[:'type']
|
60
69
|
end
|
@@ -85,6 +94,12 @@ module CyberSource
|
|
85
94
|
true
|
86
95
|
end
|
87
96
|
|
97
|
+
# Custom attribute writer method with validation
|
98
|
+
# @param [Object] transaction_type Value to be assigned
|
99
|
+
def transaction_type=(transaction_type)
|
100
|
+
@transaction_type = transaction_type
|
101
|
+
end
|
102
|
+
|
88
103
|
# Custom attribute writer method with validation
|
89
104
|
# @param [Object] number Value to be assigned
|
90
105
|
def number=(number)
|
@@ -108,6 +123,7 @@ module CyberSource
|
|
108
123
|
def ==(o)
|
109
124
|
return true if self.equal?(o)
|
110
125
|
self.class == o.class &&
|
126
|
+
transaction_type == o.transaction_type &&
|
111
127
|
type == o.type &&
|
112
128
|
number == o.number &&
|
113
129
|
expiration_month == o.expiration_month &&
|
@@ -123,7 +139,7 @@ module CyberSource
|
|
123
139
|
# Calculates hash code according to all attributes.
|
124
140
|
# @return [Fixnum] Hash code
|
125
141
|
def hash
|
126
|
-
[type, number, expiration_month, expiration_year].hash
|
142
|
+
[transaction_type, type, number, expiration_month, expiration_year].hash
|
127
143
|
end
|
128
144
|
|
129
145
|
# Builds the object from hash
|
@@ -17,17 +17,22 @@ module CyberSource
|
|
17
17
|
# Number of Installments.
|
18
18
|
attr_accessor :number_of_installments
|
19
19
|
|
20
|
+
# Standing Instruction/Installment identifier.
|
21
|
+
attr_accessor :identifier
|
22
|
+
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
24
|
def self.attribute_map
|
22
25
|
{
|
23
|
-
:'number_of_installments' => :'numberOfInstallments'
|
26
|
+
:'number_of_installments' => :'numberOfInstallments',
|
27
|
+
:'identifier' => :'identifier'
|
24
28
|
}
|
25
29
|
end
|
26
30
|
|
27
31
|
# Attribute type mapping.
|
28
32
|
def self.swagger_types
|
29
33
|
{
|
30
|
-
:'number_of_installments' => :'String'
|
34
|
+
:'number_of_installments' => :'String',
|
35
|
+
:'identifier' => :'String'
|
31
36
|
}
|
32
37
|
end
|
33
38
|
|
@@ -42,6 +47,10 @@ module CyberSource
|
|
42
47
|
if attributes.has_key?(:'numberOfInstallments')
|
43
48
|
self.number_of_installments = attributes[:'numberOfInstallments']
|
44
49
|
end
|
50
|
+
|
51
|
+
if attributes.has_key?(:'identifier')
|
52
|
+
self.identifier = attributes[:'identifier']
|
53
|
+
end
|
45
54
|
end
|
46
55
|
|
47
56
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -62,7 +71,8 @@ module CyberSource
|
|
62
71
|
def ==(o)
|
63
72
|
return true if self.equal?(o)
|
64
73
|
self.class == o.class &&
|
65
|
-
number_of_installments == o.number_of_installments
|
74
|
+
number_of_installments == o.number_of_installments &&
|
75
|
+
identifier == o.identifier
|
66
76
|
end
|
67
77
|
|
68
78
|
# @see the `==` method
|
@@ -74,7 +84,7 @@ module CyberSource
|
|
74
84
|
# Calculates hash code according to all attributes.
|
75
85
|
# @return [Fixnum] Hash code
|
76
86
|
def hash
|
77
|
-
[number_of_installments].hash
|
87
|
+
[number_of_installments, identifier].hash
|
78
88
|
end
|
79
89
|
|
80
90
|
# Builds the object from hash
|
@@ -32,6 +32,8 @@ module CyberSource
|
|
32
32
|
# This is a multicurrency-only field. It contains a 3-digit numeric code that identifies the currency used by the issuer to bill the cardholder's account. This field is returned for OCT transactions.
|
33
33
|
attr_accessor :settlement_currency
|
34
34
|
|
35
|
+
attr_accessor :surcharge
|
36
|
+
|
35
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
38
|
def self.attribute_map
|
37
39
|
{
|
@@ -40,7 +42,8 @@ module CyberSource
|
|
40
42
|
:'tax_amount' => :'taxAmount',
|
41
43
|
:'authorized_amount' => :'authorizedAmount',
|
42
44
|
:'settlement_amount' => :'settlementAmount',
|
43
|
-
:'settlement_currency' => :'settlementCurrency'
|
45
|
+
:'settlement_currency' => :'settlementCurrency',
|
46
|
+
:'surcharge' => :'surcharge'
|
44
47
|
}
|
45
48
|
end
|
46
49
|
|
@@ -52,7 +55,8 @@ module CyberSource
|
|
52
55
|
:'tax_amount' => :'String',
|
53
56
|
:'authorized_amount' => :'String',
|
54
57
|
:'settlement_amount' => :'String',
|
55
|
-
:'settlement_currency' => :'String'
|
58
|
+
:'settlement_currency' => :'String',
|
59
|
+
:'surcharge' => :'Ptsv2paymentsOrderInformationAmountDetailsSurcharge'
|
56
60
|
}
|
57
61
|
end
|
58
62
|
|
@@ -87,6 +91,10 @@ module CyberSource
|
|
87
91
|
if attributes.has_key?(:'settlementCurrency')
|
88
92
|
self.settlement_currency = attributes[:'settlementCurrency']
|
89
93
|
end
|
94
|
+
|
95
|
+
if attributes.has_key?(:'surcharge')
|
96
|
+
self.surcharge = attributes[:'surcharge']
|
97
|
+
end
|
90
98
|
end
|
91
99
|
|
92
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -148,7 +156,8 @@ module CyberSource
|
|
148
156
|
tax_amount == o.tax_amount &&
|
149
157
|
authorized_amount == o.authorized_amount &&
|
150
158
|
settlement_amount == o.settlement_amount &&
|
151
|
-
settlement_currency == o.settlement_currency
|
159
|
+
settlement_currency == o.settlement_currency &&
|
160
|
+
surcharge == o.surcharge
|
152
161
|
end
|
153
162
|
|
154
163
|
# @see the `==` method
|
@@ -160,7 +169,7 @@ module CyberSource
|
|
160
169
|
# Calculates hash code according to all attributes.
|
161
170
|
# @return [Fixnum] Hash code
|
162
171
|
def hash
|
163
|
-
[total_amount, currency, tax_amount, authorized_amount, settlement_amount, settlement_currency].hash
|
172
|
+
[total_amount, currency, tax_amount, authorized_amount, settlement_amount, settlement_currency, surcharge].hash
|
164
173
|
end
|
165
174
|
|
166
175
|
# Builds the object from hash
|
@@ -1,4 +1,4 @@
|
|
1
|
-
module CyberSource
|
1
|
+
module CyberSource
|
2
2
|
class TokenVerification
|
3
3
|
def verifyToken(public_key, post_param)
|
4
4
|
post_param = JSON.parse(post_param)
|
@@ -26,10 +26,10 @@ module CyberSource
|
|
26
26
|
string_to_pem = Base64.decode64(public_key)
|
27
27
|
public_key_to_pem = OpenSSL::PKey::RSA.new(string_to_pem)
|
28
28
|
verify = public_key_to_pem.verify(OpenSSL::Digest::SHA512.new, Base64.decode64(signature), signed_values)
|
29
|
-
rescue StandardError => err
|
30
|
-
|
29
|
+
rescue StandardError => err
|
30
|
+
raise err
|
31
31
|
end
|
32
|
-
|
32
|
+
|
33
33
|
# Converting response field from camelCase to Underscore
|
34
34
|
def CamelCasetoUnderscore(str)
|
35
35
|
str.gsub(/::/, '/').
|
@@ -15,9 +15,11 @@ require 'AuthenticationSDK/util/Utility.rb'
|
|
15
15
|
require 'AuthenticationSDK/util/PropertiesUtil.rb'
|
16
16
|
require 'AuthenticationSDK/util/Constants.rb'
|
17
17
|
require 'AuthenticationSDK/util/Cache.rb'
|
18
|
-
require 'AuthenticationSDK/util/
|
18
|
+
require 'AuthenticationSDK/util/ExceptionHandler.rb'
|
19
|
+
require 'AuthenticationSDK/logging/log_configuration.rb'
|
20
|
+
require 'AuthenticationSDK/logging/log_factory.rb'
|
21
|
+
require 'AuthenticationSDK/logging/sensitive_logging.rb'
|
19
22
|
require 'AuthenticationSDK/core/MerchantConfig.rb'
|
20
|
-
require 'AuthenticationSDK/core/Logger.rb'
|
21
23
|
require 'AuthenticationSDK/core/ITokenGeneration.rb'
|
22
24
|
require 'AuthenticationSDK/core/Authorization.rb'
|
23
25
|
require 'AuthenticationSDK/authentication/payloadDigest/digest.rb'
|
@@ -287,6 +289,7 @@ require 'cybersource_rest_client/models/ptsv2payments_device_information_raw_dat
|
|
287
289
|
require 'cybersource_rest_client/models/ptsv2payments_health_care_information'
|
288
290
|
require 'cybersource_rest_client/models/ptsv2payments_health_care_information_amount_details'
|
289
291
|
require 'cybersource_rest_client/models/ptsv2payments_installment_information'
|
292
|
+
require 'cybersource_rest_client/models/ptsv2payments_invoice_details'
|
290
293
|
require 'cybersource_rest_client/models/ptsv2payments_issuer_information'
|
291
294
|
require 'cybersource_rest_client/models/ptsv2payments_merchant_defined_information'
|
292
295
|
require 'cybersource_rest_client/models/ptsv2payments_merchant_information'
|
@@ -311,6 +314,7 @@ require 'cybersource_rest_client/models/ptsv2payments_payment_information_bank'
|
|
311
314
|
require 'cybersource_rest_client/models/ptsv2payments_payment_information_bank_account'
|
312
315
|
require 'cybersource_rest_client/models/ptsv2payments_payment_information_card'
|
313
316
|
require 'cybersource_rest_client/models/ptsv2payments_payment_information_customer'
|
317
|
+
require 'cybersource_rest_client/models/ptsv2payments_payment_information_e_wallet'
|
314
318
|
require 'cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data'
|
315
319
|
require 'cybersource_rest_client/models/ptsv2payments_payment_information_instrument_identifier'
|
316
320
|
require 'cybersource_rest_client/models/ptsv2payments_payment_information_legacy_token'
|
@@ -332,6 +336,7 @@ require 'cybersource_rest_client/models/ptsv2payments_processing_information_jap
|
|
332
336
|
require 'cybersource_rest_client/models/ptsv2payments_processing_information_loan_options'
|
333
337
|
require 'cybersource_rest_client/models/ptsv2payments_processing_information_purchase_options'
|
334
338
|
require 'cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options'
|
339
|
+
require 'cybersource_rest_client/models/ptsv2payments_processor_information'
|
335
340
|
require 'cybersource_rest_client/models/ptsv2payments_promotion_information'
|
336
341
|
require 'cybersource_rest_client/models/ptsv2payments_recipient_information'
|
337
342
|
require 'cybersource_rest_client/models/ptsv2payments_recurring_payment_information'
|
@@ -390,6 +395,7 @@ require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_informat
|
|
390
395
|
require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information'
|
391
396
|
require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items'
|
392
397
|
require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information'
|
398
|
+
require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank'
|
393
399
|
require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card'
|
394
400
|
require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information'
|
395
401
|
require 'cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information'
|
@@ -461,6 +467,7 @@ require 'cybersource_rest_client/models/reporting_v3_retrieval_details_get200_re
|
|
461
467
|
require 'cybersource_rest_client/models/reporting_v3_retrieval_summaries_get200_response'
|
462
468
|
require 'cybersource_rest_client/models/reportingv3_report_downloads_get400_response'
|
463
469
|
require 'cybersource_rest_client/models/reportingv3_report_downloads_get400_response_details'
|
470
|
+
require 'cybersource_rest_client/models/reportingv3reports_report_filters'
|
464
471
|
require 'cybersource_rest_client/models/reportingv3reports_report_preferences'
|
465
472
|
require 'cybersource_rest_client/models/risk_v1_address_verifications_post201_response'
|
466
473
|
require 'cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cybersource_rest_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.38
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CyberSource
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -306,11 +306,13 @@ files:
|
|
306
306
|
- lib/AuthenticationSDK/authentication/payloadDigest/digest.rb
|
307
307
|
- lib/AuthenticationSDK/core/Authorization.rb
|
308
308
|
- lib/AuthenticationSDK/core/ITokenGeneration.rb
|
309
|
-
- lib/AuthenticationSDK/core/Logger.rb
|
310
309
|
- lib/AuthenticationSDK/core/MerchantConfig.rb
|
311
|
-
- lib/AuthenticationSDK/
|
310
|
+
- lib/AuthenticationSDK/logging/log_configuration.rb
|
311
|
+
- lib/AuthenticationSDK/logging/log_factory.rb
|
312
|
+
- lib/AuthenticationSDK/logging/sensitive_logging.rb
|
312
313
|
- lib/AuthenticationSDK/util/Cache.rb
|
313
314
|
- lib/AuthenticationSDK/util/Constants.rb
|
315
|
+
- lib/AuthenticationSDK/util/ExceptionHandler.rb
|
314
316
|
- lib/AuthenticationSDK/util/PropertiesUtil.rb
|
315
317
|
- lib/AuthenticationSDK/util/Utility.rb
|
316
318
|
- lib/cybersource_rest_client.rb
|
@@ -615,6 +617,7 @@ files:
|
|
615
617
|
- lib/cybersource_rest_client/models/ptsv2payments_health_care_information.rb
|
616
618
|
- lib/cybersource_rest_client/models/ptsv2payments_health_care_information_amount_details.rb
|
617
619
|
- lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb
|
620
|
+
- lib/cybersource_rest_client/models/ptsv2payments_invoice_details.rb
|
618
621
|
- lib/cybersource_rest_client/models/ptsv2payments_issuer_information.rb
|
619
622
|
- lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb
|
620
623
|
- lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb
|
@@ -640,6 +643,7 @@ files:
|
|
640
643
|
- lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb
|
641
644
|
- lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb
|
642
645
|
- lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb
|
646
|
+
- lib/cybersource_rest_client/models/ptsv2payments_payment_information_e_wallet.rb
|
643
647
|
- lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb
|
644
648
|
- lib/cybersource_rest_client/models/ptsv2payments_payment_information_instrument_identifier.rb
|
645
649
|
- lib/cybersource_rest_client/models/ptsv2payments_payment_information_legacy_token.rb
|
@@ -660,6 +664,7 @@ files:
|
|
660
664
|
- lib/cybersource_rest_client/models/ptsv2payments_processing_information_loan_options.rb
|
661
665
|
- lib/cybersource_rest_client/models/ptsv2payments_processing_information_purchase_options.rb
|
662
666
|
- lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb
|
667
|
+
- lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb
|
663
668
|
- lib/cybersource_rest_client/models/ptsv2payments_promotion_information.rb
|
664
669
|
- lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb
|
665
670
|
- lib/cybersource_rest_client/models/ptsv2payments_recurring_payment_information.rb
|
@@ -718,6 +723,7 @@ files:
|
|
718
723
|
- lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information.rb
|
719
724
|
- lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb
|
720
725
|
- lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb
|
726
|
+
- lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank.rb
|
721
727
|
- lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb
|
722
728
|
- lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb
|
723
729
|
- lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb
|
@@ -789,6 +795,7 @@ files:
|
|
789
795
|
- lib/cybersource_rest_client/models/reporting_v3_retrieval_summaries_get200_response.rb
|
790
796
|
- lib/cybersource_rest_client/models/reportingv3_report_downloads_get400_response.rb
|
791
797
|
- lib/cybersource_rest_client/models/reportingv3_report_downloads_get400_response_details.rb
|
798
|
+
- lib/cybersource_rest_client/models/reportingv3reports_report_filters.rb
|
792
799
|
- lib/cybersource_rest_client/models/reportingv3reports_report_preferences.rb
|
793
800
|
- lib/cybersource_rest_client/models/resource_not_found_error.rb
|
794
801
|
- lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response.rb
|
@@ -1,26 +0,0 @@
|
|
1
|
-
require_relative '../util/ApiException.rb'
|
2
|
-
require 'logger'
|
3
|
-
public
|
4
|
-
# Logger Class
|
5
|
-
class Log
|
6
|
-
def initialize(logDirectory, logFilename, logSize, enableLog)
|
7
|
-
#log
|
8
|
-
if enableLog == true
|
9
|
-
filename = logDirectory + '/' + logFilename + '.log'
|
10
|
-
datetime = DateTime.now
|
11
|
-
if File.exist?(filename) && File.size(filename) >= logSize
|
12
|
-
updatedFileName = logDirectory + '/' + logFilename + '_' + datetime.strftime('%Y%m%d%H%M%S') + '.log'
|
13
|
-
File.rename(filename, updatedFileName)
|
14
|
-
end
|
15
|
-
@logger = Logger.new(STDOUT)
|
16
|
-
@logger = Logger.new(filename, logSize)
|
17
|
-
@logger.datetime_format = datetime.strftime('%Y-%m-%d %H:%M:%S')
|
18
|
-
else
|
19
|
-
@logger = Logger.new(false)
|
20
|
-
end
|
21
|
-
rescue StandardError => err
|
22
|
-
puts err
|
23
|
-
exit!
|
24
|
-
end
|
25
|
-
attr_accessor :logger
|
26
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
public
|
2
|
-
class ApiException
|
3
|
-
def apiexception(err,log_Obj)
|
4
|
-
log_Obj.logger.error(err.message)
|
5
|
-
if !err.backtrace.to_s.empty?
|
6
|
-
log_Obj.logger.error(err.backtrace)
|
7
|
-
end
|
8
|
-
log_Obj.logger.info('END> =======================================')
|
9
|
-
puts 'Check log for more details.'
|
10
|
-
end
|
11
|
-
def apiwarning(message,log_Obj)
|
12
|
-
log_Obj.logger.warn(message)
|
13
|
-
end
|
14
|
-
def customerror(message,log_Obj)
|
15
|
-
log_Obj.logger.error(message)
|
16
|
-
log_Obj.logger.info('END> =======================================')
|
17
|
-
puts 'Check log for more details.'
|
18
|
-
end
|
19
|
-
end
|