cybersource_rest_client 0.0.50 → 0.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +4 -2
- data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
- data/lib/cybersource_rest_client/models/create_bundled_decision_manager_case_request.rb +13 -4
- data/lib/cybersource_rest_client/models/create_payment_request.rb +13 -4
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +32 -8
- data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +32 -4
- data/lib/cybersource_rest_client/models/invoicingv2invoices_customer_information.rb +13 -4
- data/lib/cybersource_rest_client/models/invoicingv2invoices_customer_information_company.rb +190 -0
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_amount_details_freight.rb +20 -4
- data/lib/cybersource_rest_client/models/invoicingv2invoices_order_information_line_items.rb +84 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +13 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -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_bill_to.rb +206 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +21 -5
- 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_electronic_verification_results.rb +102 -6
- data/lib/cybersource_rest_client/models/{risk_v1_export_compliance_inquiries_post201_response_export_compliance_information.rb → pts_v2_payments_post201_response_watchlist_screening_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_v1_export_compliance_inquiries_post201_response_export_compliance_information_watch_list.rb → pts_v2_payments_post201_response_watchlist_screening_information_watch_list.rb} +2 -2
- data/lib/cybersource_rest_client/models/{risk_v1_export_compliance_inquiries_post201_response_watch_list_matches.rb → pts_v2_payments_post201_response_watchlist_screening_information_watch_list_matches.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +20 -4
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +26 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_location.rb +238 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +36 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +26 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type.rb +11 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +21 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +12 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_watchlist_screening_information.rb +215 -0
- data/lib/cybersource_rest_client/models/{riskv1exportcomplianceinquiries_export_compliance_information_weights.rb → ptsv2payments_watchlist_screening_information_weights.rb} +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +20 -4
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response.rb +10 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +26 -4
- data/lib/cybersource_rest_client/models/riskv1decisions_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +10 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +40 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands.rb +194 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +27 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_features.rb +286 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_issuer_information.rb +238 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_network.rb +190 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payout_options.rb +190 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +11 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_token_information.rb +24 -4
- data/lib/cybersource_rest_client.rb +13 -4
- metadata +31 -8
data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_location.rb
ADDED
@@ -0,0 +1,238 @@
|
|
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 Ptsv2paymentsMerchantInformationServiceLocation
|
17
|
+
# #### Visa Platform Connect Merchant’s service location city name. When merchant provides services from a location other than the location identified as merchant location.
|
18
|
+
attr_accessor :locality
|
19
|
+
|
20
|
+
# #### Visa Platform Connect Merchant’s service location country subdivision code. When merchant provides services from a location other than the location identified as merchant location.
|
21
|
+
attr_accessor :country_subdivision_code
|
22
|
+
|
23
|
+
# #### Visa Platform Connect Merchant’s service location country code. When merchant provides services from a location other than the location identified as merchant location.
|
24
|
+
attr_accessor :country_code
|
25
|
+
|
26
|
+
# #### Visa Platform Connect Merchant’s service location postal code. When merchant provides services from a location other than the location identified as merchant location.
|
27
|
+
attr_accessor :postal_code
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
def self.attribute_map
|
31
|
+
{
|
32
|
+
:'locality' => :'locality',
|
33
|
+
:'country_subdivision_code' => :'countrySubdivisionCode',
|
34
|
+
:'country_code' => :'countryCode',
|
35
|
+
:'postal_code' => :'postalCode'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# Attribute type mapping.
|
40
|
+
def self.swagger_types
|
41
|
+
{
|
42
|
+
:'locality' => :'String',
|
43
|
+
:'country_subdivision_code' => :'String',
|
44
|
+
:'country_code' => :'String',
|
45
|
+
:'postal_code' => :'String'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Initializes the object
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
+
def initialize(attributes = {})
|
52
|
+
return unless attributes.is_a?(Hash)
|
53
|
+
|
54
|
+
# convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
56
|
+
|
57
|
+
if attributes.has_key?(:'locality')
|
58
|
+
self.locality = attributes[:'locality']
|
59
|
+
end
|
60
|
+
|
61
|
+
if attributes.has_key?(:'countrySubdivisionCode')
|
62
|
+
self.country_subdivision_code = attributes[:'countrySubdivisionCode']
|
63
|
+
end
|
64
|
+
|
65
|
+
if attributes.has_key?(:'countryCode')
|
66
|
+
self.country_code = attributes[:'countryCode']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.has_key?(:'postalCode')
|
70
|
+
self.postal_code = attributes[:'postalCode']
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
75
|
+
# @return Array for valid properties with the reasons
|
76
|
+
def list_invalid_properties
|
77
|
+
invalid_properties = Array.new
|
78
|
+
invalid_properties
|
79
|
+
end
|
80
|
+
|
81
|
+
# Check to see if the all the properties in the model are valid
|
82
|
+
# @return true if the model is valid
|
83
|
+
def valid?
|
84
|
+
true
|
85
|
+
end
|
86
|
+
|
87
|
+
# Custom attribute writer method with validation
|
88
|
+
# @param [Object] locality Value to be assigned
|
89
|
+
def locality=(locality)
|
90
|
+
@locality = locality
|
91
|
+
end
|
92
|
+
|
93
|
+
# Custom attribute writer method with validation
|
94
|
+
# @param [Object] country_subdivision_code Value to be assigned
|
95
|
+
def country_subdivision_code=(country_subdivision_code)
|
96
|
+
@country_subdivision_code = country_subdivision_code
|
97
|
+
end
|
98
|
+
|
99
|
+
# Custom attribute writer method with validation
|
100
|
+
# @param [Object] country_code Value to be assigned
|
101
|
+
def country_code=(country_code)
|
102
|
+
@country_code = country_code
|
103
|
+
end
|
104
|
+
|
105
|
+
# Custom attribute writer method with validation
|
106
|
+
# @param [Object] postal_code Value to be assigned
|
107
|
+
def postal_code=(postal_code)
|
108
|
+
@postal_code = postal_code
|
109
|
+
end
|
110
|
+
|
111
|
+
# Checks equality by comparing each attribute.
|
112
|
+
# @param [Object] Object to be compared
|
113
|
+
def ==(o)
|
114
|
+
return true if self.equal?(o)
|
115
|
+
self.class == o.class &&
|
116
|
+
locality == o.locality &&
|
117
|
+
country_subdivision_code == o.country_subdivision_code &&
|
118
|
+
country_code == o.country_code &&
|
119
|
+
postal_code == o.postal_code
|
120
|
+
end
|
121
|
+
|
122
|
+
# @see the `==` method
|
123
|
+
# @param [Object] Object to be compared
|
124
|
+
def eql?(o)
|
125
|
+
self == o
|
126
|
+
end
|
127
|
+
|
128
|
+
# Calculates hash code according to all attributes.
|
129
|
+
# @return [Fixnum] Hash code
|
130
|
+
def hash
|
131
|
+
[locality, country_subdivision_code, country_code, postal_code].hash
|
132
|
+
end
|
133
|
+
|
134
|
+
# Builds the object from hash
|
135
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
136
|
+
# @return [Object] Returns the model itself
|
137
|
+
def build_from_hash(attributes)
|
138
|
+
return nil unless attributes.is_a?(Hash)
|
139
|
+
self.class.swagger_types.each_pair do |key, type|
|
140
|
+
if type =~ /\AArray<(.*)>/i
|
141
|
+
# check to ensure the input is an array given that the the attribute
|
142
|
+
# is documented as an array but the input is not
|
143
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
144
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
145
|
+
end
|
146
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
147
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
148
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
149
|
+
end
|
150
|
+
|
151
|
+
self
|
152
|
+
end
|
153
|
+
|
154
|
+
# Deserializes the data based on type
|
155
|
+
# @param string type Data type
|
156
|
+
# @param string value Value to be deserialized
|
157
|
+
# @return [Object] Deserialized data
|
158
|
+
def _deserialize(type, value)
|
159
|
+
case type.to_sym
|
160
|
+
when :DateTime
|
161
|
+
DateTime.parse(value)
|
162
|
+
when :Date
|
163
|
+
Date.parse(value)
|
164
|
+
when :String
|
165
|
+
value.to_s
|
166
|
+
when :Integer
|
167
|
+
value.to_i
|
168
|
+
when :Float
|
169
|
+
value.to_f
|
170
|
+
when :BOOLEAN
|
171
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
172
|
+
true
|
173
|
+
else
|
174
|
+
false
|
175
|
+
end
|
176
|
+
when :Object
|
177
|
+
# generic object (usually a Hash), return directly
|
178
|
+
value
|
179
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
180
|
+
inner_type = Regexp.last_match[:inner_type]
|
181
|
+
value.map { |v| _deserialize(inner_type, v) }
|
182
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
183
|
+
k_type = Regexp.last_match[:k_type]
|
184
|
+
v_type = Regexp.last_match[:v_type]
|
185
|
+
{}.tap do |hash|
|
186
|
+
value.each do |k, v|
|
187
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
188
|
+
end
|
189
|
+
end
|
190
|
+
else # model
|
191
|
+
temp_model = CyberSource.const_get(type).new
|
192
|
+
temp_model.build_from_hash(value)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# Returns the string representation of the object
|
197
|
+
# @return [String] String presentation of the object
|
198
|
+
def to_s
|
199
|
+
to_hash.to_s
|
200
|
+
end
|
201
|
+
|
202
|
+
# to_body is an alias to to_hash (backward compatibility)
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
204
|
+
def to_body
|
205
|
+
to_hash
|
206
|
+
end
|
207
|
+
|
208
|
+
# Returns the object in the form of hash
|
209
|
+
# @return [Hash] Returns the object in the form of hash
|
210
|
+
def to_hash
|
211
|
+
hash = {}
|
212
|
+
self.class.attribute_map.each_pair do |attr, param|
|
213
|
+
value = self.send(attr)
|
214
|
+
next if value.nil?
|
215
|
+
hash[param] = _to_hash(value)
|
216
|
+
end
|
217
|
+
hash
|
218
|
+
end
|
219
|
+
|
220
|
+
# Outputs non-array value in the form of hash
|
221
|
+
# For object, use to_hash. Otherwise, just return the value
|
222
|
+
# @param [Object] value Any valid value
|
223
|
+
# @return [Hash] Returns the value in the form of hash
|
224
|
+
def _to_hash(value)
|
225
|
+
if value.is_a?(Array)
|
226
|
+
value.compact.map { |v| _to_hash(v) }
|
227
|
+
elsif value.is_a?(Hash)
|
228
|
+
{}.tap do |hash|
|
229
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
230
|
+
end
|
231
|
+
elsif value.respond_to? :to_hash
|
232
|
+
value.to_hash
|
233
|
+
else
|
234
|
+
value
|
235
|
+
end
|
236
|
+
end
|
237
|
+
end
|
238
|
+
end
|
@@ -83,7 +83,7 @@ module CyberSource
|
|
83
83
|
# Your local pricing currency code. For the possible values, see the [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf)
|
84
84
|
attr_accessor :original_currency
|
85
85
|
|
86
|
-
# Cashback amount in the acquirer’s currency. If a cashback amount is included in the request, it must be included in the `orderInformation.amountDetails.totalAmount` value. This field is supported only on CyberSource through VisaNet. #### Used by **Authorization** Optional. **Authorization Reversal** Optional. #### PIN debit
|
86
|
+
# Cashback amount in the acquirer’s currency. If a cashback amount is included in the request, it must be included in the `orderInformation.amountDetails.totalAmount` value. This field is supported only on CyberSource through VisaNet. #### Used by **Authorization** Optional. **Authorization Reversal** Optional. #### PIN debit Optional field for PIN debit purchase, PIN debit credit or PIN debit reversal.
|
87
87
|
attr_accessor :cashback_amount
|
88
88
|
|
89
89
|
attr_accessor :currency_conversion
|
@@ -79,6 +79,12 @@ module CyberSource
|
|
79
79
|
# Whether buyer has verified their identity. Used in case of PayPal transactions. Possible Values: * VERIFIED * UNVERIFIED
|
80
80
|
attr_accessor :verification_status
|
81
81
|
|
82
|
+
# #### Visa Platform Connect contains customer’s alternate phone number.
|
83
|
+
attr_accessor :alternate_phone_number
|
84
|
+
|
85
|
+
# #### Visa Platform Connect contains customer’s alternate email address.
|
86
|
+
attr_accessor :alternate_email
|
87
|
+
|
82
88
|
# Attribute mapping from ruby-style variable name to JSON key.
|
83
89
|
def self.attribute_map
|
84
90
|
{
|
@@ -103,7 +109,9 @@ module CyberSource
|
|
103
109
|
:'email_domain' => :'emailDomain',
|
104
110
|
:'phone_number' => :'phoneNumber',
|
105
111
|
:'phone_type' => :'phoneType',
|
106
|
-
:'verification_status' => :'verificationStatus'
|
112
|
+
:'verification_status' => :'verificationStatus',
|
113
|
+
:'alternate_phone_number' => :'alternatePhoneNumber',
|
114
|
+
:'alternate_email' => :'alternateEmail'
|
107
115
|
}
|
108
116
|
end
|
109
117
|
|
@@ -131,7 +139,9 @@ module CyberSource
|
|
131
139
|
:'email_domain' => :'String',
|
132
140
|
:'phone_number' => :'String',
|
133
141
|
:'phone_type' => :'String',
|
134
|
-
:'verification_status' => :'String'
|
142
|
+
:'verification_status' => :'String',
|
143
|
+
:'alternate_phone_number' => :'String',
|
144
|
+
:'alternate_email' => :'String'
|
135
145
|
}
|
136
146
|
end
|
137
147
|
|
@@ -230,6 +240,14 @@ module CyberSource
|
|
230
240
|
if attributes.has_key?(:'verificationStatus')
|
231
241
|
self.verification_status = attributes[:'verificationStatus']
|
232
242
|
end
|
243
|
+
|
244
|
+
if attributes.has_key?(:'alternatePhoneNumber')
|
245
|
+
self.alternate_phone_number = attributes[:'alternatePhoneNumber']
|
246
|
+
end
|
247
|
+
|
248
|
+
if attributes.has_key?(:'alternateEmail')
|
249
|
+
self.alternate_email = attributes[:'alternateEmail']
|
250
|
+
end
|
233
251
|
end
|
234
252
|
|
235
253
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -359,6 +377,18 @@ module CyberSource
|
|
359
377
|
@phone_number = phone_number
|
360
378
|
end
|
361
379
|
|
380
|
+
# Custom attribute writer method with validation
|
381
|
+
# @param [Object] alternate_phone_number Value to be assigned
|
382
|
+
def alternate_phone_number=(alternate_phone_number)
|
383
|
+
@alternate_phone_number = alternate_phone_number
|
384
|
+
end
|
385
|
+
|
386
|
+
# Custom attribute writer method with validation
|
387
|
+
# @param [Object] alternate_email Value to be assigned
|
388
|
+
def alternate_email=(alternate_email)
|
389
|
+
@alternate_email = alternate_email
|
390
|
+
end
|
391
|
+
|
362
392
|
# Checks equality by comparing each attribute.
|
363
393
|
# @param [Object] Object to be compared
|
364
394
|
def ==(o)
|
@@ -385,7 +415,9 @@ module CyberSource
|
|
385
415
|
email_domain == o.email_domain &&
|
386
416
|
phone_number == o.phone_number &&
|
387
417
|
phone_type == o.phone_type &&
|
388
|
-
verification_status == o.verification_status
|
418
|
+
verification_status == o.verification_status &&
|
419
|
+
alternate_phone_number == o.alternate_phone_number &&
|
420
|
+
alternate_email == o.alternate_email
|
389
421
|
end
|
390
422
|
|
391
423
|
# @see the `==` method
|
@@ -397,7 +429,7 @@ module CyberSource
|
|
397
429
|
# Calculates hash code according to all attributes.
|
398
430
|
# @return [Fixnum] Hash code
|
399
431
|
def hash
|
400
|
-
[first_name, last_name, middle_name, name_suffix, title, company, address1, address2, address3, address4, locality, administrative_area, postal_code, county, country, district, building_number, email, email_domain, phone_number, phone_type, verification_status].hash
|
432
|
+
[first_name, last_name, middle_name, name_suffix, title, company, address1, address2, address3, address4, locality, administrative_area, postal_code, county, country, district, building_number, email, email_domain, phone_number, phone_type, verification_status, alternate_phone_number, alternate_email].hash
|
401
433
|
end
|
402
434
|
|
403
435
|
# Builds the object from hash
|
@@ -105,6 +105,10 @@ module CyberSource
|
|
105
105
|
|
106
106
|
attr_accessor :passenger
|
107
107
|
|
108
|
+
attr_accessor :allowed_export_countries
|
109
|
+
|
110
|
+
attr_accessor :restricted_export_countries
|
111
|
+
|
108
112
|
# Attribute mapping from ruby-style variable name to JSON key.
|
109
113
|
def self.attribute_map
|
110
114
|
{
|
@@ -138,7 +142,9 @@ module CyberSource
|
|
138
142
|
:'gift_card_currency' => :'giftCardCurrency',
|
139
143
|
:'shipping_destination_types' => :'shippingDestinationTypes',
|
140
144
|
:'gift' => :'gift',
|
141
|
-
:'passenger' => :'passenger'
|
145
|
+
:'passenger' => :'passenger',
|
146
|
+
:'allowed_export_countries' => :'allowedExportCountries',
|
147
|
+
:'restricted_export_countries' => :'restrictedExportCountries'
|
142
148
|
}
|
143
149
|
end
|
144
150
|
|
@@ -175,7 +181,9 @@ module CyberSource
|
|
175
181
|
:'gift_card_currency' => :'Integer',
|
176
182
|
:'shipping_destination_types' => :'String',
|
177
183
|
:'gift' => :'BOOLEAN',
|
178
|
-
:'passenger' => :'Ptsv2paymentsOrderInformationPassenger'
|
184
|
+
:'passenger' => :'Ptsv2paymentsOrderInformationPassenger',
|
185
|
+
:'allowed_export_countries' => :'Array<String>',
|
186
|
+
:'restricted_export_countries' => :'Array<String>'
|
179
187
|
}
|
180
188
|
end
|
181
189
|
|
@@ -312,6 +320,18 @@ module CyberSource
|
|
312
320
|
if attributes.has_key?(:'passenger')
|
313
321
|
self.passenger = attributes[:'passenger']
|
314
322
|
end
|
323
|
+
|
324
|
+
if attributes.has_key?(:'allowedExportCountries')
|
325
|
+
if (value = attributes[:'allowedExportCountries']).is_a?(Array)
|
326
|
+
self.allowed_export_countries = value
|
327
|
+
end
|
328
|
+
end
|
329
|
+
|
330
|
+
if attributes.has_key?(:'restrictedExportCountries')
|
331
|
+
if (value = attributes[:'restrictedExportCountries']).is_a?(Array)
|
332
|
+
self.restricted_export_countries = value
|
333
|
+
end
|
334
|
+
end
|
315
335
|
end
|
316
336
|
|
317
337
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -500,7 +520,9 @@ module CyberSource
|
|
500
520
|
gift_card_currency == o.gift_card_currency &&
|
501
521
|
shipping_destination_types == o.shipping_destination_types &&
|
502
522
|
gift == o.gift &&
|
503
|
-
passenger == o.passenger
|
523
|
+
passenger == o.passenger &&
|
524
|
+
allowed_export_countries == o.allowed_export_countries &&
|
525
|
+
restricted_export_countries == o.restricted_export_countries
|
504
526
|
end
|
505
527
|
|
506
528
|
# @see the `==` method
|
@@ -512,7 +534,7 @@ module CyberSource
|
|
512
534
|
# Calculates hash code according to all attributes.
|
513
535
|
# @return [Fixnum] Hash code
|
514
536
|
def hash
|
515
|
-
[product_code, product_name, product_sku, quantity, unit_price, unit_of_measure, total_amount, tax_amount, tax_rate, tax_applied_after_discount, tax_status_indicator, tax_type_code, amount_includes_tax, type_of_supply, commodity_code, discount_amount, discount_applied, discount_rate, invoice_number, tax_details, fulfillment_type, weight, weight_identifier, weight_unit, reference_data_code, reference_data_number, product_description, gift_card_currency, shipping_destination_types, gift, passenger].hash
|
537
|
+
[product_code, product_name, product_sku, quantity, unit_price, unit_of_measure, total_amount, tax_amount, tax_rate, tax_applied_after_discount, tax_status_indicator, tax_type_code, amount_includes_tax, type_of_supply, commodity_code, discount_amount, discount_applied, discount_rate, invoice_number, tax_details, fulfillment_type, weight, weight_identifier, weight_unit, reference_data_code, reference_data_number, product_description, gift_card_currency, shipping_destination_types, gift, passenger, allowed_export_countries, restricted_export_countries].hash
|
516
538
|
end
|
517
539
|
|
518
540
|
# Builds the object from hash
|
@@ -17,12 +17,16 @@ module CyberSource
|
|
17
17
|
# A Payment Type is an agreed means for a payee to receive legal tender from a payer. The way one pays for a commercial financial transaction. Examples: Card, Bank Transfer, Digital, Direct Debit. Possible values: - `CARD` (use this for a PIN debit transaction) - `CHECK` (use this for all eCheck payment transactions - ECP Debit, ECP Follow-on Credit, ECP StandAlone Credit) - `bankTransfer` (use for Online Bank Transafer for methods such as P24, iDeal, Estonia Bank, KCP) - `localCard` (KCP Local card via Altpay) - `carrierBilling` (KCP Carrier Billing via Altpay)
|
18
18
|
attr_accessor :name
|
19
19
|
|
20
|
+
# Detailed information about the Payment Type. Possible values: - `DEBIT`: Use this value to indicate a PIN debit transaction. Examples: For Card, if Credit or Debit or PrePaid. For Bank Transfer, if Online Bank Transfer or Wire Transfers.
|
21
|
+
attr_accessor :sub_type_name
|
22
|
+
|
20
23
|
attr_accessor :method
|
21
24
|
|
22
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
26
|
def self.attribute_map
|
24
27
|
{
|
25
28
|
:'name' => :'name',
|
29
|
+
:'sub_type_name' => :'subTypeName',
|
26
30
|
:'method' => :'method'
|
27
31
|
}
|
28
32
|
end
|
@@ -31,6 +35,7 @@ module CyberSource
|
|
31
35
|
def self.swagger_types
|
32
36
|
{
|
33
37
|
:'name' => :'String',
|
38
|
+
:'sub_type_name' => :'String',
|
34
39
|
:'method' => :'Ptsv2paymentsPaymentInformationPaymentTypeMethod'
|
35
40
|
}
|
36
41
|
end
|
@@ -47,6 +52,10 @@ module CyberSource
|
|
47
52
|
self.name = attributes[:'name']
|
48
53
|
end
|
49
54
|
|
55
|
+
if attributes.has_key?(:'subTypeName')
|
56
|
+
self.sub_type_name = attributes[:'subTypeName']
|
57
|
+
end
|
58
|
+
|
50
59
|
if attributes.has_key?(:'method')
|
51
60
|
self.method = attributes[:'method']
|
52
61
|
end
|
@@ -71,6 +80,7 @@ module CyberSource
|
|
71
80
|
return true if self.equal?(o)
|
72
81
|
self.class == o.class &&
|
73
82
|
name == o.name &&
|
83
|
+
sub_type_name == o.sub_type_name &&
|
74
84
|
method == o.method
|
75
85
|
end
|
76
86
|
|
@@ -83,7 +93,7 @@ module CyberSource
|
|
83
93
|
# Calculates hash code according to all attributes.
|
84
94
|
# @return [Fixnum] Hash code
|
85
95
|
def hash
|
86
|
-
[name, method].hash
|
96
|
+
[name, sub_type_name, method].hash
|
87
97
|
end
|
88
98
|
|
89
99
|
# Builds the object from hash
|
@@ -35,7 +35,7 @@ module CyberSource
|
|
35
35
|
# 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. #### Visa Platform Connect - `1`: For Rupay and In App tokenization. Example: InApp apple pay. - `3`: Card/Credential On File Tokenization. **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.
|
36
36
|
attr_accessor :transaction_type
|
37
37
|
|
38
|
-
# Confidence level of the tokenization. This value is assigned by the token service provider. **Note** This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. Returned by PIN debit credit or PIN debit purchase.
|
38
|
+
# Confidence level of the tokenization. This value is assigned by the token service provider. **Note** This field is supported only for **CyberSource through VisaNet** and **FDC Nashville Global**. Returned by PIN debit credit or PIN debit purchase. **Note** Merchants supported for **CyberSource through VisaNet**/**Visa Platform Connect** are advised not to use this field.
|
39
39
|
attr_accessor :assurance_level
|
40
40
|
|
41
41
|
# Type of technology used in the device to store token data. Possible values: - `001`: Secure Element (SE). Smart card or memory with restricted access and encryption to prevent data tampering. For storing payment credentials, a SE is tested against a set of requirements defined by the payment networks. **Note** This field is supported only for _FDC Compass_. - 002: Host Card Emulation (HCE). Emulation of a smart card by using software to create a virtual and exact representation of the card. Sensitive data is stored in a database that is hosted in the cloud. For storing payment credentials, a database must meet very stringent security requirements that exceed PCI DSS. **Note** This field is supported only for _FDC Compass_.
|
@@ -47,6 +47,9 @@ module CyberSource
|
|
47
47
|
# Indicates whether a CVN code was sent. Possible values: - `0` (default): CVN service not requested. This default value is used when you do not include `securityCode` field in the request. - `1` (default): CVN service requested and supported. This default value is used when you include `securityCode` field in the request. - `2`: CVN on credit card is illegible. - `9`: CVN was not imprinted on credit card. #### FDMS Nashville Required for American Express cards; otherwise, optional. #### TSYS Acquiring Solutions Optional if `pointOfSaleInformation.entryMode=keyed`; otherwise, not used. #### All other processors Optional.
|
48
48
|
attr_accessor :security_code_indicator
|
49
49
|
|
50
|
+
# Confidence level of the tokenization. This value is assigned by the token service provider. **Note** This field is supported only for **Visa Platform Connect**
|
51
|
+
attr_accessor :assurance_method
|
52
|
+
|
50
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
51
54
|
def self.attribute_map
|
52
55
|
{
|
@@ -60,7 +63,8 @@ module CyberSource
|
|
60
63
|
:'assurance_level' => :'assuranceLevel',
|
61
64
|
:'storage_method' => :'storageMethod',
|
62
65
|
:'security_code' => :'securityCode',
|
63
|
-
:'security_code_indicator' => :'securityCodeIndicator'
|
66
|
+
:'security_code_indicator' => :'securityCodeIndicator',
|
67
|
+
:'assurance_method' => :'assuranceMethod'
|
64
68
|
}
|
65
69
|
end
|
66
70
|
|
@@ -77,7 +81,8 @@ module CyberSource
|
|
77
81
|
:'assurance_level' => :'String',
|
78
82
|
:'storage_method' => :'String',
|
79
83
|
:'security_code' => :'String',
|
80
|
-
:'security_code_indicator' => :'String'
|
84
|
+
:'security_code_indicator' => :'String',
|
85
|
+
:'assurance_method' => :'String'
|
81
86
|
}
|
82
87
|
end
|
83
88
|
|
@@ -132,6 +137,10 @@ module CyberSource
|
|
132
137
|
if attributes.has_key?(:'securityCodeIndicator')
|
133
138
|
self.security_code_indicator = attributes[:'securityCodeIndicator']
|
134
139
|
end
|
140
|
+
|
141
|
+
if attributes.has_key?(:'assuranceMethod')
|
142
|
+
self.assurance_method = attributes[:'assuranceMethod']
|
143
|
+
end
|
135
144
|
end
|
136
145
|
|
137
146
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -207,6 +216,12 @@ module CyberSource
|
|
207
216
|
@security_code_indicator = security_code_indicator
|
208
217
|
end
|
209
218
|
|
219
|
+
# Custom attribute writer method with validation
|
220
|
+
# @param [Object] assurance_method Value to be assigned
|
221
|
+
def assurance_method=(assurance_method)
|
222
|
+
@assurance_method = assurance_method
|
223
|
+
end
|
224
|
+
|
210
225
|
# Checks equality by comparing each attribute.
|
211
226
|
# @param [Object] Object to be compared
|
212
227
|
def ==(o)
|
@@ -222,7 +237,8 @@ module CyberSource
|
|
222
237
|
assurance_level == o.assurance_level &&
|
223
238
|
storage_method == o.storage_method &&
|
224
239
|
security_code == o.security_code &&
|
225
|
-
security_code_indicator == o.security_code_indicator
|
240
|
+
security_code_indicator == o.security_code_indicator &&
|
241
|
+
assurance_method == o.assurance_method
|
226
242
|
end
|
227
243
|
|
228
244
|
# @see the `==` method
|
@@ -234,7 +250,7 @@ module CyberSource
|
|
234
250
|
# Calculates hash code according to all attributes.
|
235
251
|
# @return [Fixnum] Hash code
|
236
252
|
def hash
|
237
|
-
[number, expiration_month, expiration_year, type, cryptogram, requestor_id, transaction_type, assurance_level, storage_method, security_code, security_code_indicator].hash
|
253
|
+
[number, expiration_month, expiration_year, type, cryptogram, requestor_id, transaction_type, assurance_level, storage_method, security_code, security_code_indicator, assurance_method].hash
|
238
254
|
end
|
239
255
|
|
240
256
|
# Builds the object from hash
|
@@ -61,7 +61,7 @@ module CyberSource
|
|
61
61
|
# Indicates whether the terminal can print or display messages. Possible values: - 1: Neither - 2: Print only - 3: Display only - 4: Print and display - 5: Merchant terminal supports purchase only approvals This field is supported for authorizations and credits only on the following processors: - American Express Direct - Credit Mutuel-CIC - FDC Nashville Global - OmniPay Direct - SIX - VisaNet Optional field.
|
62
62
|
attr_accessor :terminal_output_capability
|
63
63
|
|
64
|
-
# Maximum PIN length that the terminal can capture. Possible values: - 0: No PIN capture capability - 1: PIN capture capability unknown - 2: PIN Pad down - 4: Four characters - 5: Five characters - 6: Six characters - 7: Seven characters - 8: Eight characters - 9: Nine characters - 10: Ten characters - 11: Eleven characters - 12: Twelve characters This field is supported for authorizations and credits only on the following processors: - American Express Direct - Credit Mutuel-CIC - OmniPay Direct - SIX Required field for authorization or credit of PIN transactions.
|
64
|
+
# Maximum PIN length that the terminal can capture. Possible values: - 0: No PIN capture capability - 1: PIN capture capability unknown - 2: PIN Pad down - 4: Four characters - 5: Five characters - 6: Six characters - 7: Seven characters - 8: Eight characters - 9: Nine characters - 10: Ten characters - 11: Eleven characters - 12: Twelve characters This field is supported for authorizations and credits only on the following processors: - American Express Direct - Credit Mutuel-CIC - OmniPay Direct - SIX - Visa Platform Connect Required field for authorization or credit of PIN transactions.
|
65
65
|
attr_accessor :terminal_pin_capability
|
66
66
|
|
67
67
|
# This field will contain the type of Pin Pad the terminal has. Possible values: - PCI-SPoC: Where the pin is being put on screen - PCI-PTS: Where the pin is being put on actual hardware pin pad
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class Ptsv2paymentsProcessingInformation
|
17
|
-
# Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested.
|
17
|
+
# Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service.
|
18
18
|
attr_accessor :action_list
|
19
19
|
|
20
20
|
# Indicates whether to use the customer’s escrow agreement. Possible values: - `true`: yes, use the customer’s escrow agreement. - `false`: no, do not use the customer’s escrow agreement.
|
@@ -23,6 +23,9 @@ module CyberSource
|
|
23
23
|
# CyberSource tokens types you are performing a create on. If not supplied the default token type for the merchants token vault will be used. Valid values: - customer - paymentInstrument - instrumentIdentifier - shippingAddress
|
24
24
|
attr_accessor :action_token_types
|
25
25
|
|
26
|
+
# Bin Source File Identifier. Possible values: - itmx - rupay
|
27
|
+
attr_accessor :bin_source
|
28
|
+
|
26
29
|
# Indicates whether to also include a capture in the submitted authorization request or not. Possible values: - `true`: Include a capture with an authorization request. - `false`: (default) Do not include a capture with an authorization request. #### Used by **Authorization and Capture** Optional field.
|
27
30
|
attr_accessor :capture
|
28
31
|
|
@@ -105,6 +108,7 @@ module CyberSource
|
|
105
108
|
:'action_list' => :'actionList',
|
106
109
|
:'enable_escrow_option' => :'enableEscrowOption',
|
107
110
|
:'action_token_types' => :'actionTokenTypes',
|
111
|
+
:'bin_source' => :'binSource',
|
108
112
|
:'capture' => :'capture',
|
109
113
|
:'processor_id' => :'processorId',
|
110
114
|
:'business_application_id' => :'businessApplicationId',
|
@@ -142,6 +146,7 @@ module CyberSource
|
|
142
146
|
:'action_list' => :'Array<String>',
|
143
147
|
:'enable_escrow_option' => :'BOOLEAN',
|
144
148
|
:'action_token_types' => :'Array<String>',
|
149
|
+
:'bin_source' => :'String',
|
145
150
|
:'capture' => :'BOOLEAN',
|
146
151
|
:'processor_id' => :'String',
|
147
152
|
:'business_application_id' => :'String',
|
@@ -197,6 +202,10 @@ module CyberSource
|
|
197
202
|
end
|
198
203
|
end
|
199
204
|
|
205
|
+
if attributes.has_key?(:'binSource')
|
206
|
+
self.bin_source = attributes[:'binSource']
|
207
|
+
end
|
208
|
+
|
200
209
|
if attributes.has_key?(:'capture')
|
201
210
|
self.capture = attributes[:'capture']
|
202
211
|
else
|
@@ -429,6 +438,7 @@ module CyberSource
|
|
429
438
|
action_list == o.action_list &&
|
430
439
|
enable_escrow_option == o.enable_escrow_option &&
|
431
440
|
action_token_types == o.action_token_types &&
|
441
|
+
bin_source == o.bin_source &&
|
432
442
|
capture == o.capture &&
|
433
443
|
processor_id == o.processor_id &&
|
434
444
|
business_application_id == o.business_application_id &&
|
@@ -468,7 +478,7 @@ module CyberSource
|
|
468
478
|
# Calculates hash code according to all attributes.
|
469
479
|
# @return [Fixnum] Hash code
|
470
480
|
def hash
|
471
|
-
[action_list, enable_escrow_option, action_token_types, capture, processor_id, business_application_id, commerce_indicator, commerce_indicator_label, payment_solution, reconciliation_id, link_id, purchase_level, payment_id, report_group, visa_checkout_id, industry_data_type, authorization_options, capture_options, recurring_options, bank_transfer_options, purchase_options, electronic_benefits_transfer, loan_options, wallet_type, national_net_domestic_data, japan_payment_options, mobile_remote_payment_type, extended_credit_total_count, network_routing_order, pay_by_points_indicator, is_return_auth_record_enabled].hash
|
481
|
+
[action_list, enable_escrow_option, action_token_types, bin_source, capture, processor_id, business_application_id, commerce_indicator, commerce_indicator_label, payment_solution, reconciliation_id, link_id, purchase_level, payment_id, report_group, visa_checkout_id, industry_data_type, authorization_options, capture_options, recurring_options, bank_transfer_options, purchase_options, electronic_benefits_transfer, loan_options, wallet_type, national_net_domestic_data, japan_payment_options, mobile_remote_payment_type, extended_credit_total_count, network_routing_order, pay_by_points_indicator, is_return_auth_record_enabled].hash
|
472
482
|
end
|
473
483
|
|
474
484
|
# Builds the object from hash
|