cybersource_rest_client 0.0.36 → 0.0.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client/api/invoices_api.rb +6 -6
- data/lib/cybersource_rest_client/models/create_search_request.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_buyer_information.rb +243 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +10 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_issuer_information.rb +206 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information_strong_authentication.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +24 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +36 -4
- data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +17 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +17 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +13 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information_partner.rb +190 -0
- data/lib/cybersource_rest_client.rb +5 -1
- metadata +6 -2
@@ -0,0 +1,183 @@
|
|
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 PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthentication
|
17
|
+
attr_accessor :issuer_information
|
18
|
+
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
+
def self.attribute_map
|
21
|
+
{
|
22
|
+
:'issuer_information' => :'issuerInformation'
|
23
|
+
}
|
24
|
+
end
|
25
|
+
|
26
|
+
# Attribute type mapping.
|
27
|
+
def self.swagger_types
|
28
|
+
{
|
29
|
+
:'issuer_information' => :'PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthenticationIssuerInformation'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Initializes the object
|
34
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
35
|
+
def initialize(attributes = {})
|
36
|
+
return unless attributes.is_a?(Hash)
|
37
|
+
|
38
|
+
# convert string to symbol for hash key
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
40
|
+
|
41
|
+
if attributes.has_key?(:'issuerInformation')
|
42
|
+
self.issuer_information = attributes[:'issuerInformation']
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
47
|
+
# @return Array for valid properties with the reasons
|
48
|
+
def list_invalid_properties
|
49
|
+
invalid_properties = Array.new
|
50
|
+
invalid_properties
|
51
|
+
end
|
52
|
+
|
53
|
+
# Check to see if the all the properties in the model are valid
|
54
|
+
# @return true if the model is valid
|
55
|
+
def valid?
|
56
|
+
true
|
57
|
+
end
|
58
|
+
|
59
|
+
# Checks equality by comparing each attribute.
|
60
|
+
# @param [Object] Object to be compared
|
61
|
+
def ==(o)
|
62
|
+
return true if self.equal?(o)
|
63
|
+
self.class == o.class &&
|
64
|
+
issuer_information == o.issuer_information
|
65
|
+
end
|
66
|
+
|
67
|
+
# @see the `==` method
|
68
|
+
# @param [Object] Object to be compared
|
69
|
+
def eql?(o)
|
70
|
+
self == o
|
71
|
+
end
|
72
|
+
|
73
|
+
# Calculates hash code according to all attributes.
|
74
|
+
# @return [Fixnum] Hash code
|
75
|
+
def hash
|
76
|
+
[issuer_information].hash
|
77
|
+
end
|
78
|
+
|
79
|
+
# Builds the object from hash
|
80
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
81
|
+
# @return [Object] Returns the model itself
|
82
|
+
def build_from_hash(attributes)
|
83
|
+
return nil unless attributes.is_a?(Hash)
|
84
|
+
self.class.swagger_types.each_pair do |key, type|
|
85
|
+
if type =~ /\AArray<(.*)>/i
|
86
|
+
# check to ensure the input is an array given that the the attribute
|
87
|
+
# is documented as an array but the input is not
|
88
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
89
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
90
|
+
end
|
91
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
92
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
93
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
94
|
+
end
|
95
|
+
|
96
|
+
self
|
97
|
+
end
|
98
|
+
|
99
|
+
# Deserializes the data based on type
|
100
|
+
# @param string type Data type
|
101
|
+
# @param string value Value to be deserialized
|
102
|
+
# @return [Object] Deserialized data
|
103
|
+
def _deserialize(type, value)
|
104
|
+
case type.to_sym
|
105
|
+
when :DateTime
|
106
|
+
DateTime.parse(value)
|
107
|
+
when :Date
|
108
|
+
Date.parse(value)
|
109
|
+
when :String
|
110
|
+
value.to_s
|
111
|
+
when :Integer
|
112
|
+
value.to_i
|
113
|
+
when :Float
|
114
|
+
value.to_f
|
115
|
+
when :BOOLEAN
|
116
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
117
|
+
true
|
118
|
+
else
|
119
|
+
false
|
120
|
+
end
|
121
|
+
when :Object
|
122
|
+
# generic object (usually a Hash), return directly
|
123
|
+
value
|
124
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
125
|
+
inner_type = Regexp.last_match[:inner_type]
|
126
|
+
value.map { |v| _deserialize(inner_type, v) }
|
127
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
128
|
+
k_type = Regexp.last_match[:k_type]
|
129
|
+
v_type = Regexp.last_match[:v_type]
|
130
|
+
{}.tap do |hash|
|
131
|
+
value.each do |k, v|
|
132
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
else # model
|
136
|
+
temp_model = CyberSource.const_get(type).new
|
137
|
+
temp_model.build_from_hash(value)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
# Returns the string representation of the object
|
142
|
+
# @return [String] String presentation of the object
|
143
|
+
def to_s
|
144
|
+
to_hash.to_s
|
145
|
+
end
|
146
|
+
|
147
|
+
# to_body is an alias to to_hash (backward compatibility)
|
148
|
+
# @return [Hash] Returns the object in the form of hash
|
149
|
+
def to_body
|
150
|
+
to_hash
|
151
|
+
end
|
152
|
+
|
153
|
+
# Returns the object in the form of hash
|
154
|
+
# @return [Hash] Returns the object in the form of hash
|
155
|
+
def to_hash
|
156
|
+
hash = {}
|
157
|
+
self.class.attribute_map.each_pair do |attr, param|
|
158
|
+
value = self.send(attr)
|
159
|
+
next if value.nil?
|
160
|
+
hash[param] = _to_hash(value)
|
161
|
+
end
|
162
|
+
hash
|
163
|
+
end
|
164
|
+
|
165
|
+
# Outputs non-array value in the form of hash
|
166
|
+
# For object, use to_hash. Otherwise, just return the value
|
167
|
+
# @param [Object] value Any valid value
|
168
|
+
# @return [Hash] Returns the value in the form of hash
|
169
|
+
def _to_hash(value)
|
170
|
+
if value.is_a?(Array)
|
171
|
+
value.compact.map { |v| _to_hash(v) }
|
172
|
+
elsif value.is_a?(Hash)
|
173
|
+
{}.tap do |hash|
|
174
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
175
|
+
end
|
176
|
+
elsif value.respond_to? :to_hash
|
177
|
+
value.to_hash
|
178
|
+
else
|
179
|
+
value
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb
CHANGED
@@ -87,6 +87,9 @@ module CyberSource
|
|
87
87
|
# Identifier that was assigned to you by your acquirer. This value must be printed on the receipt. #### Returned by Authorizations and Credits. This reply field is only supported by merchants who have installed client software on their POS terminals and use these processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX
|
88
88
|
attr_accessor :merchant_number
|
89
89
|
|
90
|
+
# #### Ingenico ePayments Unique number that CyberSource generates to identify the transaction. You can use this value to identify transactions in the Ingenico ePayments Collections Report, which provides settlement information. Contact customer support for information about the report. ### CyberSource through VisaNet Retrieval request number.
|
91
|
+
attr_accessor :retrieval_reference_number
|
92
|
+
|
90
93
|
# Attribute mapping from ruby-style variable name to JSON key.
|
91
94
|
def self.attribute_map
|
92
95
|
{
|
@@ -116,7 +119,8 @@ module CyberSource
|
|
116
119
|
:'master_card_authentication_type' => :'masterCardAuthenticationType',
|
117
120
|
:'name' => :'name',
|
118
121
|
:'routing' => :'routing',
|
119
|
-
:'merchant_number' => :'merchantNumber'
|
122
|
+
:'merchant_number' => :'merchantNumber',
|
123
|
+
:'retrieval_reference_number' => :'retrievalReferenceNumber'
|
120
124
|
}
|
121
125
|
end
|
122
126
|
|
@@ -149,7 +153,8 @@ module CyberSource
|
|
149
153
|
:'master_card_authentication_type' => :'String',
|
150
154
|
:'name' => :'String',
|
151
155
|
:'routing' => :'PtsV2PaymentsPost201ResponseProcessorInformationRouting',
|
152
|
-
:'merchant_number' => :'String'
|
156
|
+
:'merchant_number' => :'String',
|
157
|
+
:'retrieval_reference_number' => :'String'
|
153
158
|
}
|
154
159
|
end
|
155
160
|
|
@@ -268,6 +273,10 @@ module CyberSource
|
|
268
273
|
if attributes.has_key?(:'merchantNumber')
|
269
274
|
self.merchant_number = attributes[:'merchantNumber']
|
270
275
|
end
|
276
|
+
|
277
|
+
if attributes.has_key?(:'retrievalReferenceNumber')
|
278
|
+
self.retrieval_reference_number = attributes[:'retrievalReferenceNumber']
|
279
|
+
end
|
271
280
|
end
|
272
281
|
|
273
282
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -391,6 +400,12 @@ module CyberSource
|
|
391
400
|
@merchant_number = merchant_number
|
392
401
|
end
|
393
402
|
|
403
|
+
# Custom attribute writer method with validation
|
404
|
+
# @param [Object] retrieval_reference_number Value to be assigned
|
405
|
+
def retrieval_reference_number=(retrieval_reference_number)
|
406
|
+
@retrieval_reference_number = retrieval_reference_number
|
407
|
+
end
|
408
|
+
|
394
409
|
# Checks equality by comparing each attribute.
|
395
410
|
# @param [Object] Object to be compared
|
396
411
|
def ==(o)
|
@@ -422,7 +437,8 @@ module CyberSource
|
|
422
437
|
master_card_authentication_type == o.master_card_authentication_type &&
|
423
438
|
name == o.name &&
|
424
439
|
routing == o.routing &&
|
425
|
-
merchant_number == o.merchant_number
|
440
|
+
merchant_number == o.merchant_number &&
|
441
|
+
retrieval_reference_number == o.retrieval_reference_number
|
426
442
|
end
|
427
443
|
|
428
444
|
# @see the `==` method
|
@@ -434,7 +450,7 @@ module CyberSource
|
|
434
450
|
# Calculates hash code according to all attributes.
|
435
451
|
# @return [Fixnum] Hash code
|
436
452
|
def hash
|
437
|
-
[auth_indicator, approval_code, card_reference_data, transaction_id, network_transaction_id, response_code, response_code_source, response_details, response_category_code, forwarded_acquirer_code, avs, card_verification, merchant_advice, electronic_verification_results, ach_verification, customer, consumer_authentication_response, system_trace_audit_number, payment_account_reference_number, transaction_integrity_code, amex_verbal_auth_reference_number, master_card_service_code, master_card_service_reply_code, master_card_authentication_type, name, routing, merchant_number].hash
|
453
|
+
[auth_indicator, approval_code, card_reference_data, transaction_id, network_transaction_id, response_code, response_code_source, response_details, response_category_code, forwarded_acquirer_code, avs, card_verification, merchant_advice, electronic_verification_results, ach_verification, customer, consumer_authentication_response, system_trace_audit_number, payment_account_reference_number, transaction_integrity_code, amex_verbal_auth_reference_number, master_card_service_code, master_card_service_reply_code, master_card_authentication_type, name, routing, merchant_number, retrieval_reference_number].hash
|
438
454
|
end
|
439
455
|
|
440
456
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb
CHANGED
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Ptsv2paymentsBuyerInformationPersonalIdentification
|
17
|
-
# The type of the identification. Possible values: - `NATIONAL` - `CPF` - `CPNJ` - `CURP` - `SSN` - `DRIVER_LICENSE` This field is supported only on the following processors. #### ComercioLatino Set this field to the Cadastro de Pessoas Fisicas (CPF). #### CyberSource Latin American Processing Supported for Redecard in Brazil. Set this field to the Cadastro de Pessoas Fisicas (CPF), which is required for AVS for Redecard in Brazil. **Note** CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this field description is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. For processor-specific information, see the `personal_id` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
17
|
+
# The type of the identification. Possible values: - `NATIONAL` - `CPF` - `CPNJ` - `CURP` - `SSN` - `DRIVER_LICENSE` - `PASSPORT_NUMBER` - `PERSONAL_ID` - `TAX_ID` This field is supported only on the following processors. #### ComercioLatino Set this field to the Cadastro de Pessoas Fisicas (CPF). #### CyberSource Latin American Processing Supported for Redecard in Brazil. Set this field to the Cadastro de Pessoas Fisicas (CPF), which is required for AVS for Redecard in Brazil. **Note** CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this field description is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. For processor-specific information, see the `personal_id` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
18
18
|
attr_accessor :type
|
19
19
|
|
20
20
|
# The value of the identification type. This field is supported only on the following processors. #### ComercioLatino Set this field to the Cadastro de Pessoas Fisicas (CPF). #### CyberSource Latin American Processing Supported for Redecard in Brazil. Set this field to the Cadastro de Pessoas Fisicas (CPF), which is required for AVS for Redecard in Brazil. **Note** CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this field description is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. For processor-specific information, see the `personal_id` field in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) If `type = PASSPORT`, this is the cardholder's passport number. Recommended for Discover ProtectBuy.
|
@@ -23,12 +23,16 @@ module CyberSource
|
|
23
23
|
# The government agency that issued the driver's license or passport. If **type**` = DRIVER_LICENSE`, this is the State or province where the customer’s driver’s license was issued. If **type**` = PASSPORT`, this is the Issuing country for the cardholder’s passport. Recommended for Discover ProtectBuy. Use the two-character [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf). #### TeleCheck Contact your TeleCheck representative to find out whether this field is required or optional. #### All Other Processors Not used. For details about the country that issued the passport, see `customer_passport_country` field description in [CyberSource Payer Authentication Using the SCMP API] (https://apps.cybersource.com/library/documentation/dev_guides/Payer_Authentication_SCMP_API/html/) For details about the state or province that issued the passport, see `driver_license_state` field description in [Electronic Check Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/EChecks_SCMP_API/html/)
|
24
24
|
attr_accessor :issued_by
|
25
25
|
|
26
|
+
# Verification results received from Issuer or Card Network for verification transactions. Response Only Field.
|
27
|
+
attr_accessor :verification_results
|
28
|
+
|
26
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
30
|
def self.attribute_map
|
28
31
|
{
|
29
32
|
:'type' => :'type',
|
30
33
|
:'id' => :'id',
|
31
|
-
:'issued_by' => :'issuedBy'
|
34
|
+
:'issued_by' => :'issuedBy',
|
35
|
+
:'verification_results' => :'verificationResults'
|
32
36
|
}
|
33
37
|
end
|
34
38
|
|
@@ -37,7 +41,8 @@ module CyberSource
|
|
37
41
|
{
|
38
42
|
:'type' => :'String',
|
39
43
|
:'id' => :'String',
|
40
|
-
:'issued_by' => :'String'
|
44
|
+
:'issued_by' => :'String',
|
45
|
+
:'verification_results' => :'String'
|
41
46
|
}
|
42
47
|
end
|
43
48
|
|
@@ -60,6 +65,10 @@ module CyberSource
|
|
60
65
|
if attributes.has_key?(:'issuedBy')
|
61
66
|
self.issued_by = attributes[:'issuedBy']
|
62
67
|
end
|
68
|
+
|
69
|
+
if attributes.has_key?(:'verificationResults')
|
70
|
+
self.verification_results = attributes[:'verificationResults']
|
71
|
+
end
|
63
72
|
end
|
64
73
|
|
65
74
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -88,7 +97,8 @@ module CyberSource
|
|
88
97
|
self.class == o.class &&
|
89
98
|
type == o.type &&
|
90
99
|
id == o.id &&
|
91
|
-
issued_by == o.issued_by
|
100
|
+
issued_by == o.issued_by &&
|
101
|
+
verification_results == o.verification_results
|
92
102
|
end
|
93
103
|
|
94
104
|
# @see the `==` method
|
@@ -100,7 +110,7 @@ module CyberSource
|
|
100
110
|
# Calculates hash code according to all attributes.
|
101
111
|
# @return [Fixnum] Hash code
|
102
112
|
def hash
|
103
|
-
[type, id, issued_by].hash
|
113
|
+
[type, id, issued_by, verification_results].hash
|
104
114
|
end
|
105
115
|
|
106
116
|
# Builds the object from hash
|
@@ -29,6 +29,9 @@ module CyberSource
|
|
29
29
|
# This field will contain the delegated authentication exemption indicator with one of the following values: Possible values: - `0` (delegated Authentication exemption does not apply to the transaction) - `1` (Transaction exempt from SCA as authentication has been delegated to other provider (PSP,Acquirer))
|
30
30
|
attr_accessor :delegated_authentication_exemption_indicator
|
31
31
|
|
32
|
+
# This field will contain the outage exemption indicator with one of the following values: Possible values: - `0` (Outage Authentication exemption does not apply to the transaction) - `1` (Outage exempt from SCA as authentication could not be done due to outage)
|
33
|
+
attr_accessor :outage_exemption_indicator
|
34
|
+
|
32
35
|
# Indicates the type of Authentication request 01 - Payment transaction 02 - Recurring transaction 03 - Installment transaction 04 - Add card 05 - Maintain card 06 - Cardholder verification as part of EMV token ID and V
|
33
36
|
attr_accessor :authentication_indicator
|
34
37
|
|
@@ -40,6 +43,7 @@ module CyberSource
|
|
40
43
|
:'trusted_merchant_exemption_indicator' => :'trustedMerchantExemptionIndicator',
|
41
44
|
:'secure_corporate_payment_indicator' => :'secureCorporatePaymentIndicator',
|
42
45
|
:'delegated_authentication_exemption_indicator' => :'delegatedAuthenticationExemptionIndicator',
|
46
|
+
:'outage_exemption_indicator' => :'outageExemptionIndicator',
|
43
47
|
:'authentication_indicator' => :'authenticationIndicator'
|
44
48
|
}
|
45
49
|
end
|
@@ -52,6 +56,7 @@ module CyberSource
|
|
52
56
|
:'trusted_merchant_exemption_indicator' => :'String',
|
53
57
|
:'secure_corporate_payment_indicator' => :'String',
|
54
58
|
:'delegated_authentication_exemption_indicator' => :'String',
|
59
|
+
:'outage_exemption_indicator' => :'String',
|
55
60
|
:'authentication_indicator' => :'String'
|
56
61
|
}
|
57
62
|
end
|
@@ -84,6 +89,10 @@ module CyberSource
|
|
84
89
|
self.delegated_authentication_exemption_indicator = attributes[:'delegatedAuthenticationExemptionIndicator']
|
85
90
|
end
|
86
91
|
|
92
|
+
if attributes.has_key?(:'outageExemptionIndicator')
|
93
|
+
self.outage_exemption_indicator = attributes[:'outageExemptionIndicator']
|
94
|
+
end
|
95
|
+
|
87
96
|
if attributes.has_key?(:'authenticationIndicator')
|
88
97
|
self.authentication_indicator = attributes[:'authenticationIndicator']
|
89
98
|
end
|
@@ -132,6 +141,12 @@ module CyberSource
|
|
132
141
|
@delegated_authentication_exemption_indicator = delegated_authentication_exemption_indicator
|
133
142
|
end
|
134
143
|
|
144
|
+
# Custom attribute writer method with validation
|
145
|
+
# @param [Object] outage_exemption_indicator Value to be assigned
|
146
|
+
def outage_exemption_indicator=(outage_exemption_indicator)
|
147
|
+
@outage_exemption_indicator = outage_exemption_indicator
|
148
|
+
end
|
149
|
+
|
135
150
|
# Custom attribute writer method with validation
|
136
151
|
# @param [Object] authentication_indicator Value to be assigned
|
137
152
|
def authentication_indicator=(authentication_indicator)
|
@@ -148,6 +163,7 @@ module CyberSource
|
|
148
163
|
trusted_merchant_exemption_indicator == o.trusted_merchant_exemption_indicator &&
|
149
164
|
secure_corporate_payment_indicator == o.secure_corporate_payment_indicator &&
|
150
165
|
delegated_authentication_exemption_indicator == o.delegated_authentication_exemption_indicator &&
|
166
|
+
outage_exemption_indicator == o.outage_exemption_indicator &&
|
151
167
|
authentication_indicator == o.authentication_indicator
|
152
168
|
end
|
153
169
|
|
@@ -160,7 +176,7 @@ module CyberSource
|
|
160
176
|
# Calculates hash code according to all attributes.
|
161
177
|
# @return [Fixnum] Hash code
|
162
178
|
def hash
|
163
|
-
[low_value_exemption_indicator, risk_analysis_exemption_indicator, trusted_merchant_exemption_indicator, secure_corporate_payment_indicator, delegated_authentication_exemption_indicator, authentication_indicator].hash
|
179
|
+
[low_value_exemption_indicator, risk_analysis_exemption_indicator, trusted_merchant_exemption_indicator, secure_corporate_payment_indicator, delegated_authentication_exemption_indicator, outage_exemption_indicator, authentication_indicator].hash
|
164
180
|
end
|
165
181
|
|
166
182
|
# Builds the object from hash
|
@@ -53,6 +53,12 @@ module CyberSource
|
|
53
53
|
# Amount of the first installment payment. The issuer provides this value when the first installment payment is successful. This field is supported for Mastercard installment payments on CyberSource through VisaNet in all countries except Brazil,Croatia, Georgia, and Greece. The value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR5 - Position: 23-34 - Field: Amount of Each Installment
|
54
54
|
attr_accessor :first_installment_amount
|
55
55
|
|
56
|
+
# Standing Instruction/Installment validation indicator. - '1': Prevalidated - '2': Not Validated
|
57
|
+
attr_accessor :validation_indicator
|
58
|
+
|
59
|
+
# Standing Instruction/Installment identifier.
|
60
|
+
attr_accessor :identifier
|
61
|
+
|
56
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
57
63
|
def self.attribute_map
|
58
64
|
{
|
@@ -68,7 +74,9 @@ module CyberSource
|
|
68
74
|
:'eligibility_inquiry' => :'eligibilityInquiry',
|
69
75
|
:'grace_period_duration' => :'gracePeriodDuration',
|
70
76
|
:'grace_period_duration_type' => :'gracePeriodDurationType',
|
71
|
-
:'first_installment_amount' => :'firstInstallmentAmount'
|
77
|
+
:'first_installment_amount' => :'firstInstallmentAmount',
|
78
|
+
:'validation_indicator' => :'validationIndicator',
|
79
|
+
:'identifier' => :'identifier'
|
72
80
|
}
|
73
81
|
end
|
74
82
|
|
@@ -87,7 +95,9 @@ module CyberSource
|
|
87
95
|
:'eligibility_inquiry' => :'String',
|
88
96
|
:'grace_period_duration' => :'String',
|
89
97
|
:'grace_period_duration_type' => :'String',
|
90
|
-
:'first_installment_amount' => :'String'
|
98
|
+
:'first_installment_amount' => :'String',
|
99
|
+
:'validation_indicator' => :'String',
|
100
|
+
:'identifier' => :'String'
|
91
101
|
}
|
92
102
|
end
|
93
103
|
|
@@ -150,6 +160,14 @@ module CyberSource
|
|
150
160
|
if attributes.has_key?(:'firstInstallmentAmount')
|
151
161
|
self.first_installment_amount = attributes[:'firstInstallmentAmount']
|
152
162
|
end
|
163
|
+
|
164
|
+
if attributes.has_key?(:'validationIndicator')
|
165
|
+
self.validation_indicator = attributes[:'validationIndicator']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.has_key?(:'identifier')
|
169
|
+
self.identifier = attributes[:'identifier']
|
170
|
+
end
|
153
171
|
end
|
154
172
|
|
155
173
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -272,7 +290,9 @@ module CyberSource
|
|
272
290
|
eligibility_inquiry == o.eligibility_inquiry &&
|
273
291
|
grace_period_duration == o.grace_period_duration &&
|
274
292
|
grace_period_duration_type == o.grace_period_duration_type &&
|
275
|
-
first_installment_amount == o.first_installment_amount
|
293
|
+
first_installment_amount == o.first_installment_amount &&
|
294
|
+
validation_indicator == o.validation_indicator &&
|
295
|
+
identifier == o.identifier
|
276
296
|
end
|
277
297
|
|
278
298
|
# @see the `==` method
|
@@ -284,7 +304,7 @@ module CyberSource
|
|
284
304
|
# Calculates hash code according to all attributes.
|
285
305
|
# @return [Fixnum] Hash code
|
286
306
|
def hash
|
287
|
-
[amount, frequency, plan_type, sequence, total_amount, total_count, first_installment_date, invoice_data, payment_type, eligibility_inquiry, grace_period_duration, grace_period_duration_type, first_installment_amount].hash
|
307
|
+
[amount, frequency, plan_type, sequence, total_amount, total_count, first_installment_date, invoice_data, payment_type, eligibility_inquiry, grace_period_duration, grace_period_duration_type, first_installment_amount, validation_indicator, identifier].hash
|
288
308
|
end
|
289
309
|
|
290
310
|
# Builds the object from hash
|
@@ -16,6 +16,9 @@ module CyberSource
|
|
16
16
|
class Ptsv2paymentsMerchantInformation
|
17
17
|
attr_accessor :merchant_descriptor
|
18
18
|
|
19
|
+
# This field will contain either the merchant url or the reverse domain as per the requirement for DSRP Format 3. This might vary transaction to transaction and might not be static. Merchant needs to have access to send this value for all DSRP program.
|
20
|
+
attr_accessor :domain_name
|
21
|
+
|
19
22
|
# Company ID assigned to an independent sales organization. Get this value from Mastercard. #### CyberSource through VisaNet The value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR6 - Position: 106-116 - Field: Mastercard Independent Sales Organization ID **Note** The TC 33 Capture file contains information about the purchases and refunds that a merchant submits to CyberSource. CyberSource through VisaNet creates the TC 33 Capture file at the end of the day and sends it to the merchant’s acquirer, who uses this information to facilitate end-of-day clearing processing with payment card companies. For processor-specific information, see the `sales_organization_ID` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
|
20
23
|
attr_accessor :sales_organization_id
|
21
24
|
|
@@ -46,6 +49,7 @@ module CyberSource
|
|
46
49
|
def self.attribute_map
|
47
50
|
{
|
48
51
|
:'merchant_descriptor' => :'merchantDescriptor',
|
52
|
+
:'domain_name' => :'domainName',
|
49
53
|
:'sales_organization_id' => :'salesOrganizationId',
|
50
54
|
:'category_code' => :'categoryCode',
|
51
55
|
:'category_code_domestic' => :'categoryCodeDomestic',
|
@@ -62,6 +66,7 @@ module CyberSource
|
|
62
66
|
def self.swagger_types
|
63
67
|
{
|
64
68
|
:'merchant_descriptor' => :'Ptsv2paymentsMerchantInformationMerchantDescriptor',
|
69
|
+
:'domain_name' => :'String',
|
65
70
|
:'sales_organization_id' => :'String',
|
66
71
|
:'category_code' => :'Integer',
|
67
72
|
:'category_code_domestic' => :'Integer',
|
@@ -86,6 +91,10 @@ module CyberSource
|
|
86
91
|
self.merchant_descriptor = attributes[:'merchantDescriptor']
|
87
92
|
end
|
88
93
|
|
94
|
+
if attributes.has_key?(:'domainName')
|
95
|
+
self.domain_name = attributes[:'domainName']
|
96
|
+
end
|
97
|
+
|
89
98
|
if attributes.has_key?(:'salesOrganizationId')
|
90
99
|
self.sales_organization_id = attributes[:'salesOrganizationId']
|
91
100
|
end
|
@@ -146,6 +155,12 @@ module CyberSource
|
|
146
155
|
true
|
147
156
|
end
|
148
157
|
|
158
|
+
# Custom attribute writer method with validation
|
159
|
+
# @param [Object] domain_name Value to be assigned
|
160
|
+
def domain_name=(domain_name)
|
161
|
+
@domain_name = domain_name
|
162
|
+
end
|
163
|
+
|
149
164
|
# Custom attribute writer method with validation
|
150
165
|
# @param [Object] sales_organization_id Value to be assigned
|
151
166
|
def sales_organization_id=(sales_organization_id)
|
@@ -208,6 +223,7 @@ module CyberSource
|
|
208
223
|
return true if self.equal?(o)
|
209
224
|
self.class == o.class &&
|
210
225
|
merchant_descriptor == o.merchant_descriptor &&
|
226
|
+
domain_name == o.domain_name &&
|
211
227
|
sales_organization_id == o.sales_organization_id &&
|
212
228
|
category_code == o.category_code &&
|
213
229
|
category_code_domestic == o.category_code_domestic &&
|
@@ -228,7 +244,7 @@ module CyberSource
|
|
228
244
|
# Calculates hash code according to all attributes.
|
229
245
|
# @return [Fixnum] Hash code
|
230
246
|
def hash
|
231
|
-
[merchant_descriptor, sales_organization_id, category_code, category_code_domestic, tax_id, vat_registration_number, card_acceptor_reference_number, transaction_local_date_time, service_fee_descriptor, merchant_name].hash
|
247
|
+
[merchant_descriptor, domain_name, sales_organization_id, category_code, category_code_domestic, tax_id, vat_registration_number, card_acceptor_reference_number, transaction_local_date_time, service_fee_descriptor, merchant_name].hash
|
232
248
|
end
|
233
249
|
|
234
250
|
# Builds the object from hash
|
@@ -20,6 +20,9 @@ module CyberSource
|
|
20
20
|
# Recipient’s last name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_lastname` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)
|
21
21
|
attr_accessor :last_name
|
22
22
|
|
23
|
+
# Recipient’s middle name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_middlename` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)
|
24
|
+
attr_accessor :middle_name
|
25
|
+
|
23
26
|
# Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a _pass-through_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_postal_code` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)
|
24
27
|
attr_accessor :postal_code
|
25
28
|
|
@@ -28,6 +31,7 @@ module CyberSource
|
|
28
31
|
{
|
29
32
|
:'account_id' => :'accountId',
|
30
33
|
:'last_name' => :'lastName',
|
34
|
+
:'middle_name' => :'middleName',
|
31
35
|
:'postal_code' => :'postalCode'
|
32
36
|
}
|
33
37
|
end
|
@@ -37,6 +41,7 @@ module CyberSource
|
|
37
41
|
{
|
38
42
|
:'account_id' => :'String',
|
39
43
|
:'last_name' => :'String',
|
44
|
+
:'middle_name' => :'String',
|
40
45
|
:'postal_code' => :'String'
|
41
46
|
}
|
42
47
|
end
|
@@ -57,6 +62,10 @@ module CyberSource
|
|
57
62
|
self.last_name = attributes[:'lastName']
|
58
63
|
end
|
59
64
|
|
65
|
+
if attributes.has_key?(:'middleName')
|
66
|
+
self.middle_name = attributes[:'middleName']
|
67
|
+
end
|
68
|
+
|
60
69
|
if attributes.has_key?(:'postalCode')
|
61
70
|
self.postal_code = attributes[:'postalCode']
|
62
71
|
end
|
@@ -87,6 +96,12 @@ module CyberSource
|
|
87
96
|
@last_name = last_name
|
88
97
|
end
|
89
98
|
|
99
|
+
# Custom attribute writer method with validation
|
100
|
+
# @param [Object] middle_name Value to be assigned
|
101
|
+
def middle_name=(middle_name)
|
102
|
+
@middle_name = middle_name
|
103
|
+
end
|
104
|
+
|
90
105
|
# Custom attribute writer method with validation
|
91
106
|
# @param [Object] postal_code Value to be assigned
|
92
107
|
def postal_code=(postal_code)
|
@@ -100,6 +115,7 @@ module CyberSource
|
|
100
115
|
self.class == o.class &&
|
101
116
|
account_id == o.account_id &&
|
102
117
|
last_name == o.last_name &&
|
118
|
+
middle_name == o.middle_name &&
|
103
119
|
postal_code == o.postal_code
|
104
120
|
end
|
105
121
|
|
@@ -112,7 +128,7 @@ module CyberSource
|
|
112
128
|
# Calculates hash code according to all attributes.
|
113
129
|
# @return [Fixnum] Hash code
|
114
130
|
def hash
|
115
|
-
[account_id, last_name, postal_code].hash
|
131
|
+
[account_id, last_name, middle_name, postal_code].hash
|
116
132
|
end
|
117
133
|
|
118
134
|
# Builds the object from hash
|