connect-sdk-ruby 3.0.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -25,18 +25,19 @@ module Worldline
25
25
  end
26
26
 
27
27
  # Resource /!{merchantId}/hostedmandatemanagements - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/hostedmandatemanagements/create.html Create hosted mandate management}
28
+ #
28
29
  # @param body [Worldline::Connect::SDK::V1::Domain::CreateHostedMandateManagementRequest]
29
30
  # @param context [Worldline::Connect::SDK::CallContext, nil]
30
31
  # @return [Worldline::Connect::SDK::V1::Domain::CreateHostedMandateManagementResponse]
32
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
31
33
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
32
34
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
33
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
34
35
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
35
36
  # or there was a conflict (HTTP status code 404, 409 or 410)
36
37
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
37
38
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
38
39
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
39
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
40
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
40
41
  def create(body, context = nil)
41
42
  uri = instantiate_uri('/v1/{merchantId}/hostedmandatemanagements', nil)
42
43
  @communicator.post(
@@ -53,18 +54,19 @@ module Worldline
53
54
  end
54
55
 
55
56
  # Resource /!{merchantId}/hostedmandatemanagements/!{hostedMandateManagementId} - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/hostedmandatemanagements/get.html Get hosted mandate management status}
57
+ #
56
58
  # @param hosted_mandate_management_id [String]
57
59
  # @param context [Worldline::Connect::SDK::CallContext, nil]
58
60
  # @return [Worldline::Connect::SDK::V1::Domain::GetHostedMandateManagementResponse]
61
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
59
62
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
60
63
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
61
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
62
64
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
63
65
  # or there was a conflict (HTTP status code 404, 409 or 410)
64
66
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
65
67
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
66
68
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
67
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
69
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
68
70
  def get(hosted_mandate_management_id, context = nil)
69
71
  path_context = {
70
72
  'hostedMandateManagementId'.freeze => hosted_mandate_management_id,
@@ -24,18 +24,19 @@ module Worldline
24
24
  end
25
25
 
26
26
  # Resource /!{merchantId}/installments/getInstallmentsInfo - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/installments/getInstallmentsInfo.html Get installment information}
27
+ #
27
28
  # @param body [Worldline::Connect::SDK::V1::Domain::GetInstallmentRequest]
28
29
  # @param context [Worldline::Connect::SDK::CallContext, nil]
29
30
  # @return [Worldline::Connect::SDK::V1::Domain::InstallmentOptionsResponse]
31
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
30
32
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
31
33
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
32
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
33
34
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
34
35
  # or there was a conflict (HTTP status code 404, 409 or 410)
35
36
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
36
37
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
37
38
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
38
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
39
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
39
40
  def get_installments_info(body, context = nil)
40
41
  uri = instantiate_uri('/v1/{merchantId}/installments/getInstallmentsInfo', nil)
41
42
  @communicator.post(
@@ -25,18 +25,19 @@ module Worldline
25
25
  end
26
26
 
27
27
  # Resource /!{merchantId}/mandates - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/mandates/create.html Create mandate}
28
+ #
28
29
  # @param body [Worldline::Connect::SDK::V1::Domain::CreateMandateRequest]
29
30
  # @param context [Worldline::Connect::SDK::CallContext, nil]
30
31
  # @return [Worldline::Connect::SDK::V1::Domain::CreateMandateResponse]
32
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
31
33
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
32
34
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
33
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
34
35
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
35
36
  # or there was a conflict (HTTP status code 404, 409 or 410)
36
37
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
37
38
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
38
39
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
39
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
40
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
40
41
  def create(body, context = nil)
41
42
  uri = instantiate_uri('/v1/{merchantId}/mandates', nil)
42
43
  @communicator.post(
@@ -53,19 +54,20 @@ module Worldline
53
54
  end
54
55
 
55
56
  # Resource /!{merchantId}/mandates/!{uniqueMandateReference} - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/mandates/createWithMandateReference.html Create mandate with mandatereference}
57
+ #
56
58
  # @param unique_mandate_reference [String]
57
59
  # @param body [Worldline::Connect::SDK::V1::Domain::CreateMandateRequest]
58
60
  # @param context [Worldline::Connect::SDK::CallContext, nil]
59
61
  # @return [Worldline::Connect::SDK::V1::Domain::CreateMandateResponse]
62
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
60
63
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
61
64
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
62
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
63
65
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
64
66
  # or there was a conflict (HTTP status code 404, 409 or 410)
65
67
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
66
68
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
67
69
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
68
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
70
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
69
71
  def create_with_mandate_reference(unique_mandate_reference, body, context = nil)
70
72
  path_context = {
71
73
  'uniqueMandateReference'.freeze => unique_mandate_reference,
@@ -85,18 +87,19 @@ module Worldline
85
87
  end
86
88
 
87
89
  # Resource /!{merchantId}/mandates/!{uniqueMandateReference} - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/mandates/get.html Get mandate}
90
+ #
88
91
  # @param unique_mandate_reference [String]
89
92
  # @param context [Worldline::Connect::SDK::CallContext, nil]
90
93
  # @return [Worldline::Connect::SDK::V1::Domain::GetMandateResponse]
94
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
91
95
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
92
96
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
93
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
94
97
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
95
98
  # or there was a conflict (HTTP status code 404, 409 or 410)
96
99
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
97
100
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
98
101
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
99
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
102
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
100
103
  def get(unique_mandate_reference, context = nil)
101
104
  path_context = {
102
105
  'uniqueMandateReference'.freeze => unique_mandate_reference,
@@ -115,18 +118,19 @@ module Worldline
115
118
  end
116
119
 
117
120
  # Resource /!{merchantId}/mandates/!{uniqueMandateReference}/block - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/mandates/block.html Block mandate}
121
+ #
118
122
  # @param unique_mandate_reference [String]
119
123
  # @param context [Worldline::Connect::SDK::CallContext, nil]
120
124
  # @return [Worldline::Connect::SDK::V1::Domain::GetMandateResponse]
125
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
121
126
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
122
127
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
123
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
124
128
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
125
129
  # or there was a conflict (HTTP status code 404, 409 or 410)
126
130
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
127
131
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
128
132
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
129
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
133
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
130
134
  def block(unique_mandate_reference, context = nil)
131
135
  path_context = {
132
136
  'uniqueMandateReference'.freeze => unique_mandate_reference,
@@ -146,18 +150,19 @@ module Worldline
146
150
  end
147
151
 
148
152
  # Resource /!{merchantId}/mandates/!{uniqueMandateReference}/unblock - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/mandates/unblock.html Unblock mandate}
153
+ #
149
154
  # @param unique_mandate_reference [String]
150
155
  # @param context [Worldline::Connect::SDK::CallContext, nil]
151
156
  # @return [Worldline::Connect::SDK::V1::Domain::GetMandateResponse]
157
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
152
158
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
153
159
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
154
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
155
160
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
156
161
  # or there was a conflict (HTTP status code 404, 409 or 410)
157
162
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
158
163
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
159
164
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
160
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
165
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
161
166
  def unblock(unique_mandate_reference, context = nil)
162
167
  path_context = {
163
168
  'uniqueMandateReference'.freeze => unique_mandate_reference,
@@ -177,18 +182,19 @@ module Worldline
177
182
  end
178
183
 
179
184
  # Resource /!{merchantId}/mandates/!{uniqueMandateReference}/revoke - {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/mandates/revoke.html Revoke mandate}
185
+ #
180
186
  # @param unique_mandate_reference [String]
181
187
  # @param context [Worldline::Connect::SDK::CallContext, nil]
182
188
  # @return [Worldline::Connect::SDK::V1::Domain::GetMandateResponse]
189
+ # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
183
190
  # @raise [Worldline::Connect::SDK::V1::ValidationException] if the request was not correct and couldn't be processed (HTTP status code 400)
184
191
  # @raise [Worldline::Connect::SDK::V1::AuthorizationException] if the request was not allowed (HTTP status code 403)
185
- # @raise [Worldline::Connect::SDK::V1::IdempotenceException] if an idempotent request caused a conflict (HTTP status code 409)
186
192
  # @raise [Worldline::Connect::SDK::V1::ReferenceException] if an object was attempted to be referenced that doesn't exist or has been removed,
187
193
  # or there was a conflict (HTTP status code 404, 409 or 410)
188
194
  # @raise [Worldline::Connect::SDK::V1::PlatformException] if something went wrong at the Worldline Global Collect platform,
189
195
  # the Worldline Global Collect platform was unable to process a message from a downstream partner/acquirer,
190
196
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
191
- # @raise [Worldline::Connect::SDK::V1::ApiException]if the Worldline Global Collect platform returned any other error
197
+ # @raise [Worldline::Connect::SDK::V1::ApiException] if the Worldline Global Collect platform returned any other error
192
198
  def revoke(unique_mandate_reference, context = nil)
193
199
  path_context = {
194
200
  'uniqueMandateReference'.freeze => unique_mandate_reference,
@@ -35,96 +35,112 @@ module Worldline
35
35
  end
36
36
 
37
37
  # Resource /!{merchantId}/hostedcheckouts
38
+ #
38
39
  # @return [Worldline::Connect::SDK::V1::Merchant::Hostedcheckouts::HostedcheckoutsClient]
39
40
  def hostedcheckouts
40
41
  Worldline::Connect::SDK::V1::Merchant::Hostedcheckouts::HostedcheckoutsClient.new(self, nil)
41
42
  end
42
43
 
43
44
  # Resource /!{merchantId}/hostedmandatemanagements
45
+ #
44
46
  # @return [Worldline::Connect::SDK::V1::Merchant::Hostedmandatemanagements::HostedmandatemanagementsClient]
45
47
  def hostedmandatemanagements
46
48
  Worldline::Connect::SDK::V1::Merchant::Hostedmandatemanagements::HostedmandatemanagementsClient.new(self, nil)
47
49
  end
48
50
 
49
51
  # Resource /!{merchantId}/payments
52
+ #
50
53
  # @return [Worldline::Connect::SDK::V1::Merchant::Payments::PaymentsClient]
51
54
  def payments
52
55
  Worldline::Connect::SDK::V1::Merchant::Payments::PaymentsClient.new(self, nil)
53
56
  end
54
57
 
55
58
  # Resource /!{merchantId}/captures
59
+ #
56
60
  # @return [Worldline::Connect::SDK::V1::Merchant::Captures::CapturesClient]
57
61
  def captures
58
62
  Worldline::Connect::SDK::V1::Merchant::Captures::CapturesClient.new(self, nil)
59
63
  end
60
64
 
61
65
  # Resource /!{merchantId}/refunds
66
+ #
62
67
  # @return [Worldline::Connect::SDK::V1::Merchant::Refunds::RefundsClient]
63
68
  def refunds
64
69
  Worldline::Connect::SDK::V1::Merchant::Refunds::RefundsClient.new(self, nil)
65
70
  end
66
71
 
67
72
  # Resource /!{merchantId}/disputes
73
+ #
68
74
  # @return [Worldline::Connect::SDK::V1::Merchant::Disputes::DisputesClient]
69
75
  def disputes
70
76
  Worldline::Connect::SDK::V1::Merchant::Disputes::DisputesClient.new(self, nil)
71
77
  end
72
78
 
73
79
  # Resource /!{merchantId}/payouts
80
+ #
74
81
  # @return [Worldline::Connect::SDK::V1::Merchant::Payouts::PayoutsClient]
75
82
  def payouts
76
83
  Worldline::Connect::SDK::V1::Merchant::Payouts::PayoutsClient.new(self, nil)
77
84
  end
78
85
 
79
86
  # Resource /!{merchantId}/productgroups
87
+ #
80
88
  # @return [Worldline::Connect::SDK::V1::Merchant::Productgroups::ProductgroupsClient]
81
89
  def productgroups
82
90
  Worldline::Connect::SDK::V1::Merchant::Productgroups::ProductgroupsClient.new(self, nil)
83
91
  end
84
92
 
85
93
  # Resource /!{merchantId}/products
94
+ #
86
95
  # @return [Worldline::Connect::SDK::V1::Merchant::Products::ProductsClient]
87
96
  def products
88
97
  Worldline::Connect::SDK::V1::Merchant::Products::ProductsClient.new(self, nil)
89
98
  end
90
99
 
91
100
  # Resource /!{merchantId}/riskassessments
101
+ #
92
102
  # @return [Worldline::Connect::SDK::V1::Merchant::Riskassessments::RiskassessmentsClient]
93
103
  def riskassessments
94
104
  Worldline::Connect::SDK::V1::Merchant::Riskassessments::RiskassessmentsClient.new(self, nil)
95
105
  end
96
106
 
97
107
  # Resource /!{merchantId}/services
108
+ #
98
109
  # @return [Worldline::Connect::SDK::V1::Merchant::Services::ServicesClient]
99
110
  def services
100
111
  Worldline::Connect::SDK::V1::Merchant::Services::ServicesClient.new(self, nil)
101
112
  end
102
113
 
103
114
  # Resource /!{merchantId}/tokens
115
+ #
104
116
  # @return [Worldline::Connect::SDK::V1::Merchant::Tokens::TokensClient]
105
117
  def tokens
106
118
  Worldline::Connect::SDK::V1::Merchant::Tokens::TokensClient.new(self, nil)
107
119
  end
108
120
 
109
121
  # Resource /!{merchantId}/mandates
122
+ #
110
123
  # @return [Worldline::Connect::SDK::V1::Merchant::Mandates::MandatesClient]
111
124
  def mandates
112
125
  Worldline::Connect::SDK::V1::Merchant::Mandates::MandatesClient.new(self, nil)
113
126
  end
114
127
 
115
128
  # Resource /!{merchantId}/sessions
129
+ #
116
130
  # @return [Worldline::Connect::SDK::V1::Merchant::Sessions::SessionsClient]
117
131
  def sessions
118
132
  Worldline::Connect::SDK::V1::Merchant::Sessions::SessionsClient.new(self, nil)
119
133
  end
120
134
 
121
135
  # Resource /!{merchantId}/installments
136
+ #
122
137
  # @return [Worldline::Connect::SDK::V1::Merchant::Installments::InstallmentsClient]
123
138
  def installments
124
139
  Worldline::Connect::SDK::V1::Merchant::Installments::InstallmentsClient.new(self, nil)
125
140
  end
126
141
 
127
142
  # Resource /!{merchantId}/files
143
+ #
128
144
  # @return [Worldline::Connect::SDK::V1::Merchant::Files::FilesClient]
129
145
  def files
130
146
  Worldline::Connect::SDK::V1::Merchant::Files::FilesClient.new(self, nil)
@@ -12,6 +12,7 @@ module Worldline
12
12
  module Merchant
13
13
  module Payments
14
14
  # Query parameters for {https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/ruby/payments/find.html Find payments}
15
+ #
15
16
  # @attr [String] hosted_checkout_id
16
17
  # @attr [String] merchant_reference
17
18
  # @attr [Integer] merchant_order_id