connect-sdk-ruby 3.0.0 → 3.1.0

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 (82) hide show
  1. checksums.yaml +4 -4
  2. data/connect-sdk-ruby.gemspec +1 -1
  3. data/examples/v1/merchant/captures/create_refund_capture_example.rb +3 -3
  4. data/examples/v1/merchant/payments/create_payment_example.rb +3 -3
  5. data/examples/v1/merchant/payments/refund_payment_example.rb +3 -3
  6. data/examples/v1/merchant/payouts/create_payout_example.rb +3 -3
  7. data/lib/worldline/connect/sdk/communication/metadata_provider.rb +1 -1
  8. data/lib/worldline/connect/sdk/v1/api_exception.rb +5 -7
  9. data/lib/worldline/connect/sdk/v1/authorization_exception.rb +3 -3
  10. data/lib/worldline/connect/sdk/v1/declined_payment_exception.rb +12 -23
  11. data/lib/worldline/connect/sdk/v1/declined_payout_exception.rb +13 -24
  12. data/lib/worldline/connect/sdk/v1/declined_refund_exception.rb +13 -24
  13. data/lib/worldline/connect/sdk/v1/declined_transaction_exception.rb +2 -2
  14. data/lib/worldline/connect/sdk/v1/domain/abstract_card_payment_method_specific_input.rb +0 -3
  15. data/lib/worldline/connect/sdk/v1/domain/abstract_sepa_direct_debit_payment_product771_specific_input.rb +0 -1
  16. data/lib/worldline/connect/sdk/v1/domain/additional_order_input.rb +0 -3
  17. data/lib/worldline/connect/sdk/v1/domain/airline_data.rb +0 -1
  18. data/lib/worldline/connect/sdk/v1/domain/airline_flight_leg.rb +0 -1
  19. data/lib/worldline/connect/sdk/v1/domain/bank_transfer_payout_method_specific_input.rb +0 -1
  20. data/lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_input.rb +0 -2
  21. data/lib/worldline/connect/sdk/v1/domain/card_payment_method_specific_output.rb +7 -0
  22. data/lib/worldline/connect/sdk/v1/domain/cash_payment_method_specific_input.rb +0 -1
  23. data/lib/worldline/connect/sdk/v1/domain/cash_payment_product1503_specific_input.rb +0 -1
  24. data/lib/worldline/connect/sdk/v1/domain/create_payout_request.rb +0 -8
  25. data/lib/worldline/connect/sdk/v1/domain/created_payment_output.rb +0 -1
  26. data/lib/worldline/connect/sdk/v1/domain/customer.rb +0 -1
  27. data/lib/worldline/connect/sdk/v1/domain/customer_base.rb +0 -1
  28. data/lib/worldline/connect/sdk/v1/domain/customer_risk_assessment.rb +0 -1
  29. data/lib/worldline/connect/sdk/v1/domain/decrypted_payment_data.rb +0 -1
  30. data/lib/worldline/connect/sdk/v1/domain/device_render_options.rb +0 -1
  31. data/lib/worldline/connect/sdk/v1/domain/external_cardholder_authentication_data.rb +0 -1
  32. data/lib/worldline/connect/sdk/v1/domain/fraud_fields.rb +0 -12
  33. data/lib/worldline/connect/sdk/v1/domain/fraud_fields_shipping_details.rb +0 -3
  34. data/lib/worldline/connect/sdk/v1/domain/level3_summary_data.rb +0 -3
  35. data/lib/worldline/connect/sdk/v1/domain/line_item.rb +0 -1
  36. data/lib/worldline/connect/sdk/v1/domain/loan_recipient.rb +0 -5
  37. data/lib/worldline/connect/sdk/v1/domain/order.rb +0 -2
  38. data/lib/worldline/connect/sdk/v1/domain/order_line_details.rb +7 -0
  39. data/lib/worldline/connect/sdk/v1/domain/payment_approval_response.rb +0 -1
  40. data/lib/worldline/connect/sdk/v1/domain/redirect_payment_method_specific_input.rb +0 -1
  41. data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product809_specific_input.rb +0 -1
  42. data/lib/worldline/connect/sdk/v1/domain/redirect_payment_product840_specific_input.rb +0 -1
  43. data/lib/worldline/connect/sdk/v1/domain/shipping.rb +7 -0
  44. data/lib/worldline/connect/sdk/v1/domain/value_mapping_element.rb +0 -1
  45. data/lib/worldline/connect/sdk/v1/exception_factory.rb +19 -14
  46. data/lib/worldline/connect/sdk/v1/idempotence_exception.rb +2 -3
  47. data/lib/worldline/connect/sdk/v1/merchant/captures/captures_client.rb +6 -4
  48. data/lib/worldline/connect/sdk/v1/merchant/disputes/disputes_client.rb +12 -8
  49. data/lib/worldline/connect/sdk/v1/merchant/disputes/upload_file_request.rb +2 -1
  50. data/lib/worldline/connect/sdk/v1/merchant/files/files_client.rb +3 -2
  51. data/lib/worldline/connect/sdk/v1/merchant/hostedcheckouts/hostedcheckouts_client.rb +9 -6
  52. data/lib/worldline/connect/sdk/v1/merchant/hostedmandatemanagements/hostedmandatemanagements_client.rb +6 -4
  53. data/lib/worldline/connect/sdk/v1/merchant/installments/installments_client.rb +3 -2
  54. data/lib/worldline/connect/sdk/v1/merchant/mandates/mandates_client.rb +18 -12
  55. data/lib/worldline/connect/sdk/v1/merchant/merchant_client.rb +16 -0
  56. data/lib/worldline/connect/sdk/v1/merchant/payments/find_payments_params.rb +1 -0
  57. data/lib/worldline/connect/sdk/v1/merchant/payments/payments_client.rb +51 -34
  58. data/lib/worldline/connect/sdk/v1/merchant/payouts/find_payouts_params.rb +1 -0
  59. data/lib/worldline/connect/sdk/v1/merchant/payouts/payouts_client.rb +18 -12
  60. data/lib/worldline/connect/sdk/v1/merchant/productgroups/find_productgroups_params.rb +1 -0
  61. data/lib/worldline/connect/sdk/v1/merchant/productgroups/get_productgroup_params.rb +1 -0
  62. data/lib/worldline/connect/sdk/v1/merchant/productgroups/productgroups_client.rb +9 -6
  63. data/lib/worldline/connect/sdk/v1/merchant/products/directory_params.rb +1 -0
  64. data/lib/worldline/connect/sdk/v1/merchant/products/find_products_params.rb +1 -0
  65. data/lib/worldline/connect/sdk/v1/merchant/products/get_product_params.rb +1 -0
  66. data/lib/worldline/connect/sdk/v1/merchant/products/networks_params.rb +1 -0
  67. data/lib/worldline/connect/sdk/v1/merchant/products/products_client.rb +21 -14
  68. data/lib/worldline/connect/sdk/v1/merchant/refunds/find_refunds_params.rb +1 -0
  69. data/lib/worldline/connect/sdk/v1/merchant/refunds/refunds_client.rb +15 -10
  70. data/lib/worldline/connect/sdk/v1/merchant/riskassessments/riskassessments_client.rb +6 -4
  71. data/lib/worldline/connect/sdk/v1/merchant/services/convert_amount_params.rb +1 -0
  72. data/lib/worldline/connect/sdk/v1/merchant/services/privacypolicy_params.rb +1 -0
  73. data/lib/worldline/connect/sdk/v1/merchant/services/services_client.rb +15 -10
  74. data/lib/worldline/connect/sdk/v1/merchant/sessions/sessions_client.rb +3 -2
  75. data/lib/worldline/connect/sdk/v1/merchant/tokens/delete_token_params.rb +1 -0
  76. data/lib/worldline/connect/sdk/v1/merchant/tokens/tokens_client.rb +15 -10
  77. data/lib/worldline/connect/sdk/v1/platform_exception.rb +2 -4
  78. data/lib/worldline/connect/sdk/v1/reference_exception.rb +1 -2
  79. data/lib/worldline/connect/sdk/v1/v1_client.rb +1 -0
  80. data/lib/worldline/connect/sdk/v1/validation_exception.rb +2 -3
  81. data/lib/worldline/connect/sdk/v1/webhooks/v1_webhooks_factory.rb +1 -0
  82. metadata +2 -2
@@ -41,19 +41,20 @@ module Worldline
41
41
  end
42
42
 
43
43
  # Resource /!{merchantId}/payments - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/create.html Create payment}
44
+ #
44
45
  # @param body [Worldline::Connect::SDK::V1::Domain::CreatePaymentRequest]
45
46
  # @param context [Worldline::Connect::SDK::CallContext, nil]
46
47
  # @return [Worldline::Connect::SDK::V1::Domain::CreatePaymentResponse]
47
48
  # @raise [Worldline::Connect::SDK::V1::DeclinedPaymentException] if the Worldline Global Collect platform declined / rejected the payment. The payment result will be available from the exception.
49
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
48
50
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
49
51
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
50
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
51
52
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
52
53
  # or there was a conflict (HTTP status code 404, 409 or 410)
53
54
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
54
55
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
55
56
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
56
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
57
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
57
58
  def create(body, context = nil)
58
59
  uri = instantiate_uri('/v1/{merchantId}/payments', nil)
59
60
  @communicator.post(
@@ -70,18 +71,19 @@ module Worldline
70
71
  end
71
72
 
72
73
  # Resource /!{merchantId}/payments - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/find.html Find payments}
74
+ #
73
75
  # @param query [Worldline::Connect::SDK::V1::Merchant::Payments::FindPaymentsParams]
74
76
  # @param context [Worldline::Connect::SDK::CallContext, nil]
75
77
  # @return [Worldline::Connect::SDK::V1::Domain::FindPaymentsResponse]
78
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
76
79
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
77
80
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
78
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
79
81
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
80
82
  # or there was a conflict (HTTP status code 404, 409 or 410)
81
83
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
82
84
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
83
85
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
84
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
86
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
85
87
  def find(query, context = nil)
86
88
  uri = instantiate_uri('/v1/{merchantId}/payments', nil)
87
89
  @communicator.get(
@@ -97,18 +99,19 @@ module Worldline
97
99
  end
98
100
 
99
101
  # Resource /!{merchantId}/payments/!{paymentId} - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/get.html Get payment}
102
+ #
100
103
  # @param payment_id [String]
101
104
  # @param context [Worldline::Connect::SDK::CallContext, nil]
102
105
  # @return [Worldline::Connect::SDK::V1::Domain::PaymentResponse]
106
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
103
107
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
104
108
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
105
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
106
109
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
107
110
  # or there was a conflict (HTTP status code 404, 409 or 410)
108
111
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
109
112
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
110
113
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
111
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
114
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
112
115
  def get(payment_id, context = nil)
113
116
  path_context = {
114
117
  'paymentId'.freeze => payment_id,
@@ -127,19 +130,20 @@ module Worldline
127
130
  end
128
131
 
129
132
  # Resource /!{merchantId}/payments/!{paymentId}/complete - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/complete.html Complete payment}
133
+ #
130
134
  # @param payment_id [String]
131
135
  # @param body [Worldline::Connect::SDK::V1::Domain::CompletePaymentRequest]
132
136
  # @param context [Worldline::Connect::SDK::CallContext, nil]
133
137
  # @return [Worldline::Connect::SDK::V1::Domain::CompletePaymentResponse]
138
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
134
139
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
135
140
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
136
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
137
141
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
138
142
  # or there was a conflict (HTTP status code 404, 409 or 410)
139
143
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
140
144
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
141
145
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
142
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
146
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
143
147
  def complete(payment_id, body, context = nil)
144
148
  path_context = {
145
149
  'paymentId'.freeze => payment_id,
@@ -159,18 +163,19 @@ module Worldline
159
163
  end
160
164
 
161
165
  # Resource /!{merchantId}/payments/!{paymentId}/thirdpartystatus - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/thirdPartyStatus.html Third party status poll}
166
+ #
162
167
  # @param payment_id [String]
163
168
  # @param context [Worldline::Connect::SDK::CallContext, nil]
164
169
  # @return [Worldline::Connect::SDK::V1::Domain::ThirdPartyStatusResponse]
170
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
165
171
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
166
172
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
167
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
168
173
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
169
174
  # or there was a conflict (HTTP status code 404, 409 or 410)
170
175
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
171
176
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
172
177
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
173
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
178
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
174
179
  def third_party_status(payment_id, context = nil)
175
180
  path_context = {
176
181
  'paymentId'.freeze => payment_id,
@@ -189,19 +194,20 @@ module Worldline
189
194
  end
190
195
 
191
196
  # Resource /!{merchantId}/payments/!{paymentId}/tokenize - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/tokenize.html Create a token from payment}
197
+ #
192
198
  # @param payment_id [String]
193
199
  # @param body [Worldline::Connect::SDK::V1::Domain::TokenizePaymentRequest]
194
200
  # @param context [Worldline::Connect::SDK::CallContext, nil]
195
201
  # @return [Worldline::Connect::SDK::V1::Domain::CreateTokenResponse]
202
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
196
203
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
197
204
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
198
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
199
205
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
200
206
  # or there was a conflict (HTTP status code 404, 409 or 410)
201
207
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
202
208
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
203
209
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
204
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
210
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
205
211
  def tokenize(payment_id, body, context = nil)
206
212
  path_context = {
207
213
  'paymentId'.freeze => payment_id,
@@ -221,18 +227,19 @@ module Worldline
221
227
  end
222
228
 
223
229
  # Resource /!{merchantId}/payments/!{paymentId}/processchallenged - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/processchallenged.html Approves challenged payment}
230
+ #
224
231
  # @param payment_id [String]
225
232
  # @param context [Worldline::Connect::SDK::CallContext, nil]
226
233
  # @return [Worldline::Connect::SDK::V1::Domain::PaymentResponse]
234
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
227
235
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
228
236
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
229
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
230
237
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
231
238
  # or there was a conflict (HTTP status code 404, 409 or 410)
232
239
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
233
240
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
234
241
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
235
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
242
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
236
243
  def processchallenged(payment_id, context = nil)
237
244
  path_context = {
238
245
  'paymentId'.freeze => payment_id,
@@ -252,19 +259,20 @@ module Worldline
252
259
  end
253
260
 
254
261
  # Resource /!{merchantId}/payments/!{paymentId}/approve - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/approve.html Approve payment}
262
+ #
255
263
  # @param payment_id [String]
256
264
  # @param body [Worldline::Connect::SDK::V1::Domain::ApprovePaymentRequest]
257
265
  # @param context [Worldline::Connect::SDK::CallContext, nil]
258
266
  # @return [Worldline::Connect::SDK::V1::Domain::PaymentApprovalResponse]
267
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
259
268
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
260
269
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
261
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
262
270
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
263
271
  # or there was a conflict (HTTP status code 404, 409 or 410)
264
272
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
265
273
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
266
274
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
267
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
275
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
268
276
  def approve(payment_id, body, context = nil)
269
277
  path_context = {
270
278
  'paymentId'.freeze => payment_id,
@@ -284,19 +292,20 @@ module Worldline
284
292
  end
285
293
 
286
294
  # Resource /!{merchantId}/payments/!{paymentId}/capture - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/capture.html Capture payment}
295
+ #
287
296
  # @param payment_id [String]
288
297
  # @param body [Worldline::Connect::SDK::V1::Domain::CapturePaymentRequest]
289
298
  # @param context [Worldline::Connect::SDK::CallContext, nil]
290
299
  # @return [Worldline::Connect::SDK::V1::Domain::CaptureResponse]
300
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
291
301
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
292
302
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
293
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
294
303
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
295
304
  # or there was a conflict (HTTP status code 404, 409 or 410)
296
305
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
297
306
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
298
307
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
299
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
308
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
300
309
  def capture(payment_id, body, context = nil)
301
310
  path_context = {
302
311
  'paymentId'.freeze => payment_id,
@@ -316,18 +325,19 @@ module Worldline
316
325
  end
317
326
 
318
327
  # Resource /!{merchantId}/payments/!{paymentId}/cancelapproval - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/cancelapproval.html Undo capture payment}
328
+ #
319
329
  # @param payment_id [String]
320
330
  # @param context [Worldline::Connect::SDK::CallContext, nil]
321
331
  # @return [Worldline::Connect::SDK::V1::Domain::CancelApprovalPaymentResponse]
332
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
322
333
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
323
334
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
324
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
325
335
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
326
336
  # or there was a conflict (HTTP status code 404, 409 or 410)
327
337
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
328
338
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
329
339
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
330
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
340
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
331
341
  def cancelapproval(payment_id, context = nil)
332
342
  path_context = {
333
343
  'paymentId'.freeze => payment_id,
@@ -347,18 +357,19 @@ module Worldline
347
357
  end
348
358
 
349
359
  # Resource /!{merchantId}/payments/!{paymentId}/captures - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/captures.html Get captures of payment}
360
+ #
350
361
  # @param payment_id [String]
351
362
  # @param context [Worldline::Connect::SDK::CallContext, nil]
352
363
  # @return [Worldline::Connect::SDK::V1::Domain::CapturesResponse]
364
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
353
365
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
354
366
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
355
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
356
367
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
357
368
  # or there was a conflict (HTTP status code 404, 409 or 410)
358
369
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
359
370
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
360
371
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
361
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
372
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
362
373
  def captures(payment_id, context = nil)
363
374
  path_context = {
364
375
  'paymentId'.freeze => payment_id,
@@ -377,20 +388,21 @@ module Worldline
377
388
  end
378
389
 
379
390
  # Resource /!{merchantId}/payments/!{paymentId}/refund - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/refund.html Create refund}
391
+ #
380
392
  # @param payment_id [String]
381
393
  # @param body [Worldline::Connect::SDK::V1::Domain::RefundRequest]
382
394
  # @param context [Worldline::Connect::SDK::CallContext, nil]
383
395
  # @return [Worldline::Connect::SDK::V1::Domain::RefundResponse]
384
396
  # @raise [Worldline::Connect::SDK::V1::DeclinedRefundException] if the Worldline Global Collect platform declined / rejected the refund. The refund result will be available from the exception.
397
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
385
398
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
386
399
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
387
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
388
400
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
389
401
  # or there was a conflict (HTTP status code 404, 409 or 410)
390
402
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
391
403
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
392
404
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
393
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
405
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
394
406
  def refund(payment_id, body, context = nil)
395
407
  path_context = {
396
408
  'paymentId'.freeze => payment_id,
@@ -410,18 +422,19 @@ module Worldline
410
422
  end
411
423
 
412
424
  # Resource /!{merchantId}/payments/!{paymentId}/refunds - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/refunds.html Get refunds of payment}
425
+ #
413
426
  # @param payment_id [String]
414
427
  # @param context [Worldline::Connect::SDK::CallContext, nil]
415
428
  # @return [Worldline::Connect::SDK::V1::Domain::RefundsResponse]
429
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
416
430
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
417
431
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
418
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
419
432
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
420
433
  # or there was a conflict (HTTP status code 404, 409 or 410)
421
434
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
422
435
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
423
436
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
424
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
437
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
425
438
  def refunds(payment_id, context = nil)
426
439
  path_context = {
427
440
  'paymentId'.freeze => payment_id,
@@ -440,18 +453,19 @@ module Worldline
440
453
  end
441
454
 
442
455
  # Resource /!{merchantId}/payments/!{paymentId}/cancel - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/cancel.html Cancel payment}
456
+ #
443
457
  # @param payment_id [String]
444
458
  # @param context [Worldline::Connect::SDK::CallContext, nil]
445
459
  # @return [Worldline::Connect::SDK::V1::Domain::CancelPaymentResponse]
460
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
446
461
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
447
462
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
448
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
449
463
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
450
464
  # or there was a conflict (HTTP status code 404, 409 or 410)
451
465
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
452
466
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
453
467
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
454
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
468
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
455
469
  def cancel(payment_id, context = nil)
456
470
  path_context = {
457
471
  'paymentId'.freeze => payment_id,
@@ -471,19 +485,20 @@ module Worldline
471
485
  end
472
486
 
473
487
  # Resource /!{merchantId}/payments/!{paymentId}/dispute - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/dispute.html Create dispute}
488
+ #
474
489
  # @param payment_id [String]
475
490
  # @param body [Worldline::Connect::SDK::V1::Domain::CreateDisputeRequest]
476
491
  # @param context [Worldline::Connect::SDK::CallContext, nil]
477
492
  # @return [Worldline::Connect::SDK::V1::Domain::DisputeResponse]
493
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
478
494
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
479
495
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
480
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
481
496
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
482
497
  # or there was a conflict (HTTP status code 404, 409 or 410)
483
498
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
484
499
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
485
500
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
486
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
501
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
487
502
  def dispute(payment_id, body, context = nil)
488
503
  path_context = {
489
504
  'paymentId'.freeze => payment_id,
@@ -503,18 +518,19 @@ module Worldline
503
518
  end
504
519
 
505
520
  # Resource /!{merchantId}/payments/!{paymentId}/disputes - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/disputes.html Get disputes}
521
+ #
506
522
  # @param payment_id [String]
507
523
  # @param context [Worldline::Connect::SDK::CallContext, nil]
508
524
  # @return [Worldline::Connect::SDK::V1::Domain::DisputesResponse]
525
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
509
526
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
510
527
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
511
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
512
528
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
513
529
  # or there was a conflict (HTTP status code 404, 409 or 410)
514
530
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
515
531
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
516
532
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
517
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
533
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
518
534
  def disputes(payment_id, context = nil)
519
535
  path_context = {
520
536
  'paymentId'.freeze => payment_id,
@@ -533,18 +549,19 @@ module Worldline
533
549
  end
534
550
 
535
551
  # Resource /!{merchantId}/payments/!{paymentId}/devicefingerprint - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/devicefingerprint.html Get Device Fingerprint details}
552
+ #
536
553
  # @param payment_id [String]
537
554
  # @param context [Worldline::Connect::SDK::CallContext, nil]
538
555
  # @return [Worldline::Connect::SDK::V1::Domain::DeviceFingerprintDetails]
556
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
539
557
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
540
558
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
541
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
542
559
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
543
560
  # or there was a conflict (HTTP status code 404, 409 or 410)
544
561
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
545
562
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
546
563
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
547
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
564
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
548
565
  def devicefingerprint(payment_id, context = nil)
549
566
  path_context = {
550
567
  'paymentId'.freeze => payment_id,
@@ -12,6 +12,7 @@ module Worldline
12
12
  module Merchant
13
13
  module Payouts
14
14
  # Query parameters for {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payouts/find.html Find payouts}
15
+ #
15
16
  # @attr [String] merchant_reference
16
17
  # @attr [Integer] merchant_order_id
17
18
  # @attr [Integer] offset
@@ -26,19 +26,20 @@ module Worldline
26
26
  end
27
27
 
28
28
  # Resource /!{merchantId}/payouts - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payouts/create.html Create payout}
29
+ #
29
30
  # @param body [Worldline::Connect::SDK::V1::Domain::CreatePayoutRequest]
30
31
  # @param context [Worldline::Connect::SDK::CallContext, nil]
31
32
  # @return [Worldline::Connect::SDK::V1::Domain::PayoutResponse]
32
33
  # @raise [Worldline::Connect::SDK::V1::DeclinedPayoutException] if the Worldline Global Collect platform declined / rejected the payout. The payout result will be available from the exception.
34
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
33
35
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
34
36
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
35
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
36
37
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
37
38
  # or there was a conflict (HTTP status code 404, 409 or 410)
38
39
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
39
40
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
40
41
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
41
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
42
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
42
43
  def create(body, context = nil)
43
44
  uri = instantiate_uri('/v1/{merchantId}/payouts', nil)
44
45
  @communicator.post(
@@ -55,18 +56,19 @@ module Worldline
55
56
  end
56
57
 
57
58
  # Resource /!{merchantId}/payouts - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payouts/find.html Find payouts}
59
+ #
58
60
  # @param query [Worldline::Connect::SDK::V1::Merchant::Payouts::FindPayoutsParams]
59
61
  # @param context [Worldline::Connect::SDK::CallContext, nil]
60
62
  # @return [Worldline::Connect::SDK::V1::Domain::FindPayoutsResponse]
63
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
61
64
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
62
65
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
63
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
64
66
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
65
67
  # or there was a conflict (HTTP status code 404, 409 or 410)
66
68
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
67
69
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
68
70
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
69
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
71
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
70
72
  def find(query, context = nil)
71
73
  uri = instantiate_uri('/v1/{merchantId}/payouts', nil)
72
74
  @communicator.get(
@@ -82,18 +84,19 @@ module Worldline
82
84
  end
83
85
 
84
86
  # Resource /!{merchantId}/payouts/!{payoutId} - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payouts/get.html Get payout}
87
+ #
85
88
  # @param payout_id [String]
86
89
  # @param context [Worldline::Connect::SDK::CallContext, nil]
87
90
  # @return [Worldline::Connect::SDK::V1::Domain::PayoutResponse]
91
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
88
92
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
89
93
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
90
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
91
94
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
92
95
  # or there was a conflict (HTTP status code 404, 409 or 410)
93
96
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
94
97
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
95
98
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
96
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
99
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
97
100
  def get(payout_id, context = nil)
98
101
  path_context = {
99
102
  'payoutId'.freeze => payout_id,
@@ -112,19 +115,20 @@ module Worldline
112
115
  end
113
116
 
114
117
  # Resource /!{merchantId}/payouts/!{payoutId}/approve - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payouts/approve.html Approve payout}
118
+ #
115
119
  # @param payout_id [String]
116
120
  # @param body [Worldline::Connect::SDK::V1::Domain::ApprovePayoutRequest]
117
121
  # @param context [Worldline::Connect::SDK::CallContext, nil]
118
122
  # @return [Worldline::Connect::SDK::V1::Domain::PayoutResponse]
123
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
119
124
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
120
125
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
121
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
122
126
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
123
127
  # or there was a conflict (HTTP status code 404, 409 or 410)
124
128
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
125
129
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
126
130
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
127
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
131
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
128
132
  def approve(payout_id, body, context = nil)
129
133
  path_context = {
130
134
  'payoutId'.freeze => payout_id,
@@ -144,17 +148,18 @@ module Worldline
144
148
  end
145
149
 
146
150
  # Resource /!{merchantId}/payouts/!{payoutId}/cancel - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payouts/cancel.html Cancel payout}
151
+ #
147
152
  # @param payout_id [String]
148
153
  # @param context [Worldline::Connect::SDK::CallContext, nil]
154
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
149
155
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
150
156
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
151
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
152
157
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
153
158
  # or there was a conflict (HTTP status code 404, 409 or 410)
154
159
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
155
160
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
156
161
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
157
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
162
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
158
163
  def cancel(payout_id, context = nil)
159
164
  path_context = {
160
165
  'payoutId'.freeze => payout_id,
@@ -174,17 +179,18 @@ module Worldline
174
179
  end
175
180
 
176
181
  # Resource /!{merchantId}/payouts/!{payoutId}/cancelapproval - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payouts/cancelapproval.html Undo approve payout}
182
+ #
177
183
  # @param payout_id [String]
178
184
  # @param context [Worldline::Connect::SDK::CallContext, nil]
185
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
179
186
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
180
187
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
181
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
182
188
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
183
189
  # or there was a conflict (HTTP status code 404, 409 or 410)
184
190
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
185
191
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
186
192
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
187
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
193
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
188
194
  def cancelapproval(payout_id, context = nil)
189
195
  path_context = {
190
196
  'payoutId'.freeze => payout_id,
@@ -12,6 +12,7 @@ module Worldline
12
12
  module Merchant
13
13
  module Productgroups
14
14
  # Query parameters for {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/productgroups/find.html Get payment product groups}
15
+ #
15
16
  # @attr [String] country_code
16
17
  # @attr [String] currency_code
17
18
  # @attr [String] locale
@@ -12,6 +12,7 @@ module Worldline
12
12
  module Merchant
13
13
  module Productgroups
14
14
  # Query parameters for {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/productgroups/get.html Get payment product group}
15
+ #
15
16
  # @attr [String] country_code
16
17
  # @attr [String] currency_code
17
18
  # @attr [String] locale