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
@@ -257,5 +257,80 @@ module CyberSource
|
|
257
257
|
end
|
258
258
|
return data, status_code, headers
|
259
259
|
end
|
260
|
+
# Upload a Batch File
|
261
|
+
# This endpoint enables the upload of a batch file containing transactions for processing.
|
262
|
+
#
|
263
|
+
# @param file The file to upload.
|
264
|
+
# @param [Hash] opts the optional parameters
|
265
|
+
# @return [nil]
|
266
|
+
#
|
267
|
+
def upload_transaction_batch(file, opts = {})
|
268
|
+
data, status_code, headers = upload_transaction_batch_with_http_info(file, opts)
|
269
|
+
return data, status_code, headers
|
270
|
+
end
|
271
|
+
|
272
|
+
# Upload a Batch File
|
273
|
+
# This endpoint enables the upload of a batch file containing transactions for processing.
|
274
|
+
# @param file The file to upload.
|
275
|
+
# @param [Hash] opts the optional parameters
|
276
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
277
|
+
def upload_transaction_batch_with_http_info(file, opts = {})
|
278
|
+
|
279
|
+
if @api_client.config.debugging
|
280
|
+
begin
|
281
|
+
raise
|
282
|
+
@api_client.config.logger.debug 'Calling API: TransactionBatchesApi.upload_transaction_batch ...'
|
283
|
+
rescue
|
284
|
+
puts 'Cannot write to log'
|
285
|
+
end
|
286
|
+
end
|
287
|
+
# verify the required parameter 'file' is set
|
288
|
+
if @api_client.config.client_side_validation && file.nil?
|
289
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling TransactionBatchesApi.upload_transaction_batch"
|
290
|
+
end
|
291
|
+
# resource path
|
292
|
+
local_var_path = 'pts/v1/transaction-batch-upload'
|
293
|
+
|
294
|
+
# query parameters
|
295
|
+
query_params = {}
|
296
|
+
|
297
|
+
# header parameters
|
298
|
+
header_params = {}
|
299
|
+
# HTTP header 'Accept' (if needed)
|
300
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
301
|
+
# HTTP header 'Content-Type'
|
302
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
303
|
+
|
304
|
+
# form parameters
|
305
|
+
form_params = {}
|
306
|
+
form_params['file'] = file
|
307
|
+
|
308
|
+
# http body (model)
|
309
|
+
if 'POST' == 'POST'
|
310
|
+
post_body = '{}'
|
311
|
+
else
|
312
|
+
post_body = nil
|
313
|
+
end
|
314
|
+
is_mle_supported_by_cybs_for_api = false
|
315
|
+
if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["upload_transaction_batch","upload_transaction_batch_with_http_info"])
|
316
|
+
post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
|
317
|
+
end
|
318
|
+
auth_names = []
|
319
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
320
|
+
:header_params => header_params,
|
321
|
+
:query_params => query_params,
|
322
|
+
:form_params => form_params,
|
323
|
+
:body => post_body,
|
324
|
+
:auth_names => auth_names)
|
325
|
+
if @api_client.config.debugging
|
326
|
+
begin
|
327
|
+
raise
|
328
|
+
@api_client.config.logger.debug "API called: TransactionBatchesApi#upload_transaction_batch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
329
|
+
rescue
|
330
|
+
puts 'Cannot write to log'
|
331
|
+
end
|
332
|
+
end
|
333
|
+
return data, status_code, headers
|
334
|
+
end
|
260
335
|
end
|
261
336
|
end
|
data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb
CHANGED
@@ -22,7 +22,7 @@ module CyberSource
|
|
22
22
|
# The list of card networks you want to use for this Unified Checkout transaction. Unified Checkout currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA
|
23
23
|
attr_accessor :allowed_card_networks
|
24
24
|
|
25
|
-
# The payment types that are allowed for the merchant. Possible values when launching Unified Checkout: - APPLEPAY - CHECK - CLICKTOPAY - GOOGLEPAY - PANENTRY - PAZE <br><br> Possible values when launching Click To Pay Drop-In UI: - CLICKTOPAY <br><br> **Important:** - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards. - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester. - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.
|
25
|
+
# The payment types that are allowed for the merchant. Possible values when launching Unified Checkout: - APPLEPAY - CHECK - CLICKTOPAY - GOOGLEPAY - PANENTRY - PAZE <br><br> Possible values when launching Click To Pay Drop-In UI: - CLICKTOPAY <br><br> **Important:** - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards. - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester. - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.<br><br> **Managing Google Pay Authentication Types** When you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.
|
26
26
|
attr_accessor :allowed_payment_types
|
27
27
|
|
28
28
|
# Country the purchase is originating from (e.g. country of the merchant). Use the two-character ISO Standard
|
@@ -13,38 +13,56 @@ require 'date'
|
|
13
13
|
|
14
14
|
module CyberSource
|
15
15
|
class InlineResponse2002
|
16
|
-
|
17
|
-
attr_accessor :product_id
|
16
|
+
attr_accessor :_links
|
18
17
|
|
19
|
-
|
20
|
-
attr_accessor :product_name
|
18
|
+
attr_accessor :object
|
21
19
|
|
22
|
-
attr_accessor :
|
20
|
+
attr_accessor :offset
|
21
|
+
|
22
|
+
attr_accessor :limit
|
23
|
+
|
24
|
+
attr_accessor :count
|
25
|
+
|
26
|
+
attr_accessor :total
|
27
|
+
|
28
|
+
attr_accessor :_embedded
|
23
29
|
|
24
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
31
|
def self.attribute_map
|
26
32
|
{
|
27
|
-
:'
|
28
|
-
:'
|
29
|
-
:'
|
33
|
+
:'_links' => :'_links',
|
34
|
+
:'object' => :'object',
|
35
|
+
:'offset' => :'offset',
|
36
|
+
:'limit' => :'limit',
|
37
|
+
:'count' => :'count',
|
38
|
+
:'total' => :'total',
|
39
|
+
:'_embedded' => :'_embedded'
|
30
40
|
}
|
31
41
|
end
|
32
42
|
|
33
43
|
# Attribute mapping from JSON key to ruby-style variable name.
|
34
44
|
def self.json_map
|
35
45
|
{
|
36
|
-
:'
|
37
|
-
:'
|
38
|
-
:'
|
46
|
+
:'_links' => :'_links',
|
47
|
+
:'object' => :'object',
|
48
|
+
:'offset' => :'offset',
|
49
|
+
:'limit' => :'limit',
|
50
|
+
:'count' => :'count',
|
51
|
+
:'total' => :'total',
|
52
|
+
:'_embedded' => :'_embedded'
|
39
53
|
}
|
40
54
|
end
|
41
55
|
|
42
56
|
# Attribute type mapping.
|
43
57
|
def self.swagger_types
|
44
58
|
{
|
45
|
-
:'
|
46
|
-
:'
|
47
|
-
:'
|
59
|
+
:'_links' => :'Array<InlineResponse2002Links>',
|
60
|
+
:'object' => :'String',
|
61
|
+
:'offset' => :'Integer',
|
62
|
+
:'limit' => :'Integer',
|
63
|
+
:'count' => :'Integer',
|
64
|
+
:'total' => :'Integer',
|
65
|
+
:'_embedded' => :'InlineResponse2002Embedded'
|
48
66
|
}
|
49
67
|
end
|
50
68
|
|
@@ -56,18 +74,34 @@ module CyberSource
|
|
56
74
|
# convert string to symbol for hash key
|
57
75
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
58
76
|
|
59
|
-
if attributes.has_key?(:'
|
60
|
-
|
77
|
+
if attributes.has_key?(:'_links')
|
78
|
+
if (value = attributes[:'_links']).is_a?(Array)
|
79
|
+
self._links = value
|
80
|
+
end
|
61
81
|
end
|
62
82
|
|
63
|
-
if attributes.has_key?(:'
|
64
|
-
self.
|
83
|
+
if attributes.has_key?(:'object')
|
84
|
+
self.object = attributes[:'object']
|
65
85
|
end
|
66
86
|
|
67
|
-
if attributes.has_key?(:'
|
68
|
-
|
69
|
-
|
70
|
-
|
87
|
+
if attributes.has_key?(:'offset')
|
88
|
+
self.offset = attributes[:'offset']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.has_key?(:'limit')
|
92
|
+
self.limit = attributes[:'limit']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.has_key?(:'count')
|
96
|
+
self.count = attributes[:'count']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.has_key?(:'total')
|
100
|
+
self.total = attributes[:'total']
|
101
|
+
end
|
102
|
+
|
103
|
+
if attributes.has_key?(:'_embedded')
|
104
|
+
self._embedded = attributes[:'_embedded']
|
71
105
|
end
|
72
106
|
end
|
73
107
|
|
@@ -89,9 +123,13 @@ module CyberSource
|
|
89
123
|
def ==(o)
|
90
124
|
return true if self.equal?(o)
|
91
125
|
self.class == o.class &&
|
92
|
-
|
93
|
-
|
94
|
-
|
126
|
+
_links == o._links &&
|
127
|
+
object == o.object &&
|
128
|
+
offset == o.offset &&
|
129
|
+
limit == o.limit &&
|
130
|
+
count == o.count &&
|
131
|
+
total == o.total &&
|
132
|
+
_embedded == o._embedded
|
95
133
|
end
|
96
134
|
|
97
135
|
# @see the `==` method
|
@@ -103,7 +141,7 @@ module CyberSource
|
|
103
141
|
# Calculates hash code according to all attributes.
|
104
142
|
# @return [Fixnum] Hash code
|
105
143
|
def hash
|
106
|
-
[
|
144
|
+
[_links, object, offset, limit, count, total, _embedded].hash
|
107
145
|
end
|
108
146
|
|
109
147
|
# 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 InlineResponse2002Embedded
|
16
16
|
attr_accessor :batches
|
17
17
|
|
18
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -32,7 +32,7 @@ module CyberSource
|
|
32
32
|
# Attribute type mapping.
|
33
33
|
def self.swagger_types
|
34
34
|
{
|
35
|
-
:'batches' => :'Array<
|
35
|
+
:'batches' => :'Array<InlineResponse2002EmbeddedBatches>'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
|
|
12
12
|
require 'date'
|
13
13
|
|
14
14
|
module CyberSource
|
15
|
-
class
|
15
|
+
class InlineResponse2002EmbeddedLinks
|
16
16
|
attr_accessor :reports
|
17
17
|
|
18
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -32,7 +32,7 @@ module CyberSource
|
|
32
32
|
# Attribute type mapping.
|
33
33
|
def self.swagger_types
|
34
34
|
{
|
35
|
-
:'reports' => :'Array<
|
35
|
+
:'reports' => :'Array<InlineResponse2002EmbeddedLinksReports>'
|
36
36
|
}
|
37
37
|
end
|
38
38
|
|
@@ -13,7 +13,7 @@ require 'date'
|
|
13
13
|
|
14
14
|
module CyberSource
|
15
15
|
# Retrieve the generated report of a batch when available.
|
16
|
-
class
|
16
|
+
class InlineResponse2002EmbeddedLinksReports
|
17
17
|
attr_accessor :href
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
|
|
12
12
|
require 'date'
|
13
13
|
|
14
14
|
module CyberSource
|
15
|
-
class
|
15
|
+
class InlineResponse2002EmbeddedBatches
|
16
16
|
attr_accessor :_links
|
17
17
|
|
18
18
|
# Unique identification number assigned to the submitted request.
|
@@ -76,7 +76,7 @@ module CyberSource
|
|
76
76
|
# Attribute type mapping.
|
77
77
|
def self.swagger_types
|
78
78
|
{
|
79
|
-
:'_links' => :'
|
79
|
+
:'_links' => :'InlineResponse2002EmbeddedLinks',
|
80
80
|
:'batch_id' => :'String',
|
81
81
|
:'batch_created_date' => :'String',
|
82
82
|
:'batch_modified_date' => :'String',
|
@@ -85,7 +85,7 @@ module CyberSource
|
|
85
85
|
:'merchant_reference' => :'String',
|
86
86
|
:'batch_ca_endpoints' => :'Array<String>',
|
87
87
|
:'status' => :'String',
|
88
|
-
:'totals' => :'
|
88
|
+
:'totals' => :'InlineResponse2002EmbeddedTotals'
|
89
89
|
}
|
90
90
|
end
|
91
91
|
|
@@ -13,101 +13,76 @@ require 'date'
|
|
13
13
|
|
14
14
|
module CyberSource
|
15
15
|
class InlineResponse2003
|
16
|
-
|
17
|
-
attr_accessor :webhook_id
|
16
|
+
attr_accessor :_links
|
18
17
|
|
19
|
-
#
|
20
|
-
attr_accessor :
|
18
|
+
# Unique identification number assigned to the submitted request.
|
19
|
+
attr_accessor :batch_id
|
21
20
|
|
22
|
-
|
21
|
+
# ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ
|
22
|
+
attr_accessor :batch_created_date
|
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 :
|
27
|
+
# Reference used by merchant to identify batch.
|
28
|
+
attr_accessor :merchant_reference
|
29
29
|
|
30
|
-
attr_accessor :
|
30
|
+
attr_accessor :batch_ca_endpoints
|
31
31
|
|
32
|
-
#
|
32
|
+
# Valid Values: * REJECTED * RECEIVED * VALIDATED * DECLINED * PROCESSING * COMPLETED
|
33
33
|
attr_accessor :status
|
34
34
|
|
35
|
-
|
36
|
-
attr_accessor :name
|
35
|
+
attr_accessor :totals
|
37
36
|
|
38
|
-
|
39
|
-
attr_accessor :description
|
40
|
-
|
41
|
-
attr_accessor :retry_policy
|
42
|
-
|
43
|
-
attr_accessor :security_policy
|
37
|
+
attr_accessor :billing
|
44
38
|
|
45
|
-
|
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 :description
|
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
|
-
:'
|
44
|
+
:'_links' => :'_links',
|
45
|
+
:'batch_id' => :'batchId',
|
46
|
+
:'batch_created_date' => :'batchCreatedDate',
|
47
|
+
:'batch_source' => :'batchSource',
|
48
|
+
:'merchant_reference' => :'merchantReference',
|
49
|
+
:'batch_ca_endpoints' => :'batchCaEndpoints',
|
63
50
|
:'status' => :'status',
|
64
|
-
:'
|
65
|
-
:'
|
66
|
-
:'
|
67
|
-
:'security_policy' => :'securityPolicy',
|
68
|
-
:'created_on' => :'createdOn',
|
69
|
-
:'updated_on' => :'updatedOn',
|
70
|
-
:'additional_attributes' => :'additionalAttributes'
|
51
|
+
:'totals' => :'totals',
|
52
|
+
:'billing' => :'billing',
|
53
|
+
:'description' => :'description'
|
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
|
-
:'
|
60
|
+
:'_links' => :'_links',
|
61
|
+
:'batch_id' => :'batch_id',
|
62
|
+
:'batch_created_date' => :'batch_created_date',
|
63
|
+
:'batch_source' => :'batch_source',
|
64
|
+
:'merchant_reference' => :'merchant_reference',
|
65
|
+
:'batch_ca_endpoints' => :'batch_ca_endpoints',
|
83
66
|
:'status' => :'status',
|
84
|
-
:'
|
85
|
-
:'
|
86
|
-
:'
|
87
|
-
:'security_policy' => :'security_policy',
|
88
|
-
:'created_on' => :'created_on',
|
89
|
-
:'updated_on' => :'updated_on',
|
90
|
-
:'additional_attributes' => :'additional_attributes'
|
67
|
+
:'totals' => :'totals',
|
68
|
+
:'billing' => :'billing',
|
69
|
+
:'description' => :'description'
|
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
|
-
:'
|
76
|
+
:'_links' => :'InlineResponse2003Links',
|
77
|
+
:'batch_id' => :'String',
|
78
|
+
:'batch_created_date' => :'String',
|
79
|
+
:'batch_source' => :'String',
|
80
|
+
:'merchant_reference' => :'String',
|
81
|
+
:'batch_ca_endpoints' => :'String',
|
103
82
|
:'status' => :'String',
|
104
|
-
:'
|
105
|
-
:'
|
106
|
-
:'
|
107
|
-
:'security_policy' => :'Notificationsubscriptionsv1webhooksSecurityPolicy',
|
108
|
-
:'created_on' => :'String',
|
109
|
-
:'updated_on' => :'String',
|
110
|
-
:'additional_attributes' => :'Array<Hash<String, String>>'
|
83
|
+
:'totals' => :'InlineResponse2002EmbeddedTotals',
|
84
|
+
:'billing' => :'InlineResponse2003Billing',
|
85
|
+
:'description' => :'String'
|
111
86
|
}
|
112
87
|
end
|
113
88
|
|
@@ -119,66 +94,44 @@ 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.
|
97
|
+
if attributes.has_key?(:'_links')
|
98
|
+
self._links = attributes[:'_links']
|
124
99
|
end
|
125
100
|
|
126
|
-
if attributes.has_key?(:'
|
127
|
-
self.
|
101
|
+
if attributes.has_key?(:'batchId')
|
102
|
+
self.batch_id = attributes[:'batchId']
|
128
103
|
end
|
129
104
|
|
130
|
-
if attributes.has_key?(:'
|
131
|
-
|
132
|
-
self.products = value
|
133
|
-
end
|
105
|
+
if attributes.has_key?(:'batchCreatedDate')
|
106
|
+
self.batch_created_date = attributes[:'batchCreatedDate']
|
134
107
|
end
|
135
108
|
|
136
|
-
if attributes.has_key?(:'
|
137
|
-
self.
|
109
|
+
if attributes.has_key?(:'batchSource')
|
110
|
+
self.batch_source = attributes[:'batchSource']
|
138
111
|
end
|
139
112
|
|
140
|
-
if attributes.has_key?(:'
|
141
|
-
self.
|
113
|
+
if attributes.has_key?(:'merchantReference')
|
114
|
+
self.merchant_reference = attributes[:'merchantReference']
|
142
115
|
end
|
143
116
|
|
144
|
-
if attributes.has_key?(:'
|
145
|
-
self.
|
117
|
+
if attributes.has_key?(:'batchCaEndpoints')
|
118
|
+
self.batch_ca_endpoints = attributes[:'batchCaEndpoints']
|
146
119
|
end
|
147
120
|
|
148
121
|
if attributes.has_key?(:'status')
|
149
122
|
self.status = attributes[:'status']
|
150
|
-
else
|
151
|
-
self.status = 'INACTIVE'
|
152
|
-
end
|
153
|
-
|
154
|
-
if attributes.has_key?(:'name')
|
155
|
-
self.name = attributes[:'name']
|
156
123
|
end
|
157
124
|
|
158
|
-
if attributes.has_key?(:'
|
159
|
-
self.
|
125
|
+
if attributes.has_key?(:'totals')
|
126
|
+
self.totals = attributes[:'totals']
|
160
127
|
end
|
161
128
|
|
162
|
-
if attributes.has_key?(:'
|
163
|
-
self.
|
129
|
+
if attributes.has_key?(:'billing')
|
130
|
+
self.billing = attributes[:'billing']
|
164
131
|
end
|
165
132
|
|
166
|
-
if attributes.has_key?(:'
|
167
|
-
self.
|
168
|
-
end
|
169
|
-
|
170
|
-
if attributes.has_key?(:'createdOn')
|
171
|
-
self.created_on = attributes[:'createdOn']
|
172
|
-
end
|
173
|
-
|
174
|
-
if attributes.has_key?(:'updatedOn')
|
175
|
-
self.updated_on = attributes[:'updatedOn']
|
176
|
-
end
|
177
|
-
|
178
|
-
if attributes.has_key?(:'additionalAttributes')
|
179
|
-
if (value = attributes[:'additionalAttributes']).is_a?(Array)
|
180
|
-
self.additional_attributes = value
|
181
|
-
end
|
133
|
+
if attributes.has_key?(:'description')
|
134
|
+
self.description = attributes[:'description']
|
182
135
|
end
|
183
136
|
end
|
184
137
|
|
@@ -195,25 +148,27 @@ module CyberSource
|
|
195
148
|
true
|
196
149
|
end
|
197
150
|
|
151
|
+
# Custom attribute writer method with validation
|
152
|
+
# @param [Object] merchant_reference Value to be assigned
|
153
|
+
def merchant_reference=(merchant_reference)
|
154
|
+
@merchant_reference = merchant_reference
|
155
|
+
end
|
156
|
+
|
198
157
|
# Checks equality by comparing each attribute.
|
199
158
|
# @param [Object] Object to be compared
|
200
159
|
def ==(o)
|
201
160
|
return true if self.equal?(o)
|
202
161
|
self.class == o.class &&
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
162
|
+
_links == o._links &&
|
163
|
+
batch_id == o.batch_id &&
|
164
|
+
batch_created_date == o.batch_created_date &&
|
165
|
+
batch_source == o.batch_source &&
|
166
|
+
merchant_reference == o.merchant_reference &&
|
167
|
+
batch_ca_endpoints == o.batch_ca_endpoints &&
|
209
168
|
status == o.status &&
|
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
|
169
|
+
totals == o.totals &&
|
170
|
+
billing == o.billing &&
|
171
|
+
description == o.description
|
217
172
|
end
|
218
173
|
|
219
174
|
# @see the `==` method
|
@@ -225,7 +180,7 @@ module CyberSource
|
|
225
180
|
# Calculates hash code according to all attributes.
|
226
181
|
# @return [Fixnum] Hash code
|
227
182
|
def hash
|
228
|
-
[
|
183
|
+
[_links, batch_id, batch_created_date, batch_source, merchant_reference, batch_ca_endpoints, status, totals, billing, description].hash
|
229
184
|
end
|
230
185
|
|
231
186
|
# 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 InlineResponse2003Links
|
16
16
|
attr_accessor :_self
|
17
17
|
|
18
18
|
attr_accessor :report
|
@@ -37,7 +37,7 @@ module CyberSource
|
|
37
37
|
def self.swagger_types
|
38
38
|
{
|
39
39
|
:'_self' => :'InlineResponse202LinksStatus',
|
40
|
-
:'report' => :'Array<
|
40
|
+
:'report' => :'Array<InlineResponse2003LinksReport>'
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|