cybersource_rest_client 0.0.87 → 0.0.88

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.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/acp_checkout_api.rb +553 -0
  3. data/lib/cybersource_rest_client/api/agent_registration_api.rb +721 -0
  4. data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +0 -1
  5. data/lib/cybersource_rest_client/api/enrollment_api.rb +104 -0
  6. data/lib/cybersource_rest_client/api/{merchant_capabilities_api.rb → merchant_registration_api.rb} +47 -391
  7. data/lib/cybersource_rest_client/api/payment_events_api.rb +197 -0
  8. data/lib/cybersource_rest_client/api/product_feed_api.rb +365 -0
  9. data/lib/cybersource_rest_client/api/purchase_intent_api.rb +278 -0
  10. data/lib/cybersource_rest_client/api/ucp_checkout_api.rb +453 -0
  11. data/lib/cybersource_rest_client/models/activate_merchant_key_response200.rb +1 -1
  12. data/lib/cybersource_rest_client/models/add_agent_key_response201.rb +11 -11
  13. data/lib/cybersource_rest_client/models/agent_registration_response201.rb +13 -15
  14. data/lib/cybersource_rest_client/models/agent_registration_response201_keys.rb +8 -8
  15. data/lib/cybersource_rest_client/models/agent_request.rb +9 -11
  16. data/lib/cybersource_rest_client/models/agent_update.rb +7 -9
  17. data/lib/cybersource_rest_client/models/auth_reversal_request.rb +1 -1
  18. data/lib/cybersource_rest_client/models/boarding_payouts_configurations.rb +1 -1
  19. data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant_products.rb → boarding_payouts_configurations_acquirer.rb} +33 -76
  20. data/lib/cybersource_rest_client/models/{inline_response_200_19_errors.rb → boarding_payouts_configurations_merchant_descriptor.rb} +25 -33
  21. data/lib/cybersource_rest_client/models/boarding_payouts_configurations_processors.rb +581 -0
  22. data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
  23. data/lib/cybersource_rest_client/models/create_order_request.rb +11 -1
  24. data/lib/cybersource_rest_client/models/create_payment_request.rb +14 -1
  25. data/lib/cybersource_rest_client/models/create_session_req.rb +14 -1
  26. data/lib/cybersource_rest_client/models/create_session_request.rb +14 -1
  27. data/lib/cybersource_rest_client/models/iccv1agents_keys.rb +4 -4
  28. data/lib/cybersource_rest_client/models/iccv1merchants_api_integrations.rb +2 -2
  29. data/lib/cybersource_rest_client/models/iccv1merchants_encryption_key.rb +6 -6
  30. data/lib/cybersource_rest_client/models/iccv1merchants_protocol_interactions.rb +1 -1
  31. data/lib/cybersource_rest_client/models/iccv1merchants_web_integrations.rb +2 -2
  32. data/lib/cybersource_rest_client/models/inline_response_200_17.rb +55 -0
  33. data/lib/cybersource_rest_client/models/inline_response_200_18.rb +40 -0
  34. data/lib/cybersource_rest_client/models/inline_response_200_19.rb +30 -107
  35. data/lib/cybersource_rest_client/models/inline_response_200_19_processing.rb +213 -0
  36. data/lib/cybersource_rest_client/models/inline_response_200_19_syndication.rb +224 -0
  37. data/lib/cybersource_rest_client/models/inline_response_200_20_products.rb +80 -682
  38. data/lib/cybersource_rest_client/models/inline_response_201_12.rb +40 -0
  39. data/lib/cybersource_rest_client/models/inline_response_201_12_fulfillment_options.rb +30 -0
  40. data/lib/cybersource_rest_client/models/inline_response_201_12_totals.rb +15 -0
  41. data/lib/cybersource_rest_client/models/inline_response_201_6_setups_risk.rb +15 -5
  42. data/lib/cybersource_rest_client/models/inline_response_201_6_setups_value_added_services.rb +15 -5
  43. data/lib/cybersource_rest_client/models/{deactivate_merchant_key_response200.rb → inline_response_202_1.rb} +11 -16
  44. data/lib/cybersource_rest_client/models/key_request.rb +4 -4
  45. data/lib/cybersource_rest_client/models/key_request_1.rb +5 -5
  46. data/lib/cybersource_rest_client/models/key_update.rb +5 -5
  47. data/lib/cybersource_rest_client/models/key_update_1.rb +5 -5
  48. data/lib/cybersource_rest_client/models/list_agent_keys_response200.rb +2 -2
  49. data/lib/cybersource_rest_client/models/merchant_registration_response201.rb +10 -10
  50. data/lib/cybersource_rest_client/models/merchant_registration_response201_api_integrations.rb +225 -0
  51. data/lib/cybersource_rest_client/models/merchant_registration_response201_keys.rb +1 -1
  52. data/lib/cybersource_rest_client/models/merchant_registration_response201_web_integrations.rb +225 -0
  53. data/lib/cybersource_rest_client/models/merchant_request.rb +7 -7
  54. data/lib/cybersource_rest_client/models/merchant_update.rb +7 -7
  55. data/lib/cybersource_rest_client/models/mit_reversal_request.rb +1 -1
  56. data/lib/cybersource_rest_client/models/mit_void_request.rb +15 -5
  57. data/lib/cybersource_rest_client/models/payments_configuration_setup.rb +11 -1
  58. data/lib/cybersource_rest_client/models/payments_products.rb +11 -1
  59. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +12 -1
  60. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +12 -1
  61. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +44 -1
  62. data/lib/cybersource_rest_client/models/{pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb → pts_v2_payments_post201_response_1_order_information_merchant_descriptor.rb} +1 -1
  63. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +18 -1
  64. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +101 -5
  65. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_ship_to.rb +12 -1
  66. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +22 -5
  67. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -5
  68. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +22 -5
  69. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +1 -1
  70. data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information.rb} +2 -2
  71. data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information_emv.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information_emv.rb} +1 -1
  72. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +22 -5
  73. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +1 -1
  74. data/lib/cybersource_rest_client/models/ptsv2intents_buyer_information.rb +196 -0
  75. data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb +18 -1
  76. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_bill_to.rb +154 -1
  77. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_line_items.rb +16 -5
  78. data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information.rb +1 -1
  79. data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information_merchant_descriptor.rb +207 -0
  80. data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information.rb → ptsv2payments_buyer.rb} +55 -31
  81. data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant.rb → ptsv2payments_order_history.rb} +42 -41
  82. data/lib/cybersource_rest_client/models/ptsv2payments_ship_to.rb +281 -0
  83. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +1 -1
  84. data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information_emv.rb → ptsv2paymentsidrefunds_point_of_sale_information_emv.rb} +1 -1
  85. data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
  86. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +1 -1
  87. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +1 -1
  88. data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account_security_amount.rb +3 -3
  89. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_annual_sales.rb +3 -3
  90. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_average_ticket_size.rb +3 -3
  91. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_monthly_sales.rb +3 -3
  92. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_limit_value.rb +3 -3
  93. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_balance_before.rb +2 -2
  94. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_credit_limit.rb +3 -3
  95. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_additional_fees.rb +2 -2
  96. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_amount.rb +3 -3
  97. data/lib/cybersource_rest_client/models/value_added_services_products.rb +15 -5
  98. data/lib/cybersource_rest_client/models/void_capture_request.rb +15 -5
  99. data/lib/cybersource_rest_client/models/void_credit_request.rb +15 -5
  100. data/lib/cybersource_rest_client/models/void_payment_request.rb +15 -5
  101. data/lib/cybersource_rest_client/models/void_refund_request.rb +15 -5
  102. data/lib/cybersource_rest_client.rb +25 -11
  103. metadata +27 -13
  104. data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +0 -2279
@@ -14,25 +14,25 @@ require 'date'
14
14
  module CyberSource
15
15
  # Request object for registering a new AI agent in the VARS.
16
16
  class AgentRequest
17
- # Agent name
17
+ # Display name for the agent
18
18
  attr_accessor :name
19
19
 
20
- # Agent domain URL
20
+ # Fully-qualified HTTPS URL of the agent's home domain. Must be unique — registration raises 409 if it already exists.
21
21
  attr_accessor :domain
22
22
 
23
- # Agent description
23
+ # Description of the agent's purpose or capabilities
24
24
  attr_accessor :description
25
25
 
26
- # Contact email
26
+ # Contact email for the team or individual responsible for this agent
27
27
  attr_accessor :contact_email
28
28
 
29
- # Unique token requestor identifier
29
+ # Token Requestor ID (TRID) assigned by Visa
30
30
  attr_accessor :token_requestor_id
31
31
 
32
- # Optional metadata (e.g., framework, version)
32
+ # Free-form metadata object for agent context (e.g., AI framework, language, runtime). Max 10KB.
33
33
  attr_accessor :agent_metadata
34
34
 
35
- # Optional list of keys to create with the agent
35
+ # Optional array of public keys to register alongside the agent. Keys are created in ***deactivated*** state and must be activated separately via POST /agents/{agentId}/keys/{keyId}/activate.
36
36
  attr_accessor :keys
37
37
 
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -69,7 +69,7 @@ module CyberSource
69
69
  :'description' => :'String',
70
70
  :'contact_email' => :'String',
71
71
  :'token_requestor_id' => :'String',
72
- :'agent_metadata' => :'Hash<String, String>',
72
+ :'agent_metadata' => :'Object',
73
73
  :'keys' => :'Array<Iccv1agentsKeys>'
74
74
  }
75
75
  end
@@ -103,9 +103,7 @@ module CyberSource
103
103
  end
104
104
 
105
105
  if attributes.has_key?(:'agentMetadata')
106
- if (value = attributes[:'agentMetadata']).is_a?(Hash)
107
- self.agent_metadata = value
108
- end
106
+ self.agent_metadata = attributes[:'agentMetadata']
109
107
  end
110
108
 
111
109
  if attributes.has_key?(:'keys')
@@ -14,19 +14,19 @@ require 'date'
14
14
  module CyberSource
15
15
  # Schema for updating an agent. Only name, domain, description, contactEmail, and agentMetadata can be updated. Extra fields (keys, tokenRequestorId, etc.) will cause a 422 Validation Error.
16
16
  class AgentUpdate
17
- # Agent name
17
+ # Display name for the agent
18
18
  attr_accessor :name
19
19
 
20
- # Agent domain URL
20
+ # Fully-qualified HTTPS URL of the agent's home domain. Must be unique — raises 409 if already registered.
21
21
  attr_accessor :domain
22
22
 
23
- # Agent description
23
+ # Description of the agent's purpose or capabilities
24
24
  attr_accessor :description
25
25
 
26
- # Contact email
26
+ # Contact email for the team or individual responsible for this agent
27
27
  attr_accessor :contact_email
28
28
 
29
- # Optional metadata (e.g., framework, version)
29
+ # Free-form metadata object for agent context (e.g., AI framework, language, runtime). Max 10KB.
30
30
  attr_accessor :agent_metadata
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -58,7 +58,7 @@ module CyberSource
58
58
  :'domain' => :'String',
59
59
  :'description' => :'String',
60
60
  :'contact_email' => :'String',
61
- :'agent_metadata' => :'Hash<String, String>'
61
+ :'agent_metadata' => :'Object'
62
62
  }
63
63
  end
64
64
 
@@ -87,9 +87,7 @@ module CyberSource
87
87
  end
88
88
 
89
89
  if attributes.has_key?(:'agentMetadata')
90
- if (value = attributes[:'agentMetadata']).is_a?(Hash)
91
- self.agent_metadata = value
92
- end
90
+ self.agent_metadata = attributes[:'agentMetadata']
93
91
  end
94
92
  end
95
93
 
@@ -64,7 +64,7 @@ module CyberSource
64
64
  :'reversal_information' => :'Ptsv2paymentsidreversalsReversalInformation',
65
65
  :'processing_information' => :'Ptsv2paymentsidreversalsProcessingInformation',
66
66
  :'order_information' => :'Ptsv2paymentsidreversalsOrderInformation',
67
- :'point_of_sale_information' => :'Ptsv2paymentsidreversalsPointOfSaleInformation',
67
+ :'point_of_sale_information' => :'Ptsv2paymentsPointOfSaleInformation',
68
68
  :'payment_information' => :'Ptsv2paymentsidreversalsPaymentInformation',
69
69
  :'device_information' => :'Ptsv2paymentsidreversalsDeviceInformation',
70
70
  :'processor_information' => :'Ptsv2paymentsProcessorInformationReversal'
@@ -37,7 +37,7 @@ module CyberSource
37
37
  def self.swagger_types
38
38
  {
39
39
  :'common' => :'BoardingPayoutsConfigurationsCommon',
40
- :'processors' => :'Hash<String, Object>'
40
+ :'processors' => :'Hash<String, BoardingPayoutsConfigurationsProcessors>'
41
41
  }
42
42
  end
43
43
 
@@ -12,65 +12,34 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- # Per-product result of UCP validation and Google Merchant upload.
16
- class InlineResponse20019GoogleMerchantProducts
17
- # Product item ID.
18
- attr_accessor :item_id
15
+ class BoardingPayoutsConfigurationsAcquirer
16
+ # This code identifies the financial institution acting as the acquirer. Also known as: - Acquiring BIN - Acquiring Institution Identification Code
17
+ attr_accessor :acquiring_id
19
18
 
20
- # Product title.
21
- attr_accessor :title
22
-
23
- # Whether the product passed UCP validation.
24
- attr_accessor :ucp_valid
25
-
26
- # UCP validation errors (empty if ucpValid is true).
27
- attr_accessor :ucp_errors
28
-
29
- # Google upload status for this product. Possible values: - UPLOADED - SKIPPED - FAILED
30
- attr_accessor :google_upload_status
31
-
32
- # Google Merchant resource name assigned after upload.
33
- attr_accessor :google_resource_name
34
-
35
- # Error message from Google if upload failed. Null on success.
36
- attr_accessor :google_error
19
+ # The acquirer's [ISO 3166-1](https://developer.cybersource.com/docs/cybs/en-us/country-codes/reference/all/na/country-codes/country-codes.html) alpha-2 country code. Possible values: - US - AF - AX - AL - DZ - AD - AO - AI - AQ - AG - AR - AM - AW - AU - AS - AT - AZ - BS - BH - BD - BB - BY - BE - BZ - BJ - BM - BT - BO - BA - BQ - BW - BV - BR - IO - VG - BN - BG - BF - BI - KH - CM - CA - CV - CW - KY - CF - TD - CL - CN - CX - CC - CO - KM - CD - CG - CK - CR - CI - HR - CU - CY - CZ - DK - DJ - DM - DO - EC - EG - SV - GQ - ER - EE - ET - FK - FO - FJ - FI - FR - GF - PF - TF - GA - GM - GE - DE - GH - GI - GR - GL - GD - GP - GU - GT - GG - GN - GW - GY - HT - HM - HN - HK - HU - IS - IN - ID - IR - IQ - IE - IM - IL - IT - JM - JP - JE - JO - KZ - KE - KI - KW - KG - LA - LV - LB - LS - LR - LY - LI - LT - LU - MO - MK - MG - MW - MY - MV - ML - MT - MH - MQ - MR - MU - YT - MX - FM - MD - MC - MN - ME - MS - MA - MZ - MM - NA - NR - NP - NL - AN - NC - NZ - NI - NE - NG - NU - NF - KP - MP - NO - OM - PK - PW - PS - PA - PG - PY - PE - PH - PN - PL - PT - PR - QA - RE - RO - RU - RW - BL - SH - KN - LC - MF - PM - VC - WS - SM - SS - ST - SX - SA - SN - RS - SC - SL - SG - SK - SI - SB - SO - ZA - GS - KR - ES - LK - SD - SR - SJ - SZ - SE - CH - SY - TW - TJ - TZ - TH - TL - TG - TK - TO - TT - TN - TR - TM - TC - TV - UG - UA - AE - GB - UM - UY - UZ - VU - VA - VE - VN - VI - WF - KV - EH - YE - ZM - ZW
20
+ attr_accessor :country
37
21
 
38
22
  # Attribute mapping from ruby-style variable name to JSON key.
39
23
  def self.attribute_map
40
24
  {
41
- :'item_id' => :'itemId',
42
- :'title' => :'title',
43
- :'ucp_valid' => :'ucpValid',
44
- :'ucp_errors' => :'ucpErrors',
45
- :'google_upload_status' => :'googleUploadStatus',
46
- :'google_resource_name' => :'googleResourceName',
47
- :'google_error' => :'googleError'
25
+ :'acquiring_id' => :'acquiringId',
26
+ :'country' => :'country'
48
27
  }
49
28
  end
50
29
 
51
30
  # Attribute mapping from JSON key to ruby-style variable name.
52
31
  def self.json_map
53
32
  {
54
- :'item_id' => :'item_id',
55
- :'title' => :'title',
56
- :'ucp_valid' => :'ucp_valid',
57
- :'ucp_errors' => :'ucp_errors',
58
- :'google_upload_status' => :'google_upload_status',
59
- :'google_resource_name' => :'google_resource_name',
60
- :'google_error' => :'google_error'
33
+ :'acquiring_id' => :'acquiring_id',
34
+ :'country' => :'country'
61
35
  }
62
36
  end
63
37
 
64
38
  # Attribute type mapping.
65
39
  def self.swagger_types
66
40
  {
67
- :'item_id' => :'String',
68
- :'title' => :'String',
69
- :'ucp_valid' => :'BOOLEAN',
70
- :'ucp_errors' => :'Array<String>',
71
- :'google_upload_status' => :'String',
72
- :'google_resource_name' => :'String',
73
- :'google_error' => :'String'
41
+ :'acquiring_id' => :'String',
42
+ :'country' => :'String'
74
43
  }
75
44
  end
76
45
 
@@ -82,34 +51,12 @@ module CyberSource
82
51
  # convert string to symbol for hash key
83
52
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
84
53
 
85
- if attributes.has_key?(:'itemId')
86
- self.item_id = attributes[:'itemId']
87
- end
88
-
89
- if attributes.has_key?(:'title')
90
- self.title = attributes[:'title']
91
- end
92
-
93
- if attributes.has_key?(:'ucpValid')
94
- self.ucp_valid = attributes[:'ucpValid']
95
- end
96
-
97
- if attributes.has_key?(:'ucpErrors')
98
- if (value = attributes[:'ucpErrors']).is_a?(Array)
99
- self.ucp_errors = value
100
- end
101
- end
102
-
103
- if attributes.has_key?(:'googleUploadStatus')
104
- self.google_upload_status = attributes[:'googleUploadStatus']
105
- end
106
-
107
- if attributes.has_key?(:'googleResourceName')
108
- self.google_resource_name = attributes[:'googleResourceName']
54
+ if attributes.has_key?(:'acquiringId')
55
+ self.acquiring_id = attributes[:'acquiringId']
109
56
  end
110
57
 
111
- if attributes.has_key?(:'googleError')
112
- self.google_error = attributes[:'googleError']
58
+ if attributes.has_key?(:'country')
59
+ self.country = attributes[:'country']
113
60
  end
114
61
  end
115
62
 
@@ -117,27 +64,37 @@ module CyberSource
117
64
  # @return Array for valid properties with the reasons
118
65
  def list_invalid_properties
119
66
  invalid_properties = Array.new
67
+ #if !@acquiring_id.nil? && @acquiring_id !~ Regexp.new(/^\\d+$/)
68
+ #invalid_properties.push('invalid value for "acquiring_id", must conform to the pattern /^\\d+$/.')
69
+ #end
70
+
120
71
  invalid_properties
121
72
  end
122
73
 
123
74
  # Check to see if the all the properties in the model are valid
124
75
  # @return true if the model is valid
125
76
  def valid?
77
+ #return false if !@acquiring_id.nil? && @acquiring_id !~ Regexp.new(/^\\d+$/)
126
78
  true
127
79
  end
128
80
 
81
+ # Custom attribute writer method with validation
82
+ # @param [Object] acquiring_id Value to be assigned
83
+ def acquiring_id=(acquiring_id)
84
+ #if !acquiring_id.nil? && acquiring_id !~ Regexp.new(/^\\d+$/)
85
+ #fail ArgumentError, 'invalid value for "acquiring_id", must conform to the pattern /^\\d+$/.'
86
+ #end
87
+
88
+ @acquiring_id = acquiring_id
89
+ end
90
+
129
91
  # Checks equality by comparing each attribute.
130
92
  # @param [Object] Object to be compared
131
93
  def ==(o)
132
94
  return true if self.equal?(o)
133
95
  self.class == o.class &&
134
- item_id == o.item_id &&
135
- title == o.title &&
136
- ucp_valid == o.ucp_valid &&
137
- ucp_errors == o.ucp_errors &&
138
- google_upload_status == o.google_upload_status &&
139
- google_resource_name == o.google_resource_name &&
140
- google_error == o.google_error
96
+ acquiring_id == o.acquiring_id &&
97
+ country == o.country
141
98
  end
142
99
 
143
100
  # @see the `==` method
@@ -149,7 +106,7 @@ module CyberSource
149
106
  # Calculates hash code according to all attributes.
150
107
  # @return [Fixnum] Hash code
151
108
  def hash
152
- [item_id, title, ucp_valid, ucp_errors, google_upload_status, google_resource_name, google_error].hash
109
+ [acquiring_id, country].hash
153
110
  end
154
111
 
155
112
  # Builds the object from hash
@@ -12,41 +12,28 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- # A single product-level validation failure returned in `ProductFeedResponse.errors`.
16
- class InlineResponse20019Errors
17
- # The `item_id` of the product that failed validation.
18
- attr_accessor :product_id
19
-
20
- # The field name that failed validation.
21
- attr_accessor :field
22
-
23
- # Human-readable description of why the field failed validation.
24
- attr_accessor :message
15
+ class BoardingPayoutsConfigurationsMerchantDescriptor
16
+ # The merchant statement descriptor. The statement descriptor is a string which will be displayed on the recipient's bank or card statement.
17
+ attr_accessor :name
25
18
 
26
19
  # Attribute mapping from ruby-style variable name to JSON key.
27
20
  def self.attribute_map
28
21
  {
29
- :'product_id' => :'product_id',
30
- :'field' => :'field',
31
- :'message' => :'message'
22
+ :'name' => :'name'
32
23
  }
33
24
  end
34
25
 
35
26
  # Attribute mapping from JSON key to ruby-style variable name.
36
27
  def self.json_map
37
28
  {
38
- :'product_id' => :'product_id',
39
- :'field' => :'field',
40
- :'message' => :'message'
29
+ :'name' => :'name'
41
30
  }
42
31
  end
43
32
 
44
33
  # Attribute type mapping.
45
34
  def self.swagger_types
46
35
  {
47
- :'product_id' => :'String',
48
- :'field' => :'String',
49
- :'message' => :'String'
36
+ :'name' => :'String'
50
37
  }
51
38
  end
52
39
 
@@ -58,16 +45,8 @@ module CyberSource
58
45
  # convert string to symbol for hash key
59
46
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
47
 
61
- if attributes.has_key?(:'product_id')
62
- self.product_id = attributes[:'product_id']
63
- end
64
-
65
- if attributes.has_key?(:'field')
66
- self.field = attributes[:'field']
67
- end
68
-
69
- if attributes.has_key?(:'message')
70
- self.message = attributes[:'message']
48
+ if attributes.has_key?(:'name')
49
+ self.name = attributes[:'name']
71
50
  end
72
51
  end
73
52
 
@@ -75,23 +54,36 @@ module CyberSource
75
54
  # @return Array for valid properties with the reasons
76
55
  def list_invalid_properties
77
56
  invalid_properties = Array.new
57
+ #if !@name.nil? && @name !~ Regexp.new(/^[A-Za-z0-9]+$/)
58
+ #invalid_properties.push('invalid value for "name", must conform to the pattern /^[A-Za-z0-9]+$/.')
59
+ #end
60
+
78
61
  invalid_properties
79
62
  end
80
63
 
81
64
  # Check to see if the all the properties in the model are valid
82
65
  # @return true if the model is valid
83
66
  def valid?
67
+ #return false if !@name.nil? && @name !~ Regexp.new(/^[A-Za-z0-9]+$/)
84
68
  true
85
69
  end
86
70
 
71
+ # Custom attribute writer method with validation
72
+ # @param [Object] name Value to be assigned
73
+ def name=(name)
74
+ #if !name.nil? && name !~ Regexp.new(/^[A-Za-z0-9]+$/)
75
+ #fail ArgumentError, 'invalid value for "name", must conform to the pattern /^[A-Za-z0-9]+$/.'
76
+ #end
77
+
78
+ @name = name
79
+ end
80
+
87
81
  # Checks equality by comparing each attribute.
88
82
  # @param [Object] Object to be compared
89
83
  def ==(o)
90
84
  return true if self.equal?(o)
91
85
  self.class == o.class &&
92
- product_id == o.product_id &&
93
- field == o.field &&
94
- message == o.message
86
+ name == o.name
95
87
  end
96
88
 
97
89
  # @see the `==` method
@@ -103,7 +95,7 @@ module CyberSource
103
95
  # Calculates hash code according to all attributes.
104
96
  # @return [Fixnum] Hash code
105
97
  def hash
106
- [product_id, field, message].hash
98
+ [name].hash
107
99
  end
108
100
 
109
101
  # Builds the object from hash