cybersource_rest_client 0.0.70 → 0.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client/api/batches_api.rb +9 -9
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +3 -149
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +20 -261
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +75 -0
- data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_2.rb +64 -26
- data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded.rb → inline_response_200_2__embedded.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded__links.rb → inline_response_200_2__embedded__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded__links_reports.rb → inline_response_200_2__embedded__links_reports.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded_batches.rb → inline_response_200_2__embedded_batches.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded_totals.rb → inline_response_200_2__embedded_totals.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_5__links.rb → inline_response_200_2__links.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_3.rb +75 -120
- data/lib/cybersource_rest_client/models/{inline_response_200_6__links.rb → inline_response_200_3__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_6__links_report.rb → inline_response_200_3__links_report.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_200_6_billing.rb → inline_response_200_3_billing.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +83 -126
- data/lib/cybersource_rest_client/models/{inline_response_200_7_records.rb → inline_response_200_4_records.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_200_7_response_record.rb → inline_response_200_4_response_record.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_200_7_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_7_source_record.rb → inline_response_200_4_source_record.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4.rb +64 -134
- data/lib/cybersource_rest_client/models/inline_response_201_4_payloads.rb +189 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4_payloads_test_payload.rb +190 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5.rb +5 -25
- data/lib/cybersource_rest_client/models/model_400_upload_batch_file_response.rb +199 -0
- data/lib/cybersource_rest_client/models/payments_strong_auth_issuer_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +25 -5
- data/lib/cybersource_rest_client/models/{inline_response_404_2.rb → pts_v2_payments_post201_response_1_error_information.rb} +4 -2
- data/lib/cybersource_rest_client/models/{inline_response_404_2_details.rb → pts_v2_payments_post201_response_1_error_information_details.rb} +3 -12
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_issuer_information.rb +213 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +15 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_amount_details.rb +196 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information.rb +11 -1
- data/lib/cybersource_rest_client/models/{notificationsubscriptionsv1webhooks_security_policy_1.rb → pts_v2_payments_post201_response_1_payment_information_e_wallet.rb} +30 -29
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +41 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +11 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information_account.rb +1 -1
- data/lib/cybersource_rest_client/models/save_asym_egress_key.rb +0 -10
- data/lib/cybersource_rest_client/models/save_sym_egress_key.rb +0 -10
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_issuer_information.rb +22 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +12 -1
- data/lib/cybersource_rest_client.rb +21 -32
- metadata +23 -34
- data/lib/cybersource_rest_client/api/replay_webhooks_api.rb +0 -98
- data/lib/cybersource_rest_client/models/create_webhook_request.rb +0 -289
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +0 -251
- data/lib/cybersource_rest_client/models/inline_response_200_6.rb +0 -290
- data/lib/cybersource_rest_client/models/inline_response_200_7.rb +0 -292
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1productsorganization_id_event_types.rb +0 -233
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_notification_scope.rb +0 -205
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_products.rb +0 -202
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_retry_policy.rb +0 -270
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy.rb +0 -201
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_1_config.rb +0 -223
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_1_config_additional_config.rb +0 -220
- data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_config.rb +0 -213
- data/lib/cybersource_rest_client/models/nrtfv1webhookswebhook_idreplays_by_delivery_status.rb +0 -243
- data/lib/cybersource_rest_client/models/replay_webhooks_request.rb +0 -201
- data/lib/cybersource_rest_client/models/update_webhook_request.rb +0 -314
@@ -13,101 +13,76 @@ require 'date'
|
|
13
13
|
|
14
14
|
module CyberSource
|
15
15
|
class InlineResponse2004
|
16
|
-
|
17
|
-
attr_accessor :webhook_id
|
16
|
+
attr_accessor :version
|
18
17
|
|
19
|
-
#
|
20
|
-
attr_accessor :
|
18
|
+
# ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ
|
19
|
+
attr_accessor :report_created_date
|
21
20
|
|
22
|
-
|
21
|
+
# Unique identification number assigned to the submitted request.
|
22
|
+
attr_accessor :batch_id
|
23
23
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
24
|
+
# Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE
|
25
|
+
attr_accessor :batch_source
|
26
26
|
|
27
|
-
|
28
|
-
attr_accessor :health_check_url
|
27
|
+
attr_accessor :batch_ca_endpoints
|
29
28
|
|
30
|
-
|
29
|
+
# ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ
|
30
|
+
attr_accessor :batch_created_date
|
31
31
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
32
|
+
# Reference used by merchant to identify batch.
|
33
|
+
attr_accessor :merchant_reference
|
34
34
|
|
35
|
-
|
36
|
-
attr_accessor :name
|
35
|
+
attr_accessor :totals
|
37
36
|
|
38
|
-
|
39
|
-
attr_accessor :description
|
37
|
+
attr_accessor :billing
|
40
38
|
|
41
|
-
attr_accessor :
|
42
|
-
|
43
|
-
attr_accessor :security_policy
|
44
|
-
|
45
|
-
# Date on which webhook was created/registered.
|
46
|
-
attr_accessor :created_on
|
47
|
-
|
48
|
-
# Date on which webhook was most recently updated.
|
49
|
-
attr_accessor :updated_on
|
50
|
-
|
51
|
-
# Additional, free form configuration data.
|
52
|
-
attr_accessor :additional_attributes
|
39
|
+
attr_accessor :records
|
53
40
|
|
54
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
55
42
|
def self.attribute_map
|
56
43
|
{
|
57
|
-
:'
|
58
|
-
:'
|
59
|
-
:'
|
60
|
-
:'
|
61
|
-
:'
|
62
|
-
:'
|
63
|
-
:'
|
64
|
-
:'
|
65
|
-
:'
|
66
|
-
:'
|
67
|
-
:'security_policy' => :'securityPolicy',
|
68
|
-
:'created_on' => :'createdOn',
|
69
|
-
:'updated_on' => :'updatedOn',
|
70
|
-
:'additional_attributes' => :'additionalAttributes'
|
44
|
+
:'version' => :'version',
|
45
|
+
:'report_created_date' => :'reportCreatedDate',
|
46
|
+
:'batch_id' => :'batchId',
|
47
|
+
:'batch_source' => :'batchSource',
|
48
|
+
:'batch_ca_endpoints' => :'batchCaEndpoints',
|
49
|
+
:'batch_created_date' => :'batchCreatedDate',
|
50
|
+
:'merchant_reference' => :'merchantReference',
|
51
|
+
:'totals' => :'totals',
|
52
|
+
:'billing' => :'billing',
|
53
|
+
:'records' => :'records'
|
71
54
|
}
|
72
55
|
end
|
73
56
|
|
74
57
|
# Attribute mapping from JSON key to ruby-style variable name.
|
75
58
|
def self.json_map
|
76
59
|
{
|
77
|
-
:'
|
78
|
-
:'
|
79
|
-
:'
|
80
|
-
:'
|
81
|
-
:'
|
82
|
-
:'
|
83
|
-
:'
|
84
|
-
:'
|
85
|
-
:'
|
86
|
-
:'
|
87
|
-
:'security_policy' => :'security_policy',
|
88
|
-
:'created_on' => :'created_on',
|
89
|
-
:'updated_on' => :'updated_on',
|
90
|
-
:'additional_attributes' => :'additional_attributes'
|
60
|
+
:'version' => :'version',
|
61
|
+
:'report_created_date' => :'report_created_date',
|
62
|
+
:'batch_id' => :'batch_id',
|
63
|
+
:'batch_source' => :'batch_source',
|
64
|
+
:'batch_ca_endpoints' => :'batch_ca_endpoints',
|
65
|
+
:'batch_created_date' => :'batch_created_date',
|
66
|
+
:'merchant_reference' => :'merchant_reference',
|
67
|
+
:'totals' => :'totals',
|
68
|
+
:'billing' => :'billing',
|
69
|
+
:'records' => :'records'
|
91
70
|
}
|
92
71
|
end
|
93
72
|
|
94
73
|
# Attribute type mapping.
|
95
74
|
def self.swagger_types
|
96
75
|
{
|
97
|
-
:'
|
98
|
-
:'
|
99
|
-
:'
|
100
|
-
:'
|
101
|
-
:'
|
102
|
-
:'
|
103
|
-
:'
|
104
|
-
:'
|
105
|
-
:'
|
106
|
-
:'
|
107
|
-
:'security_policy' => :'Notificationsubscriptionsv1webhooksSecurityPolicy',
|
108
|
-
:'created_on' => :'String',
|
109
|
-
:'updated_on' => :'String',
|
110
|
-
:'additional_attributes' => :'Array<Hash<String, String>>'
|
76
|
+
:'version' => :'String',
|
77
|
+
:'report_created_date' => :'String',
|
78
|
+
:'batch_id' => :'String',
|
79
|
+
:'batch_source' => :'String',
|
80
|
+
:'batch_ca_endpoints' => :'String',
|
81
|
+
:'batch_created_date' => :'String',
|
82
|
+
:'merchant_reference' => :'String',
|
83
|
+
:'totals' => :'InlineResponse2002EmbeddedTotals',
|
84
|
+
:'billing' => :'InlineResponse2003Billing',
|
85
|
+
:'records' => :'Array<InlineResponse2004Records>'
|
111
86
|
}
|
112
87
|
end
|
113
88
|
|
@@ -119,65 +94,45 @@ module CyberSource
|
|
119
94
|
# convert string to symbol for hash key
|
120
95
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
121
96
|
|
122
|
-
if attributes.has_key?(:'
|
123
|
-
self.
|
124
|
-
end
|
125
|
-
|
126
|
-
if attributes.has_key?(:'organizationId')
|
127
|
-
self.organization_id = attributes[:'organizationId']
|
128
|
-
end
|
129
|
-
|
130
|
-
if attributes.has_key?(:'products')
|
131
|
-
if (value = attributes[:'products']).is_a?(Array)
|
132
|
-
self.products = value
|
133
|
-
end
|
134
|
-
end
|
135
|
-
|
136
|
-
if attributes.has_key?(:'webhookUrl')
|
137
|
-
self.webhook_url = attributes[:'webhookUrl']
|
138
|
-
end
|
139
|
-
|
140
|
-
if attributes.has_key?(:'healthCheckUrl')
|
141
|
-
self.health_check_url = attributes[:'healthCheckUrl']
|
97
|
+
if attributes.has_key?(:'version')
|
98
|
+
self.version = attributes[:'version']
|
142
99
|
end
|
143
100
|
|
144
|
-
if attributes.has_key?(:'
|
145
|
-
self.
|
101
|
+
if attributes.has_key?(:'reportCreatedDate')
|
102
|
+
self.report_created_date = attributes[:'reportCreatedDate']
|
146
103
|
end
|
147
104
|
|
148
|
-
if attributes.has_key?(:'
|
149
|
-
self.
|
150
|
-
else
|
151
|
-
self.status = 'INACTIVE'
|
105
|
+
if attributes.has_key?(:'batchId')
|
106
|
+
self.batch_id = attributes[:'batchId']
|
152
107
|
end
|
153
108
|
|
154
|
-
if attributes.has_key?(:'
|
155
|
-
self.
|
109
|
+
if attributes.has_key?(:'batchSource')
|
110
|
+
self.batch_source = attributes[:'batchSource']
|
156
111
|
end
|
157
112
|
|
158
|
-
if attributes.has_key?(:'
|
159
|
-
self.
|
113
|
+
if attributes.has_key?(:'batchCaEndpoints')
|
114
|
+
self.batch_ca_endpoints = attributes[:'batchCaEndpoints']
|
160
115
|
end
|
161
116
|
|
162
|
-
if attributes.has_key?(:'
|
163
|
-
self.
|
117
|
+
if attributes.has_key?(:'batchCreatedDate')
|
118
|
+
self.batch_created_date = attributes[:'batchCreatedDate']
|
164
119
|
end
|
165
120
|
|
166
|
-
if attributes.has_key?(:'
|
167
|
-
self.
|
121
|
+
if attributes.has_key?(:'merchantReference')
|
122
|
+
self.merchant_reference = attributes[:'merchantReference']
|
168
123
|
end
|
169
124
|
|
170
|
-
if attributes.has_key?(:'
|
171
|
-
self.
|
125
|
+
if attributes.has_key?(:'totals')
|
126
|
+
self.totals = attributes[:'totals']
|
172
127
|
end
|
173
128
|
|
174
|
-
if attributes.has_key?(:'
|
175
|
-
self.
|
129
|
+
if attributes.has_key?(:'billing')
|
130
|
+
self.billing = attributes[:'billing']
|
176
131
|
end
|
177
132
|
|
178
|
-
if attributes.has_key?(:'
|
179
|
-
if (value = attributes[:'
|
180
|
-
self.
|
133
|
+
if attributes.has_key?(:'records')
|
134
|
+
if (value = attributes[:'records']).is_a?(Array)
|
135
|
+
self.records = value
|
181
136
|
end
|
182
137
|
end
|
183
138
|
end
|
@@ -195,25 +150,27 @@ module CyberSource
|
|
195
150
|
true
|
196
151
|
end
|
197
152
|
|
153
|
+
# Custom attribute writer method with validation
|
154
|
+
# @param [Object] merchant_reference Value to be assigned
|
155
|
+
def merchant_reference=(merchant_reference)
|
156
|
+
@merchant_reference = merchant_reference
|
157
|
+
end
|
158
|
+
|
198
159
|
# Checks equality by comparing each attribute.
|
199
160
|
# @param [Object] Object to be compared
|
200
161
|
def ==(o)
|
201
162
|
return true if self.equal?(o)
|
202
163
|
self.class == o.class &&
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
security_policy == o.security_policy &&
|
214
|
-
created_on == o.created_on &&
|
215
|
-
updated_on == o.updated_on &&
|
216
|
-
additional_attributes == o.additional_attributes
|
164
|
+
version == o.version &&
|
165
|
+
report_created_date == o.report_created_date &&
|
166
|
+
batch_id == o.batch_id &&
|
167
|
+
batch_source == o.batch_source &&
|
168
|
+
batch_ca_endpoints == o.batch_ca_endpoints &&
|
169
|
+
batch_created_date == o.batch_created_date &&
|
170
|
+
merchant_reference == o.merchant_reference &&
|
171
|
+
totals == o.totals &&
|
172
|
+
billing == o.billing &&
|
173
|
+
records == o.records
|
217
174
|
end
|
218
175
|
|
219
176
|
# @see the `==` method
|
@@ -225,7 +182,7 @@ module CyberSource
|
|
225
182
|
# Calculates hash code according to all attributes.
|
226
183
|
# @return [Fixnum] Hash code
|
227
184
|
def hash
|
228
|
-
[
|
185
|
+
[version, report_created_date, batch_id, batch_source, batch_ca_endpoints, batch_created_date, merchant_reference, totals, billing, records].hash
|
229
186
|
end
|
230
187
|
|
231
188
|
# Builds the object from hash
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
|
|
12
12
|
require 'date'
|
13
13
|
|
14
14
|
module CyberSource
|
15
|
-
class
|
15
|
+
class InlineResponse2004Records
|
16
16
|
attr_accessor :id
|
17
17
|
|
18
18
|
attr_accessor :source_record
|
@@ -41,8 +41,8 @@ module CyberSource
|
|
41
41
|
def self.swagger_types
|
42
42
|
{
|
43
43
|
:'id' => :'String',
|
44
|
-
:'source_record' => :'
|
45
|
-
:'response_record' => :'
|
44
|
+
:'source_record' => :'InlineResponse2004SourceRecord',
|
45
|
+
:'response_record' => :'InlineResponse2004ResponseRecord'
|
46
46
|
}
|
47
47
|
end
|
48
48
|
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
|
|
12
12
|
require 'date'
|
13
13
|
|
14
14
|
module CyberSource
|
15
|
-
class
|
15
|
+
class InlineResponse2004ResponseRecord
|
16
16
|
# Valid Values: * NAN * NED * ACL * CCH * CUR * NUP * UNA * ERR * DEC
|
17
17
|
attr_accessor :response
|
18
18
|
|
@@ -79,7 +79,7 @@ module CyberSource
|
|
79
79
|
:'card_expiry_month' => :'String',
|
80
80
|
:'card_expiry_year' => :'String',
|
81
81
|
:'card_type' => :'String',
|
82
|
-
:'additional_updates' => :'Array<
|
82
|
+
:'additional_updates' => :'Array<InlineResponse2004ResponseRecordAdditionalUpdates>'
|
83
83
|
}
|
84
84
|
end
|
85
85
|
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
|
|
12
12
|
require 'date'
|
13
13
|
|
14
14
|
module CyberSource
|
15
|
-
class
|
15
|
+
class InlineResponse2004ResponseRecordAdditionalUpdates
|
16
16
|
attr_accessor :customer_id
|
17
17
|
|
18
18
|
attr_accessor :payment_instrument_id
|
@@ -13,108 +13,74 @@ require 'date'
|
|
13
13
|
|
14
14
|
module CyberSource
|
15
15
|
class InlineResponse2014
|
16
|
-
#
|
17
|
-
attr_accessor :
|
18
|
-
|
19
|
-
# Organization ID
|
20
|
-
attr_accessor :organization_id
|
21
|
-
|
22
|
-
# The product you are receiving a webhook for.
|
23
|
-
attr_accessor :product_id
|
16
|
+
# Date that the webhook was delivered
|
17
|
+
attr_accessor :event_date
|
24
18
|
|
25
|
-
#
|
26
|
-
attr_accessor :
|
19
|
+
# The event name the webhook was delivered for
|
20
|
+
attr_accessor :event_type
|
27
21
|
|
28
|
-
# The
|
29
|
-
attr_accessor :
|
30
|
-
|
31
|
-
# The client's health check endpoint (URL). This should be as close as possible to the actual webhookUrl.
|
32
|
-
attr_accessor :health_check_url
|
33
|
-
|
34
|
-
attr_accessor :notification_scope
|
35
|
-
|
36
|
-
# Webhook status.
|
37
|
-
attr_accessor :status
|
38
|
-
|
39
|
-
# Client friendly webhook name.
|
40
|
-
attr_accessor :name
|
22
|
+
# The Organization Identifier.
|
23
|
+
attr_accessor :organization_id
|
41
24
|
|
42
|
-
|
43
|
-
attr_accessor :description
|
25
|
+
attr_accessor :payloads
|
44
26
|
|
45
|
-
|
27
|
+
# The product the webhook was delivered for
|
28
|
+
attr_accessor :product_id
|
46
29
|
|
47
|
-
|
30
|
+
# Identifies the the type of request
|
31
|
+
attr_accessor :request_type
|
48
32
|
|
49
|
-
#
|
50
|
-
attr_accessor :
|
33
|
+
# The number of retry attempts for a given webhook
|
34
|
+
attr_accessor :retry_number
|
51
35
|
|
52
|
-
#
|
53
|
-
attr_accessor :
|
36
|
+
# The identifier for the webhook
|
37
|
+
attr_accessor :transaction_trace_id
|
54
38
|
|
55
|
-
#
|
56
|
-
attr_accessor :
|
39
|
+
# The identifier of the subscription
|
40
|
+
attr_accessor :webhook_id
|
57
41
|
|
58
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
59
43
|
def self.attribute_map
|
60
44
|
{
|
61
|
-
:'
|
45
|
+
:'event_date' => :'eventDate',
|
46
|
+
:'event_type' => :'eventType',
|
62
47
|
:'organization_id' => :'organizationId',
|
48
|
+
:'payloads' => :'payloads',
|
63
49
|
:'product_id' => :'productId',
|
64
|
-
:'
|
65
|
-
:'
|
66
|
-
:'
|
67
|
-
:'
|
68
|
-
:'status' => :'status',
|
69
|
-
:'name' => :'name',
|
70
|
-
:'description' => :'description',
|
71
|
-
:'retry_policy' => :'retryPolicy',
|
72
|
-
:'security_policy' => :'securityPolicy',
|
73
|
-
:'created_on' => :'createdOn',
|
74
|
-
:'updated_on' => :'updatedOn',
|
75
|
-
:'additional_attributes' => :'additionalAttributes'
|
50
|
+
:'request_type' => :'requestType',
|
51
|
+
:'retry_number' => :'retryNumber',
|
52
|
+
:'transaction_trace_id' => :'transactionTraceId',
|
53
|
+
:'webhook_id' => :'webhookId'
|
76
54
|
}
|
77
55
|
end
|
78
56
|
|
79
57
|
# Attribute mapping from JSON key to ruby-style variable name.
|
80
58
|
def self.json_map
|
81
59
|
{
|
82
|
-
:'
|
60
|
+
:'event_date' => :'event_date',
|
61
|
+
:'event_type' => :'event_type',
|
83
62
|
:'organization_id' => :'organization_id',
|
63
|
+
:'payloads' => :'payloads',
|
84
64
|
:'product_id' => :'product_id',
|
85
|
-
:'
|
86
|
-
:'
|
87
|
-
:'
|
88
|
-
:'
|
89
|
-
:'status' => :'status',
|
90
|
-
:'name' => :'name',
|
91
|
-
:'description' => :'description',
|
92
|
-
:'retry_policy' => :'retry_policy',
|
93
|
-
:'security_policy' => :'security_policy',
|
94
|
-
:'created_on' => :'created_on',
|
95
|
-
:'updated_on' => :'updated_on',
|
96
|
-
:'additional_attributes' => :'additional_attributes'
|
65
|
+
:'request_type' => :'request_type',
|
66
|
+
:'retry_number' => :'retry_number',
|
67
|
+
:'transaction_trace_id' => :'transaction_trace_id',
|
68
|
+
:'webhook_id' => :'webhook_id'
|
97
69
|
}
|
98
70
|
end
|
99
71
|
|
100
72
|
# Attribute type mapping.
|
101
73
|
def self.swagger_types
|
102
74
|
{
|
103
|
-
:'
|
75
|
+
:'event_date' => :'String',
|
76
|
+
:'event_type' => :'String',
|
104
77
|
:'organization_id' => :'String',
|
78
|
+
:'payloads' => :'InlineResponse2014Payloads',
|
105
79
|
:'product_id' => :'String',
|
106
|
-
:'
|
107
|
-
:'
|
108
|
-
:'
|
109
|
-
:'
|
110
|
-
:'status' => :'String',
|
111
|
-
:'name' => :'String',
|
112
|
-
:'description' => :'String',
|
113
|
-
:'retry_policy' => :'Notificationsubscriptionsv1webhooksRetryPolicy',
|
114
|
-
:'security_policy' => :'Notificationsubscriptionsv1webhooksSecurityPolicy',
|
115
|
-
:'created_on' => :'String',
|
116
|
-
:'updated_on' => :'String',
|
117
|
-
:'additional_attributes' => :'Array<Hash<String, String>>'
|
80
|
+
:'request_type' => :'String',
|
81
|
+
:'retry_number' => :'Integer',
|
82
|
+
:'transaction_trace_id' => :'String',
|
83
|
+
:'webhook_id' => :'String'
|
118
84
|
}
|
119
85
|
end
|
120
86
|
|
@@ -126,70 +92,40 @@ module CyberSource
|
|
126
92
|
# convert string to symbol for hash key
|
127
93
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
128
94
|
|
129
|
-
if attributes.has_key?(:'
|
130
|
-
self.
|
131
|
-
end
|
132
|
-
|
133
|
-
if attributes.has_key?(:'organizationId')
|
134
|
-
self.organization_id = attributes[:'organizationId']
|
95
|
+
if attributes.has_key?(:'eventDate')
|
96
|
+
self.event_date = attributes[:'eventDate']
|
135
97
|
end
|
136
98
|
|
137
|
-
if attributes.has_key?(:'
|
138
|
-
self.
|
99
|
+
if attributes.has_key?(:'eventType')
|
100
|
+
self.event_type = attributes[:'eventType']
|
139
101
|
end
|
140
102
|
|
141
|
-
if attributes.has_key?(:'
|
142
|
-
|
143
|
-
self.event_types = value
|
144
|
-
end
|
145
|
-
end
|
146
|
-
|
147
|
-
if attributes.has_key?(:'webhookUrl')
|
148
|
-
self.webhook_url = attributes[:'webhookUrl']
|
149
|
-
end
|
150
|
-
|
151
|
-
if attributes.has_key?(:'healthCheckUrl')
|
152
|
-
self.health_check_url = attributes[:'healthCheckUrl']
|
153
|
-
end
|
154
|
-
|
155
|
-
if attributes.has_key?(:'notificationScope')
|
156
|
-
self.notification_scope = attributes[:'notificationScope']
|
157
|
-
end
|
158
|
-
|
159
|
-
if attributes.has_key?(:'status')
|
160
|
-
self.status = attributes[:'status']
|
161
|
-
else
|
162
|
-
self.status = 'INACTIVE'
|
163
|
-
end
|
164
|
-
|
165
|
-
if attributes.has_key?(:'name')
|
166
|
-
self.name = attributes[:'name']
|
103
|
+
if attributes.has_key?(:'organizationId')
|
104
|
+
self.organization_id = attributes[:'organizationId']
|
167
105
|
end
|
168
106
|
|
169
|
-
if attributes.has_key?(:'
|
170
|
-
self.
|
107
|
+
if attributes.has_key?(:'payloads')
|
108
|
+
self.payloads = attributes[:'payloads']
|
171
109
|
end
|
172
110
|
|
173
|
-
if attributes.has_key?(:'
|
174
|
-
self.
|
111
|
+
if attributes.has_key?(:'productId')
|
112
|
+
self.product_id = attributes[:'productId']
|
175
113
|
end
|
176
114
|
|
177
|
-
if attributes.has_key?(:'
|
178
|
-
self.
|
115
|
+
if attributes.has_key?(:'requestType')
|
116
|
+
self.request_type = attributes[:'requestType']
|
179
117
|
end
|
180
118
|
|
181
|
-
if attributes.has_key?(:'
|
182
|
-
self.
|
119
|
+
if attributes.has_key?(:'retryNumber')
|
120
|
+
self.retry_number = attributes[:'retryNumber']
|
183
121
|
end
|
184
122
|
|
185
|
-
if attributes.has_key?(:'
|
186
|
-
self.
|
123
|
+
if attributes.has_key?(:'transactionTraceId')
|
124
|
+
self.transaction_trace_id = attributes[:'transactionTraceId']
|
187
125
|
end
|
188
126
|
|
189
|
-
if attributes.has_key?(:'
|
190
|
-
|
191
|
-
self.additional_attributes = value
|
192
|
-
end
|
127
|
+
if attributes.has_key?(:'webhookId')
|
128
|
+
self.webhook_id = attributes[:'webhookId']
|
193
129
|
end
|
194
130
|
end
|
195
131
|
|
@@ -211,21 +147,15 @@ module CyberSource
|
|
211
147
|
def ==(o)
|
212
148
|
return true if self.equal?(o)
|
213
149
|
self.class == o.class &&
|
214
|
-
|
150
|
+
event_date == o.event_date &&
|
151
|
+
event_type == o.event_type &&
|
215
152
|
organization_id == o.organization_id &&
|
153
|
+
payloads == o.payloads &&
|
216
154
|
product_id == o.product_id &&
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
status == o.status &&
|
222
|
-
name == o.name &&
|
223
|
-
description == o.description &&
|
224
|
-
retry_policy == o.retry_policy &&
|
225
|
-
security_policy == o.security_policy &&
|
226
|
-
created_on == o.created_on &&
|
227
|
-
updated_on == o.updated_on &&
|
228
|
-
additional_attributes == o.additional_attributes
|
155
|
+
request_type == o.request_type &&
|
156
|
+
retry_number == o.retry_number &&
|
157
|
+
transaction_trace_id == o.transaction_trace_id &&
|
158
|
+
webhook_id == o.webhook_id
|
229
159
|
end
|
230
160
|
|
231
161
|
# @see the `==` method
|
@@ -237,7 +167,7 @@ module CyberSource
|
|
237
167
|
# Calculates hash code according to all attributes.
|
238
168
|
# @return [Fixnum] Hash code
|
239
169
|
def hash
|
240
|
-
[
|
170
|
+
[event_date, event_type, organization_id, payloads, product_id, request_type, retry_number, transaction_trace_id, webhook_id].hash
|
241
171
|
end
|
242
172
|
|
243
173
|
# Builds the object from hash
|