payabli 3.0.4 → 3.0.6

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 (50) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +4 -4
  3. data/lib/payabli/bill/client.rb +119 -0
  4. data/lib/payabli/boarding/client.rb +209 -0
  5. data/lib/payabli/charge_backs/client.rb +20 -0
  6. data/lib/payabli/check_capture/client.rb +10 -0
  7. data/lib/payabli/client.rb +8 -6
  8. data/lib/payabli/cloud/client.rb +29 -0
  9. data/lib/payabli/customer/client.rb +54 -0
  10. data/lib/payabli/export/client.rb +321 -0
  11. data/lib/payabli/funding/client.rb +9 -0
  12. data/lib/payabli/ghost_card/client.rb +31 -0
  13. data/lib/payabli/hosted_payment_pages/client.rb +23 -0
  14. data/lib/payabli/import/client.rb +15 -0
  15. data/lib/payabli/internal/http/raw_client.rb +26 -0
  16. data/lib/payabli/internal/oauth_provider.rb +8 -2
  17. data/lib/payabli/internal/routing_auth_provider.rb +51 -0
  18. data/lib/payabli/invoice/client.rb +118 -0
  19. data/lib/payabli/line_item/client.rb +43 -0
  20. data/lib/payabli/management/client.rb +13 -0
  21. data/lib/payabli/money_in/client.rb +238 -0
  22. data/lib/payabli/money_out/client.rb +94 -0
  23. data/lib/payabli/notification/client.rb +46 -0
  24. data/lib/payabli/notificationlogs/client.rb +27 -0
  25. data/lib/payabli/ocr/client.rb +10 -0
  26. data/lib/payabli/organization/client.rb +91 -0
  27. data/lib/payabli/payment_link/client.rb +367 -0
  28. data/lib/payabli/payment_method_domain/client.rb +56 -0
  29. data/lib/payabli/payout_subscription/client.rb +50 -0
  30. data/lib/payabli/paypoint/client.rb +56 -0
  31. data/lib/payabli/query/client.rb +414 -0
  32. data/lib/payabli/statistic/client.rb +39 -0
  33. data/lib/payabli/subscription/client.rb +46 -0
  34. data/lib/payabli/templates/client.rb +28 -0
  35. data/lib/payabli/token/client.rb +8 -0
  36. data/lib/payabli/token_storage/client.rb +55 -0
  37. data/lib/payabli/types/application_data.rb +1 -1
  38. data/lib/payabli/types/application_data_managed.rb +1 -1
  39. data/lib/payabli/types/application_data_odp.rb +1 -1
  40. data/lib/payabli/types/application_data_pay_in.rb +1 -1
  41. data/lib/payabli/types/on_create.rb +1 -1
  42. data/lib/payabli/types/pay_method_body_all_fields.rb +1 -1
  43. data/lib/payabli/user/client.rb +67 -0
  44. data/lib/payabli/vendor/client.rb +102 -0
  45. data/lib/payabli/version.rb +1 -1
  46. data/lib/payabli/wallet/client.rb +34 -0
  47. data/lib/payabli.rb +1 -0
  48. data/reference.md +219 -219
  49. data/wiremock/wiremock-mappings.json +32 -1302
  50. metadata +3 -2
@@ -20,13 +20,28 @@ module Payabli
20
20
  # @option request_options [Hash{String => Object}] :additional_body_parameters
21
21
  # @option request_options [Integer] :timeout_in_seconds
22
22
  #
23
+ # @example
24
+ # client.payment_method_domain.add_payment_method_domain(
25
+ # apple_pay: {
26
+ # is_enabled: true
27
+ # },
28
+ # google_pay: {
29
+ # is_enabled: true
30
+ # },
31
+ # domain_name: "checkout.example.com",
32
+ # entity_id: 109,
33
+ # entity_type: "paypoint"
34
+ # )
35
+ #
23
36
  # @return [Payabli::Types::AddPaymentMethodDomainApiResponse]
24
37
  def add_payment_method_domain(request_options: {}, **params)
25
38
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
39
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
26
40
  request = Payabli::Internal::JSON::Request.new(
27
41
  base_url: request_options[:base_url],
28
42
  method: "POST",
29
43
  path: "PaymentMethodDomain",
44
+ headers: headers,
30
45
  body: Payabli::PaymentMethodDomain::Types::AddPaymentMethodDomainRequest.new(params).to_h,
31
46
  request_options: request_options
32
47
  )
@@ -56,13 +71,18 @@ module Payabli
56
71
  # @option request_options [Integer] :timeout_in_seconds
57
72
  # @option params [String] :domain_id
58
73
  #
74
+ # @example
75
+ # client.payment_method_domain.cascade_payment_method_domain(domain_id: "pmd_b8237fa45c964d8a9ef27160cd42b8c5")
76
+ #
59
77
  # @return [Payabli::Types::PaymentMethodDomainGeneralResponse]
60
78
  def cascade_payment_method_domain(request_options: {}, **params)
61
79
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
80
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
62
81
  request = Payabli::Internal::JSON::Request.new(
63
82
  base_url: request_options[:base_url],
64
83
  method: "POST",
65
84
  path: "PaymentMethodDomain/#{URI.encode_uri_component(params[:domain_id].to_s)}/cascade",
85
+ headers: headers,
66
86
  request_options: request_options
67
87
  )
68
88
  begin
@@ -90,13 +110,18 @@ module Payabli
90
110
  # @option request_options [Integer] :timeout_in_seconds
91
111
  # @option params [String] :domain_id
92
112
  #
113
+ # @example
114
+ # client.payment_method_domain.get_payment_method_domain(domain_id: "pmd_b8237fa45c964d8a9ef27160cd42b8c5")
115
+ #
93
116
  # @return [Payabli::Types::PaymentMethodDomainApiResponse]
94
117
  def get_payment_method_domain(request_options: {}, **params)
95
118
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
119
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
96
120
  request = Payabli::Internal::JSON::Request.new(
97
121
  base_url: request_options[:base_url],
98
122
  method: "GET",
99
123
  path: "PaymentMethodDomain/#{URI.encode_uri_component(params[:domain_id].to_s)}",
124
+ headers: headers,
100
125
  request_options: request_options
101
126
  )
102
127
  begin
@@ -125,13 +150,18 @@ module Payabli
125
150
  # @option request_options [Integer] :timeout_in_seconds
126
151
  # @option params [String] :domain_id
127
152
  #
153
+ # @example
154
+ # client.payment_method_domain.delete_payment_method_domain(domain_id: "pmd_b8237fa45c964d8a9ef27160cd42b8c5")
155
+ #
128
156
  # @return [Payabli::Types::DeletePaymentMethodDomainResponse]
129
157
  def delete_payment_method_domain(request_options: {}, **params)
130
158
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
159
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
131
160
  request = Payabli::Internal::JSON::Request.new(
132
161
  base_url: request_options[:base_url],
133
162
  method: "DELETE",
134
163
  path: "PaymentMethodDomain/#{URI.encode_uri_component(params[:domain_id].to_s)}",
164
+ headers: headers,
135
165
  request_options: request_options
136
166
  )
137
167
  begin
@@ -159,6 +189,17 @@ module Payabli
159
189
  # @option request_options [Integer] :timeout_in_seconds
160
190
  # @option params [String] :domain_id
161
191
  #
192
+ # @example
193
+ # client.payment_method_domain.update_payment_method_domain(
194
+ # domain_id: "pmd_b8237fa45c964d8a9ef27160cd42b8c5",
195
+ # apple_pay: {
196
+ # is_enabled: false
197
+ # },
198
+ # google_pay: {
199
+ # is_enabled: false
200
+ # }
201
+ # )
202
+ #
162
203
  # @return [Payabli::Types::PaymentMethodDomainGeneralResponse]
163
204
  def update_payment_method_domain(request_options: {}, **params)
164
205
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -166,10 +207,12 @@ module Payabli
166
207
  non_body_param_names = %w[domainId]
167
208
  body = request_data.except(*non_body_param_names)
168
209
 
210
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
169
211
  request = Payabli::Internal::JSON::Request.new(
170
212
  base_url: request_options[:base_url],
171
213
  method: "PATCH",
172
214
  path: "PaymentMethodDomain/#{URI.encode_uri_component(params[:domain_id].to_s)}",
215
+ headers: headers,
173
216
  body: body,
174
217
  request_options: request_options
175
218
  )
@@ -201,6 +244,12 @@ module Payabli
201
244
  # @option params [Integer, nil] :from_record
202
245
  # @option params [Integer, nil] :limit_record
203
246
  #
247
+ # @example
248
+ # client.payment_method_domain.list_payment_method_domains(
249
+ # entity_id: 1147,
250
+ # entity_type: "paypoint"
251
+ # )
252
+ #
204
253
  # @return [Payabli::Types::ListPaymentMethodDomainsResponse]
205
254
  def list_payment_method_domains(request_options: {}, **params)
206
255
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -210,10 +259,12 @@ module Payabli
210
259
  query_params["fromRecord"] = params[:from_record] if params.key?(:from_record)
211
260
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
212
261
 
262
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
213
263
  request = Payabli::Internal::JSON::Request.new(
214
264
  base_url: request_options[:base_url],
215
265
  method: "GET",
216
266
  path: "PaymentMethodDomain/list",
267
+ headers: headers,
217
268
  query: query_params,
218
269
  request_options: request_options
219
270
  )
@@ -243,13 +294,18 @@ module Payabli
243
294
  # @option request_options [Integer] :timeout_in_seconds
244
295
  # @option params [String] :domain_id
245
296
  #
297
+ # @example
298
+ # client.payment_method_domain.verify_payment_method_domain(domain_id: "pmd_b8237fa45c964d8a9ef27160cd42b8c5")
299
+ #
246
300
  # @return [Payabli::Types::PaymentMethodDomainGeneralResponse]
247
301
  def verify_payment_method_domain(request_options: {}, **params)
248
302
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
303
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
249
304
  request = Payabli::Internal::JSON::Request.new(
250
305
  base_url: request_options[:base_url],
251
306
  method: "POST",
252
307
  path: "PaymentMethodDomain/#{URI.encode_uri_component(params[:domain_id].to_s)}/verify",
308
+ headers: headers,
253
309
  request_options: request_options
254
310
  )
255
311
  begin
@@ -22,6 +22,37 @@ module Payabli
22
22
  # @option request_options [Integer] :timeout_in_seconds
23
23
  # @option params [String, nil] :idempotency_key
24
24
  #
25
+ # @example
26
+ # client.payout_subscription.create_payout_subscription(
27
+ # entry_point: "8cfec329267",
28
+ # payment_method: {
29
+ # method_: "ach",
30
+ # ach_holder: "Herman Coatings",
31
+ # ach_routing: "021000021",
32
+ # ach_account: "3453445666",
33
+ # ach_account_type: "checking"
34
+ # },
35
+ # payment_details: {
36
+ # total_amount: 500,
37
+ # service_fee: 0,
38
+ # currency: "USD"
39
+ # },
40
+ # vendor_data: {
41
+ # vendor_id: 456
42
+ # },
43
+ # bill_data: [{
44
+ # invoice_number: "INV-2345",
45
+ # net_amount: "500",
46
+ # invoice_date: "2025-08-01",
47
+ # due_date: "2025-08-15"
48
+ # }],
49
+ # schedule_details: {
50
+ # start_date: "09/01/2027",
51
+ # end_date: "09/01/2026",
52
+ # frequency: "monthly"
53
+ # }
54
+ # )
55
+ #
25
56
  # @return [Payabli::Types::AddPayoutSubscriptionResponse]
26
57
  def create_payout_subscription(request_options: {}, **params)
27
58
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -32,6 +63,7 @@ module Payabli
32
63
  headers = {}
33
64
  headers["idempotencyKey"] = params[:idempotency_key] if params[:idempotency_key]
34
65
 
66
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }]).merge(headers)
35
67
  request = Payabli::Internal::JSON::Request.new(
36
68
  base_url: request_options[:base_url],
37
69
  method: "POST",
@@ -66,13 +98,18 @@ module Payabli
66
98
  # @option request_options [Integer] :timeout_in_seconds
67
99
  # @option params [Integer] :id
68
100
  #
101
+ # @example
102
+ # client.payout_subscription.get_payout_subscription(id: 42)
103
+ #
69
104
  # @return [Payabli::Types::GetPayoutSubscriptionResponse]
70
105
  def get_payout_subscription(request_options: {}, **params)
71
106
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
107
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
72
108
  request = Payabli::Internal::JSON::Request.new(
73
109
  base_url: request_options[:base_url],
74
110
  method: "GET",
75
111
  path: "PayoutSubscription/#{URI.encode_uri_component(params[:id].to_s)}",
112
+ headers: headers,
76
113
  request_options: request_options
77
114
  )
78
115
  begin
@@ -101,6 +138,12 @@ module Payabli
101
138
  # @option request_options [Integer] :timeout_in_seconds
102
139
  # @option params [Integer] :id
103
140
  #
141
+ # @example
142
+ # client.payout_subscription.update_payout_subscription(
143
+ # id: 42,
144
+ # set_pause: true
145
+ # )
146
+ #
104
147
  # @return [Payabli::Types::UpdatePayoutSubscriptionResponse]
105
148
  def update_payout_subscription(request_options: {}, **params)
106
149
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -108,10 +151,12 @@ module Payabli
108
151
  non_body_param_names = %w[id]
109
152
  body = request_data.except(*non_body_param_names)
110
153
 
154
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
111
155
  request = Payabli::Internal::JSON::Request.new(
112
156
  base_url: request_options[:base_url],
113
157
  method: "PUT",
114
158
  path: "PayoutSubscription/#{URI.encode_uri_component(params[:id].to_s)}",
159
+ headers: headers,
115
160
  body: body,
116
161
  request_options: request_options
117
162
  )
@@ -141,13 +186,18 @@ module Payabli
141
186
  # @option request_options [Integer] :timeout_in_seconds
142
187
  # @option params [Integer] :id
143
188
  #
189
+ # @example
190
+ # client.payout_subscription.delete_payout_subscription(id: 42)
191
+ #
144
192
  # @return [Payabli::Types::DeletePayoutSubscriptionResponse]
145
193
  def delete_payout_subscription(request_options: {}, **params)
146
194
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
195
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
147
196
  request = Payabli::Internal::JSON::Request.new(
148
197
  base_url: request_options[:base_url],
149
198
  method: "DELETE",
150
199
  path: "PayoutSubscription/#{URI.encode_uri_component(params[:id].to_s)}",
200
+ headers: headers,
151
201
  request_options: request_options
152
202
  )
153
203
  begin
@@ -21,13 +21,18 @@ module Payabli
21
21
  # @option request_options [Integer] :timeout_in_seconds
22
22
  # @option params [String] :entry
23
23
  #
24
+ # @example
25
+ # client.paypoint.get_basic_entry(entry: "8cfec329267")
26
+ #
24
27
  # @return [Payabli::Types::GetBasicEntryResponse]
25
28
  def get_basic_entry(request_options: {}, **params)
26
29
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
30
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
27
31
  request = Payabli::Internal::JSON::Request.new(
28
32
  base_url: request_options[:base_url],
29
33
  method: "GET",
30
34
  path: "Paypoint/basic/#{URI.encode_uri_component(params[:entry].to_s)}",
35
+ headers: headers,
31
36
  request_options: request_options
32
37
  )
33
38
  begin
@@ -55,13 +60,18 @@ module Payabli
55
60
  # @option request_options [Integer] :timeout_in_seconds
56
61
  # @option params [String] :id_paypoint
57
62
  #
63
+ # @example
64
+ # client.paypoint.get_basic_entry_by_id(id_paypoint: "198")
65
+ #
58
66
  # @return [Payabli::Types::GetBasicEntryByIdResponse]
59
67
  def get_basic_entry_by_id(request_options: {}, **params)
60
68
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
69
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
61
70
  request = Payabli::Internal::JSON::Request.new(
62
71
  base_url: request_options[:base_url],
63
72
  method: "GET",
64
73
  path: "Paypoint/basicById/#{URI.encode_uri_component(params[:id_paypoint].to_s)}",
74
+ headers: headers,
65
75
  request_options: request_options
66
76
  )
67
77
  begin
@@ -89,13 +99,18 @@ module Payabli
89
99
  # @option request_options [Integer] :timeout_in_seconds
90
100
  # @option params [String] :entry
91
101
  #
102
+ # @example
103
+ # client.paypoint.save_logo(entry: "8cfec329267")
104
+ #
92
105
  # @return [Payabli::Types::PayabliApiResponse00Responsedatanonobject]
93
106
  def save_logo(request_options: {}, **params)
94
107
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
108
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
95
109
  request = Payabli::Internal::JSON::Request.new(
96
110
  base_url: request_options[:base_url],
97
111
  method: "PUT",
98
112
  path: "Paypoint/logo/#{URI.encode_uri_component(params[:entry].to_s)}",
113
+ headers: headers,
99
114
  body: Payabli::Types::FileContent.new(params).to_h,
100
115
  request_options: request_options
101
116
  )
@@ -123,13 +138,28 @@ module Payabli
123
138
  # @option request_options [Hash{String => Object}] :additional_body_parameters
124
139
  # @option request_options [Integer] :timeout_in_seconds
125
140
  #
141
+ # @example
142
+ # client.paypoint.migrate(
143
+ # entry_point: "8cfec329267",
144
+ # new_parent_organization_id: 123,
145
+ # notification_request: {
146
+ # notification_url: "https://webhook-test.yoursie.com",
147
+ # web_header_parameters: [{
148
+ # key: "testheader",
149
+ # value: "1234567890"
150
+ # }]
151
+ # }
152
+ # )
153
+ #
126
154
  # @return [Payabli::Types::MigratePaypointResponse]
127
155
  def migrate(request_options: {}, **params)
128
156
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
157
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
129
158
  request = Payabli::Internal::JSON::Request.new(
130
159
  base_url: request_options[:base_url],
131
160
  method: "POST",
132
161
  path: "Paypoint/migrate",
162
+ headers: headers,
133
163
  body: Payabli::Paypoint::Types::PaypointMoveRequest.new(params).to_h,
134
164
  request_options: request_options
135
165
  )
@@ -158,13 +188,18 @@ module Payabli
158
188
  # @option request_options [Integer] :timeout_in_seconds
159
189
  # @option params [String] :entry
160
190
  #
191
+ # @example
192
+ # client.paypoint.settings_page(entry: "8cfec329267")
193
+ #
161
194
  # @return [Payabli::Types::SettingsQueryRecord]
162
195
  def settings_page(request_options: {}, **params)
163
196
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
197
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
164
198
  request = Payabli::Internal::JSON::Request.new(
165
199
  base_url: request_options[:base_url],
166
200
  method: "GET",
167
201
  path: "Paypoint/settings/#{URI.encode_uri_component(params[:entry].to_s)}",
202
+ headers: headers,
168
203
  request_options: request_options
169
204
  )
170
205
  begin
@@ -193,16 +228,21 @@ module Payabli
193
228
  # @option params [String] :entry
194
229
  # @option params [String, nil] :entrypages
195
230
  #
231
+ # @example
232
+ # client.paypoint.get_entry_config(entry: "8cfec329267")
233
+ #
196
234
  # @return [Payabli::Types::GetEntryConfigResponse]
197
235
  def get_entry_config(request_options: {}, **params)
198
236
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
199
237
  query_params = {}
200
238
  query_params["entrypages"] = params[:entrypages] if params.key?(:entrypages)
201
239
 
240
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
202
241
  request = Payabli::Internal::JSON::Request.new(
203
242
  base_url: request_options[:base_url],
204
243
  method: "GET",
205
244
  path: "Paypoint/#{URI.encode_uri_component(params[:entry].to_s)}",
245
+ headers: headers,
206
246
  query: query_params,
207
247
  request_options: request_options
208
248
  )
@@ -232,13 +272,21 @@ module Payabli
232
272
  # @option params [String] :entry
233
273
  # @option params [String] :subdomain
234
274
  #
275
+ # @example
276
+ # client.paypoint.get_page(
277
+ # entry: "8cfec329267",
278
+ # subdomain: "pay-your-fees-1"
279
+ # )
280
+ #
235
281
  # @return [Payabli::Types::PayabliPages]
236
282
  def get_page(request_options: {}, **params)
237
283
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
284
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
238
285
  request = Payabli::Internal::JSON::Request.new(
239
286
  base_url: request_options[:base_url],
240
287
  method: "GET",
241
288
  path: "Paypoint/#{URI.encode_uri_component(params[:entry].to_s)}/#{URI.encode_uri_component(params[:subdomain].to_s)}",
289
+ headers: headers,
242
290
  request_options: request_options
243
291
  )
244
292
  begin
@@ -267,13 +315,21 @@ module Payabli
267
315
  # @option params [String] :entry
268
316
  # @option params [String] :subdomain
269
317
  #
318
+ # @example
319
+ # client.paypoint.remove_page(
320
+ # entry: "8cfec329267",
321
+ # subdomain: "pay-your-fees-1"
322
+ # )
323
+ #
270
324
  # @return [Payabli::Types::PayabliApiResponseGeneric2Part]
271
325
  def remove_page(request_options: {}, **params)
272
326
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
327
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
273
328
  request = Payabli::Internal::JSON::Request.new(
274
329
  base_url: request_options[:base_url],
275
330
  method: "DELETE",
276
331
  path: "Paypoint/#{URI.encode_uri_component(params[:entry].to_s)}/#{URI.encode_uri_component(params[:subdomain].to_s)}",
332
+ headers: headers,
277
333
  request_options: request_options
278
334
  )
279
335
  begin