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.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/authentication/http/GetSignatureParameter.rb +2 -2
- data/lib/AuthenticationSDK/authentication/http/HttpSignatureHeader.rb +6 -6
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +6 -0
- data/lib/AuthenticationSDK/util/Cache.rb +15 -1
- data/lib/AuthenticationSDK/util/Constants.rb +1 -1
- data/lib/AuthenticationSDK/util/JWEUtility.rb +14 -0
- data/lib/cybersource_rest_client/api/batches_api.rb +12 -12
- data/lib/cybersource_rest_client/api/billing_agreements_api.rb +231 -0
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +142 -0
- data/lib/cybersource_rest_client/api/invoice_settings_api.rb +2 -2
- data/lib/cybersource_rest_client/api/invoices_api.rb +6 -6
- data/lib/cybersource_rest_client/api/keymanagement_api.rb +3 -3
- data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
- data/lib/cybersource_rest_client/api/plans_api.rb +32 -32
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +32 -32
- data/lib/cybersource_rest_client/api/void_api.rb +2 -2
- data/lib/cybersource_rest_client/models/access_token_response.rb +244 -244
- data/lib/cybersource_rest_client/models/activate_deactivate_plan_response.rb +239 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_9.rb → activate_subscription_response.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_9_subscription_information.rb → activate_subscription_response_subscription_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/bad_request_error.rb +192 -192
- data/lib/cybersource_rest_client/models/{inline_response_202_1.rb → cancel_subscription_response.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_202_subscription_information.rb → cancel_subscription_response_subscription_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/case_management_actions_request.rb +200 -0
- data/lib/cybersource_rest_client/models/case_management_comments_request.rb +206 -0
- data/lib/cybersource_rest_client/models/create_access_token_request.rb +254 -254
- data/lib/cybersource_rest_client/models/{inline_response_200_14.rb → create_billing_agreement.rb} +65 -88
- data/lib/cybersource_rest_client/models/create_bundled_decision_manager_case_request.rb +15 -5
- data/lib/cybersource_rest_client/models/create_plan_response.rb +239 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_plan_information.rb → create_plan_response_plan_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/create_subscription_request.rb +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_1.rb → create_subscription_response.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_1__links.rb → create_subscription_response__links.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_1_subscription_information.rb → create_subscription_response_subscription_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/delete_plan_response.rb +202 -0
- data/lib/cybersource_rest_client/models/{inline_response_202_2.rb → get_all_plans_response.rb} +31 -18
- data/lib/cybersource_rest_client/models/{inline_response_200__links.rb → get_all_plans_response__links.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_order_information.rb → get_all_plans_response_order_information.rb} +2 -2
- 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
- data/lib/cybersource_rest_client/models/{inline_response_200_plan_information.rb → get_all_plans_response_plan_information.rb} +3 -3
- 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
- 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
- data/lib/cybersource_rest_client/models/{inline_response_200_plans.rb → get_all_plans_response_plans.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_6.rb → get_all_subscriptions_response.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_6__links.rb → get_all_subscriptions_response__links.rb} +1 -1
- data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information.rb +200 -0
- 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
- data/lib/cybersource_rest_client/models/{inline_response_200_6_payment_information.rb → get_all_subscriptions_response_payment_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_6_payment_information_customer.rb → get_all_subscriptions_response_payment_information_customer.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_6_plan_information.rb → get_all_subscriptions_response_plan_information.rb} +3 -3
- 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
- data/lib/cybersource_rest_client/models/{inline_response_200_6_subscription_information.rb → get_all_subscriptions_response_subscription_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_6_subscriptions.rb → get_all_subscriptions_response_subscriptions.rb} +6 -6
- data/lib/cybersource_rest_client/models/{inline_response_200_5.rb → get_plan_code_response.rb} +1 -1
- data/lib/cybersource_rest_client/models/get_plan_response.rb +238 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_10.rb → get_subscription_code_response.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_7.rb → get_subscription_response.rb} +6 -6
- data/lib/cybersource_rest_client/models/inline_response_200.rb +30 -25
- data/lib/cybersource_rest_client/models/inline_response_200_1.rb +50 -40
- data/lib/cybersource_rest_client/models/{inline_response_200_11_keys.rb → inline_response_200_1_keys.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +67 -17
- data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded.rb → inline_response_200_2__embedded.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded__links.rb → inline_response_200_2__embedded__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded__links_reports.rb → inline_response_200_2__embedded__links_reports.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded_batches.rb → inline_response_200_2__embedded_batches.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded_totals.rb → inline_response_200_2__embedded_totals.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_12__links.rb → inline_response_200_2__links.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_3.rb +81 -29
- data/lib/cybersource_rest_client/models/{inline_response_200_13__links.rb → inline_response_200_3__links.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_202_2__links_status.rb → inline_response_200_3__links_report.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_13_billing.rb → inline_response_200_3_billing.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +96 -42
- data/lib/cybersource_rest_client/models/{inline_response_200_14_records.rb → inline_response_200_4_records.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_14_response_record.rb → inline_response_200_4_response_record.rb} +2 -2
- 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
- data/lib/cybersource_rest_client/models/{inline_response_200_14_source_record.rb → inline_response_200_4_source_record.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200__embedded.rb +201 -0
- data/lib/cybersource_rest_client/models/inline_response_200__embedded_capture.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_200__embedded_capture__links.rb +191 -0
- data/lib/cybersource_rest_client/models/inline_response_200__embedded_capture__links_self.rb +203 -0
- data/lib/cybersource_rest_client/models/inline_response_200__embedded_reversal.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_200__embedded_reversal__links.rb +191 -0
- data/lib/cybersource_rest_client/models/inline_response_200__embedded_reversal__links_self.rb +203 -0
- data/lib/cybersource_rest_client/models/inline_response_201.rb +7 -27
- data/lib/cybersource_rest_client/models/inline_response_202.rb +17 -45
- data/lib/cybersource_rest_client/models/{inline_response_202_2__links.rb → inline_response_202__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_13__links_report.rb → inline_response_202__links_status.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_1.rb +3 -3
- data/lib/cybersource_rest_client/models/inline_response_400_2.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_3.rb +37 -60
- data/lib/cybersource_rest_client/models/inline_response_400_4.rb +61 -37
- data/lib/cybersource_rest_client/models/{inline_response_400_3_fields.rb → inline_response_400_4_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_5.rb +10 -11
- data/lib/cybersource_rest_client/models/inline_response_400_6.rb +35 -75
- data/lib/cybersource_rest_client/models/inline_response_400_7.rb +276 -0
- data/lib/cybersource_rest_client/models/{inline_response_400_6_details.rb → inline_response_400_7_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_403_1.rb +236 -0
- data/lib/cybersource_rest_client/models/inline_response_422.rb +236 -0
- data/lib/cybersource_rest_client/models/inline_response_500_1.rb +20 -8
- data/lib/cybersource_rest_client/models/inline_response_500_2.rb +224 -0
- data/lib/cybersource_rest_client/models/inline_response_502.rb +13 -12
- data/lib/cybersource_rest_client/models/inline_response_502_1.rb +235 -0
- data/lib/cybersource_rest_client/models/inline_response_503.rb +236 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_12.rb → intimate_billing_agreement.rb} +37 -59
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/modify_billing_agreement.rb +270 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1.rb +239 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_installment_information.rb +197 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_processor_information.rb +214 -0
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_aggregator_information.rb +207 -0
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_consumer_authentication_information.rb +242 -0
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_device_information.rb +231 -0
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_installment_information.rb +327 -0
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information.rb +235 -0
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information_merchant_descriptor.rb +242 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_6_order_information.rb → ptsv2billingagreements_order_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information_bill_to.rb +401 -0
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information.rb +200 -0
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +259 -0
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +276 -0
- data/lib/cybersource_rest_client/models/ptsv2billingagreements_processing_information.rb +210 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +12 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +16 -5
- data/lib/cybersource_rest_client/models/rbsv1plans_plan_information.rb +1 -1
- data/lib/cybersource_rest_client/models/rbsv1plansid_plan_information.rb +1 -1
- data/lib/cybersource_rest_client/models/rbsv1subscriptions_plan_information.rb +1 -1
- data/lib/cybersource_rest_client/models/resource_not_found_error.rb +192 -192
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_token_information.rb +22 -5
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +12 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_token_information.rb +197 -0
- data/lib/cybersource_rest_client/models/riskv1decisionsidactions_decision_information.rb +208 -0
- data/lib/cybersource_rest_client/models/riskv1decisionsidactions_processing_information.rb +193 -0
- data/lib/cybersource_rest_client/models/suspend_subscription_response.rb +239 -0
- data/lib/cybersource_rest_client/models/{inline_response_202_1_subscription_information.rb → suspend_subscription_response_subscription_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/unauthorized_client_error.rb +192 -192
- data/lib/cybersource_rest_client/models/update_plan_request.rb +1 -1
- data/lib/cybersource_rest_client/models/update_plan_response.rb +239 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_3_plan_information.rb → update_plan_response_plan_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_8.rb → update_subscription_response.rb} +3 -3
- data/lib/cybersource_rest_client/models/validate_request.rb +15 -5
- data/lib/cybersource_rest_client/utilities/jwe_utility.rb +12 -0
- data/lib/cybersource_rest_client.rb +95 -54
- metadata +112 -57
- data/lib/cybersource_rest_client/models/inline_response_200_11.rb +0 -248
- 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
|
-
#
|
18
|
-
attr_accessor :
|
18
|
+
# Error code
|
19
|
+
attr_accessor :code
|
19
20
|
|
20
|
-
#
|
21
|
-
attr_accessor :
|
21
|
+
# Error message
|
22
|
+
attr_accessor :message
|
22
23
|
|
23
|
-
#
|
24
|
-
attr_accessor :
|
24
|
+
# Localization Key Name
|
25
|
+
attr_accessor :localization_key
|
25
26
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
27
|
+
# Correlation Id
|
28
|
+
attr_accessor :correlation_id
|
28
29
|
|
29
|
-
#
|
30
|
-
attr_accessor :
|
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
|
-
:'
|
36
|
-
:'status' => :'status',
|
37
|
-
:'reason' => :'reason',
|
39
|
+
:'code' => :'code',
|
38
40
|
:'message' => :'message',
|
39
|
-
:'
|
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
|
-
:'
|
47
|
-
:'status' => :'status',
|
48
|
-
:'reason' => :'reason',
|
51
|
+
:'code' => :'code',
|
49
52
|
:'message' => :'message',
|
50
|
-
:'
|
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
|
-
:'
|
58
|
-
:'status' => :'String',
|
59
|
-
:'reason' => :'String',
|
63
|
+
:'code' => :'String',
|
60
64
|
:'message' => :'String',
|
61
|
-
:'
|
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?(:'
|
74
|
-
self.
|
80
|
+
if attributes.has_key?(:'code')
|
81
|
+
self.code = attributes[:'code']
|
75
82
|
end
|
76
83
|
|
77
|
-
if attributes.has_key?(:'
|
78
|
-
self.
|
84
|
+
if attributes.has_key?(:'message')
|
85
|
+
self.message = attributes[:'message']
|
79
86
|
end
|
80
87
|
|
81
|
-
if attributes.has_key?(:'
|
82
|
-
self.
|
88
|
+
if attributes.has_key?(:'localizationKey')
|
89
|
+
self.localization_key = attributes[:'localizationKey']
|
83
90
|
end
|
84
91
|
|
85
|
-
if attributes.has_key?(:'
|
86
|
-
self.
|
92
|
+
if attributes.has_key?(:'correlationId')
|
93
|
+
self.correlation_id = attributes[:'correlationId']
|
87
94
|
end
|
88
95
|
|
89
|
-
if attributes.has_key?(:'
|
90
|
-
self.
|
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
|
-
|
113
|
-
status == o.status &&
|
114
|
-
reason == o.reason &&
|
135
|
+
code == o.code &&
|
115
136
|
message == o.message &&
|
116
|
-
|
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
|
-
[
|
152
|
+
[code, message, localization_key, correlation_id, detail, fields].hash
|
129
153
|
end
|
130
154
|
|
131
155
|
# Builds the object from hash
|
@@ -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
|
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
|
-
|
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
|
-
:'
|
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
|
-
:'
|
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
|
-
:'
|
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?(:'
|
89
|
-
|
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
|
-
|
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,
|
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
|
-
|
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
|
-
|
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
|
-
|
28
|
-
|
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
|
-
|
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
|
-
:'
|
53
|
-
:'
|
54
|
-
:'
|
34
|
+
:'submit_time_utc' => :'submitTimeUtc',
|
35
|
+
:'status' => :'status',
|
36
|
+
:'reason' => :'reason',
|
55
37
|
:'message' => :'message',
|
56
|
-
:'
|
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
|
-
:'
|
64
|
-
:'
|
65
|
-
:'
|
45
|
+
:'submit_time_utc' => :'submit_time_utc',
|
46
|
+
:'status' => :'status',
|
47
|
+
:'reason' => :'reason',
|
66
48
|
:'message' => :'message',
|
67
|
-
:'
|
49
|
+
:'details' => :'details'
|
68
50
|
}
|
69
51
|
end
|
70
52
|
|
71
53
|
# Attribute type mapping.
|
72
54
|
def self.swagger_types
|
73
55
|
{
|
74
|
-
:'
|
75
|
-
:'
|
76
|
-
:'
|
56
|
+
:'submit_time_utc' => :'String',
|
57
|
+
:'status' => :'String',
|
58
|
+
:'reason' => :'String',
|
77
59
|
:'message' => :'String',
|
78
|
-
:'
|
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?(:'
|
91
|
-
self.
|
72
|
+
if attributes.has_key?(:'submitTimeUtc')
|
73
|
+
self.submit_time_utc = attributes[:'submitTimeUtc']
|
92
74
|
end
|
93
75
|
|
94
|
-
if attributes.has_key?(:'
|
95
|
-
|
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?(:'
|
101
|
-
self.
|
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?(:'
|
109
|
-
|
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
|
-
|
154
|
-
|
155
|
-
|
113
|
+
submit_time_utc == o.submit_time_utc &&
|
114
|
+
status == o.status &&
|
115
|
+
reason == o.reason &&
|
156
116
|
message == o.message &&
|
157
|
-
|
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
|
-
[
|
129
|
+
[submit_time_utc, status, reason, message, details].hash
|
170
130
|
end
|
171
131
|
|
172
132
|
# Builds the object from hash
|