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.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/batches_api.rb +9 -9
  3. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +3 -149
  4. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +20 -261
  5. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +75 -0
  6. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +1 -1
  7. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +64 -26
  8. data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded.rb → inline_response_200_2__embedded.rb} +2 -2
  9. data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded__links.rb → inline_response_200_2__embedded__links.rb} +2 -2
  10. data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded__links_reports.rb → inline_response_200_2__embedded__links_reports.rb} +1 -1
  11. data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded_batches.rb → inline_response_200_2__embedded_batches.rb} +3 -3
  12. data/lib/cybersource_rest_client/models/{inline_response_200_5__embedded_totals.rb → inline_response_200_2__embedded_totals.rb} +1 -1
  13. data/lib/cybersource_rest_client/models/{inline_response_200_5__links.rb → inline_response_200_2__links.rb} +1 -1
  14. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +75 -120
  15. data/lib/cybersource_rest_client/models/{inline_response_200_6__links.rb → inline_response_200_3__links.rb} +2 -2
  16. data/lib/cybersource_rest_client/models/{inline_response_200_6__links_report.rb → inline_response_200_3__links_report.rb} +1 -1
  17. data/lib/cybersource_rest_client/models/{inline_response_200_6_billing.rb → inline_response_200_3_billing.rb} +1 -1
  18. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +83 -126
  19. data/lib/cybersource_rest_client/models/{inline_response_200_7_records.rb → inline_response_200_4_records.rb} +3 -3
  20. data/lib/cybersource_rest_client/models/{inline_response_200_7_response_record.rb → inline_response_200_4_response_record.rb} +2 -2
  21. 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
  22. data/lib/cybersource_rest_client/models/{inline_response_200_7_source_record.rb → inline_response_200_4_source_record.rb} +1 -1
  23. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +64 -134
  24. data/lib/cybersource_rest_client/models/inline_response_201_4_payloads.rb +189 -0
  25. data/lib/cybersource_rest_client/models/inline_response_201_4_payloads_test_payload.rb +190 -0
  26. data/lib/cybersource_rest_client/models/inline_response_201_5.rb +5 -25
  27. data/lib/cybersource_rest_client/models/model_400_upload_batch_file_response.rb +199 -0
  28. data/lib/cybersource_rest_client/models/payments_strong_auth_issuer_information.rb +22 -5
  29. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +25 -5
  30. data/lib/cybersource_rest_client/models/{inline_response_404_2.rb → pts_v2_payments_post201_response_1_error_information.rb} +4 -2
  31. data/lib/cybersource_rest_client/models/{inline_response_404_2_details.rb → pts_v2_payments_post201_response_1_error_information_details.rb} +3 -12
  32. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_issuer_information.rb +213 -0
  33. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +15 -5
  34. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information_amount_details.rb +196 -0
  35. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_payment_information.rb +11 -1
  36. data/lib/cybersource_rest_client/models/{notificationsubscriptionsv1webhooks_security_policy_1.rb → pts_v2_payments_post201_response_1_payment_information_e_wallet.rb} +30 -29
  37. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +41 -1
  38. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +11 -1
  39. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +1 -1
  40. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +1 -1
  41. data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +7 -7
  42. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +3 -3
  43. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information_account.rb +1 -1
  44. data/lib/cybersource_rest_client/models/save_asym_egress_key.rb +0 -10
  45. data/lib/cybersource_rest_client/models/save_sym_egress_key.rb +0 -10
  46. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_issuer_information.rb +22 -5
  47. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +12 -1
  48. data/lib/cybersource_rest_client.rb +21 -32
  49. metadata +23 -34
  50. data/lib/cybersource_rest_client/api/replay_webhooks_api.rb +0 -98
  51. data/lib/cybersource_rest_client/models/create_webhook_request.rb +0 -289
  52. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +0 -251
  53. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +0 -290
  54. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +0 -292
  55. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1productsorganization_id_event_types.rb +0 -233
  56. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_notification_scope.rb +0 -205
  57. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_products.rb +0 -202
  58. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_retry_policy.rb +0 -270
  59. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy.rb +0 -201
  60. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_1_config.rb +0 -223
  61. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_1_config_additional_config.rb +0 -220
  62. data/lib/cybersource_rest_client/models/notificationsubscriptionsv1webhooks_security_policy_config.rb +0 -213
  63. data/lib/cybersource_rest_client/models/nrtfv1webhookswebhook_idreplays_by_delivery_status.rb +0 -243
  64. data/lib/cybersource_rest_client/models/replay_webhooks_request.rb +0 -201
  65. data/lib/cybersource_rest_client/models/update_webhook_request.rb +0 -314
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c2d552d7c3faee86f8084febd9aeb4ef931aaa230a0a269d454fb3495648f20
4
- data.tar.gz: 657ea7fca8300431e11b0f50654895e74c202b93cc11294af1d4a488d997c031
3
+ metadata.gz: 86c587848dbdf4e6d02e8cf9f17eb50627ab4f98a33f03fa129bda4d09e34ecc
4
+ data.tar.gz: 43ed0f4bd580a46b164b1c2e33c6d6e8d71833c09f120465561a8778322a2a41
5
5
  SHA512:
6
- metadata.gz: 8d009175cefb358aea214b7cdba3bc8619898899907ba9e1d1b7f61e509ee35a66770ca5549482a62cbef8f3f16f22d6e88bce5c9086eb12ea349958043bad79
7
- data.tar.gz: bf861a2aa834213fe68086af1ef38931dfcecac697de0b3e16f0beb1f38310b85aa4b355de752cdd21dc5ad71b7b77e00561e4b114e175a722f587ab7339a4b1
6
+ metadata.gz: 44de483b6a7e110ddf3aa8c1283ee6ffedf71786a4b96fbaf3437d39d3945733f3c0985f83bde791515a77d9616822e31810daeafaecda54dadec775c4a1bd59
7
+ data.tar.gz: 9932d78c17653775967390a2e6d5e1d01946aec3e6cdd59119db956eb6b4e2950edb61c62c1f27c06de3b9fd24f01e6f0d40422a78f09d3bd03ade58b3333004
@@ -24,7 +24,7 @@ module CyberSource
24
24
  #
25
25
  # @param batch_id Unique identification number assigned to the submitted request.
26
26
  # @param [Hash] opts the optional parameters
27
- # @return [InlineResponse2007]
27
+ # @return [InlineResponse2004]
28
28
  #
29
29
  def get_batch_report(batch_id, opts = {})
30
30
  data, status_code, headers = get_batch_report_with_http_info(batch_id, opts)
@@ -35,7 +35,7 @@ module CyberSource
35
35
  # **Get Batch Report**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) - Source record information including token ids, masked card number, expiration dates & card type. - Response record information including response code, reason, token ids, masked card number, expiration dates & card type.
36
36
  # @param batch_id Unique identification number assigned to the submitted request.
37
37
  # @param [Hash] opts the optional parameters
38
- # @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers
38
+ # @return [Array<(InlineResponse2004, Fixnum, Hash)>] InlineResponse2004 data, response status code and response headers
39
39
  def get_batch_report_with_http_info(batch_id, opts = {})
40
40
 
41
41
  if @api_client.config.debugging
@@ -87,7 +87,7 @@ module CyberSource
87
87
  :form_params => form_params,
88
88
  :body => post_body,
89
89
  :auth_names => auth_names,
90
- :return_type => 'InlineResponse2007')
90
+ :return_type => 'InlineResponse2004')
91
91
  if @api_client.config.debugging
92
92
  begin
93
93
  raise
@@ -103,7 +103,7 @@ module CyberSource
103
103
  #
104
104
  # @param batch_id Unique identification number assigned to the submitted request.
105
105
  # @param [Hash] opts the optional parameters
106
- # @return [InlineResponse2006]
106
+ # @return [InlineResponse2003]
107
107
  #
108
108
  def get_batch_status(batch_id, opts = {})
109
109
  data, status_code, headers = get_batch_status_with_http_info(batch_id, opts)
@@ -114,7 +114,7 @@ module CyberSource
114
114
  # **Get Batch Status**&lt;br&gt;This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH)
115
115
  # @param batch_id Unique identification number assigned to the submitted request.
116
116
  # @param [Hash] opts the optional parameters
117
- # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers
117
+ # @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers
118
118
  def get_batch_status_with_http_info(batch_id, opts = {})
119
119
 
120
120
  if @api_client.config.debugging
@@ -166,7 +166,7 @@ module CyberSource
166
166
  :form_params => form_params,
167
167
  :body => post_body,
168
168
  :auth_names => auth_names,
169
- :return_type => 'InlineResponse2006')
169
+ :return_type => 'InlineResponse2003')
170
170
  if @api_client.config.debugging
171
171
  begin
172
172
  raise
@@ -185,7 +185,7 @@ module CyberSource
185
185
  # @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. (default to 20)
186
186
  # @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ
187
187
  # @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ
188
- # @return [InlineResponse2005]
188
+ # @return [InlineResponse2002]
189
189
  #
190
190
  def get_batches_list(opts = {})
191
191
  data, status_code, headers = get_batches_list_with_http_info(opts)
@@ -199,7 +199,7 @@ module CyberSource
199
199
  # @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset.
200
200
  # @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ
201
201
  # @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ
202
- # @return [Array<(InlineResponse2005, Fixnum, Hash)>] InlineResponse2005 data, response status code and response headers
202
+ # @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
203
203
  def get_batches_list_with_http_info(opts = {})
204
204
 
205
205
  if @api_client.config.debugging
@@ -247,7 +247,7 @@ module CyberSource
247
247
  :form_params => form_params,
248
248
  :body => post_body,
249
249
  :auth_names => auth_names,
250
- :return_type => 'InlineResponse2005')
250
+ :return_type => 'InlineResponse2002')
251
251
  if @api_client.config.debugging
252
252
  begin
253
253
  raise
@@ -19,154 +19,8 @@ module CyberSource
19
19
  @api_client = api_client
20
20
  @api_client.set_configuration(config)
21
21
  end
22
- # Create a Webhook
23
- # Create a new webhook subscription. Before creating a webhook, ensure that a security key has been created at the top of this developer center section. You will not need to pass us back the key during the creation of the webhook, but you will receive an error if you did not already create a key or store one on file.
24
- #
25
- # @param [Hash] opts the optional parameters
26
- # @option opts [CreateWebhookRequest] :create_webhook_request The webhook payload
27
- # @return [InlineResponse2014]
28
- #
29
- # DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
30
- def create_webhook_subscription(opts = {})
31
- data, status_code, headers = create_webhook_subscription_with_http_info(opts)
32
- return data, status_code, headers
33
- end
34
-
35
- # Create a Webhook
36
- # Create a new webhook subscription. Before creating a webhook, ensure that a security key has been created at the top of this developer center section. You will not need to pass us back the key during the creation of the webhook, but you will receive an error if you did not already create a key or store one on file.
37
- # @param [Hash] opts the optional parameters
38
- # @option opts [CreateWebhookRequest] :create_webhook_request The webhook payload
39
- # @return [Array<(InlineResponse2014, Fixnum, Hash)>] InlineResponse2014 data, response status code and response headers
40
- def create_webhook_subscription_with_http_info(opts = {})
41
-
42
- if @api_client.config.debugging
43
- begin
44
- raise
45
- @api_client.config.logger.debug 'Calling API: CreateNewWebhooksApi.create_webhook_subscription ...'
46
- rescue
47
- puts 'Cannot write to log'
48
- end
49
- end
50
- # resource path
51
- local_var_path = 'notification-subscriptions/v1/webhooks'
52
-
53
- # query parameters
54
- query_params = {}
55
-
56
- # header parameters
57
- header_params = {}
58
- # HTTP header 'Accept' (if needed)
59
- header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
60
- # HTTP header 'Content-Type'
61
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
62
-
63
- # form parameters
64
- form_params = {}
65
-
66
- # http body (model)
67
- post_body = @api_client.object_to_http_body(opts[:'create_webhook_request'])
68
- sdk_tracker = SdkTracker.new
69
- post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateWebhookRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
70
- is_mle_supported_by_cybs_for_api = false
71
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["create_webhook_subscription","create_webhook_subscription_with_http_info"])
72
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
73
- end
74
- auth_names = []
75
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
76
- :header_params => header_params,
77
- :query_params => query_params,
78
- :form_params => form_params,
79
- :body => post_body,
80
- :auth_names => auth_names,
81
- :return_type => 'InlineResponse2014')
82
- if @api_client.config.debugging
83
- begin
84
- raise
85
- @api_client.config.logger.debug "API called: CreateNewWebhooksApi#create_webhook_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
- rescue
87
- puts 'Cannot write to log'
88
- end
89
- end
90
- return data, status_code, headers
91
- end
92
- # Find Products You Can Subscribe To
93
- # Retrieve a list of products and event types that your account is eligible for. These products and events are the ones that you may subscribe to in the next step of creating webhooks.
94
- #
95
- # @param organization_id The Organization Identifier.
96
- # @param [Hash] opts the optional parameters
97
- # @return [Array<InlineResponse2002>]
98
- #
99
- # DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
100
- def find_products_to_subscribe(organization_id, opts = {})
101
- data, status_code, headers = find_products_to_subscribe_with_http_info(organization_id, opts)
102
- return data, status_code, headers
103
- end
104
-
105
- # Find Products You Can Subscribe To
106
- # Retrieve a list of products and event types that your account is eligible for. These products and events are the ones that you may subscribe to in the next step of creating webhooks.
107
- # @param organization_id The Organization Identifier.
108
- # @param [Hash] opts the optional parameters
109
- # @return [Array<(Array<InlineResponse2002>, Fixnum, Hash)>] Array<InlineResponse2002> data, response status code and response headers
110
- def find_products_to_subscribe_with_http_info(organization_id, opts = {})
111
-
112
- if @api_client.config.debugging
113
- begin
114
- raise
115
- @api_client.config.logger.debug 'Calling API: CreateNewWebhooksApi.find_products_to_subscribe ...'
116
- rescue
117
- puts 'Cannot write to log'
118
- end
119
- end
120
- # verify the required parameter 'organization_id' is set
121
- if @api_client.config.client_side_validation && organization_id.nil?
122
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling CreateNewWebhooksApi.find_products_to_subscribe"
123
- end
124
- # resource path
125
- local_var_path = 'notification-subscriptions/v1/products/{organizationId}'.sub('{' + 'organizationId' + '}', organization_id.to_s)
126
-
127
- # query parameters
128
- query_params = {}
129
-
130
- # header parameters
131
- header_params = {}
132
- # HTTP header 'Accept' (if needed)
133
- header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
134
- # HTTP header 'Content-Type'
135
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
136
-
137
- # form parameters
138
- form_params = {}
139
-
140
- # http body (model)
141
- if 'GET' == 'POST'
142
- post_body = '{}'
143
- else
144
- post_body = nil
145
- end
146
- is_mle_supported_by_cybs_for_api = false
147
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["find_products_to_subscribe","find_products_to_subscribe_with_http_info"])
148
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
149
- end
150
- auth_names = []
151
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
152
- :header_params => header_params,
153
- :query_params => query_params,
154
- :form_params => form_params,
155
- :body => post_body,
156
- :auth_names => auth_names,
157
- :return_type => 'Array<InlineResponse2002>')
158
- if @api_client.config.debugging
159
- begin
160
- raise
161
- @api_client.config.logger.debug "API called: CreateNewWebhooksApi#find_products_to_subscribe\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
162
- rescue
163
- puts 'Cannot write to log'
164
- end
165
- end
166
- return data, status_code, headers
167
- end
168
22
  # Create Webhook Security Keys
169
- # Create security keys that CyberSource will use internally to connect to your servers and validate messages using a digital signature. Select the CREATE example for CyberSource to generate the key on our server and maintain it for you as well. Remeber to save the key in the API response, so that you can use it to validate messages later.
23
+ # Create security keys that CyberSource will use internally to connect to your servers and validate messages using a digital signature. Select the CREATE example for CyberSource to generate the key on our server and maintain it for you as well. Remember to save the key in the API response, so that you can use it to validate messages later.
170
24
  #
171
25
  # @param v_c_sender_organization_id Sender organization id
172
26
  # @param v_c_permissions Encoded user permissions returned by the CGK, for the entity user who initiated the boarding
@@ -182,7 +36,7 @@ module CyberSource
182
36
  end
183
37
 
184
38
  # Create Webhook Security Keys
185
- # Create security keys that CyberSource will use internally to connect to your servers and validate messages using a digital signature. Select the CREATE example for CyberSource to generate the key on our server and maintain it for you as well. Remeber to save the key in the API response, so that you can use it to validate messages later.
39
+ # Create security keys that CyberSource will use internally to connect to your servers and validate messages using a digital signature. Select the CREATE example for CyberSource to generate the key on our server and maintain it for you as well. Remember to save the key in the API response, so that you can use it to validate messages later.
186
40
  # @param v_c_sender_organization_id Sender organization id
187
41
  # @param v_c_permissions Encoded user permissions returned by the CGK, for the entity user who initiated the boarding
188
42
  # @param [Hash] opts the optional parameters
@@ -224,7 +78,7 @@ module CyberSource
224
78
  # header parameters
225
79
  header_params = {}
226
80
  # HTTP header 'Accept' (if needed)
227
- header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
81
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
228
82
  # HTTP header 'Content-Type'
229
83
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
230
84
  header_params[:'v-c-sender-organization-id'] = v_c_sender_organization_id
@@ -19,112 +19,37 @@ module CyberSource
19
19
  @api_client = api_client
20
20
  @api_client.set_configuration(config)
21
21
  end
22
- # Delete a Webhook Subscription
23
- # Delete the webhook. Please note that deleting a particular webhook does not delete the history of the webhook notifications.
22
+ # Test a Webhook Configuration
23
+ # Test the webhook configuration by sending a sample webhook. Calling this endpoint sends a sample webhook to the endpoint identified in the user's subscription. It will contain sample values for the product & eventType based on values present in your subscription along with a sample message in the payload. Based on the webhook response users can make any necessary modifications or rest assured knowing their setup is configured correctly.
24
24
  #
25
- # @param webhook_id The webhook identifier.
26
- # @param [Hash] opts the optional parameters
27
- # @return [nil]
28
- #
29
- # DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
30
- def delete_webhook_subscription(webhook_id, opts = {})
31
- data, status_code, headers = delete_webhook_subscription_with_http_info(webhook_id, opts)
32
- return data, status_code, headers
33
- end
34
-
35
- # Delete a Webhook Subscription
36
- # Delete the webhook. Please note that deleting a particular webhook does not delete the history of the webhook notifications.
37
- # @param webhook_id The webhook identifier.
38
- # @param [Hash] opts the optional parameters
39
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
40
- def delete_webhook_subscription_with_http_info(webhook_id, opts = {})
41
-
42
- if @api_client.config.debugging
43
- begin
44
- raise
45
- @api_client.config.logger.debug 'Calling API: ManageWebhooksApi.delete_webhook_subscription ...'
46
- rescue
47
- puts 'Cannot write to log'
48
- end
49
- end
50
- # verify the required parameter 'webhook_id' is set
51
- if @api_client.config.client_side_validation && webhook_id.nil?
52
- fail ArgumentError, "Missing the required parameter 'webhook_id' when calling ManageWebhooksApi.delete_webhook_subscription"
53
- end
54
- # resource path
55
- local_var_path = 'notification-subscriptions/v1/webhooks/{webhookId}'.sub('{' + 'webhookId' + '}', webhook_id.to_s)
56
-
57
- # query parameters
58
- query_params = {}
59
-
60
- # header parameters
61
- header_params = {}
62
- # HTTP header 'Accept' (if needed)
63
- header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
64
- # HTTP header 'Content-Type'
65
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
66
-
67
- # form parameters
68
- form_params = {}
69
-
70
- # http body (model)
71
- if 'DELETE' == 'POST'
72
- post_body = '{}'
73
- else
74
- post_body = nil
75
- end
76
- is_mle_supported_by_cybs_for_api = false
77
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["delete_webhook_subscription","delete_webhook_subscription_with_http_info"])
78
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
79
- end
80
- auth_names = []
81
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
82
- :header_params => header_params,
83
- :query_params => query_params,
84
- :form_params => form_params,
85
- :body => post_body,
86
- :auth_names => auth_names)
87
- if @api_client.config.debugging
88
- begin
89
- raise
90
- @api_client.config.logger.debug "API called: ManageWebhooksApi#delete_webhook_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
- rescue
92
- puts 'Cannot write to log'
93
- end
94
- end
95
- return data, status_code, headers
96
- end
97
- # Get Details On a Single Webhook
98
- # Retrieve the details of a specific webhook by supplying the webhook ID in the path.
99
- #
100
- # @param webhook_id The webhook Identifier
25
+ # @param webhook_id The Webhook Identifier.
101
26
  # @param [Hash] opts the optional parameters
102
- # @return [InlineResponse2004]
27
+ # @return [InlineResponse2014]
103
28
  #
104
29
  # DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
105
- def get_webhook_subscription_by_id(webhook_id, opts = {})
106
- data, status_code, headers = get_webhook_subscription_by_id_with_http_info(webhook_id, opts)
30
+ def notification_subscriptions_v1_webhooks_webhook_id_post(webhook_id, opts = {})
31
+ data, status_code, headers = notification_subscriptions_v1_webhooks_webhook_id_post_with_http_info(webhook_id, opts)
107
32
  return data, status_code, headers
108
33
  end
109
34
 
110
- # Get Details On a Single Webhook
111
- # Retrieve the details of a specific webhook by supplying the webhook ID in the path.
112
- # @param webhook_id The webhook Identifier
35
+ # Test a Webhook Configuration
36
+ # Test the webhook configuration by sending a sample webhook. Calling this endpoint sends a sample webhook to the endpoint identified in the user&#39;s subscription. It will contain sample values for the product &amp; eventType based on values present in your subscription along with a sample message in the payload. Based on the webhook response users can make any necessary modifications or rest assured knowing their setup is configured correctly.
37
+ # @param webhook_id The Webhook Identifier.
113
38
  # @param [Hash] opts the optional parameters
114
- # @return [Array<(InlineResponse2004, Fixnum, Hash)>] InlineResponse2004 data, response status code and response headers
115
- def get_webhook_subscription_by_id_with_http_info(webhook_id, opts = {})
39
+ # @return [Array<(InlineResponse2014, Fixnum, Hash)>] InlineResponse2014 data, response status code and response headers
40
+ def notification_subscriptions_v1_webhooks_webhook_id_post_with_http_info(webhook_id, opts = {})
116
41
 
117
42
  if @api_client.config.debugging
118
43
  begin
119
44
  raise
120
- @api_client.config.logger.debug 'Calling API: ManageWebhooksApi.get_webhook_subscription_by_id ...'
45
+ @api_client.config.logger.debug 'Calling API: ManageWebhooksApi.notification_subscriptions_v1_webhooks_webhook_id_post ...'
121
46
  rescue
122
47
  puts 'Cannot write to log'
123
48
  end
124
49
  end
125
50
  # verify the required parameter 'webhook_id' is set
126
51
  if @api_client.config.client_side_validation && webhook_id.nil?
127
- fail ArgumentError, "Missing the required parameter 'webhook_id' when calling ManageWebhooksApi.get_webhook_subscription_by_id"
52
+ fail ArgumentError, "Missing the required parameter 'webhook_id' when calling ManageWebhooksApi.notification_subscriptions_v1_webhooks_webhook_id_post"
128
53
  end
129
54
  # resource path
130
55
  local_var_path = 'notification-subscriptions/v1/webhooks/{webhookId}'.sub('{' + 'webhookId' + '}', webhook_id.to_s)
@@ -135,98 +60,7 @@ module CyberSource
135
60
  # header parameters
136
61
  header_params = {}
137
62
  # HTTP header 'Accept' (if needed)
138
- header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
139
- # HTTP header 'Content-Type'
140
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
141
-
142
- # form parameters
143
- form_params = {}
144
-
145
- # http body (model)
146
- if 'GET' == 'POST'
147
- post_body = '{}'
148
- else
149
- post_body = nil
150
- end
151
- is_mle_supported_by_cybs_for_api = false
152
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["get_webhook_subscription_by_id","get_webhook_subscription_by_id_with_http_info"])
153
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
154
- end
155
- auth_names = []
156
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
157
- :header_params => header_params,
158
- :query_params => query_params,
159
- :form_params => form_params,
160
- :body => post_body,
161
- :auth_names => auth_names,
162
- :return_type => 'InlineResponse2004')
163
- if @api_client.config.debugging
164
- begin
165
- raise
166
- @api_client.config.logger.debug "API called: ManageWebhooksApi#get_webhook_subscription_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
167
- rescue
168
- puts 'Cannot write to log'
169
- end
170
- end
171
- return data, status_code, headers
172
- end
173
- # Get Details On All Created Webhooks
174
- # Retrieve a list of all previously created webhooks.
175
- #
176
- # @param organization_id The Organization Identifier.
177
- # @param product_id The Product Identifier.
178
- # @param event_type The Event Type.
179
- # @param [Hash] opts the optional parameters
180
- # @return [Array<InlineResponse2003>]
181
- #
182
- # DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
183
- def get_webhook_subscriptions_by_org(organization_id, product_id, event_type, opts = {})
184
- data, status_code, headers = get_webhook_subscriptions_by_org_with_http_info(organization_id, product_id, event_type, opts)
185
- return data, status_code, headers
186
- end
187
-
188
- # Get Details On All Created Webhooks
189
- # Retrieve a list of all previously created webhooks.
190
- # @param organization_id The Organization Identifier.
191
- # @param product_id The Product Identifier.
192
- # @param event_type The Event Type.
193
- # @param [Hash] opts the optional parameters
194
- # @return [Array<(Array<InlineResponse2003>, Fixnum, Hash)>] Array<InlineResponse2003> data, response status code and response headers
195
- def get_webhook_subscriptions_by_org_with_http_info(organization_id, product_id, event_type, opts = {})
196
-
197
- if @api_client.config.debugging
198
- begin
199
- raise
200
- @api_client.config.logger.debug 'Calling API: ManageWebhooksApi.get_webhook_subscriptions_by_org ...'
201
- rescue
202
- puts 'Cannot write to log'
203
- end
204
- end
205
- # verify the required parameter 'organization_id' is set
206
- if @api_client.config.client_side_validation && organization_id.nil?
207
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling ManageWebhooksApi.get_webhook_subscriptions_by_org"
208
- end
209
- # verify the required parameter 'product_id' is set
210
- if @api_client.config.client_side_validation && product_id.nil?
211
- fail ArgumentError, "Missing the required parameter 'product_id' when calling ManageWebhooksApi.get_webhook_subscriptions_by_org"
212
- end
213
- # verify the required parameter 'event_type' is set
214
- if @api_client.config.client_side_validation && event_type.nil?
215
- fail ArgumentError, "Missing the required parameter 'event_type' when calling ManageWebhooksApi.get_webhook_subscriptions_by_org"
216
- end
217
- # resource path
218
- local_var_path = 'notification-subscriptions/v1/webhooks'
219
-
220
- # query parameters
221
- query_params = {}
222
- query_params[:'organizationId'] = organization_id
223
- query_params[:'productId'] = product_id
224
- query_params[:'eventType'] = event_type
225
-
226
- # header parameters
227
- header_params = {}
228
- # HTTP header 'Accept' (if needed)
229
- header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
63
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
230
64
  # HTTP header 'Content-Type'
231
65
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
232
66
 
@@ -234,27 +68,27 @@ module CyberSource
234
68
  form_params = {}
235
69
 
236
70
  # http body (model)
237
- if 'GET' == 'POST'
71
+ if 'POST' == 'POST'
238
72
  post_body = '{}'
239
73
  else
240
74
  post_body = nil
241
75
  end
242
76
  is_mle_supported_by_cybs_for_api = false
243
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["get_webhook_subscriptions_by_org","get_webhook_subscriptions_by_org_with_http_info"])
77
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["notification_subscriptions_v1_webhooks_webhook_id_post","notification_subscriptions_v1_webhooks_webhook_id_post_with_http_info"])
244
78
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
245
79
  end
246
80
  auth_names = []
247
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
81
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
248
82
  :header_params => header_params,
249
83
  :query_params => query_params,
250
84
  :form_params => form_params,
251
85
  :body => post_body,
252
86
  :auth_names => auth_names,
253
- :return_type => 'Array<InlineResponse2003>')
87
+ :return_type => 'InlineResponse2014')
254
88
  if @api_client.config.debugging
255
89
  begin
256
90
  raise
257
- @api_client.config.logger.debug "API called: ManageWebhooksApi#get_webhook_subscriptions_by_org\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
+ @api_client.config.logger.debug "API called: ManageWebhooksApi#notification_subscriptions_v1_webhooks_webhook_id_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
258
92
  rescue
259
93
  puts 'Cannot write to log'
260
94
  end
@@ -324,7 +158,7 @@ module CyberSource
324
158
  # header parameters
325
159
  header_params = {}
326
160
  # HTTP header 'Accept' (if needed)
327
- header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
161
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
328
162
  # HTTP header 'Content-Type'
329
163
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
330
164
  header_params[:'v-c-sender-organization-id'] = v_c_sender_organization_id
@@ -360,80 +194,5 @@ module CyberSource
360
194
  end
361
195
  return data, status_code, headers
362
196
  end
363
- # Update a Webhook Subscription
364
- # Update the webhook subscription using PATCH.
365
- #
366
- # @param webhook_id The Webhook Identifier.
367
- # @param [Hash] opts the optional parameters
368
- # @option opts [UpdateWebhookRequest] :update_webhook_request The webhook payload or changes to apply.
369
- # @return [nil]
370
- #
371
- # DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
372
- def update_webhook_subscription(webhook_id, opts = {})
373
- data, status_code, headers = update_webhook_subscription_with_http_info(webhook_id, opts)
374
- return data, status_code, headers
375
- end
376
-
377
- # Update a Webhook Subscription
378
- # Update the webhook subscription using PATCH.
379
- # @param webhook_id The Webhook Identifier.
380
- # @param [Hash] opts the optional parameters
381
- # @option opts [UpdateWebhookRequest] :update_webhook_request The webhook payload or changes to apply.
382
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
383
- def update_webhook_subscription_with_http_info(webhook_id, opts = {})
384
-
385
- if @api_client.config.debugging
386
- begin
387
- raise
388
- @api_client.config.logger.debug 'Calling API: ManageWebhooksApi.update_webhook_subscription ...'
389
- rescue
390
- puts 'Cannot write to log'
391
- end
392
- end
393
- # verify the required parameter 'webhook_id' is set
394
- if @api_client.config.client_side_validation && webhook_id.nil?
395
- fail ArgumentError, "Missing the required parameter 'webhook_id' when calling ManageWebhooksApi.update_webhook_subscription"
396
- end
397
- # resource path
398
- local_var_path = 'notification-subscriptions/v1/webhooks/{webhookId}'.sub('{' + 'webhookId' + '}', webhook_id.to_s)
399
-
400
- # query parameters
401
- query_params = {}
402
-
403
- # header parameters
404
- header_params = {}
405
- # HTTP header 'Accept' (if needed)
406
- header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
407
- # HTTP header 'Content-Type'
408
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
409
-
410
- # form parameters
411
- form_params = {}
412
-
413
- # http body (model)
414
- post_body = @api_client.object_to_http_body(opts[:'update_webhook_request'])
415
- sdk_tracker = SdkTracker.new
416
- post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UpdateWebhookRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
417
- is_mle_supported_by_cybs_for_api = false
418
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["update_webhook_subscription","update_webhook_subscription_with_http_info"])
419
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
420
- end
421
- auth_names = []
422
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
423
- :header_params => header_params,
424
- :query_params => query_params,
425
- :form_params => form_params,
426
- :body => post_body,
427
- :auth_names => auth_names)
428
- if @api_client.config.debugging
429
- begin
430
- raise
431
- @api_client.config.logger.debug "API called: ManageWebhooksApi#update_webhook_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
432
- rescue
433
- puts 'Cannot write to log'
434
- end
435
- end
436
- return data, status_code, headers
437
- end
438
197
  end
439
198
  end