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
@@ -0,0 +1,203 @@
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
+ # The object holds http method and endpoint if the reversal is called.
17
+ class InlineResponse200EmbeddedReversalLinksSelf
18
+ # This is the endpoint of the resource that was created by the successful request.
19
+ attr_accessor :href
20
+
21
+ # This refers to the HTTP method that you can send to the self endpoint to retrieve details of the resource.
22
+ attr_accessor :method
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'href' => :'href',
28
+ :'method' => :'method'
29
+ }
30
+ end
31
+
32
+ # Attribute mapping from JSON key to ruby-style variable name.
33
+ def self.json_map
34
+ {
35
+ :'href' => :'href',
36
+ :'method' => :'method'
37
+ }
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.swagger_types
42
+ {
43
+ :'href' => :'String',
44
+ :'method' => :'String'
45
+ }
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ def initialize(attributes = {})
51
+ return unless attributes.is_a?(Hash)
52
+
53
+ # convert string to symbol for hash key
54
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
55
+
56
+ if attributes.has_key?(:'href')
57
+ self.href = attributes[:'href']
58
+ end
59
+
60
+ if attributes.has_key?(:'method')
61
+ self.method = attributes[:'method']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ true
76
+ end
77
+
78
+ # Checks equality by comparing each attribute.
79
+ # @param [Object] Object to be compared
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ href == o.href &&
84
+ method == o.method
85
+ end
86
+
87
+ # @see the `==` method
88
+ # @param [Object] Object to be compared
89
+ def eql?(o)
90
+ self == o
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Fixnum] Hash code
95
+ def hash
96
+ [href, method].hash
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def build_from_hash(attributes)
103
+ return nil unless attributes.is_a?(Hash)
104
+ self.class.swagger_types.each_pair do |key, type|
105
+ if type =~ /\AArray<(.*)>/i
106
+ # check to ensure the input is an array given that the the attribute
107
+ # is documented as an array but the input is not
108
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
109
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
110
+ end
111
+ elsif !attributes[self.class.attribute_map[key]].nil?
112
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
113
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
114
+ end
115
+
116
+ self
117
+ end
118
+
119
+ # Deserializes the data based on type
120
+ # @param string type Data type
121
+ # @param string value Value to be deserialized
122
+ # @return [Object] Deserialized data
123
+ def _deserialize(type, value)
124
+ case type.to_sym
125
+ when :DateTime
126
+ DateTime.parse(value)
127
+ when :Date
128
+ Date.parse(value)
129
+ when :String
130
+ value.to_s
131
+ when :Integer
132
+ value.to_i
133
+ when :Float
134
+ value.to_f
135
+ when :BOOLEAN
136
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
137
+ true
138
+ else
139
+ false
140
+ end
141
+ when :Object
142
+ # generic object (usually a Hash), return directly
143
+ value
144
+ when /\AArray<(?<inner_type>.+)>\z/
145
+ inner_type = Regexp.last_match[:inner_type]
146
+ value.map { |v| _deserialize(inner_type, v) }
147
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
148
+ k_type = Regexp.last_match[:k_type]
149
+ v_type = Regexp.last_match[:v_type]
150
+ {}.tap do |hash|
151
+ value.each do |k, v|
152
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
153
+ end
154
+ end
155
+ else # model
156
+ temp_model = CyberSource.const_get(type).new
157
+ temp_model.build_from_hash(value)
158
+ end
159
+ end
160
+
161
+ # Returns the string representation of the object
162
+ # @return [String] String presentation of the object
163
+ def to_s
164
+ to_hash.to_s
165
+ end
166
+
167
+ # to_body is an alias to to_hash (backward compatibility)
168
+ # @return [Hash] Returns the object in the form of hash
169
+ def to_body
170
+ to_hash
171
+ end
172
+
173
+ # Returns the object in the form of hash
174
+ # @return [Hash] Returns the object in the form of hash
175
+ def to_hash
176
+ hash = {}
177
+ self.class.attribute_map.each_pair do |attr, param|
178
+ value = self.send(attr)
179
+ next if value.nil?
180
+ hash[param] = _to_hash(value)
181
+ end
182
+ hash
183
+ end
184
+
185
+ # Outputs non-array value in the form of hash
186
+ # For object, use to_hash. Otherwise, just return the value
187
+ # @param [Object] value Any valid value
188
+ # @return [Hash] Returns the value in the form of hash
189
+ def _to_hash(value)
190
+ if value.is_a?(Array)
191
+ value.compact.map { |v| _to_hash(v) }
192
+ elsif value.is_a?(Hash)
193
+ {}.tap do |hash|
194
+ value.each { |k, v| hash[k] = _to_hash(v) }
195
+ end
196
+ elsif value.respond_to? :to_hash
197
+ value.to_hash
198
+ else
199
+ value
200
+ end
201
+ end
202
+ end
203
+ end
@@ -14,49 +14,39 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class InlineResponse201
17
- attr_accessor :_links
18
-
19
- # An unique identification number generated by Cybersource to identify the submitted request. Returned by all services. It is also appended to the endpoint of the resource. On incremental authorizations, this value with be the same as the identification number returned in the original authorization response.
17
+ # UUID uniquely generated for this comments.
20
18
  attr_accessor :id
21
19
 
22
20
  # 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.
23
21
  attr_accessor :submit_time_utc
24
22
 
25
- # The status of the submitted transaction. Possible values: - COMPLETED
23
+ # Status of the comment creation. Possible values are: - `COMPLETED`
26
24
  attr_accessor :status
27
25
 
28
- attr_accessor :plan_information
29
-
30
26
  # Attribute mapping from ruby-style variable name to JSON key.
31
27
  def self.attribute_map
32
28
  {
33
- :'_links' => :'_links',
34
29
  :'id' => :'id',
35
30
  :'submit_time_utc' => :'submitTimeUtc',
36
- :'status' => :'status',
37
- :'plan_information' => :'planInformation'
31
+ :'status' => :'status'
38
32
  }
39
33
  end
40
34
 
41
35
  # Attribute mapping from JSON key to ruby-style variable name.
42
36
  def self.json_map
43
37
  {
44
- :'_links' => :'_links',
45
38
  :'id' => :'id',
46
39
  :'submit_time_utc' => :'submit_time_utc',
47
- :'status' => :'status',
48
- :'plan_information' => :'plan_information'
40
+ :'status' => :'status'
49
41
  }
50
42
  end
51
43
 
52
44
  # Attribute type mapping.
53
45
  def self.swagger_types
54
46
  {
55
- :'_links' => :'PtsV2IncrementalAuthorizationPatch201ResponseLinks',
56
47
  :'id' => :'String',
57
48
  :'submit_time_utc' => :'String',
58
- :'status' => :'String',
59
- :'plan_information' => :'InlineResponse201PlanInformation'
49
+ :'status' => :'String'
60
50
  }
61
51
  end
62
52
 
@@ -68,10 +58,6 @@ module CyberSource
68
58
  # convert string to symbol for hash key
69
59
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
70
60
 
71
- if attributes.has_key?(:'_links')
72
- self._links = attributes[:'_links']
73
- end
74
-
75
61
  if attributes.has_key?(:'id')
76
62
  self.id = attributes[:'id']
77
63
  end
@@ -83,10 +69,6 @@ module CyberSource
83
69
  if attributes.has_key?(:'status')
84
70
  self.status = attributes[:'status']
85
71
  end
86
-
87
- if attributes.has_key?(:'planInformation')
88
- self.plan_information = attributes[:'planInformation']
89
- end
90
72
  end
91
73
 
92
74
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -113,11 +95,9 @@ module CyberSource
113
95
  def ==(o)
114
96
  return true if self.equal?(o)
115
97
  self.class == o.class &&
116
- _links == o._links &&
117
98
  id == o.id &&
118
99
  submit_time_utc == o.submit_time_utc &&
119
- status == o.status &&
120
- plan_information == o.plan_information
100
+ status == o.status
121
101
  end
122
102
 
123
103
  # @see the `==` method
@@ -129,7 +109,7 @@ module CyberSource
129
109
  # Calculates hash code according to all attributes.
130
110
  # @return [Fixnum] Hash code
131
111
  def hash
132
- [_links, id, submit_time_utc, status, plan_information].hash
112
+ [id, submit_time_utc, status].hash
133
113
  end
134
114
 
135
115
  # Builds the object from hash
@@ -16,25 +16,17 @@ module CyberSource
16
16
  class InlineResponse202
17
17
  attr_accessor :_links
18
18
 
19
- # An unique identification number generated by Cybersource to identify the submitted request. Returned by all services. It is also appended to the endpoint of the resource. On incremental authorizations, this value with be the same as the identification number returned in the original authorization response.
20
- attr_accessor :id
19
+ # Unique identification number assigned to the submitted request.
20
+ attr_accessor :batch_id
21
21
 
22
- # 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.
23
- attr_accessor :submit_time_utc
24
-
25
- # The status of the submitted transaction. Possible values: - ACCEPTED
26
- attr_accessor :status
27
-
28
- attr_accessor :subscription_information
22
+ attr_accessor :batch_item_count
29
23
 
30
24
  # Attribute mapping from ruby-style variable name to JSON key.
31
25
  def self.attribute_map
32
26
  {
33
27
  :'_links' => :'_links',
34
- :'id' => :'id',
35
- :'submit_time_utc' => :'submitTimeUtc',
36
- :'status' => :'status',
37
- :'subscription_information' => :'subscriptionInformation'
28
+ :'batch_id' => :'batchId',
29
+ :'batch_item_count' => :'batchItemCount'
38
30
  }
39
31
  end
40
32
 
@@ -42,21 +34,17 @@ module CyberSource
42
34
  def self.json_map
43
35
  {
44
36
  :'_links' => :'_links',
45
- :'id' => :'id',
46
- :'submit_time_utc' => :'submit_time_utc',
47
- :'status' => :'status',
48
- :'subscription_information' => :'subscription_information'
37
+ :'batch_id' => :'batch_id',
38
+ :'batch_item_count' => :'batch_item_count'
49
39
  }
50
40
  end
51
41
 
52
42
  # Attribute type mapping.
53
43
  def self.swagger_types
54
44
  {
55
- :'_links' => :'PtsV2IncrementalAuthorizationPatch201ResponseLinks',
56
- :'id' => :'String',
57
- :'submit_time_utc' => :'String',
58
- :'status' => :'String',
59
- :'subscription_information' => :'InlineResponse202SubscriptionInformation'
45
+ :'_links' => :'InlineResponse202Links',
46
+ :'batch_id' => :'String',
47
+ :'batch_item_count' => :'Integer'
60
48
  }
61
49
  end
62
50
 
@@ -72,20 +60,12 @@ module CyberSource
72
60
  self._links = attributes[:'_links']
73
61
  end
74
62
 
75
- if attributes.has_key?(:'id')
76
- self.id = attributes[:'id']
77
- end
78
-
79
- if attributes.has_key?(:'submitTimeUtc')
80
- self.submit_time_utc = attributes[:'submitTimeUtc']
63
+ if attributes.has_key?(:'batchId')
64
+ self.batch_id = attributes[:'batchId']
81
65
  end
82
66
 
83
- if attributes.has_key?(:'status')
84
- self.status = attributes[:'status']
85
- end
86
-
87
- if attributes.has_key?(:'subscriptionInformation')
88
- self.subscription_information = attributes[:'subscriptionInformation']
67
+ if attributes.has_key?(:'batchItemCount')
68
+ self.batch_item_count = attributes[:'batchItemCount']
89
69
  end
90
70
  end
91
71
 
@@ -102,22 +82,14 @@ module CyberSource
102
82
  true
103
83
  end
104
84
 
105
- # Custom attribute writer method with validation
106
- # @param [Object] id Value to be assigned
107
- def id=(id)
108
- @id = id
109
- end
110
-
111
85
  # Checks equality by comparing each attribute.
112
86
  # @param [Object] Object to be compared
113
87
  def ==(o)
114
88
  return true if self.equal?(o)
115
89
  self.class == o.class &&
116
90
  _links == o._links &&
117
- id == o.id &&
118
- submit_time_utc == o.submit_time_utc &&
119
- status == o.status &&
120
- subscription_information == o.subscription_information
91
+ batch_id == o.batch_id &&
92
+ batch_item_count == o.batch_item_count
121
93
  end
122
94
 
123
95
  # @see the `==` method
@@ -129,7 +101,7 @@ module CyberSource
129
101
  # Calculates hash code according to all attributes.
130
102
  # @return [Fixnum] Hash code
131
103
  def hash
132
- [_links, id, submit_time_utc, status, subscription_information].hash
104
+ [_links, batch_id, batch_item_count].hash
133
105
  end
134
106
 
135
107
  # Builds the object from hash
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class InlineResponse2022Links
16
+ class InlineResponse202Links
17
17
  attr_accessor :_self
18
18
 
19
19
  attr_accessor :status
@@ -38,7 +38,7 @@ module CyberSource
38
38
  def self.swagger_types
39
39
  {
40
40
  :'_self' => :'InlineResponse401LinksSelf',
41
- :'status' => :'Array<InlineResponse2022LinksStatus>'
41
+ :'status' => :'Array<InlineResponse202LinksStatus>'
42
42
  }
43
43
  end
44
44
 
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- class InlineResponse20013LinksReport
16
+ class InlineResponse202LinksStatus
17
17
  attr_accessor :href
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -17,13 +17,13 @@ module CyberSource
17
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
18
  attr_accessor :submit_time_utc
19
19
 
20
- # The status of the submitted transaction. Possible values: - INVALID_REQUEST
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 - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION
23
+ # The reason of the status. Possible Values: - `INVALID_DATA`
24
24
  attr_accessor :reason
25
25
 
26
- # The detail message related to the status and reason listed above.
26
+ # Input request error.
27
27
  attr_accessor :message
28
28
 
29
29
  attr_accessor :details
@@ -20,7 +20,7 @@ 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 - DUPLICATE_REQUEST - INVALID_CARD - CARD_TYPE_NOT_ACCEPTED - INVALID_MERCHANT_CONFIGURATION - PROCESSOR_UNAVAILABLE - INVALID_CARD_TYPE
23
+ # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION
24
24
  attr_accessor :reason
25
25
 
26
26
  # The detail message related to the status and reason listed above.
@@ -13,59 +13,51 @@ Swagger Codegen version: 2.2.3
13
13
  require 'date'
14
14
 
15
15
  module CyberSource
16
- # Error Bean
17
16
  class InlineResponse4003
18
- # Error code
19
- attr_accessor :code
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
20
19
 
21
- # Error message
22
- attr_accessor :message
23
-
24
- # Localization Key Name
25
- attr_accessor :localization_key
20
+ # The status of the submitted transaction. Possible values: - INVALID_REQUEST
21
+ attr_accessor :status
26
22
 
27
- # Correlation Id
28
- attr_accessor :correlation_id
23
+ # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_CARD - CARD_TYPE_NOT_ACCEPTED - INVALID_MERCHANT_CONFIGURATION - PROCESSOR_UNAVAILABLE - INVALID_CARD_TYPE
24
+ attr_accessor :reason
29
25
 
30
- # Error Detail
31
- attr_accessor :detail
26
+ # The detail message related to the status and reason listed above.
27
+ attr_accessor :message
32
28
 
33
- # Error fields List
34
- attr_accessor :fields
29
+ attr_accessor :details
35
30
 
36
31
  # Attribute mapping from ruby-style variable name to JSON key.
37
32
  def self.attribute_map
38
33
  {
39
- :'code' => :'code',
34
+ :'submit_time_utc' => :'submitTimeUtc',
35
+ :'status' => :'status',
36
+ :'reason' => :'reason',
40
37
  :'message' => :'message',
41
- :'localization_key' => :'localizationKey',
42
- :'correlation_id' => :'correlationId',
43
- :'detail' => :'detail',
44
- :'fields' => :'fields'
38
+ :'details' => :'details'
45
39
  }
46
40
  end
47
41
 
48
42
  # Attribute mapping from JSON key to ruby-style variable name.
49
43
  def self.json_map
50
44
  {
51
- :'code' => :'code',
45
+ :'submit_time_utc' => :'submit_time_utc',
46
+ :'status' => :'status',
47
+ :'reason' => :'reason',
52
48
  :'message' => :'message',
53
- :'localization_key' => :'localization_key',
54
- :'correlation_id' => :'correlation_id',
55
- :'detail' => :'detail',
56
- :'fields' => :'fields'
49
+ :'details' => :'details'
57
50
  }
58
51
  end
59
52
 
60
53
  # Attribute type mapping.
61
54
  def self.swagger_types
62
55
  {
63
- :'code' => :'String',
56
+ :'submit_time_utc' => :'String',
57
+ :'status' => :'String',
58
+ :'reason' => :'String',
64
59
  :'message' => :'String',
65
- :'localization_key' => :'String',
66
- :'correlation_id' => :'String',
67
- :'detail' => :'String',
68
- :'fields' => :'Array<InlineResponse4003Fields>'
60
+ :'details' => :'Array<PtsV2PaymentsPost201ResponseErrorInformationDetails>'
69
61
  }
70
62
  end
71
63
 
@@ -77,29 +69,25 @@ module CyberSource
77
69
  # convert string to symbol for hash key
78
70
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
79
71
 
80
- if attributes.has_key?(:'code')
81
- self.code = attributes[:'code']
82
- end
83
-
84
- if attributes.has_key?(:'message')
85
- self.message = attributes[:'message']
72
+ if attributes.has_key?(:'submitTimeUtc')
73
+ self.submit_time_utc = attributes[:'submitTimeUtc']
86
74
  end
87
75
 
88
- if attributes.has_key?(:'localizationKey')
89
- self.localization_key = attributes[:'localizationKey']
76
+ if attributes.has_key?(:'status')
77
+ self.status = attributes[:'status']
90
78
  end
91
79
 
92
- if attributes.has_key?(:'correlationId')
93
- self.correlation_id = attributes[:'correlationId']
80
+ if attributes.has_key?(:'reason')
81
+ self.reason = attributes[:'reason']
94
82
  end
95
83
 
96
- if attributes.has_key?(:'detail')
97
- self.detail = attributes[:'detail']
84
+ if attributes.has_key?(:'message')
85
+ self.message = attributes[:'message']
98
86
  end
99
87
 
100
- if attributes.has_key?(:'fields')
101
- if (value = attributes[:'fields']).is_a?(Array)
102
- self.fields = value
88
+ if attributes.has_key?(:'details')
89
+ if (value = attributes[:'details']).is_a?(Array)
90
+ self.details = value
103
91
  end
104
92
  end
105
93
  end
@@ -108,22 +96,12 @@ module CyberSource
108
96
  # @return Array for valid properties with the reasons
109
97
  def list_invalid_properties
110
98
  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
-
119
99
  invalid_properties
120
100
  end
121
101
 
122
102
  # Check to see if the all the properties in the model are valid
123
103
  # @return true if the model is valid
124
104
  def valid?
125
- return false if @code.nil?
126
- return false if @message.nil?
127
105
  true
128
106
  end
129
107
 
@@ -132,12 +110,11 @@ module CyberSource
132
110
  def ==(o)
133
111
  return true if self.equal?(o)
134
112
  self.class == o.class &&
135
- code == o.code &&
113
+ submit_time_utc == o.submit_time_utc &&
114
+ status == o.status &&
115
+ reason == o.reason &&
136
116
  message == o.message &&
137
- localization_key == o.localization_key &&
138
- correlation_id == o.correlation_id &&
139
- detail == o.detail &&
140
- fields == o.fields
117
+ details == o.details
141
118
  end
142
119
 
143
120
  # @see the `==` method
@@ -149,7 +126,7 @@ module CyberSource
149
126
  # Calculates hash code according to all attributes.
150
127
  # @return [Fixnum] Hash code
151
128
  def hash
152
- [code, message, localization_key, correlation_id, detail, fields].hash
129
+ [submit_time_utc, status, reason, message, details].hash
153
130
  end
154
131
 
155
132
  # Builds the object from hash