cybersource_rest_client 0.0.53 → 0.0.55

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/http/GetSignatureParameter.rb +2 -2
  3. data/lib/AuthenticationSDK/authentication/http/HttpSignatureHeader.rb +6 -6
  4. data/lib/AuthenticationSDK/core/MerchantConfig.rb +6 -0
  5. data/lib/AuthenticationSDK/util/Cache.rb +15 -1
  6. data/lib/AuthenticationSDK/util/Constants.rb +1 -1
  7. data/lib/AuthenticationSDK/util/JWEUtility.rb +14 -0
  8. data/lib/cybersource_rest_client/api/batches_api.rb +12 -12
  9. data/lib/cybersource_rest_client/api/billing_agreements_api.rb +231 -0
  10. data/lib/cybersource_rest_client/api/decision_manager_api.rb +142 -0
  11. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +2 -2
  12. data/lib/cybersource_rest_client/api/invoices_api.rb +6 -6
  13. data/lib/cybersource_rest_client/api/keymanagement_api.rb +3 -3
  14. data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
  15. data/lib/cybersource_rest_client/api/plans_api.rb +32 -32
  16. data/lib/cybersource_rest_client/api/subscriptions_api.rb +32 -32
  17. data/lib/cybersource_rest_client/api/void_api.rb +2 -2
  18. data/lib/cybersource_rest_client/models/access_token_response.rb +244 -244
  19. data/lib/cybersource_rest_client/models/activate_deactivate_plan_response.rb +239 -0
  20. data/lib/cybersource_rest_client/models/{inline_response_200_9.rb → activate_subscription_response.rb} +2 -2
  21. data/lib/cybersource_rest_client/models/{inline_response_200_9_subscription_information.rb → activate_subscription_response_subscription_information.rb} +1 -1
  22. data/lib/cybersource_rest_client/models/bad_request_error.rb +192 -192
  23. data/lib/cybersource_rest_client/models/{inline_response_202_1.rb → cancel_subscription_response.rb} +2 -2
  24. data/lib/cybersource_rest_client/models/{inline_response_202_subscription_information.rb → cancel_subscription_response_subscription_information.rb} +1 -1
  25. data/lib/cybersource_rest_client/models/case_management_actions_request.rb +200 -0
  26. data/lib/cybersource_rest_client/models/case_management_comments_request.rb +206 -0
  27. data/lib/cybersource_rest_client/models/create_access_token_request.rb +254 -254
  28. data/lib/cybersource_rest_client/models/{inline_response_200_14.rb → create_billing_agreement.rb} +65 -88
  29. data/lib/cybersource_rest_client/models/create_bundled_decision_manager_case_request.rb +15 -5
  30. data/lib/cybersource_rest_client/models/create_plan_response.rb +239 -0
  31. data/lib/cybersource_rest_client/models/{inline_response_201_plan_information.rb → create_plan_response_plan_information.rb} +1 -1
  32. data/lib/cybersource_rest_client/models/create_subscription_request.rb +1 -1
  33. data/lib/cybersource_rest_client/models/{inline_response_201_1.rb → create_subscription_response.rb} +3 -3
  34. data/lib/cybersource_rest_client/models/{inline_response_201_1__links.rb → create_subscription_response__links.rb} +1 -1
  35. data/lib/cybersource_rest_client/models/{inline_response_201_1_subscription_information.rb → create_subscription_response_subscription_information.rb} +1 -1
  36. data/lib/cybersource_rest_client/models/delete_plan_response.rb +202 -0
  37. data/lib/cybersource_rest_client/models/{inline_response_202_2.rb → get_all_plans_response.rb} +31 -18
  38. data/lib/cybersource_rest_client/models/{inline_response_200__links.rb → get_all_plans_response__links.rb} +1 -1
  39. data/lib/cybersource_rest_client/models/{inline_response_200_order_information.rb → get_all_plans_response_order_information.rb} +2 -2
  40. data/lib/cybersource_rest_client/models/{inline_response_200_order_information_amount_details.rb → get_all_plans_response_order_information_amount_details.rb} +1 -1
  41. data/lib/cybersource_rest_client/models/{inline_response_200_plan_information.rb → get_all_plans_response_plan_information.rb} +3 -3
  42. data/lib/cybersource_rest_client/models/{inline_response_200_plan_information_billing_cycles.rb → get_all_plans_response_plan_information_billing_cycles.rb} +1 -1
  43. data/lib/cybersource_rest_client/models/{inline_response_200_plan_information_billing_period.rb → get_all_plans_response_plan_information_billing_period.rb} +1 -1
  44. data/lib/cybersource_rest_client/models/{inline_response_200_plans.rb → get_all_plans_response_plans.rb} +3 -3
  45. data/lib/cybersource_rest_client/models/{inline_response_200_6.rb → get_all_subscriptions_response.rb} +3 -3
  46. data/lib/cybersource_rest_client/models/{inline_response_200_6__links.rb → get_all_subscriptions_response__links.rb} +1 -1
  47. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information.rb +200 -0
  48. data/lib/cybersource_rest_client/models/{inline_response_200_6_order_information_bill_to.rb → get_all_subscriptions_response_order_information_bill_to.rb} +1 -1
  49. data/lib/cybersource_rest_client/models/{inline_response_200_6_payment_information.rb → get_all_subscriptions_response_payment_information.rb} +2 -2
  50. data/lib/cybersource_rest_client/models/{inline_response_200_6_payment_information_customer.rb → get_all_subscriptions_response_payment_information_customer.rb} +1 -1
  51. data/lib/cybersource_rest_client/models/{inline_response_200_6_plan_information.rb → get_all_subscriptions_response_plan_information.rb} +3 -3
  52. data/lib/cybersource_rest_client/models/{inline_response_200_6_plan_information_billing_cycles.rb → get_all_subscriptions_response_plan_information_billing_cycles.rb} +1 -1
  53. data/lib/cybersource_rest_client/models/{inline_response_200_6_subscription_information.rb → get_all_subscriptions_response_subscription_information.rb} +1 -1
  54. data/lib/cybersource_rest_client/models/{inline_response_200_6_subscriptions.rb → get_all_subscriptions_response_subscriptions.rb} +6 -6
  55. data/lib/cybersource_rest_client/models/{inline_response_200_5.rb → get_plan_code_response.rb} +1 -1
  56. data/lib/cybersource_rest_client/models/get_plan_response.rb +238 -0
  57. data/lib/cybersource_rest_client/models/{inline_response_200_10.rb → get_subscription_code_response.rb} +1 -1
  58. data/lib/cybersource_rest_client/models/{inline_response_200_7.rb → get_subscription_response.rb} +6 -6
  59. data/lib/cybersource_rest_client/models/inline_response_200.rb +30 -25
  60. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +50 -40
  61. data/lib/cybersource_rest_client/models/{inline_response_200_11_keys.rb → inline_response_200_1_keys.rb} +1 -1
  62. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +67 -17
  63. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded.rb → inline_response_200_2__embedded.rb} +2 -2
  64. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded__links.rb → inline_response_200_2__embedded__links.rb} +2 -2
  65. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded__links_reports.rb → inline_response_200_2__embedded__links_reports.rb} +1 -1
  66. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded_batches.rb → inline_response_200_2__embedded_batches.rb} +3 -3
  67. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded_totals.rb → inline_response_200_2__embedded_totals.rb} +1 -1
  68. data/lib/cybersource_rest_client/models/{inline_response_200_12__links.rb → inline_response_200_2__links.rb} +1 -1
  69. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +81 -29
  70. data/lib/cybersource_rest_client/models/{inline_response_200_13__links.rb → inline_response_200_3__links.rb} +3 -3
  71. data/lib/cybersource_rest_client/models/{inline_response_202_2__links_status.rb → inline_response_200_3__links_report.rb} +1 -1
  72. data/lib/cybersource_rest_client/models/{inline_response_200_13_billing.rb → inline_response_200_3_billing.rb} +1 -1
  73. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +96 -42
  74. data/lib/cybersource_rest_client/models/{inline_response_200_14_records.rb → inline_response_200_4_records.rb} +3 -3
  75. data/lib/cybersource_rest_client/models/{inline_response_200_14_response_record.rb → inline_response_200_4_response_record.rb} +2 -2
  76. data/lib/cybersource_rest_client/models/{inline_response_200_14_response_record_additional_updates.rb → inline_response_200_4_response_record_additional_updates.rb} +1 -1
  77. data/lib/cybersource_rest_client/models/{inline_response_200_14_source_record.rb → inline_response_200_4_source_record.rb} +1 -1
  78. data/lib/cybersource_rest_client/models/inline_response_200__embedded.rb +201 -0
  79. data/lib/cybersource_rest_client/models/inline_response_200__embedded_capture.rb +202 -0
  80. data/lib/cybersource_rest_client/models/inline_response_200__embedded_capture__links.rb +191 -0
  81. data/lib/cybersource_rest_client/models/inline_response_200__embedded_capture__links_self.rb +203 -0
  82. data/lib/cybersource_rest_client/models/inline_response_200__embedded_reversal.rb +202 -0
  83. data/lib/cybersource_rest_client/models/inline_response_200__embedded_reversal__links.rb +191 -0
  84. data/lib/cybersource_rest_client/models/inline_response_200__embedded_reversal__links_self.rb +203 -0
  85. data/lib/cybersource_rest_client/models/inline_response_201.rb +7 -27
  86. data/lib/cybersource_rest_client/models/inline_response_202.rb +17 -45
  87. data/lib/cybersource_rest_client/models/{inline_response_202_2__links.rb → inline_response_202__links.rb} +2 -2
  88. data/lib/cybersource_rest_client/models/{inline_response_200_13__links_report.rb → inline_response_202__links_status.rb} +1 -1
  89. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +3 -3
  90. data/lib/cybersource_rest_client/models/inline_response_400_2.rb +1 -1
  91. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +37 -60
  92. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +61 -37
  93. data/lib/cybersource_rest_client/models/{inline_response_400_3_fields.rb → inline_response_400_4_fields.rb} +1 -1
  94. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +10 -11
  95. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +35 -75
  96. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +276 -0
  97. data/lib/cybersource_rest_client/models/{inline_response_400_6_details.rb → inline_response_400_7_details.rb} +1 -1
  98. data/lib/cybersource_rest_client/models/inline_response_403_1.rb +236 -0
  99. data/lib/cybersource_rest_client/models/inline_response_422.rb +236 -0
  100. data/lib/cybersource_rest_client/models/inline_response_500_1.rb +20 -8
  101. data/lib/cybersource_rest_client/models/inline_response_500_2.rb +224 -0
  102. data/lib/cybersource_rest_client/models/inline_response_502.rb +13 -12
  103. data/lib/cybersource_rest_client/models/inline_response_502_1.rb +235 -0
  104. data/lib/cybersource_rest_client/models/inline_response_503.rb +236 -0
  105. data/lib/cybersource_rest_client/models/{inline_response_200_12.rb → intimate_billing_agreement.rb} +37 -59
  106. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +1 -1
  107. data/lib/cybersource_rest_client/models/modify_billing_agreement.rb +270 -0
  108. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1.rb +239 -0
  109. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_installment_information.rb +197 -0
  110. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_processor_information.rb +214 -0
  111. data/lib/cybersource_rest_client/models/ptsv2billingagreements_aggregator_information.rb +207 -0
  112. data/lib/cybersource_rest_client/models/ptsv2billingagreements_consumer_authentication_information.rb +242 -0
  113. data/lib/cybersource_rest_client/models/ptsv2billingagreements_device_information.rb +231 -0
  114. data/lib/cybersource_rest_client/models/ptsv2billingagreements_installment_information.rb +327 -0
  115. data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information.rb +235 -0
  116. data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information_merchant_descriptor.rb +242 -0
  117. data/lib/cybersource_rest_client/models/{inline_response_200_6_order_information.rb → ptsv2billingagreements_order_information.rb} +3 -3
  118. data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information_bill_to.rb +401 -0
  119. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information.rb +200 -0
  120. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +259 -0
  121. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +276 -0
  122. data/lib/cybersource_rest_client/models/ptsv2billingagreements_processing_information.rb +210 -0
  123. data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +12 -1
  124. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +16 -5
  125. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information.rb +1 -1
  126. data/lib/cybersource_rest_client/models/rbsv1plansid_plan_information.rb +1 -1
  127. data/lib/cybersource_rest_client/models/rbsv1subscriptions_plan_information.rb +1 -1
  128. data/lib/cybersource_rest_client/models/resource_not_found_error.rb +192 -192
  129. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +1 -1
  130. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_token_information.rb +22 -5
  131. data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +12 -1
  132. data/lib/cybersource_rest_client/models/riskv1decisions_processing_information.rb +1 -1
  133. data/lib/cybersource_rest_client/models/riskv1decisions_token_information.rb +197 -0
  134. data/lib/cybersource_rest_client/models/riskv1decisionsidactions_decision_information.rb +208 -0
  135. data/lib/cybersource_rest_client/models/riskv1decisionsidactions_processing_information.rb +193 -0
  136. data/lib/cybersource_rest_client/models/suspend_subscription_response.rb +239 -0
  137. data/lib/cybersource_rest_client/models/{inline_response_202_1_subscription_information.rb → suspend_subscription_response_subscription_information.rb} +1 -1
  138. data/lib/cybersource_rest_client/models/unauthorized_client_error.rb +192 -192
  139. data/lib/cybersource_rest_client/models/update_plan_request.rb +1 -1
  140. data/lib/cybersource_rest_client/models/update_plan_response.rb +239 -0
  141. data/lib/cybersource_rest_client/models/{inline_response_200_3_plan_information.rb → update_plan_response_plan_information.rb} +1 -1
  142. data/lib/cybersource_rest_client/models/{inline_response_200_8.rb → update_subscription_response.rb} +3 -3
  143. data/lib/cybersource_rest_client/models/validate_request.rb +15 -5
  144. data/lib/cybersource_rest_client/utilities/jwe_utility.rb +12 -0
  145. data/lib/cybersource_rest_client.rb +95 -54
  146. metadata +112 -57
  147. data/lib/cybersource_rest_client/models/inline_response_200_11.rb +0 -248
  148. data/lib/cybersource_rest_client/models/inline_response_200_13.rb +0 -291
@@ -13,52 +13,59 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
+ # Error Bean
16
17
  class InlineResponse4004
17
- # Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services.
18
- attr_accessor :submit_time_utc
18
+ # Error code
19
+ attr_accessor :code
19
20
 
20
- # The status of the submitted transaction. Possible values: - INVALID_REQUEST
21
- attr_accessor :status
21
+ # Error message
22
+ attr_accessor :message
22
23
 
23
- # The reason of the status. Possible values: - MISSING_FIELD
24
- attr_accessor :reason
24
+ # Localization Key Name
25
+ attr_accessor :localization_key
25
26
 
26
- # The detail message related to the status and reason listed above.
27
- attr_accessor :message
27
+ # Correlation Id
28
+ attr_accessor :correlation_id
28
29
 
29
- # HTTP status code of the submitted request. Possible values: - 500
30
- attr_accessor :status_code
30
+ # Error Detail
31
+ attr_accessor :detail
32
+
33
+ # Error fields List
34
+ attr_accessor :fields
31
35
 
32
36
  # Attribute mapping from ruby-style variable name to JSON key.
33
37
  def self.attribute_map
34
38
  {
35
- :'submit_time_utc' => :'submitTimeUtc',
36
- :'status' => :'status',
37
- :'reason' => :'reason',
39
+ :'code' => :'code',
38
40
  :'message' => :'message',
39
- :'status_code' => :'statusCode'
41
+ :'localization_key' => :'localizationKey',
42
+ :'correlation_id' => :'correlationId',
43
+ :'detail' => :'detail',
44
+ :'fields' => :'fields'
40
45
  }
41
46
  end
42
47
 
43
48
  # Attribute mapping from JSON key to ruby-style variable name.
44
49
  def self.json_map
45
50
  {
46
- :'submit_time_utc' => :'submit_time_utc',
47
- :'status' => :'status',
48
- :'reason' => :'reason',
51
+ :'code' => :'code',
49
52
  :'message' => :'message',
50
- :'status_code' => :'status_code'
53
+ :'localization_key' => :'localization_key',
54
+ :'correlation_id' => :'correlation_id',
55
+ :'detail' => :'detail',
56
+ :'fields' => :'fields'
51
57
  }
52
58
  end
53
59
 
54
60
  # Attribute type mapping.
55
61
  def self.swagger_types
56
62
  {
57
- :'submit_time_utc' => :'String',
58
- :'status' => :'String',
59
- :'reason' => :'String',
63
+ :'code' => :'String',
60
64
  :'message' => :'String',
61
- :'status_code' => :'String'
65
+ :'localization_key' => :'String',
66
+ :'correlation_id' => :'String',
67
+ :'detail' => :'String',
68
+ :'fields' => :'Array<InlineResponse4004Fields>'
62
69
  }
63
70
  end
64
71
 
@@ -70,24 +77,30 @@ module CyberSource
70
77
  # convert string to symbol for hash key
71
78
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
72
79
 
73
- if attributes.has_key?(:'submitTimeUtc')
74
- self.submit_time_utc = attributes[:'submitTimeUtc']
80
+ if attributes.has_key?(:'code')
81
+ self.code = attributes[:'code']
75
82
  end
76
83
 
77
- if attributes.has_key?(:'status')
78
- self.status = attributes[:'status']
84
+ if attributes.has_key?(:'message')
85
+ self.message = attributes[:'message']
79
86
  end
80
87
 
81
- if attributes.has_key?(:'reason')
82
- self.reason = attributes[:'reason']
88
+ if attributes.has_key?(:'localizationKey')
89
+ self.localization_key = attributes[:'localizationKey']
83
90
  end
84
91
 
85
- if attributes.has_key?(:'message')
86
- self.message = attributes[:'message']
92
+ if attributes.has_key?(:'correlationId')
93
+ self.correlation_id = attributes[:'correlationId']
87
94
  end
88
95
 
89
- if attributes.has_key?(:'statusCode')
90
- self.status_code = attributes[:'statusCode']
96
+ if attributes.has_key?(:'detail')
97
+ self.detail = attributes[:'detail']
98
+ end
99
+
100
+ if attributes.has_key?(:'fields')
101
+ if (value = attributes[:'fields']).is_a?(Array)
102
+ self.fields = value
103
+ end
91
104
  end
92
105
  end
93
106
 
@@ -95,12 +108,22 @@ module CyberSource
95
108
  # @return Array for valid properties with the reasons
96
109
  def list_invalid_properties
97
110
  invalid_properties = Array.new
111
+ if @code.nil?
112
+ invalid_properties.push('invalid value for "code", code cannot be nil.')
113
+ end
114
+
115
+ if @message.nil?
116
+ invalid_properties.push('invalid value for "message", message cannot be nil.')
117
+ end
118
+
98
119
  invalid_properties
99
120
  end
100
121
 
101
122
  # Check to see if the all the properties in the model are valid
102
123
  # @return true if the model is valid
103
124
  def valid?
125
+ return false if @code.nil?
126
+ return false if @message.nil?
104
127
  true
105
128
  end
106
129
 
@@ -109,11 +132,12 @@ module CyberSource
109
132
  def ==(o)
110
133
  return true if self.equal?(o)
111
134
  self.class == o.class &&
112
- submit_time_utc == o.submit_time_utc &&
113
- status == o.status &&
114
- reason == o.reason &&
135
+ code == o.code &&
115
136
  message == o.message &&
116
- status_code == o.status_code
137
+ localization_key == o.localization_key &&
138
+ correlation_id == o.correlation_id &&
139
+ detail == o.detail &&
140
+ fields == o.fields
117
141
  end
118
142
 
119
143
  # @see the `==` method
@@ -125,7 +149,7 @@ module CyberSource
125
149
  # Calculates hash code according to all attributes.
126
150
  # @return [Fixnum] Hash code
127
151
  def hash
128
- [submit_time_utc, status, reason, message, status_code].hash
152
+ [code, message, localization_key, correlation_id, detail, fields].hash
129
153
  end
130
154
 
131
155
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  # Provide validation failed input field details
17
- class InlineResponse4003Fields
17
+ class InlineResponse4004Fields
18
18
  # Path of the failed property
19
19
  attr_accessor :path
20
20
 
@@ -20,13 +20,14 @@ module CyberSource
20
20
  # The status of the submitted transaction. Possible values: - INVALID_REQUEST
21
21
  attr_accessor :status
22
22
 
23
- # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA
23
+ # The reason of the status. Possible values: - MISSING_FIELD
24
24
  attr_accessor :reason
25
25
 
26
26
  # The detail message related to the status and reason listed above.
27
27
  attr_accessor :message
28
28
 
29
- attr_accessor :details
29
+ # HTTP status code of the submitted request. Possible values: - 500
30
+ attr_accessor :status_code
30
31
 
31
32
  # Attribute mapping from ruby-style variable name to JSON key.
32
33
  def self.attribute_map
@@ -35,7 +36,7 @@ module CyberSource
35
36
  :'status' => :'status',
36
37
  :'reason' => :'reason',
37
38
  :'message' => :'message',
38
- :'details' => :'details'
39
+ :'status_code' => :'statusCode'
39
40
  }
40
41
  end
41
42
 
@@ -46,7 +47,7 @@ module CyberSource
46
47
  :'status' => :'status',
47
48
  :'reason' => :'reason',
48
49
  :'message' => :'message',
49
- :'details' => :'details'
50
+ :'status_code' => :'status_code'
50
51
  }
51
52
  end
52
53
 
@@ -57,7 +58,7 @@ module CyberSource
57
58
  :'status' => :'String',
58
59
  :'reason' => :'String',
59
60
  :'message' => :'String',
60
- :'details' => :'Array<PtsV2PaymentsPost201ResponseErrorInformationDetails>'
61
+ :'status_code' => :'String'
61
62
  }
62
63
  end
63
64
 
@@ -85,10 +86,8 @@ module CyberSource
85
86
  self.message = attributes[:'message']
86
87
  end
87
88
 
88
- if attributes.has_key?(:'details')
89
- if (value = attributes[:'details']).is_a?(Array)
90
- self.details = value
91
- end
89
+ if attributes.has_key?(:'statusCode')
90
+ self.status_code = attributes[:'statusCode']
92
91
  end
93
92
  end
94
93
 
@@ -114,7 +113,7 @@ module CyberSource
114
113
  status == o.status &&
115
114
  reason == o.reason &&
116
115
  message == o.message &&
117
- details == o.details
116
+ status_code == o.status_code
118
117
  end
119
118
 
120
119
  # @see the `==` method
@@ -126,7 +125,7 @@ module CyberSource
126
125
  # Calculates hash code according to all attributes.
127
126
  # @return [Fixnum] Hash code
128
127
  def hash
129
- [submit_time_utc, status, reason, message, details].hash
128
+ [submit_time_utc, status, reason, message, status_code].hash
130
129
  end
131
130
 
132
131
  # Builds the object from hash
@@ -14,68 +14,50 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class InlineResponse4006
17
- attr_accessor :correlation_id
17
+ # Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services.
18
+ attr_accessor :submit_time_utc
18
19
 
19
- attr_accessor :details
20
-
21
- attr_accessor :information_link
22
-
23
- attr_accessor :message
20
+ # The status of the submitted transaction. Possible values: - INVALID_REQUEST
21
+ attr_accessor :status
24
22
 
23
+ # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA
25
24
  attr_accessor :reason
26
25
 
27
- class EnumAttributeValidator
28
- attr_reader :datatype
29
- attr_reader :allowable_values
30
-
31
- def initialize(datatype, allowable_values)
32
- @allowable_values = allowable_values.map do |value|
33
- case datatype.to_s
34
- when /Integer/i
35
- value.to_i
36
- when /Float/i
37
- value.to_f
38
- else
39
- value
40
- end
41
- end
42
- end
26
+ # The detail message related to the status and reason listed above.
27
+ attr_accessor :message
43
28
 
44
- def valid?(value)
45
- !value || allowable_values.include?(value)
46
- end
47
- end
29
+ attr_accessor :details
48
30
 
49
31
  # Attribute mapping from ruby-style variable name to JSON key.
50
32
  def self.attribute_map
51
33
  {
52
- :'correlation_id' => :'correlationId',
53
- :'details' => :'details',
54
- :'information_link' => :'informationLink',
34
+ :'submit_time_utc' => :'submitTimeUtc',
35
+ :'status' => :'status',
36
+ :'reason' => :'reason',
55
37
  :'message' => :'message',
56
- :'reason' => :'reason'
38
+ :'details' => :'details'
57
39
  }
58
40
  end
59
41
 
60
42
  # Attribute mapping from JSON key to ruby-style variable name.
61
43
  def self.json_map
62
44
  {
63
- :'correlation_id' => :'correlation_id',
64
- :'details' => :'details',
65
- :'information_link' => :'information_link',
45
+ :'submit_time_utc' => :'submit_time_utc',
46
+ :'status' => :'status',
47
+ :'reason' => :'reason',
66
48
  :'message' => :'message',
67
- :'reason' => :'reason'
49
+ :'details' => :'details'
68
50
  }
69
51
  end
70
52
 
71
53
  # Attribute type mapping.
72
54
  def self.swagger_types
73
55
  {
74
- :'correlation_id' => :'String',
75
- :'details' => :'Array<InlineResponse4006Details>',
76
- :'information_link' => :'String',
56
+ :'submit_time_utc' => :'String',
57
+ :'status' => :'String',
58
+ :'reason' => :'String',
77
59
  :'message' => :'String',
78
- :'reason' => :'String'
60
+ :'details' => :'Array<PtsV2PaymentsPost201ResponseErrorInformationDetails>'
79
61
  }
80
62
  end
81
63
 
@@ -87,26 +69,26 @@ module CyberSource
87
69
  # convert string to symbol for hash key
88
70
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
89
71
 
90
- if attributes.has_key?(:'correlationId')
91
- self.correlation_id = attributes[:'correlationId']
72
+ if attributes.has_key?(:'submitTimeUtc')
73
+ self.submit_time_utc = attributes[:'submitTimeUtc']
92
74
  end
93
75
 
94
- if attributes.has_key?(:'details')
95
- if (value = attributes[:'details']).is_a?(Array)
96
- self.details = value
97
- end
76
+ if attributes.has_key?(:'status')
77
+ self.status = attributes[:'status']
98
78
  end
99
79
 
100
- if attributes.has_key?(:'informationLink')
101
- self.information_link = attributes[:'informationLink']
80
+ if attributes.has_key?(:'reason')
81
+ self.reason = attributes[:'reason']
102
82
  end
103
83
 
104
84
  if attributes.has_key?(:'message')
105
85
  self.message = attributes[:'message']
106
86
  end
107
87
 
108
- if attributes.has_key?(:'reason')
109
- self.reason = attributes[:'reason']
88
+ if attributes.has_key?(:'details')
89
+ if (value = attributes[:'details']).is_a?(Array)
90
+ self.details = value
91
+ end
110
92
  end
111
93
  end
112
94
 
@@ -114,47 +96,25 @@ module CyberSource
114
96
  # @return Array for valid properties with the reasons
115
97
  def list_invalid_properties
116
98
  invalid_properties = Array.new
117
- if @message.nil?
118
- invalid_properties.push('invalid value for "message", message cannot be nil.')
119
- end
120
-
121
- if @reason.nil?
122
- invalid_properties.push('invalid value for "reason", reason cannot be nil.')
123
- end
124
-
125
99
  invalid_properties
126
100
  end
127
101
 
128
102
  # Check to see if the all the properties in the model are valid
129
103
  # @return true if the model is valid
130
104
  def valid?
131
- return false if @message.nil?
132
- return false if @reason.nil?
133
- reason_validator = EnumAttributeValidator.new('String', ['INVALID_APIKEY', 'INVALID_SHIPPING_INPUT_PARAMS', 'CAPTURE_CONTEXT_INVALID', 'CAPTURE_CONTEXT_EXPIRED', 'SDK_XHR_ERROR', 'UNIFIEDPAYMENTS_VALIDATION_PARAMS', 'UNIFIEDPAYMENTS_VALIDATION_FIELDS', 'UNIFIEDPAYMENT_PAYMENT_PARAMITERS', 'CREATE_TOKEN_TIMEOUT', 'CREATE_TOKEN_XHR_ERROR', 'SHOW_LOAD_CONTAINER_SELECTOR', 'SHOW_LOAD_INVALID_CONTAINER', 'SHOW_TOKEN_TIMEOUT', 'SHOW_TOKEN_XHR_ERROR', 'SHOW_PAYMENT_TIMEOUT'])
134
- return false unless reason_validator.valid?(@reason)
135
105
  true
136
106
  end
137
107
 
138
- # Custom attribute writer method checking allowed values (enum).
139
- # @param [Object] reason Object to be assigned
140
- def reason=(reason)
141
- validator = EnumAttributeValidator.new('String', ['INVALID_APIKEY', 'INVALID_SHIPPING_INPUT_PARAMS', 'CAPTURE_CONTEXT_INVALID', 'CAPTURE_CONTEXT_EXPIRED', 'SDK_XHR_ERROR', 'UNIFIEDPAYMENTS_VALIDATION_PARAMS', 'UNIFIEDPAYMENTS_VALIDATION_FIELDS', 'UNIFIEDPAYMENT_PAYMENT_PARAMITERS', 'CREATE_TOKEN_TIMEOUT', 'CREATE_TOKEN_XHR_ERROR', 'SHOW_LOAD_CONTAINER_SELECTOR', 'SHOW_LOAD_INVALID_CONTAINER', 'SHOW_TOKEN_TIMEOUT', 'SHOW_TOKEN_XHR_ERROR', 'SHOW_PAYMENT_TIMEOUT'])
142
- unless validator.valid?(reason)
143
- fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.'
144
- end
145
- @reason = reason
146
- end
147
-
148
108
  # Checks equality by comparing each attribute.
149
109
  # @param [Object] Object to be compared
150
110
  def ==(o)
151
111
  return true if self.equal?(o)
152
112
  self.class == o.class &&
153
- correlation_id == o.correlation_id &&
154
- details == o.details &&
155
- information_link == o.information_link &&
113
+ submit_time_utc == o.submit_time_utc &&
114
+ status == o.status &&
115
+ reason == o.reason &&
156
116
  message == o.message &&
157
- reason == o.reason
117
+ details == o.details
158
118
  end
159
119
 
160
120
  # @see the `==` method
@@ -166,7 +126,7 @@ module CyberSource
166
126
  # Calculates hash code according to all attributes.
167
127
  # @return [Fixnum] Hash code
168
128
  def hash
169
- [correlation_id, details, information_link, message, reason].hash
129
+ [submit_time_utc, status, reason, message, details].hash
170
130
  end
171
131
 
172
132
  # Builds the object from hash