cybersource_rest_client 0.0.25 → 0.0.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client.rb +2 -0
  3. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +2 -0
  4. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +2 -0
  5. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +2 -0
  6. data/lib/cybersource_rest_client/models/invoice_settings_request.rb +1 -1
  7. data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +29 -4
  8. data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +343 -0
  9. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +11 -1
  10. data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +11 -1
  11. data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +11 -1
  12. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +11 -1
  13. data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +11 -1
  14. data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +11 -1
  15. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +1 -16
  16. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +129 -4
  17. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_velocity_morphing.rb +1 -1
  18. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +1 -1
  19. data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +5 -5
  20. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +1 -1
  21. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +1 -1
  22. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_device_information.rb +5 -5
  23. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +1 -1
  24. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +1 -16
  25. data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_consumer_authentication_information.rb +1 -16
  26. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +2 -32
  27. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +1 -16
  28. data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +5 -5
  29. data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +5 -5
  30. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_device_information.rb +5 -5
  31. data/lib/cybersource_rest_client/models/riskv1liststypeentries_device_information.rb +5 -5
  32. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument.rb +11 -1
  33. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_payment_instrument_bank_account.rb +7 -7
  34. data/lib/cybersource_rest_client/models/tmsv2customers__embedded_default_shipping_address.rb +11 -1
  35. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_device_information.rb +5 -5
  36. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +1 -1
  37. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +13 -1
  38. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_multi_processor_routing.rb +244 -0
  39. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_device_information.rb +5 -5
  40. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +1 -1
  41. metadata +8 -6
@@ -22,6 +22,9 @@ module CyberSource
22
22
  # The type of token. Valid values: - paymentInstrument
23
23
  attr_accessor :object
24
24
 
25
+ # Flag that indicates whether customer payment instrument is the dafault. Valid values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default.
26
+ attr_accessor :default
27
+
25
28
  # Issuers state for the card number. Valid values: - ACTIVE - CLOSED : The account has been closed.
26
29
  attr_accessor :state
27
30
 
@@ -49,6 +52,7 @@ module CyberSource
49
52
  :'_links' => :'_links',
50
53
  :'id' => :'id',
51
54
  :'object' => :'object',
55
+ :'default' => :'default',
52
56
  :'state' => :'state',
53
57
  :'bank_account' => :'bankAccount',
54
58
  :'card' => :'card',
@@ -68,6 +72,7 @@ module CyberSource
68
72
  :'_links' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks',
69
73
  :'id' => :'String',
70
74
  :'object' => :'String',
75
+ :'default' => :'BOOLEAN',
71
76
  :'state' => :'String',
72
77
  :'bank_account' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount',
73
78
  :'card' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCard',
@@ -101,6 +106,10 @@ module CyberSource
101
106
  self.object = attributes[:'object']
102
107
  end
103
108
 
109
+ if attributes.has_key?(:'default')
110
+ self.default = attributes[:'default']
111
+ end
112
+
104
113
  if attributes.has_key?(:'state')
105
114
  self.state = attributes[:'state']
106
115
  end
@@ -187,6 +196,7 @@ module CyberSource
187
196
  _links == o._links &&
188
197
  id == o.id &&
189
198
  object == o.object &&
199
+ default == o.default &&
190
200
  state == o.state &&
191
201
  bank_account == o.bank_account &&
192
202
  card == o.card &&
@@ -208,7 +218,7 @@ module CyberSource
208
218
  # Calculates hash code according to all attributes.
209
219
  # @return [Fixnum] Hash code
210
220
  def hash
211
- [_links, id, object, state, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, instrument_identifier, metadata, _embedded].hash
221
+ [_links, id, object, default, state, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, instrument_identifier, metadata, _embedded].hash
212
222
  end
213
223
 
214
224
  # Builds the object from hash
@@ -19,6 +19,9 @@ module CyberSource
19
19
  # The id of the Shipping Address Token.
20
20
  attr_accessor :id
21
21
 
22
+ # Flag that indicates whether customer shipping address is the dafault. Valid values: - `true`: Shipping Address is customer's default. - `false`: Shipping Address is not customer's default.
23
+ attr_accessor :default
24
+
22
25
  attr_accessor :ship_to
23
26
 
24
27
  attr_accessor :metadata
@@ -28,6 +31,7 @@ module CyberSource
28
31
  {
29
32
  :'_links' => :'_links',
30
33
  :'id' => :'id',
34
+ :'default' => :'default',
31
35
  :'ship_to' => :'shipTo',
32
36
  :'metadata' => :'metadata'
33
37
  }
@@ -38,6 +42,7 @@ module CyberSource
38
42
  {
39
43
  :'_links' => :'Tmsv2customersEmbeddedDefaultShippingAddressLinks',
40
44
  :'id' => :'String',
45
+ :'default' => :'BOOLEAN',
41
46
  :'ship_to' => :'Tmsv2customersEmbeddedDefaultShippingAddressShipTo',
42
47
  :'metadata' => :'Tmsv2customersEmbeddedDefaultShippingAddressMetadata'
43
48
  }
@@ -59,6 +64,10 @@ module CyberSource
59
64
  self.id = attributes[:'id']
60
65
  end
61
66
 
67
+ if attributes.has_key?(:'default')
68
+ self.default = attributes[:'default']
69
+ end
70
+
62
71
  if attributes.has_key?(:'shipTo')
63
72
  self.ship_to = attributes[:'shipTo']
64
73
  end
@@ -112,6 +121,7 @@ module CyberSource
112
121
  self.class == o.class &&
113
122
  _links == o._links &&
114
123
  id == o.id &&
124
+ default == o.default &&
115
125
  ship_to == o.ship_to &&
116
126
  metadata == o.metadata
117
127
  end
@@ -125,7 +135,7 @@ module CyberSource
125
135
  # Calculates hash code according to all attributes.
126
136
  # @return [Fixnum] Hash code
127
137
  def hash
128
- [_links, id, ship_to, metadata].hash
138
+ [_links, id, default, ship_to, metadata].hash
129
139
  end
130
140
 
131
141
  # Builds the object from hash
@@ -22,6 +22,9 @@ module CyberSource
22
22
  # The type of token. Valid values: - paymentInstrument
23
23
  attr_accessor :object
24
24
 
25
+ # Flag that indicates whether customer payment instrument is the dafault. Valid values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default.
26
+ attr_accessor :default
27
+
25
28
  # Issuers state for the card number. Valid values: - ACTIVE - CLOSED : The account has been closed.
26
29
  attr_accessor :state
27
30
 
@@ -49,6 +52,7 @@ module CyberSource
49
52
  :'_links' => :'_links',
50
53
  :'id' => :'id',
51
54
  :'object' => :'object',
55
+ :'default' => :'default',
52
56
  :'state' => :'state',
53
57
  :'bank_account' => :'bankAccount',
54
58
  :'card' => :'card',
@@ -68,6 +72,7 @@ module CyberSource
68
72
  :'_links' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks',
69
73
  :'id' => :'String',
70
74
  :'object' => :'String',
75
+ :'default' => :'BOOLEAN',
71
76
  :'state' => :'String',
72
77
  :'bank_account' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount',
73
78
  :'card' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCard',
@@ -101,6 +106,10 @@ module CyberSource
101
106
  self.object = attributes[:'object']
102
107
  end
103
108
 
109
+ if attributes.has_key?(:'default')
110
+ self.default = attributes[:'default']
111
+ end
112
+
104
113
  if attributes.has_key?(:'state')
105
114
  self.state = attributes[:'state']
106
115
  end
@@ -187,6 +196,7 @@ module CyberSource
187
196
  _links == o._links &&
188
197
  id == o.id &&
189
198
  object == o.object &&
199
+ default == o.default &&
190
200
  state == o.state &&
191
201
  bank_account == o.bank_account &&
192
202
  card == o.card &&
@@ -208,7 +218,7 @@ module CyberSource
208
218
  # Calculates hash code according to all attributes.
209
219
  # @return [Fixnum] Hash code
210
220
  def hash
211
- [_links, id, object, state, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, instrument_identifier, metadata, _embedded].hash
221
+ [_links, id, object, default, state, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, instrument_identifier, metadata, _embedded].hash
212
222
  end
213
223
 
214
224
  # Builds the object from hash
@@ -22,6 +22,9 @@ module CyberSource
22
22
  # The type of token. Valid values: - paymentInstrument
23
23
  attr_accessor :object
24
24
 
25
+ # Flag that indicates whether customer payment instrument is the dafault. Valid values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default.
26
+ attr_accessor :default
27
+
25
28
  # Issuers state for the card number. Valid values: - ACTIVE - CLOSED : The account has been closed.
26
29
  attr_accessor :state
27
30
 
@@ -49,6 +52,7 @@ module CyberSource
49
52
  :'_links' => :'_links',
50
53
  :'id' => :'id',
51
54
  :'object' => :'object',
55
+ :'default' => :'default',
52
56
  :'state' => :'state',
53
57
  :'bank_account' => :'bankAccount',
54
58
  :'card' => :'card',
@@ -68,6 +72,7 @@ module CyberSource
68
72
  :'_links' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks',
69
73
  :'id' => :'String',
70
74
  :'object' => :'String',
75
+ :'default' => :'BOOLEAN',
71
76
  :'state' => :'String',
72
77
  :'bank_account' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount',
73
78
  :'card' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCard',
@@ -101,6 +106,10 @@ module CyberSource
101
106
  self.object = attributes[:'object']
102
107
  end
103
108
 
109
+ if attributes.has_key?(:'default')
110
+ self.default = attributes[:'default']
111
+ end
112
+
104
113
  if attributes.has_key?(:'state')
105
114
  self.state = attributes[:'state']
106
115
  end
@@ -187,6 +196,7 @@ module CyberSource
187
196
  _links == o._links &&
188
197
  id == o.id &&
189
198
  object == o.object &&
199
+ default == o.default &&
190
200
  state == o.state &&
191
201
  bank_account == o.bank_account &&
192
202
  card == o.card &&
@@ -208,7 +218,7 @@ module CyberSource
208
218
  # Calculates hash code according to all attributes.
209
219
  # @return [Fixnum] Hash code
210
220
  def hash
211
- [_links, id, object, state, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, instrument_identifier, metadata, _embedded].hash
221
+ [_links, id, object, default, state, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, instrument_identifier, metadata, _embedded].hash
212
222
  end
213
223
 
214
224
  # Builds the object from hash
@@ -19,6 +19,9 @@ module CyberSource
19
19
  # The id of the Shipping Address Token.
20
20
  attr_accessor :id
21
21
 
22
+ # Flag that indicates whether customer shipping address is the dafault. Valid values: - `true`: Shipping Address is customer's default. - `false`: Shipping Address is not customer's default.
23
+ attr_accessor :default
24
+
22
25
  attr_accessor :ship_to
23
26
 
24
27
  attr_accessor :metadata
@@ -28,6 +31,7 @@ module CyberSource
28
31
  {
29
32
  :'_links' => :'_links',
30
33
  :'id' => :'id',
34
+ :'default' => :'default',
31
35
  :'ship_to' => :'shipTo',
32
36
  :'metadata' => :'metadata'
33
37
  }
@@ -38,6 +42,7 @@ module CyberSource
38
42
  {
39
43
  :'_links' => :'Tmsv2customersEmbeddedDefaultShippingAddressLinks',
40
44
  :'id' => :'String',
45
+ :'default' => :'BOOLEAN',
41
46
  :'ship_to' => :'Tmsv2customersEmbeddedDefaultShippingAddressShipTo',
42
47
  :'metadata' => :'Tmsv2customersEmbeddedDefaultShippingAddressMetadata'
43
48
  }
@@ -59,6 +64,10 @@ module CyberSource
59
64
  self.id = attributes[:'id']
60
65
  end
61
66
 
67
+ if attributes.has_key?(:'default')
68
+ self.default = attributes[:'default']
69
+ end
70
+
62
71
  if attributes.has_key?(:'shipTo')
63
72
  self.ship_to = attributes[:'shipTo']
64
73
  end
@@ -112,6 +121,7 @@ module CyberSource
112
121
  self.class == o.class &&
113
122
  _links == o._links &&
114
123
  id == o.id &&
124
+ default == o.default &&
115
125
  ship_to == o.ship_to &&
116
126
  metadata == o.metadata
117
127
  end
@@ -125,7 +135,7 @@ module CyberSource
125
135
  # Calculates hash code according to all attributes.
126
136
  # @return [Fixnum] Hash code
127
137
  def hash
128
- [_links, id, ship_to, metadata].hash
138
+ [_links, id, default, ship_to, metadata].hash
129
139
  end
130
140
 
131
141
  # Builds the object from hash
@@ -22,6 +22,9 @@ module CyberSource
22
22
  # The type of token. Valid values: - paymentInstrument
23
23
  attr_accessor :object
24
24
 
25
+ # Flag that indicates whether customer payment instrument is the dafault. Valid values: - `true`: Payment instrument is customer's default. - `false`: Payment instrument is not customer's default.
26
+ attr_accessor :default
27
+
25
28
  # Issuers state for the card number. Valid values: - ACTIVE - CLOSED : The account has been closed.
26
29
  attr_accessor :state
27
30
 
@@ -49,6 +52,7 @@ module CyberSource
49
52
  :'_links' => :'_links',
50
53
  :'id' => :'id',
51
54
  :'object' => :'object',
55
+ :'default' => :'default',
52
56
  :'state' => :'state',
53
57
  :'bank_account' => :'bankAccount',
54
58
  :'card' => :'card',
@@ -68,6 +72,7 @@ module CyberSource
68
72
  :'_links' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentLinks',
69
73
  :'id' => :'String',
70
74
  :'object' => :'String',
75
+ :'default' => :'BOOLEAN',
71
76
  :'state' => :'String',
72
77
  :'bank_account' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentBankAccount',
73
78
  :'card' => :'Tmsv2customersEmbeddedDefaultPaymentInstrumentCard',
@@ -101,6 +106,10 @@ module CyberSource
101
106
  self.object = attributes[:'object']
102
107
  end
103
108
 
109
+ if attributes.has_key?(:'default')
110
+ self.default = attributes[:'default']
111
+ end
112
+
104
113
  if attributes.has_key?(:'state')
105
114
  self.state = attributes[:'state']
106
115
  end
@@ -187,6 +196,7 @@ module CyberSource
187
196
  _links == o._links &&
188
197
  id == o.id &&
189
198
  object == o.object &&
199
+ default == o.default &&
190
200
  state == o.state &&
191
201
  bank_account == o.bank_account &&
192
202
  card == o.card &&
@@ -208,7 +218,7 @@ module CyberSource
208
218
  # Calculates hash code according to all attributes.
209
219
  # @return [Fixnum] Hash code
210
220
  def hash
211
- [_links, id, object, state, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, instrument_identifier, metadata, _embedded].hash
221
+ [_links, id, object, default, state, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, instrument_identifier, metadata, _embedded].hash
212
222
  end
213
223
 
214
224
  # Builds the object from hash
@@ -50,7 +50,7 @@ module CyberSource
50
50
  # Indicates whether the 3DS Requestor requests the ACS to utilize Decoupled Authentication and agrees to utilize Decoupled Authentication if the ACS confirms its use. Possible Values: Y - Decoupled Authentication is supported and preferred if challenge is necessary N - Do not use Decoupled Authentication **Default Value**: N
51
51
  attr_accessor :decoupled_authentication_indicator
52
52
 
53
- # The directory server error code indicating a problem with this transaction.
53
+ # The directory server error code indicating a problem with this transaction. Note - Max Length of this field is typically 3 characters.
54
54
  attr_accessor :directory_server_error_code
55
55
 
56
56
  # Directory server text and additional detail about the error for this transaction.
@@ -434,10 +434,6 @@ module CyberSource
434
434
  invalid_properties.push('invalid value for "decoupled_authentication_indicator", the character length must be smaller than or equal to 1.')
435
435
  end
436
436
 
437
- if !@directory_server_error_code.nil? && @directory_server_error_code.to_s.length > 3
438
- invalid_properties.push('invalid value for "directory_server_error_code", the character length must be smaller than or equal to 3.')
439
- end
440
-
441
437
  if !@directory_server_error_description.nil? && @directory_server_error_description.to_s.length > 4096
442
438
  invalid_properties.push('invalid value for "directory_server_error_description", the character length must be smaller than or equal to 4096.')
443
439
  end
@@ -501,7 +497,6 @@ module CyberSource
501
497
  return false if !@challenge_cancel_code.nil? && @challenge_cancel_code.to_s.length > 2
502
498
  return false if !@challenge_required.nil? && @challenge_required.to_s.length > 1
503
499
  return false if !@decoupled_authentication_indicator.nil? && @decoupled_authentication_indicator.to_s.length > 1
504
- return false if !@directory_server_error_code.nil? && @directory_server_error_code.to_s.length > 3
505
500
  return false if !@directory_server_error_description.nil? && @directory_server_error_description.to_s.length > 4096
506
501
  return false if !@ecommerce_indicator.nil? && @ecommerce_indicator.to_s.length > 255
507
502
  return false if !@effective_authentication_type.nil? && @effective_authentication_type.to_s.length > 2
@@ -607,16 +602,6 @@ module CyberSource
607
602
  @decoupled_authentication_indicator = decoupled_authentication_indicator
608
603
  end
609
604
 
610
- # Custom attribute writer method with validation
611
- # @param [Object] directory_server_error_code Value to be assigned
612
- def directory_server_error_code=(directory_server_error_code)
613
- if !directory_server_error_code.nil? && directory_server_error_code.to_s.length > 3
614
- fail ArgumentError, 'invalid value for "directory_server_error_code", the character length must be smaller than or equal to 3.'
615
- end
616
-
617
- @directory_server_error_code = directory_server_error_code
618
- end
619
-
620
605
  # Custom attribute writer method with validation
621
606
  # @param [Object] directory_server_error_description Value to be assigned
622
607
  def directory_server_error_description=(directory_server_error_description)
@@ -30,6 +30,21 @@ module CyberSource
30
30
 
31
31
  attr_accessor :shipping_address
32
32
 
33
+ # Subtype of card account. This field can contain one of the following values: - Maestro International - Maestro UK Domestic - MasterCard Credit - MasterCard Debit - Visa Credit - Visa Debit - Visa Electron **Note** Additional values may be present. For all possible values, see the `score_card_scheme` field description in the _Decision Manager Using the SCMP API Developer Guide_ on the [CyberSource Business Center.](https://ebc2.cybersource.com/ebc2/) Click **Decision Manager** > **Documentation** > **Guides** > _Decision Manager Using the SCMP API Developer Guide_ (PDF link).
34
+ attr_accessor :scheme
35
+
36
+ # Credit card BIN (the first six digits of the credit card).Derived either from the `cc_bin` request field or from the first six characters of the `customer_cc_num` field. For all possible values, see the `score_cc_bin` field description in the _Decision Manager Using the SCMP API Developer Guide_ on the [CyberSource Business Center.](https://ebc2.cybersource.com/ebc2/) Click **Decision Manager** > **Documentation** > **Guides** > _Decision Manager Using the SCMP API Developer Guide_ (PDF link).
37
+ attr_accessor :bin
38
+
39
+ # Type of payment card account. This field can refer to a credit card, debit card, or prepaid card account type. For all possible values, see the `score_card_account_type` field description in the _Decision Manager Using the SCMP API Developer Guide_ on the [CyberSource Business Center.](https://ebc2.cybersource.com/ebc2/) Click **Decision Manager** > **Documentation** > **Guides** > _Decision Manager Using the SCMP API Developer Guide_ (PDF link).
40
+ attr_accessor :account_type
41
+
42
+ # Name of the bank or entity that issued the card account. For all possible values, see the `score_card_issuer` field description in the _Decision Manager Using the SCMP API Developer Guide_ on the [CyberSource Business Center.](https://ebc2.cybersource.com/ebc2/) Click **Decision Manager** > **Documentation** > **Guides** > _Decision Manager Using the SCMP API Developer Guide_ (PDF link).
43
+ attr_accessor :issuer
44
+
45
+ # Country (two-digit country code) associated with the BIN of the customer’s card used for the payment. Returned if the information is available. Use this field for additional information when reviewing orders. This information is also displayed in the details page of the CyberSource Business Center. For all possible values, see the `bin_country` field description in the _Decision Manager Using the SCMP API Developer Guide_ on the [CyberSource Business Center.](https://ebc2.cybersource.com/ebc2/) Click **Decision Manager** > **Documentation** > **Guides** > _Decision Manager Using the SCMP API Developer Guide_ (PDF link).
46
+ attr_accessor :bin_country
47
+
33
48
  # Attribute mapping from ruby-style variable name to JSON key.
34
49
  def self.attribute_map
35
50
  {
@@ -40,7 +55,12 @@ module CyberSource
40
55
  :'customer' => :'customer',
41
56
  :'payment_instrument' => :'paymentInstrument',
42
57
  :'instrument_identifier' => :'instrumentIdentifier',
43
- :'shipping_address' => :'shippingAddress'
58
+ :'shipping_address' => :'shippingAddress',
59
+ :'scheme' => :'scheme',
60
+ :'bin' => :'bin',
61
+ :'account_type' => :'accountType',
62
+ :'issuer' => :'issuer',
63
+ :'bin_country' => :'binCountry'
44
64
  }
45
65
  end
46
66
 
@@ -54,7 +74,12 @@ module CyberSource
54
74
  :'customer' => :'Ptsv2paymentsPaymentInformationCustomer',
55
75
  :'payment_instrument' => :'Ptsv2paymentsPaymentInformationPaymentInstrument',
56
76
  :'instrument_identifier' => :'PtsV2PaymentsPost201ResponsePaymentInformationInstrumentIdentifier',
57
- :'shipping_address' => :'Ptsv2paymentsPaymentInformationShippingAddress'
77
+ :'shipping_address' => :'Ptsv2paymentsPaymentInformationShippingAddress',
78
+ :'scheme' => :'String',
79
+ :'bin' => :'String',
80
+ :'account_type' => :'String',
81
+ :'issuer' => :'String',
82
+ :'bin_country' => :'String'
58
83
  }
59
84
  end
60
85
 
@@ -97,21 +122,116 @@ module CyberSource
97
122
  if attributes.has_key?(:'shippingAddress')
98
123
  self.shipping_address = attributes[:'shippingAddress']
99
124
  end
125
+
126
+ if attributes.has_key?(:'scheme')
127
+ self.scheme = attributes[:'scheme']
128
+ end
129
+
130
+ if attributes.has_key?(:'bin')
131
+ self.bin = attributes[:'bin']
132
+ end
133
+
134
+ if attributes.has_key?(:'accountType')
135
+ self.account_type = attributes[:'accountType']
136
+ end
137
+
138
+ if attributes.has_key?(:'issuer')
139
+ self.issuer = attributes[:'issuer']
140
+ end
141
+
142
+ if attributes.has_key?(:'binCountry')
143
+ self.bin_country = attributes[:'binCountry']
144
+ end
100
145
  end
101
146
 
102
147
  # Show invalid properties with the reasons. Usually used together with valid?
103
148
  # @return Array for valid properties with the reasons
104
149
  def list_invalid_properties
105
150
  invalid_properties = Array.new
151
+ if !@scheme.nil? && @scheme.to_s.length > 255
152
+ invalid_properties.push('invalid value for "scheme", the character length must be smaller than or equal to 255.')
153
+ end
154
+
155
+ if !@bin.nil? && @bin.to_s.length > 255
156
+ invalid_properties.push('invalid value for "bin", the character length must be smaller than or equal to 255.')
157
+ end
158
+
159
+ if !@account_type.nil? && @account_type.to_s.length > 255
160
+ invalid_properties.push('invalid value for "account_type", the character length must be smaller than or equal to 255.')
161
+ end
162
+
163
+ if !@issuer.nil? && @issuer.to_s.length > 255
164
+ invalid_properties.push('invalid value for "issuer", the character length must be smaller than or equal to 255.')
165
+ end
166
+
167
+ if !@bin_country.nil? && @bin_country.to_s.length > 255
168
+ invalid_properties.push('invalid value for "bin_country", the character length must be smaller than or equal to 255.')
169
+ end
170
+
106
171
  invalid_properties
107
172
  end
108
173
 
109
174
  # Check to see if the all the properties in the model are valid
110
175
  # @return true if the model is valid
111
176
  def valid?
177
+ return false if !@scheme.nil? && @scheme.to_s.length > 255
178
+ return false if !@bin.nil? && @bin.to_s.length > 255
179
+ return false if !@account_type.nil? && @account_type.to_s.length > 255
180
+ return false if !@issuer.nil? && @issuer.to_s.length > 255
181
+ return false if !@bin_country.nil? && @bin_country.to_s.length > 255
112
182
  true
113
183
  end
114
184
 
185
+ # Custom attribute writer method with validation
186
+ # @param [Object] scheme Value to be assigned
187
+ def scheme=(scheme)
188
+ if !scheme.nil? && scheme.to_s.length > 255
189
+ fail ArgumentError, 'invalid value for "scheme", the character length must be smaller than or equal to 255.'
190
+ end
191
+
192
+ @scheme = scheme
193
+ end
194
+
195
+ # Custom attribute writer method with validation
196
+ # @param [Object] bin Value to be assigned
197
+ def bin=(bin)
198
+ if !bin.nil? && bin.to_s.length > 255
199
+ fail ArgumentError, 'invalid value for "bin", the character length must be smaller than or equal to 255.'
200
+ end
201
+
202
+ @bin = bin
203
+ end
204
+
205
+ # Custom attribute writer method with validation
206
+ # @param [Object] account_type Value to be assigned
207
+ def account_type=(account_type)
208
+ if !account_type.nil? && account_type.to_s.length > 255
209
+ fail ArgumentError, 'invalid value for "account_type", the character length must be smaller than or equal to 255.'
210
+ end
211
+
212
+ @account_type = account_type
213
+ end
214
+
215
+ # Custom attribute writer method with validation
216
+ # @param [Object] issuer Value to be assigned
217
+ def issuer=(issuer)
218
+ if !issuer.nil? && issuer.to_s.length > 255
219
+ fail ArgumentError, 'invalid value for "issuer", the character length must be smaller than or equal to 255.'
220
+ end
221
+
222
+ @issuer = issuer
223
+ end
224
+
225
+ # Custom attribute writer method with validation
226
+ # @param [Object] bin_country Value to be assigned
227
+ def bin_country=(bin_country)
228
+ if !bin_country.nil? && bin_country.to_s.length > 255
229
+ fail ArgumentError, 'invalid value for "bin_country", the character length must be smaller than or equal to 255.'
230
+ end
231
+
232
+ @bin_country = bin_country
233
+ end
234
+
115
235
  # Checks equality by comparing each attribute.
116
236
  # @param [Object] Object to be compared
117
237
  def ==(o)
@@ -124,7 +244,12 @@ module CyberSource
124
244
  customer == o.customer &&
125
245
  payment_instrument == o.payment_instrument &&
126
246
  instrument_identifier == o.instrument_identifier &&
127
- shipping_address == o.shipping_address
247
+ shipping_address == o.shipping_address &&
248
+ scheme == o.scheme &&
249
+ bin == o.bin &&
250
+ account_type == o.account_type &&
251
+ issuer == o.issuer &&
252
+ bin_country == o.bin_country
128
253
  end
129
254
 
130
255
  # @see the `==` method
@@ -136,7 +261,7 @@ module CyberSource
136
261
  # Calculates hash code according to all attributes.
137
262
  # @return [Fixnum] Hash code
138
263
  def hash
139
- [card, tokenized_card, account_features, bank, customer, payment_instrument, instrument_identifier, shipping_address].hash
264
+ [card, tokenized_card, account_features, bank, customer, payment_instrument, instrument_identifier, shipping_address, scheme, bin, account_type, issuer, bin_country].hash
140
265
  end
141
266
 
142
267
  # Builds the object from hash