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
@@ -42,6 +42,26 @@ module Payabli
42
42
  # @option params [Boolean, nil] :force_vendor_creation
43
43
  # @option params [String, nil] :idempotency_key
44
44
  #
45
+ # @example
46
+ # client.money_out.authorize_out(
47
+ # entry_point: "8cfec329267",
48
+ # order_description: "Window Painting",
49
+ # payment_method: {
50
+ # method_: "managed"
51
+ # },
52
+ # payment_details: {
53
+ # total_amount: 47,
54
+ # unbundled: false
55
+ # },
56
+ # vendor_data: {
57
+ # vendor_number: "VEN-123"
58
+ # },
59
+ # invoice_data: [{
60
+ # bill_id: 54323
61
+ # }],
62
+ # auto_capture: true
63
+ # )
64
+ #
45
65
  # @return [Payabli::Types::AuthCapturePayoutResponse]
46
66
  def authorize_out(request_options: {}, **params)
47
67
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -57,6 +77,7 @@ module Payabli
57
77
  headers = {}
58
78
  headers["idempotencyKey"] = params[:idempotency_key] if params[:idempotency_key]
59
79
 
80
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }]).merge(headers)
60
81
  request = Payabli::Internal::JSON::Request.new(
61
82
  base_url: request_options[:base_url],
62
83
  method: "POST",
@@ -90,13 +111,18 @@ module Payabli
90
111
  # @option request_options [Hash{String => Object}] :additional_body_parameters
91
112
  # @option request_options [Integer] :timeout_in_seconds
92
113
  #
114
+ # @example
115
+ # client.money_out.cancel_all_out(request: %w[2-29 2-28 2-27])
116
+ #
93
117
  # @return [Payabli::Types::CaptureAllOutResponse]
94
118
  def cancel_all_out(request_options: {}, **params)
95
119
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
120
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
96
121
  request = Payabli::Internal::JSON::Request.new(
97
122
  base_url: request_options[:base_url],
98
123
  method: "POST",
99
124
  path: "MoneyOut/cancelAll",
125
+ headers: headers,
100
126
  body: params,
101
127
  request_options: request_options
102
128
  )
@@ -125,13 +151,18 @@ module Payabli
125
151
  # @option request_options [Integer] :timeout_in_seconds
126
152
  # @option params [String] :reference_id
127
153
  #
154
+ # @example
155
+ # client.money_out.cancel_out_get(reference_id: "129-219")
156
+ #
128
157
  # @return [Payabli::Types::PayabliApiResponse0000]
129
158
  def cancel_out_get(request_options: {}, **params)
130
159
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
160
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
131
161
  request = Payabli::Internal::JSON::Request.new(
132
162
  base_url: request_options[:base_url],
133
163
  method: "GET",
134
164
  path: "MoneyOut/cancel/#{URI.encode_uri_component(params[:reference_id].to_s)}",
165
+ headers: headers,
135
166
  request_options: request_options
136
167
  )
137
168
  begin
@@ -159,13 +190,18 @@ module Payabli
159
190
  # @option request_options [Integer] :timeout_in_seconds
160
191
  # @option params [String] :reference_id
161
192
  #
193
+ # @example
194
+ # client.money_out.cancel_out_delete(reference_id: "129-219")
195
+ #
162
196
  # @return [Payabli::Types::PayabliApiResponse0000]
163
197
  def cancel_out_delete(request_options: {}, **params)
164
198
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
199
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
165
200
  request = Payabli::Internal::JSON::Request.new(
166
201
  base_url: request_options[:base_url],
167
202
  method: "DELETE",
168
203
  path: "MoneyOut/cancel/#{URI.encode_uri_component(params[:reference_id].to_s)}",
204
+ headers: headers,
169
205
  request_options: request_options
170
206
  )
171
207
  begin
@@ -194,12 +230,16 @@ module Payabli
194
230
  # @option request_options [Integer] :timeout_in_seconds
195
231
  # @option params [String, nil] :idempotency_key
196
232
  #
233
+ # @example
234
+ # client.money_out.capture_all_out(body: %w[2-29 2-28 2-27])
235
+ #
197
236
  # @return [Payabli::Types::CaptureAllOutResponse]
198
237
  def capture_all_out(request_options: {}, **params)
199
238
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
200
239
  headers = {}
201
240
  headers["idempotencyKey"] = params[:idempotency_key] if params[:idempotency_key]
202
241
 
242
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }]).merge(headers)
203
243
  request = Payabli::Internal::JSON::Request.new(
204
244
  base_url: request_options[:base_url],
205
245
  method: "POST",
@@ -239,12 +279,16 @@ module Payabli
239
279
  # @option params [String] :reference_id
240
280
  # @option params [String, nil] :idempotency_key
241
281
  #
282
+ # @example
283
+ # client.money_out.capture_out(reference_id: "129-219")
284
+ #
242
285
  # @return [Payabli::Types::AuthCapturePayoutResponse]
243
286
  def capture_out(request_options: {}, **params)
244
287
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
245
288
  headers = {}
246
289
  headers["idempotencyKey"] = params[:idempotency_key] if params[:idempotency_key]
247
290
 
291
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }]).merge(headers)
248
292
  request = Payabli::Internal::JSON::Request.new(
249
293
  base_url: request_options[:base_url],
250
294
  method: "GET",
@@ -277,13 +321,18 @@ module Payabli
277
321
  # @option request_options [Integer] :timeout_in_seconds
278
322
  # @option params [String] :trans_id
279
323
  #
324
+ # @example
325
+ # client.money_out.payout_details(trans_id: "45-as456777hhhhhhhhhh77777777-324")
326
+ #
280
327
  # @return [Payabli::Types::BillDetailResponse]
281
328
  def payout_details(request_options: {}, **params)
282
329
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
330
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
283
331
  request = Payabli::Internal::JSON::Request.new(
284
332
  base_url: request_options[:base_url],
285
333
  method: "GET",
286
334
  path: "MoneyOut/details/#{URI.encode_uri_component(params[:trans_id].to_s)}",
335
+ headers: headers,
287
336
  request_options: request_options
288
337
  )
289
338
  begin
@@ -311,13 +360,18 @@ module Payabli
311
360
  # @option request_options [Integer] :timeout_in_seconds
312
361
  # @option params [String] :card_token
313
362
  #
363
+ # @example
364
+ # client.money_out.v_card_get(card_token: "20230403315245421165")
365
+ #
314
366
  # @return [Payabli::Types::VCardGetResponse]
315
367
  def v_card_get(request_options: {}, **params)
316
368
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
369
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
317
370
  request = Payabli::Internal::JSON::Request.new(
318
371
  base_url: request_options[:base_url],
319
372
  method: "GET",
320
373
  path: "MoneyOut/vcard/#{URI.encode_uri_component(params[:card_token].to_s)}",
374
+ headers: headers,
321
375
  request_options: request_options
322
376
  )
323
377
  begin
@@ -353,6 +407,12 @@ module Payabli
353
407
  # @option request_options [Integer] :timeout_in_seconds
354
408
  # @option params [String] :card_token
355
409
  #
410
+ # @example
411
+ # client.money_out.renew_v_card(
412
+ # card_token: "20231206142225226104",
413
+ # expiration_date: "12-2027"
414
+ # )
415
+ #
356
416
  # @return [Payabli::Types::RenewVCardResponse]
357
417
  def renew_v_card(request_options: {}, **params)
358
418
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -360,10 +420,12 @@ module Payabli
360
420
  non_body_param_names = %w[cardToken]
361
421
  body = request_data.except(*non_body_param_names)
362
422
 
423
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
363
424
  request = Payabli::Internal::JSON::Request.new(
364
425
  base_url: request_options[:base_url],
365
426
  method: "PUT",
366
427
  path: "MoneyOutCard/vcard/#{URI.encode_uri_component(params[:card_token].to_s)}/renew",
428
+ headers: headers,
367
429
  body: body,
368
430
  request_options: request_options
369
431
  )
@@ -391,13 +453,18 @@ module Payabli
391
453
  # @option request_options [Hash{String => Object}] :additional_body_parameters
392
454
  # @option request_options [Integer] :timeout_in_seconds
393
455
  #
456
+ # @example
457
+ # client.money_out.send_v_card_link(trans_id: "01K33Z6YQZ6GD5QVKZ856MJBSC")
458
+ #
394
459
  # @return [Payabli::Types::OperationResult]
395
460
  def send_v_card_link(request_options: {}, **params)
396
461
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
462
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
397
463
  request = Payabli::Internal::JSON::Request.new(
398
464
  base_url: request_options[:base_url],
399
465
  method: "POST",
400
466
  path: "vcard/send-card-link",
467
+ headers: headers,
401
468
  body: Payabli::MoneyOut::Types::SendVCardLinkRequest.new(params).to_h,
402
469
  request_options: request_options
403
470
  )
@@ -428,13 +495,18 @@ module Payabli
428
495
  # @option request_options [Integer] :timeout_in_seconds
429
496
  # @option params [String] :asset_name
430
497
  #
498
+ # @example
499
+ # client.money_out.get_check_image(asset_name: "check133832686289732320_01JKBNZ5P32JPTZY8XXXX000000.pdf")
500
+ #
431
501
  # @return [String]
432
502
  def get_check_image(request_options: {}, **params)
433
503
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
504
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
434
505
  request = Payabli::Internal::JSON::Request.new(
435
506
  base_url: request_options[:base_url],
436
507
  method: "GET",
437
508
  path: "MoneyOut/checkimage/#{URI.encode_uri_component(params[:asset_name].to_s)}",
509
+ headers: headers,
438
510
  request_options: request_options
439
511
  )
440
512
  begin
@@ -476,13 +548,21 @@ module Payabli
476
548
  # @option params [String] :trans_id
477
549
  # @option params [Payabli::Types::AllowedCheckPaymentStatus] :check_payment_status
478
550
  #
551
+ # @example
552
+ # client.money_out.update_check_payment_status(
553
+ # trans_id: "TRANS123456",
554
+ # check_payment_status: "5"
555
+ # )
556
+ #
479
557
  # @return [Payabli::Types::PayabliApiResponse00Responsedatanonobject]
480
558
  def update_check_payment_status(request_options: {}, **params)
481
559
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
560
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
482
561
  request = Payabli::Internal::JSON::Request.new(
483
562
  base_url: request_options[:base_url],
484
563
  method: "PATCH",
485
564
  path: "MoneyOut/status/#{URI.encode_uri_component(params[:trans_id].to_s)}/#{URI.encode_uri_component(params[:check_payment_status].to_s)}",
565
+ headers: headers,
486
566
  request_options: request_options
487
567
  )
488
568
  begin
@@ -518,6 +598,19 @@ module Payabli
518
598
  # @option params [String] :trans_id
519
599
  # @option params [String, nil] :idempotency_key
520
600
  #
601
+ # @example
602
+ # client.money_out.reissue_out(
603
+ # trans_id: "129-219",
604
+ # payment_method: {
605
+ # method_: "ach",
606
+ # ach_account: "9876543210",
607
+ # ach_account_type: "savings",
608
+ # ach_routing: "021000021",
609
+ # ach_holder: "Acme Corp",
610
+ # ach_holder_type: "business"
611
+ # }
612
+ # )
613
+ #
521
614
  # @return [Payabli::Types::ReissuePayoutResponse]
522
615
  def reissue_out(request_options: {}, **params)
523
616
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -531,6 +624,7 @@ module Payabli
531
624
  headers = {}
532
625
  headers["idempotencyKey"] = params[:idempotency_key] if params[:idempotency_key]
533
626
 
627
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }]).merge(headers)
534
628
  request = Payabli::Internal::JSON::Request.new(
535
629
  base_url: request_options[:base_url],
536
630
  method: "POST",
@@ -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.notification.add_notification(
25
+ # content: {
26
+ # event_type: "CreatedApplication"
27
+ # },
28
+ # frequency: "untilcancelled",
29
+ # method_: "web",
30
+ # owner_id: 236,
31
+ # owner_type: 0,
32
+ # status: 1,
33
+ # target: "https://webhook.site/2871b8f8-edc7-441a-b376-98d8c8e33275"
34
+ # )
35
+ #
23
36
  # @return [Payabli::Types::PayabliApiResponseNotifications]
24
37
  def add_notification(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: "Notification",
44
+ headers: headers,
30
45
  body: Payabli::Types::AddNotificationRequest.new(params).to_h,
31
46
  request_options: request_options
32
47
  )
@@ -55,13 +70,18 @@ module Payabli
55
70
  # @option request_options [Integer] :timeout_in_seconds
56
71
  # @option params [String] :n_id
57
72
  #
73
+ # @example
74
+ # client.notification.get_notification(n_id: "1717")
75
+ #
58
76
  # @return [Payabli::Types::NotificationQueryRecord]
59
77
  def get_notification(request_options: {}, **params)
60
78
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
79
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
61
80
  request = Payabli::Internal::JSON::Request.new(
62
81
  base_url: request_options[:base_url],
63
82
  method: "GET",
64
83
  path: "Notification/#{URI.encode_uri_component(params[:n_id].to_s)}",
84
+ headers: headers,
65
85
  request_options: request_options
66
86
  )
67
87
  begin
@@ -89,13 +109,29 @@ module Payabli
89
109
  # @option request_options [Integer] :timeout_in_seconds
90
110
  # @option params [String] :n_id
91
111
  #
112
+ # @example
113
+ # client.notification.update_notification(
114
+ # n_id: "1717",
115
+ # content: {
116
+ # event_type: "ApprovedPayment"
117
+ # },
118
+ # frequency: "untilcancelled",
119
+ # method_: "email",
120
+ # owner_id: 136,
121
+ # owner_type: 0,
122
+ # status: 1,
123
+ # target: "newemail@email.com"
124
+ # )
125
+ #
92
126
  # @return [Payabli::Types::PayabliApiResponseNotifications]
93
127
  def update_notification(request_options: {}, **params)
94
128
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
129
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
95
130
  request = Payabli::Internal::JSON::Request.new(
96
131
  base_url: request_options[:base_url],
97
132
  method: "PUT",
98
133
  path: "Notification/#{URI.encode_uri_component(params[:n_id].to_s)}",
134
+ headers: headers,
99
135
  body: Payabli::Types::UpdateNotificationRequest.new(params).to_h,
100
136
  request_options: request_options
101
137
  )
@@ -124,13 +160,18 @@ module Payabli
124
160
  # @option request_options [Integer] :timeout_in_seconds
125
161
  # @option params [String] :n_id
126
162
  #
163
+ # @example
164
+ # client.notification.delete_notification(n_id: "1717")
165
+ #
127
166
  # @return [Payabli::Types::PayabliApiResponseNotifications]
128
167
  def delete_notification(request_options: {}, **params)
129
168
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
169
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
130
170
  request = Payabli::Internal::JSON::Request.new(
131
171
  base_url: request_options[:base_url],
132
172
  method: "DELETE",
133
173
  path: "Notification/#{URI.encode_uri_component(params[:n_id].to_s)}",
174
+ headers: headers,
134
175
  request_options: request_options
135
176
  )
136
177
  begin
@@ -158,13 +199,18 @@ module Payabli
158
199
  # @option request_options [Integer] :timeout_in_seconds
159
200
  # @option params [Integer] :id
160
201
  #
202
+ # @example
203
+ # client.notification.get_report_file(id: 1000000)
204
+ #
161
205
  # @return [Hash[String, Object]]
162
206
  def get_report_file(request_options: {}, **params)
163
207
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
208
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
164
209
  request = Payabli::Internal::JSON::Request.new(
165
210
  base_url: request_options[:base_url],
166
211
  method: "GET",
167
212
  path: "Export/notificationReport/#{URI.encode_uri_component(params[:id].to_s)}",
213
+ headers: headers,
168
214
  request_options: request_options
169
215
  )
170
216
  begin
@@ -26,6 +26,16 @@ module Payabli
26
26
  # @option params [Integer, nil] :page_size
27
27
  # @option params [Integer, nil] :page
28
28
  #
29
+ # @example
30
+ # client.notificationlogs.search_notification_logs(
31
+ # page_size: 20,
32
+ # start_date: "2024-01-01T00:00:00Z",
33
+ # end_date: "2024-01-31T23:59:59Z",
34
+ # notification_event: "ActivatedMerchant",
35
+ # succeeded: true,
36
+ # org_id: 123
37
+ # )
38
+ #
29
39
  # @return [Array[Payabli::Types::NotificationLog]]
30
40
  def search_notification_logs(request_options: {}, **params)
31
41
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -37,10 +47,12 @@ module Payabli
37
47
  query_params["PageSize"] = params[:page_size] if params.key?(:page_size)
38
48
  query_params["Page"] = params[:page] if params.key?(:page)
39
49
 
50
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
40
51
  request = Payabli::Internal::JSON::Request.new(
41
52
  base_url: request_options[:base_url],
42
53
  method: "POST",
43
54
  path: "v2/notificationlogs",
55
+ headers: headers,
44
56
  query: query_params,
45
57
  body: body,
46
58
  request_options: request_options
@@ -69,13 +81,18 @@ module Payabli
69
81
  # @option request_options [Integer] :timeout_in_seconds
70
82
  # @option params [String] :uuid
71
83
  #
84
+ # @example
85
+ # client.notificationlogs.get_notification_log(uuid: "550e8400-e29b-41d4-a716-446655440000")
86
+ #
72
87
  # @return [Payabli::Types::NotificationLogDetail]
73
88
  def get_notification_log(request_options: {}, **params)
74
89
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
90
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
75
91
  request = Payabli::Internal::JSON::Request.new(
76
92
  base_url: request_options[:base_url],
77
93
  method: "GET",
78
94
  path: "v2/notificationlogs/#{URI.encode_uri_component(params[:uuid].to_s)}",
95
+ headers: headers,
79
96
  request_options: request_options
80
97
  )
81
98
  begin
@@ -105,13 +122,18 @@ module Payabli
105
122
  # @option request_options [Integer] :timeout_in_seconds
106
123
  # @option params [String] :uuid
107
124
  #
125
+ # @example
126
+ # client.notificationlogs.retry_notification_log(uuid: "550e8400-e29b-41d4-a716-446655440000")
127
+ #
108
128
  # @return [Payabli::Types::NotificationLogDetail]
109
129
  def retry_notification_log(request_options: {}, **params)
110
130
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
131
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
111
132
  request = Payabli::Internal::JSON::Request.new(
112
133
  base_url: request_options[:base_url],
113
134
  method: "GET",
114
135
  path: "v2/notificationlogs/#{URI.encode_uri_component(params[:uuid].to_s)}/retry",
136
+ headers: headers,
115
137
  request_options: request_options
116
138
  )
117
139
  begin
@@ -141,13 +163,18 @@ module Payabli
141
163
  # @option request_options [Hash{String => Object}] :additional_body_parameters
142
164
  # @option request_options [Integer] :timeout_in_seconds
143
165
  #
166
+ # @example
167
+ # client.notificationlogs.bulk_retry_notification_logs(request: %w[550e8400-e29b-41d4-a716-446655440000 550e8400-e29b-41d4-a716-446655440001 550e8400-e29b-41d4-a716-446655440002])
168
+ #
144
169
  # @return [untyped]
145
170
  def bulk_retry_notification_logs(request_options: {}, **params)
146
171
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
172
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
147
173
  request = Payabli::Internal::JSON::Request.new(
148
174
  base_url: request_options[:base_url],
149
175
  method: "POST",
150
176
  path: "v2/notificationlogs/retry",
177
+ headers: headers,
151
178
  body: params,
152
179
  request_options: request_options
153
180
  )
@@ -24,13 +24,18 @@ module Payabli
24
24
  # @option request_options [Integer] :timeout_in_seconds
25
25
  # @option params [Payabli::Types::TypeResult] :type_result
26
26
  #
27
+ # @example
28
+ # client.ocr.ocr_document_form(type_result: "typeResult")
29
+ #
27
30
  # @return [Payabli::Types::PayabliApiResponseOcr]
28
31
  def ocr_document_form(request_options: {}, **params)
29
32
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
33
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
30
34
  request = Payabli::Internal::JSON::Request.new(
31
35
  base_url: request_options[:base_url],
32
36
  method: "POST",
33
37
  path: "Import/ocrDocumentForm/#{URI.encode_uri_component(params[:type_result].to_s)}",
38
+ headers: headers,
34
39
  body: Payabli::Types::FileContentImageOnly.new(params).to_h,
35
40
  request_options: request_options
36
41
  )
@@ -62,13 +67,18 @@ module Payabli
62
67
  # @option request_options [Integer] :timeout_in_seconds
63
68
  # @option params [Payabli::Types::TypeResult] :type_result
64
69
  #
70
+ # @example
71
+ # client.ocr.ocr_document_json(type_result: "typeResult")
72
+ #
65
73
  # @return [Payabli::Types::PayabliApiResponseOcr]
66
74
  def ocr_document_json(request_options: {}, **params)
67
75
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
76
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
68
77
  request = Payabli::Internal::JSON::Request.new(
69
78
  base_url: request_options[:base_url],
70
79
  method: "POST",
71
80
  path: "Import/ocrDocumentJson/#{URI.encode_uri_component(params[:type_result].to_s)}",
81
+ headers: headers,
72
82
  body: Payabli::Types::FileContentImageOnly.new(params).to_h,
73
83
  request_options: request_options
74
84
  )