payabli 2.2.20 → 2.2.21

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 (58) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +4 -3
  3. data/LICENSE.md +5 -6
  4. data/README.md +6 -0
  5. data/lib/payabli/bill/client.rb +11 -11
  6. data/lib/payabli/boarding/client.rb +10 -10
  7. data/lib/payabli/charge_backs/client.rb +3 -3
  8. data/lib/payabli/client.rb +11 -1
  9. data/lib/payabli/cloud/client.rb +4 -4
  10. data/lib/payabli/customer/client.rb +6 -6
  11. data/lib/payabli/export/client.rb +29 -29
  12. data/lib/payabli/ghost_card/client.rb +99 -0
  13. data/lib/payabli/ghost_card/types/card_status.rb +16 -0
  14. data/lib/payabli/ghost_card/types/create_ghost_card_request_body.rb +27 -0
  15. data/lib/payabli/ghost_card/types/create_ghost_card_response.rb +14 -0
  16. data/lib/payabli/ghost_card/types/create_ghost_card_response_data.rb +13 -0
  17. data/lib/payabli/ghost_card/types/update_card_request_body.rb +13 -0
  18. data/lib/payabli/hosted_payment_pages/client.rb +3 -3
  19. data/lib/payabli/import/client.rb +3 -3
  20. data/lib/payabli/invoice/client.rb +11 -11
  21. data/lib/payabli/line_item/client.rb +5 -5
  22. data/lib/payabli/money_in/client.rb +13 -13
  23. data/lib/payabli/money_out/client.rb +7 -7
  24. data/lib/payabli/notification/client.rb +4 -4
  25. data/lib/payabli/notificationlogs/client.rb +2 -2
  26. data/lib/payabli/ocr/client.rb +2 -2
  27. data/lib/payabli/organization/client.rb +6 -6
  28. data/lib/payabli/payment_link/client.rb +11 -11
  29. data/lib/payabli/payment_method_domain/client.rb +5 -5
  30. data/lib/payabli/payout_subscription/client.rb +160 -0
  31. data/lib/payabli/payout_subscription/types/add_payout_subscription_response.rb +15 -0
  32. data/lib/payabli/payout_subscription/types/delete_payout_subscription_response.rb +14 -0
  33. data/lib/payabli/payout_subscription/types/get_payout_subscription_response.rb +14 -0
  34. data/lib/payabli/payout_subscription/types/payout_payment_detail.rb +24 -0
  35. data/lib/payabli/payout_subscription/types/payout_schedule_detail.rb +13 -0
  36. data/lib/payabli/payout_subscription/types/payout_set_pause.rb +25 -0
  37. data/lib/payabli/payout_subscription/types/payout_subscription_query_record.rb +39 -0
  38. data/lib/payabli/payout_subscription/types/payout_subscription_query_record_pascal.rb +39 -0
  39. data/lib/payabli/payout_subscription/types/payout_subscription_request_body.rb +20 -0
  40. data/lib/payabli/payout_subscription/types/query_payout_subscription_response.rb +13 -0
  41. data/lib/payabli/payout_subscription/types/request_payout_schedule.rb +12 -0
  42. data/lib/payabli/payout_subscription/types/update_payout_subscription_body.rb +14 -0
  43. data/lib/payabli/payout_subscription/types/update_payout_subscription_response.rb +15 -0
  44. data/lib/payabli/paypoint/client.rb +7 -7
  45. data/lib/payabli/query/client.rb +143 -43
  46. data/lib/payabli/query/types/list_payout_subscriptions_org_request.rb +16 -0
  47. data/lib/payabli/query/types/list_payout_subscriptions_request.rb +16 -0
  48. data/lib/payabli/statistic/client.rb +4 -4
  49. data/lib/payabli/subscription/client.rb +3 -3
  50. data/lib/payabli/templates/client.rb +4 -4
  51. data/lib/payabli/token_storage/client.rb +3 -3
  52. data/lib/payabli/user/client.rb +6 -6
  53. data/lib/payabli/vendor/client.rb +4 -4
  54. data/lib/payabli/version.rb +1 -1
  55. data/lib/payabli.rb +22 -0
  56. data/reference.md +1304 -372
  57. data/wiremock/wiremock-mappings.json +1 -1
  58. metadata +23 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a83f520c913662004735732e93a8e3649ed9aa4b0952c15246141a8e3dc6f7a7
4
- data.tar.gz: a0593345a4b3f6ea22b4f38e460122765562ec6b789dee177d52013dab46c06b
3
+ metadata.gz: 39e552679246d91d944fd8d4062f95566686b17decdbd4aec2a3065c9e37b056
4
+ data.tar.gz: 72b1b7acbfda73458aa412f0838cb22d0e33f0fa63753e3ce83efe202d660e6e
5
5
  SHA512:
6
- metadata.gz: 458ea5274ef7997679b5b0280e380acb1e25e17c9f6ab07e329e4437a296af6e102906837ed75036fc89d6985e538b48a356aa8a3f76a154881d9d037db5b164
7
- data.tar.gz: d411e3cbb3f61555cb4bc0be79f186514d162d15ca24e590d65dc0435f17d62926611a03a18ac1017f044f704d8ac80eced801277fc932b7c1a2cc5ad7c3e37d
6
+ metadata.gz: f5a7a81a5e19ad40b0070d038f7b089b63694fa3c5d49160078d1891e8b8a218914769d0fa880ec9733daace9f8e260a7a5727c662c4af67eb1143d7c9009bc7
7
+ data.tar.gz: b9c6fa8078fdc4d2f89c2b5f5f898b35cc39852cd56a025f1ee625b3a83d5bce7b7f286f235d4315847100a359b02e95d3791db0ccfb084d2527d6d511c022d7
data/.fern/metadata.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
- "cliVersion": "3.79.2",
2
+ "cliVersion": "4.60.0",
3
3
  "generatorName": "fernapi/fern-ruby-sdk",
4
- "generatorVersion": "1.1.0",
4
+ "generatorVersion": "1.1.2",
5
5
  "generatorConfig": {
6
6
  "enableWireTests": true
7
7
  },
8
- "sdkVersion": "2.2.20"
8
+ "originGitCommit": "f832172434ff6e66a6d2bae4417345ee599884a1",
9
+ "sdkVersion": "2.2.21"
9
10
  }
data/LICENSE.md CHANGED
@@ -1,8 +1,7 @@
1
- Copyright (c) 2026 Payabli, Inc.
1
+ Copyright (c) 2026 Payabli Inc.
2
2
 
3
- All Rights Reserved.
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
4
 
5
- This source code is the proprietary property of Payabli, Inc.
6
- The source code contained herein is made available for inspection
7
- and reference purposes only. No license is granted to use, modify,
8
- distribute, or create derivative works from this source code.
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -8,6 +8,7 @@ The Payabli Ruby library provides convenient access to the Payabli APIs from Rub
8
8
 
9
9
  - [Documentation](#documentation)
10
10
  - [Reference](#reference)
11
+ - [Changelog](#changelog)
11
12
  - [Passing Query Parameters](#passing-query-parameters)
12
13
  - [Usage](#usage)
13
14
  - [Environments](#environments)
@@ -27,6 +28,11 @@ API reference documentation is available [here](https://docs.payabli.com).
27
28
 
28
29
  A full reference for this library is available [here](https://github.com/payabli/sdk-ruby/blob/HEAD/./reference.md).
29
30
 
31
+ ## Changelog
32
+
33
+ The changelog for the official Payabli Ruby SDK is available on the Payabli Docs site. See [Ruby SDK Changelog](https://docs.payabli.com/changelog/ruby-sdk) for more information.
34
+
35
+
30
36
  ## Passing Query Parameters
31
37
 
32
38
  ```ruby
@@ -34,7 +34,7 @@ module Payabli
34
34
  request = Payabli::Internal::JSON::Request.new(
35
35
  base_url: request_options[:base_url],
36
36
  method: "POST",
37
- path: "Bill/single/#{params[:entry]}",
37
+ path: "Bill/single/#{URI.encode_uri_component(params[:entry].to_s)}",
38
38
  headers: headers,
39
39
  body: Payabli::Bill::Types::BillOutData.new(body_params).to_h,
40
40
  request_options: request_options
@@ -77,7 +77,7 @@ module Payabli
77
77
  request = Payabli::Internal::JSON::Request.new(
78
78
  base_url: request_options[:base_url],
79
79
  method: "DELETE",
80
- path: "Bill/attachedFileFromBill/#{params[:id_bill]}/#{params[:filename]}",
80
+ path: "Bill/attachedFileFromBill/#{URI.encode_uri_component(params[:id_bill].to_s)}/#{URI.encode_uri_component(params[:filename].to_s)}",
81
81
  query: query_params,
82
82
  request_options: request_options
83
83
  )
@@ -112,7 +112,7 @@ module Payabli
112
112
  request = Payabli::Internal::JSON::Request.new(
113
113
  base_url: request_options[:base_url],
114
114
  method: "DELETE",
115
- path: "Bill/#{params[:id_bill]}",
115
+ path: "Bill/#{URI.encode_uri_component(params[:id_bill].to_s)}",
116
116
  request_options: request_options
117
117
  )
118
118
  begin
@@ -146,7 +146,7 @@ module Payabli
146
146
  request = Payabli::Internal::JSON::Request.new(
147
147
  base_url: request_options[:base_url],
148
148
  method: "PUT",
149
- path: "Bill/#{params[:id_bill]}",
149
+ path: "Bill/#{URI.encode_uri_component(params[:id_bill].to_s)}",
150
150
  body: Payabli::Bill::Types::BillOutData.new(params).to_h,
151
151
  request_options: request_options
152
152
  )
@@ -188,7 +188,7 @@ module Payabli
188
188
  request = Payabli::Internal::JSON::Request.new(
189
189
  base_url: request_options[:base_url],
190
190
  method: "GET",
191
- path: "Bill/attachedFileFromBill/#{params[:id_bill]}/#{params[:filename]}",
191
+ path: "Bill/attachedFileFromBill/#{URI.encode_uri_component(params[:id_bill].to_s)}/#{URI.encode_uri_component(params[:filename].to_s)}",
192
192
  query: query_params,
193
193
  request_options: request_options
194
194
  )
@@ -223,7 +223,7 @@ module Payabli
223
223
  request = Payabli::Internal::JSON::Request.new(
224
224
  base_url: request_options[:base_url],
225
225
  method: "GET",
226
- path: "Bill/#{params[:id_bill]}",
226
+ path: "Bill/#{URI.encode_uri_component(params[:id_bill].to_s)}",
227
227
  request_options: request_options
228
228
  )
229
229
  begin
@@ -272,7 +272,7 @@ module Payabli
272
272
  request = Payabli::Internal::JSON::Request.new(
273
273
  base_url: request_options[:base_url],
274
274
  method: "GET",
275
- path: "Query/bills/#{params[:entry]}",
275
+ path: "Query/bills/#{URI.encode_uri_component(params[:entry].to_s)}",
276
276
  query: query_params,
277
277
  request_options: request_options
278
278
  )
@@ -322,7 +322,7 @@ module Payabli
322
322
  request = Payabli::Internal::JSON::Request.new(
323
323
  base_url: request_options[:base_url],
324
324
  method: "GET",
325
- path: "Query/bills/org/#{params[:org_id]}",
325
+ path: "Query/bills/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
326
326
  query: query_params,
327
327
  request_options: request_options
328
328
  )
@@ -357,7 +357,7 @@ module Payabli
357
357
  request = Payabli::Internal::JSON::Request.new(
358
358
  base_url: request_options[:base_url],
359
359
  method: "PUT",
360
- path: "Bill/approval/#{params[:id_bill]}",
360
+ path: "Bill/approval/#{URI.encode_uri_component(params[:id_bill].to_s)}",
361
361
  body: params,
362
362
  request_options: request_options
363
363
  )
@@ -405,7 +405,7 @@ module Payabli
405
405
  request = Payabli::Internal::JSON::Request.new(
406
406
  base_url: request_options[:base_url],
407
407
  method: "POST",
408
- path: "Bill/approval/#{params[:id_bill]}",
408
+ path: "Bill/approval/#{URI.encode_uri_component(params[:id_bill].to_s)}",
409
409
  headers: headers,
410
410
  query: query_params,
411
411
  body: body_params,
@@ -449,7 +449,7 @@ module Payabli
449
449
  request = Payabli::Internal::JSON::Request.new(
450
450
  base_url: request_options[:base_url],
451
451
  method: "GET",
452
- path: "Bill/approval/#{params[:id_bill]}/#{params[:approved]}",
452
+ path: "Bill/approval/#{URI.encode_uri_component(params[:id_bill].to_s)}/#{URI.encode_uri_component(params[:approved].to_s)}",
453
453
  query: query_params,
454
454
  request_options: request_options
455
455
  )
@@ -61,7 +61,7 @@ module Payabli
61
61
  request = Payabli::Internal::JSON::Request.new(
62
62
  base_url: request_options[:base_url],
63
63
  method: "DELETE",
64
- path: "Boarding/app/#{params[:app_id]}",
64
+ path: "Boarding/app/#{URI.encode_uri_component(params[:app_id].to_s)}",
65
65
  request_options: request_options
66
66
  )
67
67
  begin
@@ -95,7 +95,7 @@ module Payabli
95
95
  request = Payabli::Internal::JSON::Request.new(
96
96
  base_url: request_options[:base_url],
97
97
  method: "GET",
98
- path: "Boarding/read/#{params[:app_id]}",
98
+ path: "Boarding/read/#{URI.encode_uri_component(params[:app_id].to_s)}",
99
99
  request_options: request_options
100
100
  )
101
101
  begin
@@ -133,7 +133,7 @@ module Payabli
133
133
  request = Payabli::Internal::JSON::Request.new(
134
134
  base_url: request_options[:base_url],
135
135
  method: "POST",
136
- path: "Boarding/read/#{params[:x_id]}",
136
+ path: "Boarding/read/#{URI.encode_uri_component(params[:x_id].to_s)}",
137
137
  body: body,
138
138
  request_options: request_options
139
139
  )
@@ -168,7 +168,7 @@ module Payabli
168
168
  request = Payabli::Internal::JSON::Request.new(
169
169
  base_url: request_options[:base_url],
170
170
  method: "GET",
171
- path: "Boarding/linkbyId/#{params[:boarding_link_id]}",
171
+ path: "Boarding/linkbyId/#{URI.encode_uri_component(params[:boarding_link_id].to_s)}",
172
172
  request_options: request_options
173
173
  )
174
174
  begin
@@ -202,7 +202,7 @@ module Payabli
202
202
  request = Payabli::Internal::JSON::Request.new(
203
203
  base_url: request_options[:base_url],
204
204
  method: "GET",
205
- path: "Boarding/linkbyTemplate/#{params[:template_id]}",
205
+ path: "Boarding/linkbyTemplate/#{URI.encode_uri_component(params[:template_id].to_s)}",
206
206
  request_options: request_options
207
207
  )
208
208
  begin
@@ -245,7 +245,7 @@ module Payabli
245
245
  request = Payabli::Internal::JSON::Request.new(
246
246
  base_url: request_options[:base_url],
247
247
  method: "PUT",
248
- path: "Boarding/applink/#{params[:app_id]}/#{params[:mail_2]}",
248
+ path: "Boarding/applink/#{URI.encode_uri_component(params[:app_id].to_s)}/#{URI.encode_uri_component(params[:mail_2].to_s)}",
249
249
  query: query_params,
250
250
  request_options: request_options
251
251
  )
@@ -280,7 +280,7 @@ module Payabli
280
280
  request = Payabli::Internal::JSON::Request.new(
281
281
  base_url: request_options[:base_url],
282
282
  method: "GET",
283
- path: "Boarding/link/#{params[:boarding_link_reference]}",
283
+ path: "Boarding/link/#{URI.encode_uri_component(params[:boarding_link_reference].to_s)}",
284
284
  request_options: request_options
285
285
  )
286
286
  begin
@@ -329,7 +329,7 @@ module Payabli
329
329
  request = Payabli::Internal::JSON::Request.new(
330
330
  base_url: request_options[:base_url],
331
331
  method: "GET",
332
- path: "Query/boarding/#{params[:org_id]}",
332
+ path: "Query/boarding/#{URI.encode_uri_component(params[:org_id].to_s)}",
333
333
  query: query_params,
334
334
  request_options: request_options
335
335
  )
@@ -376,7 +376,7 @@ module Payabli
376
376
  request = Payabli::Internal::JSON::Request.new(
377
377
  base_url: request_options[:base_url],
378
378
  method: "GET",
379
- path: "Query/boardinglinks/#{params[:org_id]}",
379
+ path: "Query/boardinglinks/#{URI.encode_uri_component(params[:org_id].to_s)}",
380
380
  query: query_params,
381
381
  request_options: request_options
382
382
  )
@@ -411,7 +411,7 @@ module Payabli
411
411
  request = Payabli::Internal::JSON::Request.new(
412
412
  base_url: request_options[:base_url],
413
413
  method: "PUT",
414
- path: "Boarding/app/#{params[:app_id]}",
414
+ path: "Boarding/app/#{URI.encode_uri_component(params[:app_id].to_s)}",
415
415
  body: Payabli::Types::ApplicationData.new(params).to_h,
416
416
  request_options: request_options
417
417
  )
@@ -35,7 +35,7 @@ module Payabli
35
35
  request = Payabli::Internal::JSON::Request.new(
36
36
  base_url: request_options[:base_url],
37
37
  method: "POST",
38
- path: "ChargeBacks/response/#{params[:id]}",
38
+ path: "ChargeBacks/response/#{URI.encode_uri_component(params[:id].to_s)}",
39
39
  headers: headers,
40
40
  body: body,
41
41
  request_options: request_options
@@ -71,7 +71,7 @@ module Payabli
71
71
  request = Payabli::Internal::JSON::Request.new(
72
72
  base_url: request_options[:base_url],
73
73
  method: "GET",
74
- path: "ChargeBacks/read/#{params[:id]}",
74
+ path: "ChargeBacks/read/#{URI.encode_uri_component(params[:id].to_s)}",
75
75
  request_options: request_options
76
76
  )
77
77
  begin
@@ -106,7 +106,7 @@ module Payabli
106
106
  request = Payabli::Internal::JSON::Request.new(
107
107
  base_url: request_options[:base_url],
108
108
  method: "GET",
109
- path: "ChargeBacks/getChargebackAttachments/#{params[:id]}/#{params[:file_name]}",
109
+ path: "ChargeBacks/getChargebackAttachments/#{URI.encode_uri_component(params[:id].to_s)}/#{URI.encode_uri_component(params[:file_name].to_s)}",
110
110
  request_options: request_options
111
111
  )
112
112
  begin
@@ -10,7 +10,7 @@ module Payabli
10
10
  @raw_client = Payabli::Internal::Http::RawClient.new(
11
11
  base_url: base_url || Payabli::Environment::SANDBOX,
12
12
  headers: {
13
- "User-Agent" => "payabli/2.2.20",
13
+ "User-Agent" => "payabli/2.2.21",
14
14
  "X-Fern-Language" => "Ruby",
15
15
  requestToken: api_key.to_s
16
16
  }
@@ -52,6 +52,11 @@ module Payabli
52
52
  @export ||= Payabli::Export::Client.new(client: @raw_client)
53
53
  end
54
54
 
55
+ # @return [Payabli::GhostCard::Client]
56
+ def ghost_card
57
+ @ghost_card ||= Payabli::GhostCard::Client.new(client: @raw_client)
58
+ end
59
+
55
60
  # @return [Payabli::HostedPaymentPages::Client]
56
61
  def hosted_payment_pages
57
62
  @hosted_payment_pages ||= Payabli::HostedPaymentPages::Client.new(client: @raw_client)
@@ -112,6 +117,11 @@ module Payabli
112
117
  @payment_method_domain ||= Payabli::PaymentMethodDomain::Client.new(client: @raw_client)
113
118
  end
114
119
 
120
+ # @return [Payabli::PayoutSubscription::Client]
121
+ def payout_subscription
122
+ @payout_subscription ||= Payabli::PayoutSubscription::Client.new(client: @raw_client)
123
+ end
124
+
115
125
  # @return [Payabli::Paypoint::Client]
116
126
  def paypoint
117
127
  @paypoint ||= Payabli::Paypoint::Client.new(client: @raw_client)
@@ -36,7 +36,7 @@ module Payabli
36
36
  request = Payabli::Internal::JSON::Request.new(
37
37
  base_url: request_options[:base_url],
38
38
  method: "POST",
39
- path: "Cloud/register/#{params[:entry]}",
39
+ path: "Cloud/register/#{URI.encode_uri_component(params[:entry].to_s)}",
40
40
  headers: headers,
41
41
  body: body,
42
42
  request_options: request_options
@@ -73,7 +73,7 @@ module Payabli
73
73
  request = Payabli::Internal::JSON::Request.new(
74
74
  base_url: request_options[:base_url],
75
75
  method: "GET",
76
- path: "Cloud/history/#{params[:entry]}/#{params[:device_id]}",
76
+ path: "Cloud/history/#{URI.encode_uri_component(params[:entry].to_s)}/#{URI.encode_uri_component(params[:device_id].to_s)}",
77
77
  request_options: request_options
78
78
  )
79
79
  begin
@@ -113,7 +113,7 @@ module Payabli
113
113
  request = Payabli::Internal::JSON::Request.new(
114
114
  base_url: request_options[:base_url],
115
115
  method: "GET",
116
- path: "Cloud/list/#{params[:entry]}",
116
+ path: "Cloud/list/#{URI.encode_uri_component(params[:entry].to_s)}",
117
117
  query: query_params,
118
118
  request_options: request_options
119
119
  )
@@ -149,7 +149,7 @@ module Payabli
149
149
  request = Payabli::Internal::JSON::Request.new(
150
150
  base_url: request_options[:base_url],
151
151
  method: "DELETE",
152
- path: "Cloud/register/#{params[:entry]}/#{params[:device_id]}",
152
+ path: "Cloud/register/#{URI.encode_uri_component(params[:entry].to_s)}/#{URI.encode_uri_component(params[:device_id].to_s)}",
153
153
  request_options: request_options
154
154
  )
155
155
  begin
@@ -44,7 +44,7 @@ module Payabli
44
44
  request = Payabli::Internal::JSON::Request.new(
45
45
  base_url: request_options[:base_url],
46
46
  method: "POST",
47
- path: "Customer/single/#{params[:entry]}",
47
+ path: "Customer/single/#{URI.encode_uri_component(params[:entry].to_s)}",
48
48
  headers: headers,
49
49
  query: query_params,
50
50
  body: Payabli::Types::CustomerData.new(body_params).to_h,
@@ -81,7 +81,7 @@ module Payabli
81
81
  request = Payabli::Internal::JSON::Request.new(
82
82
  base_url: request_options[:base_url],
83
83
  method: "DELETE",
84
- path: "Customer/#{params[:customer_id]}",
84
+ path: "Customer/#{URI.encode_uri_component(params[:customer_id].to_s)}",
85
85
  request_options: request_options
86
86
  )
87
87
  begin
@@ -115,7 +115,7 @@ module Payabli
115
115
  request = Payabli::Internal::JSON::Request.new(
116
116
  base_url: request_options[:base_url],
117
117
  method: "GET",
118
- path: "Customer/#{params[:customer_id]}",
118
+ path: "Customer/#{URI.encode_uri_component(params[:customer_id].to_s)}",
119
119
  request_options: request_options
120
120
  )
121
121
  begin
@@ -150,7 +150,7 @@ module Payabli
150
150
  request = Payabli::Internal::JSON::Request.new(
151
151
  base_url: request_options[:base_url],
152
152
  method: "GET",
153
- path: "Customer/link/#{params[:customer_id]}/#{params[:trans_id]}",
153
+ path: "Customer/link/#{URI.encode_uri_component(params[:customer_id].to_s)}/#{URI.encode_uri_component(params[:trans_id].to_s)}",
154
154
  request_options: request_options
155
155
  )
156
156
  begin
@@ -184,7 +184,7 @@ module Payabli
184
184
  request = Payabli::Internal::JSON::Request.new(
185
185
  base_url: request_options[:base_url],
186
186
  method: "POST",
187
- path: "Customer/#{params[:customer_id]}/consent",
187
+ path: "Customer/#{URI.encode_uri_component(params[:customer_id].to_s)}/consent",
188
188
  request_options: request_options
189
189
  )
190
190
  begin
@@ -218,7 +218,7 @@ module Payabli
218
218
  request = Payabli::Internal::JSON::Request.new(
219
219
  base_url: request_options[:base_url],
220
220
  method: "PUT",
221
- path: "Customer/#{params[:customer_id]}",
221
+ path: "Customer/#{URI.encode_uri_component(params[:customer_id].to_s)}",
222
222
  body: Payabli::Types::CustomerData.new(params).to_h,
223
223
  request_options: request_options
224
224
  )
@@ -40,7 +40,7 @@ module Payabli
40
40
  request = Payabli::Internal::JSON::Request.new(
41
41
  base_url: request_options[:base_url],
42
42
  method: "GET",
43
- path: "Export/boarding/#{params[:format]}/#{params[:org_id]}",
43
+ path: "Export/boarding/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:org_id].to_s)}",
44
44
  query: query_params,
45
45
  request_options: request_options
46
46
  )
@@ -88,7 +88,7 @@ module Payabli
88
88
  request = Payabli::Internal::JSON::Request.new(
89
89
  base_url: request_options[:base_url],
90
90
  method: "GET",
91
- path: "Export/batchDetails/#{params[:format]}/#{params[:entry]}",
91
+ path: "Export/batchDetails/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
92
92
  query: query_params,
93
93
  request_options: request_options
94
94
  )
@@ -136,7 +136,7 @@ module Payabli
136
136
  request = Payabli::Internal::JSON::Request.new(
137
137
  base_url: request_options[:base_url],
138
138
  method: "GET",
139
- path: "Export/batchDetails/#{params[:format]}/org/#{params[:org_id]}",
139
+ path: "Export/batchDetails/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
140
140
  query: query_params,
141
141
  request_options: request_options
142
142
  )
@@ -184,7 +184,7 @@ module Payabli
184
184
  request = Payabli::Internal::JSON::Request.new(
185
185
  base_url: request_options[:base_url],
186
186
  method: "GET",
187
- path: "Export/batches/#{params[:format]}/#{params[:entry]}",
187
+ path: "Export/batches/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
188
188
  query: query_params,
189
189
  request_options: request_options
190
190
  )
@@ -232,7 +232,7 @@ module Payabli
232
232
  request = Payabli::Internal::JSON::Request.new(
233
233
  base_url: request_options[:base_url],
234
234
  method: "GET",
235
- path: "Export/batches/#{params[:format]}/org/#{params[:org_id]}",
235
+ path: "Export/batches/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
236
236
  query: query_params,
237
237
  request_options: request_options
238
238
  )
@@ -280,7 +280,7 @@ module Payabli
280
280
  request = Payabli::Internal::JSON::Request.new(
281
281
  base_url: request_options[:base_url],
282
282
  method: "GET",
283
- path: "Export/batchesOut/#{params[:format]}/#{params[:entry]}",
283
+ path: "Export/batchesOut/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
284
284
  query: query_params,
285
285
  request_options: request_options
286
286
  )
@@ -328,7 +328,7 @@ module Payabli
328
328
  request = Payabli::Internal::JSON::Request.new(
329
329
  base_url: request_options[:base_url],
330
330
  method: "GET",
331
- path: "Export/batchesOut/#{params[:format]}/org/#{params[:org_id]}",
331
+ path: "Export/batchesOut/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
332
332
  query: query_params,
333
333
  request_options: request_options
334
334
  )
@@ -376,7 +376,7 @@ module Payabli
376
376
  request = Payabli::Internal::JSON::Request.new(
377
377
  base_url: request_options[:base_url],
378
378
  method: "GET",
379
- path: "Export/bills/#{params[:format]}/#{params[:entry]}",
379
+ path: "Export/bills/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
380
380
  query: query_params,
381
381
  request_options: request_options
382
382
  )
@@ -424,7 +424,7 @@ module Payabli
424
424
  request = Payabli::Internal::JSON::Request.new(
425
425
  base_url: request_options[:base_url],
426
426
  method: "GET",
427
- path: "Export/bills/#{params[:format]}/org/#{params[:org_id]}",
427
+ path: "Export/bills/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
428
428
  query: query_params,
429
429
  request_options: request_options
430
430
  )
@@ -472,7 +472,7 @@ module Payabli
472
472
  request = Payabli::Internal::JSON::Request.new(
473
473
  base_url: request_options[:base_url],
474
474
  method: "GET",
475
- path: "Export/chargebacks/#{params[:format]}/#{params[:entry]}",
475
+ path: "Export/chargebacks/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
476
476
  query: query_params,
477
477
  request_options: request_options
478
478
  )
@@ -520,7 +520,7 @@ module Payabli
520
520
  request = Payabli::Internal::JSON::Request.new(
521
521
  base_url: request_options[:base_url],
522
522
  method: "GET",
523
- path: "Export/chargebacks/#{params[:format]}/org/#{params[:org_id]}",
523
+ path: "Export/chargebacks/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
524
524
  query: query_params,
525
525
  request_options: request_options
526
526
  )
@@ -568,7 +568,7 @@ module Payabli
568
568
  request = Payabli::Internal::JSON::Request.new(
569
569
  base_url: request_options[:base_url],
570
570
  method: "GET",
571
- path: "Export/customers/#{params[:format]}/#{params[:entry]}",
571
+ path: "Export/customers/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
572
572
  query: query_params,
573
573
  request_options: request_options
574
574
  )
@@ -616,7 +616,7 @@ module Payabli
616
616
  request = Payabli::Internal::JSON::Request.new(
617
617
  base_url: request_options[:base_url],
618
618
  method: "GET",
619
- path: "Export/customers/#{params[:format]}/org/#{params[:org_id]}",
619
+ path: "Export/customers/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
620
620
  query: query_params,
621
621
  request_options: request_options
622
622
  )
@@ -664,7 +664,7 @@ module Payabli
664
664
  request = Payabli::Internal::JSON::Request.new(
665
665
  base_url: request_options[:base_url],
666
666
  method: "GET",
667
- path: "Export/invoices/#{params[:format]}/#{params[:entry]}",
667
+ path: "Export/invoices/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
668
668
  query: query_params,
669
669
  request_options: request_options
670
670
  )
@@ -712,7 +712,7 @@ module Payabli
712
712
  request = Payabli::Internal::JSON::Request.new(
713
713
  base_url: request_options[:base_url],
714
714
  method: "GET",
715
- path: "Export/invoices/#{params[:format]}/org/#{params[:org_id]}",
715
+ path: "Export/invoices/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
716
716
  query: query_params,
717
717
  request_options: request_options
718
718
  )
@@ -760,7 +760,7 @@ module Payabli
760
760
  request = Payabli::Internal::JSON::Request.new(
761
761
  base_url: request_options[:base_url],
762
762
  method: "GET",
763
- path: "Export/organizations/#{params[:format]}/org/#{params[:org_id]}",
763
+ path: "Export/organizations/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
764
764
  query: query_params,
765
765
  request_options: request_options
766
766
  )
@@ -808,7 +808,7 @@ module Payabli
808
808
  request = Payabli::Internal::JSON::Request.new(
809
809
  base_url: request_options[:base_url],
810
810
  method: "GET",
811
- path: "Export/payouts/#{params[:format]}/#{params[:entry]}",
811
+ path: "Export/payouts/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
812
812
  query: query_params,
813
813
  request_options: request_options
814
814
  )
@@ -856,7 +856,7 @@ module Payabli
856
856
  request = Payabli::Internal::JSON::Request.new(
857
857
  base_url: request_options[:base_url],
858
858
  method: "GET",
859
- path: "Export/payouts/#{params[:format]}/org/#{params[:org_id]}",
859
+ path: "Export/payouts/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
860
860
  query: query_params,
861
861
  request_options: request_options
862
862
  )
@@ -904,7 +904,7 @@ module Payabli
904
904
  request = Payabli::Internal::JSON::Request.new(
905
905
  base_url: request_options[:base_url],
906
906
  method: "GET",
907
- path: "Export/paypoints/#{params[:format]}/#{params[:org_id]}",
907
+ path: "Export/paypoints/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:org_id].to_s)}",
908
908
  query: query_params,
909
909
  request_options: request_options
910
910
  )
@@ -952,7 +952,7 @@ module Payabli
952
952
  request = Payabli::Internal::JSON::Request.new(
953
953
  base_url: request_options[:base_url],
954
954
  method: "GET",
955
- path: "Export/settlements/#{params[:format]}/#{params[:entry]}",
955
+ path: "Export/settlements/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
956
956
  query: query_params,
957
957
  request_options: request_options
958
958
  )
@@ -1000,7 +1000,7 @@ module Payabli
1000
1000
  request = Payabli::Internal::JSON::Request.new(
1001
1001
  base_url: request_options[:base_url],
1002
1002
  method: "GET",
1003
- path: "Export/settlements/#{params[:format]}/org/#{params[:org_id]}",
1003
+ path: "Export/settlements/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1004
1004
  query: query_params,
1005
1005
  request_options: request_options
1006
1006
  )
@@ -1048,7 +1048,7 @@ module Payabli
1048
1048
  request = Payabli::Internal::JSON::Request.new(
1049
1049
  base_url: request_options[:base_url],
1050
1050
  method: "GET",
1051
- path: "Export/subscriptions/#{params[:format]}/#{params[:entry]}",
1051
+ path: "Export/subscriptions/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
1052
1052
  query: query_params,
1053
1053
  request_options: request_options
1054
1054
  )
@@ -1096,7 +1096,7 @@ module Payabli
1096
1096
  request = Payabli::Internal::JSON::Request.new(
1097
1097
  base_url: request_options[:base_url],
1098
1098
  method: "GET",
1099
- path: "Export/subscriptions/#{params[:format]}/org/#{params[:org_id]}",
1099
+ path: "Export/subscriptions/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1100
1100
  query: query_params,
1101
1101
  request_options: request_options
1102
1102
  )
@@ -1145,7 +1145,7 @@ module Payabli
1145
1145
  request = Payabli::Internal::JSON::Request.new(
1146
1146
  base_url: request_options[:base_url],
1147
1147
  method: "GET",
1148
- path: "Export/transactions/#{params[:format]}/#{params[:entry]}",
1148
+ path: "Export/transactions/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
1149
1149
  query: query_params,
1150
1150
  request_options: request_options
1151
1151
  )
@@ -1194,7 +1194,7 @@ module Payabli
1194
1194
  request = Payabli::Internal::JSON::Request.new(
1195
1195
  base_url: request_options[:base_url],
1196
1196
  method: "GET",
1197
- path: "Export/transactions/#{params[:format]}/org/#{params[:org_id]}",
1197
+ path: "Export/transactions/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1198
1198
  query: query_params,
1199
1199
  request_options: request_options
1200
1200
  )
@@ -1245,7 +1245,7 @@ module Payabli
1245
1245
  request = Payabli::Internal::JSON::Request.new(
1246
1246
  base_url: request_options[:base_url],
1247
1247
  method: "GET",
1248
- path: "Export/transferDetails/#{params[:format]}/#{params[:entry]}/#{params[:transfer_id]}",
1248
+ path: "Export/transferDetails/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}/#{URI.encode_uri_component(params[:transfer_id].to_s)}",
1249
1249
  query: query_params,
1250
1250
  request_options: request_options
1251
1251
  )
@@ -1294,7 +1294,7 @@ module Payabli
1294
1294
  request = Payabli::Internal::JSON::Request.new(
1295
1295
  base_url: request_options[:base_url],
1296
1296
  method: "GET",
1297
- path: "Export/transfers/#{params[:entry]}",
1297
+ path: "Export/transfers/#{URI.encode_uri_component(params[:entry].to_s)}",
1298
1298
  query: query_params,
1299
1299
  request_options: request_options
1300
1300
  )
@@ -1342,7 +1342,7 @@ module Payabli
1342
1342
  request = Payabli::Internal::JSON::Request.new(
1343
1343
  base_url: request_options[:base_url],
1344
1344
  method: "GET",
1345
- path: "Export/vendors/#{params[:format]}/#{params[:entry]}",
1345
+ path: "Export/vendors/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
1346
1346
  query: query_params,
1347
1347
  request_options: request_options
1348
1348
  )
@@ -1390,7 +1390,7 @@ module Payabli
1390
1390
  request = Payabli::Internal::JSON::Request.new(
1391
1391
  base_url: request_options[:base_url],
1392
1392
  method: "GET",
1393
- path: "Export/vendors/#{params[:format]}/org/#{params[:org_id]}",
1393
+ path: "Export/vendors/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1394
1394
  query: query_params,
1395
1395
  request_options: request_options
1396
1396
  )