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
@@ -14,33 +14,56 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class InlineResponse2002
|
17
|
-
|
18
|
-
attr_accessor :submit_time_utc
|
17
|
+
attr_accessor :_links
|
19
18
|
|
20
|
-
|
21
|
-
|
19
|
+
attr_accessor :object
|
20
|
+
|
21
|
+
attr_accessor :offset
|
22
|
+
|
23
|
+
attr_accessor :limit
|
24
|
+
|
25
|
+
attr_accessor :count
|
26
|
+
|
27
|
+
attr_accessor :total
|
28
|
+
|
29
|
+
attr_accessor :_embedded
|
22
30
|
|
23
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
32
|
def self.attribute_map
|
25
33
|
{
|
26
|
-
:'
|
27
|
-
:'
|
34
|
+
:'_links' => :'_links',
|
35
|
+
:'object' => :'object',
|
36
|
+
:'offset' => :'offset',
|
37
|
+
:'limit' => :'limit',
|
38
|
+
:'count' => :'count',
|
39
|
+
:'total' => :'total',
|
40
|
+
:'_embedded' => :'_embedded'
|
28
41
|
}
|
29
42
|
end
|
30
43
|
|
31
44
|
# Attribute mapping from JSON key to ruby-style variable name.
|
32
45
|
def self.json_map
|
33
46
|
{
|
34
|
-
:'
|
35
|
-
:'
|
47
|
+
:'_links' => :'_links',
|
48
|
+
:'object' => :'object',
|
49
|
+
:'offset' => :'offset',
|
50
|
+
:'limit' => :'limit',
|
51
|
+
:'count' => :'count',
|
52
|
+
:'total' => :'total',
|
53
|
+
:'_embedded' => :'_embedded'
|
36
54
|
}
|
37
55
|
end
|
38
56
|
|
39
57
|
# Attribute type mapping.
|
40
58
|
def self.swagger_types
|
41
59
|
{
|
42
|
-
:'
|
43
|
-
:'
|
60
|
+
:'_links' => :'Array<InlineResponse2002Links>',
|
61
|
+
:'object' => :'String',
|
62
|
+
:'offset' => :'Integer',
|
63
|
+
:'limit' => :'Integer',
|
64
|
+
:'count' => :'Integer',
|
65
|
+
:'total' => :'Integer',
|
66
|
+
:'_embedded' => :'InlineResponse2002Embedded'
|
44
67
|
}
|
45
68
|
end
|
46
69
|
|
@@ -52,12 +75,34 @@ module CyberSource
|
|
52
75
|
# convert string to symbol for hash key
|
53
76
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
54
77
|
|
55
|
-
if attributes.has_key?(:'
|
56
|
-
|
78
|
+
if attributes.has_key?(:'_links')
|
79
|
+
if (value = attributes[:'_links']).is_a?(Array)
|
80
|
+
self._links = value
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.has_key?(:'object')
|
85
|
+
self.object = attributes[:'object']
|
86
|
+
end
|
87
|
+
|
88
|
+
if attributes.has_key?(:'offset')
|
89
|
+
self.offset = attributes[:'offset']
|
90
|
+
end
|
91
|
+
|
92
|
+
if attributes.has_key?(:'limit')
|
93
|
+
self.limit = attributes[:'limit']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.has_key?(:'count')
|
97
|
+
self.count = attributes[:'count']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.has_key?(:'total')
|
101
|
+
self.total = attributes[:'total']
|
57
102
|
end
|
58
103
|
|
59
|
-
if attributes.has_key?(:'
|
60
|
-
self.
|
104
|
+
if attributes.has_key?(:'_embedded')
|
105
|
+
self._embedded = attributes[:'_embedded']
|
61
106
|
end
|
62
107
|
end
|
63
108
|
|
@@ -79,8 +124,13 @@ module CyberSource
|
|
79
124
|
def ==(o)
|
80
125
|
return true if self.equal?(o)
|
81
126
|
self.class == o.class &&
|
82
|
-
|
83
|
-
|
127
|
+
_links == o._links &&
|
128
|
+
object == o.object &&
|
129
|
+
offset == o.offset &&
|
130
|
+
limit == o.limit &&
|
131
|
+
count == o.count &&
|
132
|
+
total == o.total &&
|
133
|
+
_embedded == o._embedded
|
84
134
|
end
|
85
135
|
|
86
136
|
# @see the `==` method
|
@@ -92,7 +142,7 @@ module CyberSource
|
|
92
142
|
# Calculates hash code according to all attributes.
|
93
143
|
# @return [Fixnum] Hash code
|
94
144
|
def hash
|
95
|
-
[
|
145
|
+
[_links, object, offset, limit, count, total, _embedded].hash
|
96
146
|
end
|
97
147
|
|
98
148
|
# 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
|
16
|
+
class InlineResponse2002Embedded
|
17
17
|
attr_accessor :batches
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -33,7 +33,7 @@ module CyberSource
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.swagger_types
|
35
35
|
{
|
36
|
-
:'batches' => :'Array<
|
36
|
+
:'batches' => :'Array<InlineResponse2002EmbeddedBatches>'
|
37
37
|
}
|
38
38
|
end
|
39
39
|
|
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
16
|
+
class InlineResponse2002EmbeddedLinks
|
17
17
|
attr_accessor :reports
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -33,7 +33,7 @@ module CyberSource
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.swagger_types
|
35
35
|
{
|
36
|
-
:'reports' => :'Array<
|
36
|
+
:'reports' => :'Array<InlineResponse2002EmbeddedLinksReports>'
|
37
37
|
}
|
38
38
|
end
|
39
39
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
# Retrieve the generated report of a batch when available.
|
17
|
-
class
|
17
|
+
class InlineResponse2002EmbeddedLinksReports
|
18
18
|
attr_accessor :href
|
19
19
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -13,7 +13,7 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
16
|
+
class InlineResponse2002EmbeddedBatches
|
17
17
|
attr_accessor :_links
|
18
18
|
|
19
19
|
# Unique identification number assigned to the submitted request.
|
@@ -77,7 +77,7 @@ module CyberSource
|
|
77
77
|
# Attribute type mapping.
|
78
78
|
def self.swagger_types
|
79
79
|
{
|
80
|
-
:'_links' => :'
|
80
|
+
:'_links' => :'InlineResponse2002EmbeddedLinks',
|
81
81
|
:'batch_id' => :'String',
|
82
82
|
:'batch_created_date' => :'String',
|
83
83
|
:'batch_modified_date' => :'String',
|
@@ -86,7 +86,7 @@ module CyberSource
|
|
86
86
|
:'merchant_reference' => :'String',
|
87
87
|
:'batch_ca_endpoints' => :'Array<String>',
|
88
88
|
:'status' => :'String',
|
89
|
-
:'totals' => :'
|
89
|
+
:'totals' => :'InlineResponse2002EmbeddedTotals'
|
90
90
|
}
|
91
91
|
end
|
92
92
|
|
@@ -16,25 +16,42 @@ module CyberSource
|
|
16
16
|
class InlineResponse2003
|
17
17
|
attr_accessor :_links
|
18
18
|
|
19
|
-
#
|
20
|
-
attr_accessor :
|
19
|
+
# Unique identification number assigned to the submitted request.
|
20
|
+
attr_accessor :batch_id
|
21
21
|
|
22
|
-
#
|
23
|
-
attr_accessor :
|
22
|
+
# ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ
|
23
|
+
attr_accessor :batch_created_date
|
24
24
|
|
25
|
-
#
|
25
|
+
# Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE
|
26
|
+
attr_accessor :batch_source
|
27
|
+
|
28
|
+
# Reference used by merchant to identify batch.
|
29
|
+
attr_accessor :merchant_reference
|
30
|
+
|
31
|
+
attr_accessor :batch_ca_endpoints
|
32
|
+
|
33
|
+
# Valid Values: * REJECTED * RECEIVED * VALIDATED * DECLINED * PROCESSING * COMPLETED
|
26
34
|
attr_accessor :status
|
27
35
|
|
28
|
-
attr_accessor :
|
36
|
+
attr_accessor :totals
|
37
|
+
|
38
|
+
attr_accessor :billing
|
39
|
+
|
40
|
+
attr_accessor :description
|
29
41
|
|
30
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
43
|
def self.attribute_map
|
32
44
|
{
|
33
45
|
:'_links' => :'_links',
|
34
|
-
:'
|
35
|
-
:'
|
46
|
+
:'batch_id' => :'batchId',
|
47
|
+
:'batch_created_date' => :'batchCreatedDate',
|
48
|
+
:'batch_source' => :'batchSource',
|
49
|
+
:'merchant_reference' => :'merchantReference',
|
50
|
+
:'batch_ca_endpoints' => :'batchCaEndpoints',
|
36
51
|
:'status' => :'status',
|
37
|
-
:'
|
52
|
+
:'totals' => :'totals',
|
53
|
+
:'billing' => :'billing',
|
54
|
+
:'description' => :'description'
|
38
55
|
}
|
39
56
|
end
|
40
57
|
|
@@ -42,21 +59,31 @@ module CyberSource
|
|
42
59
|
def self.json_map
|
43
60
|
{
|
44
61
|
:'_links' => :'_links',
|
45
|
-
:'
|
46
|
-
:'
|
62
|
+
:'batch_id' => :'batch_id',
|
63
|
+
:'batch_created_date' => :'batch_created_date',
|
64
|
+
:'batch_source' => :'batch_source',
|
65
|
+
:'merchant_reference' => :'merchant_reference',
|
66
|
+
:'batch_ca_endpoints' => :'batch_ca_endpoints',
|
47
67
|
:'status' => :'status',
|
48
|
-
:'
|
68
|
+
:'totals' => :'totals',
|
69
|
+
:'billing' => :'billing',
|
70
|
+
:'description' => :'description'
|
49
71
|
}
|
50
72
|
end
|
51
73
|
|
52
74
|
# Attribute type mapping.
|
53
75
|
def self.swagger_types
|
54
76
|
{
|
55
|
-
:'_links' => :'
|
56
|
-
:'
|
57
|
-
:'
|
77
|
+
:'_links' => :'InlineResponse2003Links',
|
78
|
+
:'batch_id' => :'String',
|
79
|
+
:'batch_created_date' => :'String',
|
80
|
+
:'batch_source' => :'String',
|
81
|
+
:'merchant_reference' => :'String',
|
82
|
+
:'batch_ca_endpoints' => :'String',
|
58
83
|
:'status' => :'String',
|
59
|
-
:'
|
84
|
+
:'totals' => :'InlineResponse2002EmbeddedTotals',
|
85
|
+
:'billing' => :'InlineResponse2003Billing',
|
86
|
+
:'description' => :'String'
|
60
87
|
}
|
61
88
|
end
|
62
89
|
|
@@ -72,20 +99,40 @@ module CyberSource
|
|
72
99
|
self._links = attributes[:'_links']
|
73
100
|
end
|
74
101
|
|
75
|
-
if attributes.has_key?(:'
|
76
|
-
self.
|
102
|
+
if attributes.has_key?(:'batchId')
|
103
|
+
self.batch_id = attributes[:'batchId']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.has_key?(:'batchCreatedDate')
|
107
|
+
self.batch_created_date = attributes[:'batchCreatedDate']
|
77
108
|
end
|
78
109
|
|
79
|
-
if attributes.has_key?(:'
|
80
|
-
self.
|
110
|
+
if attributes.has_key?(:'batchSource')
|
111
|
+
self.batch_source = attributes[:'batchSource']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.has_key?(:'merchantReference')
|
115
|
+
self.merchant_reference = attributes[:'merchantReference']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.has_key?(:'batchCaEndpoints')
|
119
|
+
self.batch_ca_endpoints = attributes[:'batchCaEndpoints']
|
81
120
|
end
|
82
121
|
|
83
122
|
if attributes.has_key?(:'status')
|
84
123
|
self.status = attributes[:'status']
|
85
124
|
end
|
86
125
|
|
87
|
-
if attributes.has_key?(:'
|
88
|
-
self.
|
126
|
+
if attributes.has_key?(:'totals')
|
127
|
+
self.totals = attributes[:'totals']
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes.has_key?(:'billing')
|
131
|
+
self.billing = attributes[:'billing']
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.has_key?(:'description')
|
135
|
+
self.description = attributes[:'description']
|
89
136
|
end
|
90
137
|
end
|
91
138
|
|
@@ -103,9 +150,9 @@ module CyberSource
|
|
103
150
|
end
|
104
151
|
|
105
152
|
# Custom attribute writer method with validation
|
106
|
-
# @param [Object]
|
107
|
-
def
|
108
|
-
@
|
153
|
+
# @param [Object] merchant_reference Value to be assigned
|
154
|
+
def merchant_reference=(merchant_reference)
|
155
|
+
@merchant_reference = merchant_reference
|
109
156
|
end
|
110
157
|
|
111
158
|
# Checks equality by comparing each attribute.
|
@@ -114,10 +161,15 @@ module CyberSource
|
|
114
161
|
return true if self.equal?(o)
|
115
162
|
self.class == o.class &&
|
116
163
|
_links == o._links &&
|
117
|
-
|
118
|
-
|
164
|
+
batch_id == o.batch_id &&
|
165
|
+
batch_created_date == o.batch_created_date &&
|
166
|
+
batch_source == o.batch_source &&
|
167
|
+
merchant_reference == o.merchant_reference &&
|
168
|
+
batch_ca_endpoints == o.batch_ca_endpoints &&
|
119
169
|
status == o.status &&
|
120
|
-
|
170
|
+
totals == o.totals &&
|
171
|
+
billing == o.billing &&
|
172
|
+
description == o.description
|
121
173
|
end
|
122
174
|
|
123
175
|
# @see the `==` method
|
@@ -129,7 +181,7 @@ module CyberSource
|
|
129
181
|
# Calculates hash code according to all attributes.
|
130
182
|
# @return [Fixnum] Hash code
|
131
183
|
def hash
|
132
|
-
[_links,
|
184
|
+
[_links, batch_id, batch_created_date, batch_source, merchant_reference, batch_ca_endpoints, status, totals, billing, description].hash
|
133
185
|
end
|
134
186
|
|
135
187
|
# 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
|
16
|
+
class InlineResponse2003Links
|
17
17
|
attr_accessor :_self
|
18
18
|
|
19
19
|
attr_accessor :report
|
@@ -37,8 +37,8 @@ module CyberSource
|
|
37
37
|
# Attribute type mapping.
|
38
38
|
def self.swagger_types
|
39
39
|
{
|
40
|
-
:'_self' => :'
|
41
|
-
:'report' => :'Array<
|
40
|
+
:'_self' => :'InlineResponse202LinksStatus',
|
41
|
+
:'report' => :'Array<InlineResponse2003LinksReport>'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -14,49 +14,76 @@ require 'date'
|
|
14
14
|
|
15
15
|
module CyberSource
|
16
16
|
class InlineResponse2004
|
17
|
-
attr_accessor :
|
17
|
+
attr_accessor :version
|
18
18
|
|
19
|
-
#
|
20
|
-
attr_accessor :
|
19
|
+
# ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ
|
20
|
+
attr_accessor :report_created_date
|
21
21
|
|
22
|
-
#
|
23
|
-
attr_accessor :
|
22
|
+
# Unique identification number assigned to the submitted request.
|
23
|
+
attr_accessor :batch_id
|
24
24
|
|
25
|
-
#
|
26
|
-
attr_accessor :
|
25
|
+
# Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE
|
26
|
+
attr_accessor :batch_source
|
27
27
|
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :batch_ca_endpoints
|
29
|
+
|
30
|
+
# ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ
|
31
|
+
attr_accessor :batch_created_date
|
32
|
+
|
33
|
+
# Reference used by merchant to identify batch.
|
34
|
+
attr_accessor :merchant_reference
|
35
|
+
|
36
|
+
attr_accessor :totals
|
37
|
+
|
38
|
+
attr_accessor :billing
|
39
|
+
|
40
|
+
attr_accessor :records
|
29
41
|
|
30
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
43
|
def self.attribute_map
|
32
44
|
{
|
33
|
-
:'
|
34
|
-
:'
|
35
|
-
:'
|
36
|
-
:'
|
37
|
-
:'
|
45
|
+
:'version' => :'version',
|
46
|
+
:'report_created_date' => :'reportCreatedDate',
|
47
|
+
:'batch_id' => :'batchId',
|
48
|
+
:'batch_source' => :'batchSource',
|
49
|
+
:'batch_ca_endpoints' => :'batchCaEndpoints',
|
50
|
+
:'batch_created_date' => :'batchCreatedDate',
|
51
|
+
:'merchant_reference' => :'merchantReference',
|
52
|
+
:'totals' => :'totals',
|
53
|
+
:'billing' => :'billing',
|
54
|
+
:'records' => :'records'
|
38
55
|
}
|
39
56
|
end
|
40
57
|
|
41
58
|
# Attribute mapping from JSON key to ruby-style variable name.
|
42
59
|
def self.json_map
|
43
60
|
{
|
44
|
-
:'
|
45
|
-
:'
|
46
|
-
:'
|
47
|
-
:'
|
48
|
-
:'
|
61
|
+
:'version' => :'version',
|
62
|
+
:'report_created_date' => :'report_created_date',
|
63
|
+
:'batch_id' => :'batch_id',
|
64
|
+
:'batch_source' => :'batch_source',
|
65
|
+
:'batch_ca_endpoints' => :'batch_ca_endpoints',
|
66
|
+
:'batch_created_date' => :'batch_created_date',
|
67
|
+
:'merchant_reference' => :'merchant_reference',
|
68
|
+
:'totals' => :'totals',
|
69
|
+
:'billing' => :'billing',
|
70
|
+
:'records' => :'records'
|
49
71
|
}
|
50
72
|
end
|
51
73
|
|
52
74
|
# Attribute type mapping.
|
53
75
|
def self.swagger_types
|
54
76
|
{
|
55
|
-
:'
|
56
|
-
:'
|
57
|
-
:'
|
58
|
-
:'
|
59
|
-
:'
|
77
|
+
:'version' => :'String',
|
78
|
+
:'report_created_date' => :'String',
|
79
|
+
:'batch_id' => :'String',
|
80
|
+
:'batch_source' => :'String',
|
81
|
+
:'batch_ca_endpoints' => :'String',
|
82
|
+
:'batch_created_date' => :'String',
|
83
|
+
:'merchant_reference' => :'String',
|
84
|
+
:'totals' => :'InlineResponse2002EmbeddedTotals',
|
85
|
+
:'billing' => :'InlineResponse2003Billing',
|
86
|
+
:'records' => :'Array<InlineResponse2004Records>'
|
60
87
|
}
|
61
88
|
end
|
62
89
|
|
@@ -68,24 +95,46 @@ module CyberSource
|
|
68
95
|
# convert string to symbol for hash key
|
69
96
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
70
97
|
|
71
|
-
if attributes.has_key?(:'
|
72
|
-
self.
|
98
|
+
if attributes.has_key?(:'version')
|
99
|
+
self.version = attributes[:'version']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.has_key?(:'reportCreatedDate')
|
103
|
+
self.report_created_date = attributes[:'reportCreatedDate']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.has_key?(:'batchId')
|
107
|
+
self.batch_id = attributes[:'batchId']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.has_key?(:'batchSource')
|
111
|
+
self.batch_source = attributes[:'batchSource']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.has_key?(:'batchCaEndpoints')
|
115
|
+
self.batch_ca_endpoints = attributes[:'batchCaEndpoints']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.has_key?(:'batchCreatedDate')
|
119
|
+
self.batch_created_date = attributes[:'batchCreatedDate']
|
73
120
|
end
|
74
121
|
|
75
|
-
if attributes.has_key?(:'
|
76
|
-
self.
|
122
|
+
if attributes.has_key?(:'merchantReference')
|
123
|
+
self.merchant_reference = attributes[:'merchantReference']
|
77
124
|
end
|
78
125
|
|
79
|
-
if attributes.has_key?(:'
|
80
|
-
self.
|
126
|
+
if attributes.has_key?(:'totals')
|
127
|
+
self.totals = attributes[:'totals']
|
81
128
|
end
|
82
129
|
|
83
|
-
if attributes.has_key?(:'
|
84
|
-
self.
|
130
|
+
if attributes.has_key?(:'billing')
|
131
|
+
self.billing = attributes[:'billing']
|
85
132
|
end
|
86
133
|
|
87
|
-
if attributes.has_key?(:'
|
88
|
-
|
134
|
+
if attributes.has_key?(:'records')
|
135
|
+
if (value = attributes[:'records']).is_a?(Array)
|
136
|
+
self.records = value
|
137
|
+
end
|
89
138
|
end
|
90
139
|
end
|
91
140
|
|
@@ -103,9 +152,9 @@ module CyberSource
|
|
103
152
|
end
|
104
153
|
|
105
154
|
# Custom attribute writer method with validation
|
106
|
-
# @param [Object]
|
107
|
-
def
|
108
|
-
@
|
155
|
+
# @param [Object] merchant_reference Value to be assigned
|
156
|
+
def merchant_reference=(merchant_reference)
|
157
|
+
@merchant_reference = merchant_reference
|
109
158
|
end
|
110
159
|
|
111
160
|
# Checks equality by comparing each attribute.
|
@@ -113,11 +162,16 @@ module CyberSource
|
|
113
162
|
def ==(o)
|
114
163
|
return true if self.equal?(o)
|
115
164
|
self.class == o.class &&
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
165
|
+
version == o.version &&
|
166
|
+
report_created_date == o.report_created_date &&
|
167
|
+
batch_id == o.batch_id &&
|
168
|
+
batch_source == o.batch_source &&
|
169
|
+
batch_ca_endpoints == o.batch_ca_endpoints &&
|
170
|
+
batch_created_date == o.batch_created_date &&
|
171
|
+
merchant_reference == o.merchant_reference &&
|
172
|
+
totals == o.totals &&
|
173
|
+
billing == o.billing &&
|
174
|
+
records == o.records
|
121
175
|
end
|
122
176
|
|
123
177
|
# @see the `==` method
|
@@ -129,7 +183,7 @@ module CyberSource
|
|
129
183
|
# Calculates hash code according to all attributes.
|
130
184
|
# @return [Fixnum] Hash code
|
131
185
|
def hash
|
132
|
-
[
|
186
|
+
[version, report_created_date, batch_id, batch_source, batch_ca_endpoints, batch_created_date, merchant_reference, totals, billing, records].hash
|
133
187
|
end
|
134
188
|
|
135
189
|
# 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
|
16
|
+
class InlineResponse2004Records
|
17
17
|
attr_accessor :id
|
18
18
|
|
19
19
|
attr_accessor :source_record
|
@@ -42,8 +42,8 @@ module CyberSource
|
|
42
42
|
def self.swagger_types
|
43
43
|
{
|
44
44
|
:'id' => :'String',
|
45
|
-
:'source_record' => :'
|
46
|
-
:'response_record' => :'
|
45
|
+
:'source_record' => :'InlineResponse2004SourceRecord',
|
46
|
+
:'response_record' => :'InlineResponse2004ResponseRecord'
|
47
47
|
}
|
48
48
|
end
|
49
49
|
|