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
@@ -32,6 +32,15 @@ module Payabli
32
32
  # @option params [Integer, nil] :limit_record
33
33
  # @option params [Hash[String, String, nil], nil] :parameters
34
34
  #
35
+ # @example
36
+ # client.export.export_applications(
37
+ # format: "csv",
38
+ # org_id: 123,
39
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
40
+ # from_record: 251,
41
+ # limit_record: 1000
42
+ # )
43
+ #
35
44
  # @return [Hash[String, Object]]
36
45
  def export_applications(request_options: {}, **params)
37
46
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -41,10 +50,12 @@ module Payabli
41
50
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
42
51
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
43
52
 
53
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
44
54
  request = Payabli::Internal::JSON::Request.new(
45
55
  base_url: request_options[:base_url],
46
56
  method: "GET",
47
57
  path: "Export/boarding/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:org_id].to_s)}",
58
+ headers: headers,
48
59
  query: query_params,
49
60
  request_options: request_options
50
61
  )
@@ -84,6 +95,15 @@ module Payabli
84
95
  # @option params [Integer, nil] :limit_record
85
96
  # @option params [Hash[String, String, nil], nil] :parameters
86
97
  #
98
+ # @example
99
+ # client.export.export_batch_details(
100
+ # format: "csv",
101
+ # entry: "8cfec329267",
102
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
103
+ # from_record: 251,
104
+ # limit_record: 1000
105
+ # )
106
+ #
87
107
  # @return [Hash[String, Object]]
88
108
  def export_batch_details(request_options: {}, **params)
89
109
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -93,10 +113,12 @@ module Payabli
93
113
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
94
114
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
95
115
 
116
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
96
117
  request = Payabli::Internal::JSON::Request.new(
97
118
  base_url: request_options[:base_url],
98
119
  method: "GET",
99
120
  path: "Export/batchDetails/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
121
+ headers: headers,
100
122
  query: query_params,
101
123
  request_options: request_options
102
124
  )
@@ -136,6 +158,15 @@ module Payabli
136
158
  # @option params [Integer, nil] :limit_record
137
159
  # @option params [Hash[String, String, nil], nil] :parameters
138
160
  #
161
+ # @example
162
+ # client.export.export_batch_details_org(
163
+ # format: "csv",
164
+ # org_id: 123,
165
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
166
+ # from_record: 251,
167
+ # limit_record: 1000
168
+ # )
169
+ #
139
170
  # @return [Hash[String, Object]]
140
171
  def export_batch_details_org(request_options: {}, **params)
141
172
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -145,10 +176,12 @@ module Payabli
145
176
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
146
177
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
147
178
 
179
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
148
180
  request = Payabli::Internal::JSON::Request.new(
149
181
  base_url: request_options[:base_url],
150
182
  method: "GET",
151
183
  path: "Export/batchDetails/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
184
+ headers: headers,
152
185
  query: query_params,
153
186
  request_options: request_options
154
187
  )
@@ -188,6 +221,15 @@ module Payabli
188
221
  # @option params [Integer, nil] :limit_record
189
222
  # @option params [Hash[String, String, nil], nil] :parameters
190
223
  #
224
+ # @example
225
+ # client.export.export_batches(
226
+ # format: "csv",
227
+ # entry: "8cfec329267",
228
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
229
+ # from_record: 251,
230
+ # limit_record: 1000
231
+ # )
232
+ #
191
233
  # @return [Hash[String, Object]]
192
234
  def export_batches(request_options: {}, **params)
193
235
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -197,10 +239,12 @@ module Payabli
197
239
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
198
240
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
199
241
 
242
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
200
243
  request = Payabli::Internal::JSON::Request.new(
201
244
  base_url: request_options[:base_url],
202
245
  method: "GET",
203
246
  path: "Export/batches/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
247
+ headers: headers,
204
248
  query: query_params,
205
249
  request_options: request_options
206
250
  )
@@ -240,6 +284,15 @@ module Payabli
240
284
  # @option params [Integer, nil] :limit_record
241
285
  # @option params [Hash[String, String, nil], nil] :parameters
242
286
  #
287
+ # @example
288
+ # client.export.export_batches_org(
289
+ # format: "csv",
290
+ # org_id: 123,
291
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
292
+ # from_record: 251,
293
+ # limit_record: 1000
294
+ # )
295
+ #
243
296
  # @return [Hash[String, Object]]
244
297
  def export_batches_org(request_options: {}, **params)
245
298
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -249,10 +302,12 @@ module Payabli
249
302
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
250
303
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
251
304
 
305
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
252
306
  request = Payabli::Internal::JSON::Request.new(
253
307
  base_url: request_options[:base_url],
254
308
  method: "GET",
255
309
  path: "Export/batches/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
310
+ headers: headers,
256
311
  query: query_params,
257
312
  request_options: request_options
258
313
  )
@@ -292,6 +347,15 @@ module Payabli
292
347
  # @option params [Integer, nil] :limit_record
293
348
  # @option params [Hash[String, String, nil], nil] :parameters
294
349
  #
350
+ # @example
351
+ # client.export.export_batches_out(
352
+ # format: "csv",
353
+ # entry: "8cfec329267",
354
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
355
+ # from_record: 251,
356
+ # limit_record: 1000
357
+ # )
358
+ #
295
359
  # @return [Hash[String, Object]]
296
360
  def export_batches_out(request_options: {}, **params)
297
361
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -301,10 +365,12 @@ module Payabli
301
365
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
302
366
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
303
367
 
368
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
304
369
  request = Payabli::Internal::JSON::Request.new(
305
370
  base_url: request_options[:base_url],
306
371
  method: "GET",
307
372
  path: "Export/batchesOut/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
373
+ headers: headers,
308
374
  query: query_params,
309
375
  request_options: request_options
310
376
  )
@@ -344,6 +410,15 @@ module Payabli
344
410
  # @option params [Integer, nil] :limit_record
345
411
  # @option params [Hash[String, String, nil], nil] :parameters
346
412
  #
413
+ # @example
414
+ # client.export.export_batches_out_org(
415
+ # format: "csv",
416
+ # org_id: 123,
417
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
418
+ # from_record: 251,
419
+ # limit_record: 1000
420
+ # )
421
+ #
347
422
  # @return [Hash[String, Object]]
348
423
  def export_batches_out_org(request_options: {}, **params)
349
424
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -353,10 +428,12 @@ module Payabli
353
428
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
354
429
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
355
430
 
431
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
356
432
  request = Payabli::Internal::JSON::Request.new(
357
433
  base_url: request_options[:base_url],
358
434
  method: "GET",
359
435
  path: "Export/batchesOut/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
436
+ headers: headers,
360
437
  query: query_params,
361
438
  request_options: request_options
362
439
  )
@@ -396,6 +473,15 @@ module Payabli
396
473
  # @option params [Integer, nil] :limit_record
397
474
  # @option params [Hash[String, String, nil], nil] :parameters
398
475
  #
476
+ # @example
477
+ # client.export.export_bills(
478
+ # format: "csv",
479
+ # entry: "8cfec329267",
480
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
481
+ # from_record: 251,
482
+ # limit_record: 1000
483
+ # )
484
+ #
399
485
  # @return [Hash[String, Object]]
400
486
  def export_bills(request_options: {}, **params)
401
487
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -405,10 +491,12 @@ module Payabli
405
491
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
406
492
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
407
493
 
494
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
408
495
  request = Payabli::Internal::JSON::Request.new(
409
496
  base_url: request_options[:base_url],
410
497
  method: "GET",
411
498
  path: "Export/bills/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
499
+ headers: headers,
412
500
  query: query_params,
413
501
  request_options: request_options
414
502
  )
@@ -448,6 +536,15 @@ module Payabli
448
536
  # @option params [Integer, nil] :limit_record
449
537
  # @option params [Hash[String, String, nil], nil] :parameters
450
538
  #
539
+ # @example
540
+ # client.export.export_bills_org(
541
+ # format: "csv",
542
+ # org_id: 123,
543
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
544
+ # from_record: 251,
545
+ # limit_record: 1000
546
+ # )
547
+ #
451
548
  # @return [Hash[String, Object]]
452
549
  def export_bills_org(request_options: {}, **params)
453
550
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -457,10 +554,12 @@ module Payabli
457
554
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
458
555
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
459
556
 
557
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
460
558
  request = Payabli::Internal::JSON::Request.new(
461
559
  base_url: request_options[:base_url],
462
560
  method: "GET",
463
561
  path: "Export/bills/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
562
+ headers: headers,
464
563
  query: query_params,
465
564
  request_options: request_options
466
565
  )
@@ -500,6 +599,15 @@ module Payabli
500
599
  # @option params [Integer, nil] :limit_record
501
600
  # @option params [Hash[String, String, nil], nil] :parameters
502
601
  #
602
+ # @example
603
+ # client.export.export_chargebacks(
604
+ # format: "csv",
605
+ # entry: "8cfec329267",
606
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
607
+ # from_record: 251,
608
+ # limit_record: 1000
609
+ # )
610
+ #
503
611
  # @return [Hash[String, Object]]
504
612
  def export_chargebacks(request_options: {}, **params)
505
613
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -509,10 +617,12 @@ module Payabli
509
617
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
510
618
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
511
619
 
620
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
512
621
  request = Payabli::Internal::JSON::Request.new(
513
622
  base_url: request_options[:base_url],
514
623
  method: "GET",
515
624
  path: "Export/chargebacks/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
625
+ headers: headers,
516
626
  query: query_params,
517
627
  request_options: request_options
518
628
  )
@@ -552,6 +662,15 @@ module Payabli
552
662
  # @option params [Integer, nil] :limit_record
553
663
  # @option params [Hash[String, String, nil], nil] :parameters
554
664
  #
665
+ # @example
666
+ # client.export.export_chargebacks_org(
667
+ # format: "csv",
668
+ # org_id: 123,
669
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
670
+ # from_record: 251,
671
+ # limit_record: 1000
672
+ # )
673
+ #
555
674
  # @return [Hash[String, Object]]
556
675
  def export_chargebacks_org(request_options: {}, **params)
557
676
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -561,10 +680,12 @@ module Payabli
561
680
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
562
681
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
563
682
 
683
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
564
684
  request = Payabli::Internal::JSON::Request.new(
565
685
  base_url: request_options[:base_url],
566
686
  method: "GET",
567
687
  path: "Export/chargebacks/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
688
+ headers: headers,
568
689
  query: query_params,
569
690
  request_options: request_options
570
691
  )
@@ -604,6 +725,15 @@ module Payabli
604
725
  # @option params [Integer, nil] :limit_record
605
726
  # @option params [Hash[String, String, nil], nil] :parameters
606
727
  #
728
+ # @example
729
+ # client.export.export_customers(
730
+ # format: "csv",
731
+ # entry: "8cfec329267",
732
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
733
+ # from_record: 251,
734
+ # limit_record: 1000
735
+ # )
736
+ #
607
737
  # @return [Hash[String, Object]]
608
738
  def export_customers(request_options: {}, **params)
609
739
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -613,10 +743,12 @@ module Payabli
613
743
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
614
744
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
615
745
 
746
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
616
747
  request = Payabli::Internal::JSON::Request.new(
617
748
  base_url: request_options[:base_url],
618
749
  method: "GET",
619
750
  path: "Export/customers/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
751
+ headers: headers,
620
752
  query: query_params,
621
753
  request_options: request_options
622
754
  )
@@ -656,6 +788,15 @@ module Payabli
656
788
  # @option params [Integer, nil] :limit_record
657
789
  # @option params [Hash[String, String, nil], nil] :parameters
658
790
  #
791
+ # @example
792
+ # client.export.export_customers_org(
793
+ # format: "csv",
794
+ # org_id: 123,
795
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
796
+ # from_record: 251,
797
+ # limit_record: 1000
798
+ # )
799
+ #
659
800
  # @return [Hash[String, Object]]
660
801
  def export_customers_org(request_options: {}, **params)
661
802
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -665,10 +806,12 @@ module Payabli
665
806
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
666
807
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
667
808
 
809
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
668
810
  request = Payabli::Internal::JSON::Request.new(
669
811
  base_url: request_options[:base_url],
670
812
  method: "GET",
671
813
  path: "Export/customers/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
814
+ headers: headers,
672
815
  query: query_params,
673
816
  request_options: request_options
674
817
  )
@@ -708,6 +851,15 @@ module Payabli
708
851
  # @option params [Integer, nil] :limit_record
709
852
  # @option params [Hash[String, String, nil], nil] :parameters
710
853
  #
854
+ # @example
855
+ # client.export.export_invoices(
856
+ # format: "csv",
857
+ # entry: "8cfec329267",
858
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
859
+ # from_record: 251,
860
+ # limit_record: 1000
861
+ # )
862
+ #
711
863
  # @return [Hash[String, Object]]
712
864
  def export_invoices(request_options: {}, **params)
713
865
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -717,10 +869,12 @@ module Payabli
717
869
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
718
870
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
719
871
 
872
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
720
873
  request = Payabli::Internal::JSON::Request.new(
721
874
  base_url: request_options[:base_url],
722
875
  method: "GET",
723
876
  path: "Export/invoices/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
877
+ headers: headers,
724
878
  query: query_params,
725
879
  request_options: request_options
726
880
  )
@@ -760,6 +914,15 @@ module Payabli
760
914
  # @option params [Integer, nil] :limit_record
761
915
  # @option params [Hash[String, String, nil], nil] :parameters
762
916
  #
917
+ # @example
918
+ # client.export.export_invoices_org(
919
+ # format: "csv",
920
+ # org_id: 123,
921
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
922
+ # from_record: 251,
923
+ # limit_record: 1000
924
+ # )
925
+ #
763
926
  # @return [Hash[String, Object]]
764
927
  def export_invoices_org(request_options: {}, **params)
765
928
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -769,10 +932,12 @@ module Payabli
769
932
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
770
933
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
771
934
 
935
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
772
936
  request = Payabli::Internal::JSON::Request.new(
773
937
  base_url: request_options[:base_url],
774
938
  method: "GET",
775
939
  path: "Export/invoices/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
940
+ headers: headers,
776
941
  query: query_params,
777
942
  request_options: request_options
778
943
  )
@@ -812,6 +977,15 @@ module Payabli
812
977
  # @option params [Integer, nil] :limit_record
813
978
  # @option params [Hash[String, String, nil], nil] :parameters
814
979
  #
980
+ # @example
981
+ # client.export.export_organizations(
982
+ # format: "csv",
983
+ # org_id: 123,
984
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
985
+ # from_record: 251,
986
+ # limit_record: 1000
987
+ # )
988
+ #
815
989
  # @return [Hash[String, Object]]
816
990
  def export_organizations(request_options: {}, **params)
817
991
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -821,10 +995,12 @@ module Payabli
821
995
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
822
996
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
823
997
 
998
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
824
999
  request = Payabli::Internal::JSON::Request.new(
825
1000
  base_url: request_options[:base_url],
826
1001
  method: "GET",
827
1002
  path: "Export/organizations/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1003
+ headers: headers,
828
1004
  query: query_params,
829
1005
  request_options: request_options
830
1006
  )
@@ -864,6 +1040,15 @@ module Payabli
864
1040
  # @option params [Integer, nil] :limit_record
865
1041
  # @option params [Hash[String, String, nil], nil] :parameters
866
1042
  #
1043
+ # @example
1044
+ # client.export.export_payout(
1045
+ # format: "csv",
1046
+ # entry: "8cfec329267",
1047
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
1048
+ # from_record: 251,
1049
+ # limit_record: 1000
1050
+ # )
1051
+ #
867
1052
  # @return [Hash[String, Object]]
868
1053
  def export_payout(request_options: {}, **params)
869
1054
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -873,10 +1058,12 @@ module Payabli
873
1058
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
874
1059
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
875
1060
 
1061
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
876
1062
  request = Payabli::Internal::JSON::Request.new(
877
1063
  base_url: request_options[:base_url],
878
1064
  method: "GET",
879
1065
  path: "Export/payouts/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
1066
+ headers: headers,
880
1067
  query: query_params,
881
1068
  request_options: request_options
882
1069
  )
@@ -916,6 +1103,15 @@ module Payabli
916
1103
  # @option params [Integer, nil] :limit_record
917
1104
  # @option params [Hash[String, String, nil], nil] :parameters
918
1105
  #
1106
+ # @example
1107
+ # client.export.export_payout_org(
1108
+ # format: "csv",
1109
+ # org_id: 123,
1110
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
1111
+ # from_record: 251,
1112
+ # limit_record: 1000
1113
+ # )
1114
+ #
919
1115
  # @return [Hash[String, Object]]
920
1116
  def export_payout_org(request_options: {}, **params)
921
1117
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -925,10 +1121,12 @@ module Payabli
925
1121
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
926
1122
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
927
1123
 
1124
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
928
1125
  request = Payabli::Internal::JSON::Request.new(
929
1126
  base_url: request_options[:base_url],
930
1127
  method: "GET",
931
1128
  path: "Export/payouts/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1129
+ headers: headers,
932
1130
  query: query_params,
933
1131
  request_options: request_options
934
1132
  )
@@ -968,6 +1166,15 @@ module Payabli
968
1166
  # @option params [Integer, nil] :limit_record
969
1167
  # @option params [Hash[String, String, nil], nil] :parameters
970
1168
  #
1169
+ # @example
1170
+ # client.export.export_paypoints(
1171
+ # format: "csv",
1172
+ # org_id: 123,
1173
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
1174
+ # from_record: 251,
1175
+ # limit_record: 1000
1176
+ # )
1177
+ #
971
1178
  # @return [Hash[String, Object]]
972
1179
  def export_paypoints(request_options: {}, **params)
973
1180
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -977,10 +1184,12 @@ module Payabli
977
1184
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
978
1185
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
979
1186
 
1187
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
980
1188
  request = Payabli::Internal::JSON::Request.new(
981
1189
  base_url: request_options[:base_url],
982
1190
  method: "GET",
983
1191
  path: "Export/paypoints/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:org_id].to_s)}",
1192
+ headers: headers,
984
1193
  query: query_params,
985
1194
  request_options: request_options
986
1195
  )
@@ -1020,6 +1229,15 @@ module Payabli
1020
1229
  # @option params [Integer, nil] :limit_record
1021
1230
  # @option params [Hash[String, String, nil], nil] :parameters
1022
1231
  #
1232
+ # @example
1233
+ # client.export.export_settlements(
1234
+ # format: "csv",
1235
+ # entry: "8cfec329267",
1236
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
1237
+ # from_record: 251,
1238
+ # limit_record: 1000
1239
+ # )
1240
+ #
1023
1241
  # @return [Hash[String, Object]]
1024
1242
  def export_settlements(request_options: {}, **params)
1025
1243
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1029,10 +1247,12 @@ module Payabli
1029
1247
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
1030
1248
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1031
1249
 
1250
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1032
1251
  request = Payabli::Internal::JSON::Request.new(
1033
1252
  base_url: request_options[:base_url],
1034
1253
  method: "GET",
1035
1254
  path: "Export/settlements/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
1255
+ headers: headers,
1036
1256
  query: query_params,
1037
1257
  request_options: request_options
1038
1258
  )
@@ -1072,6 +1292,15 @@ module Payabli
1072
1292
  # @option params [Integer, nil] :limit_record
1073
1293
  # @option params [Hash[String, String, nil], nil] :parameters
1074
1294
  #
1295
+ # @example
1296
+ # client.export.export_settlements_org(
1297
+ # format: "csv",
1298
+ # org_id: 123,
1299
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
1300
+ # from_record: 251,
1301
+ # limit_record: 1000
1302
+ # )
1303
+ #
1075
1304
  # @return [Hash[String, Object]]
1076
1305
  def export_settlements_org(request_options: {}, **params)
1077
1306
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1081,10 +1310,12 @@ module Payabli
1081
1310
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
1082
1311
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1083
1312
 
1313
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1084
1314
  request = Payabli::Internal::JSON::Request.new(
1085
1315
  base_url: request_options[:base_url],
1086
1316
  method: "GET",
1087
1317
  path: "Export/settlements/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1318
+ headers: headers,
1088
1319
  query: query_params,
1089
1320
  request_options: request_options
1090
1321
  )
@@ -1124,6 +1355,15 @@ module Payabli
1124
1355
  # @option params [Integer, nil] :limit_record
1125
1356
  # @option params [Hash[String, String, nil], nil] :parameters
1126
1357
  #
1358
+ # @example
1359
+ # client.export.export_subscriptions(
1360
+ # format: "csv",
1361
+ # entry: "8cfec329267",
1362
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
1363
+ # from_record: 251,
1364
+ # limit_record: 1000
1365
+ # )
1366
+ #
1127
1367
  # @return [Hash[String, Object]]
1128
1368
  def export_subscriptions(request_options: {}, **params)
1129
1369
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1133,10 +1373,12 @@ module Payabli
1133
1373
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
1134
1374
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1135
1375
 
1376
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1136
1377
  request = Payabli::Internal::JSON::Request.new(
1137
1378
  base_url: request_options[:base_url],
1138
1379
  method: "GET",
1139
1380
  path: "Export/subscriptions/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
1381
+ headers: headers,
1140
1382
  query: query_params,
1141
1383
  request_options: request_options
1142
1384
  )
@@ -1176,6 +1418,15 @@ module Payabli
1176
1418
  # @option params [Integer, nil] :limit_record
1177
1419
  # @option params [Hash[String, String, nil], nil] :parameters
1178
1420
  #
1421
+ # @example
1422
+ # client.export.export_subscriptions_org(
1423
+ # format: "csv",
1424
+ # org_id: 123,
1425
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
1426
+ # from_record: 251,
1427
+ # limit_record: 1000
1428
+ # )
1429
+ #
1179
1430
  # @return [Hash[String, Object]]
1180
1431
  def export_subscriptions_org(request_options: {}, **params)
1181
1432
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1185,10 +1436,12 @@ module Payabli
1185
1436
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
1186
1437
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1187
1438
 
1439
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1188
1440
  request = Payabli::Internal::JSON::Request.new(
1189
1441
  base_url: request_options[:base_url],
1190
1442
  method: "GET",
1191
1443
  path: "Export/subscriptions/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1444
+ headers: headers,
1192
1445
  query: query_params,
1193
1446
  request_options: request_options
1194
1447
  )
@@ -1229,6 +1482,15 @@ module Payabli
1229
1482
  # @option params [Integer, nil] :limit_record
1230
1483
  # @option params [Hash[String, String, nil], nil] :parameters
1231
1484
  #
1485
+ # @example
1486
+ # client.export.export_transactions(
1487
+ # format: "csv",
1488
+ # entry: "8cfec329267",
1489
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
1490
+ # from_record: 251,
1491
+ # limit_record: 1000
1492
+ # )
1493
+ #
1232
1494
  # @return [Hash[String, Object]]
1233
1495
  def export_transactions(request_options: {}, **params)
1234
1496
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1238,10 +1500,12 @@ module Payabli
1238
1500
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
1239
1501
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1240
1502
 
1503
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1241
1504
  request = Payabli::Internal::JSON::Request.new(
1242
1505
  base_url: request_options[:base_url],
1243
1506
  method: "GET",
1244
1507
  path: "Export/transactions/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
1508
+ headers: headers,
1245
1509
  query: query_params,
1246
1510
  request_options: request_options
1247
1511
  )
@@ -1282,6 +1546,15 @@ module Payabli
1282
1546
  # @option params [Integer, nil] :limit_record
1283
1547
  # @option params [Hash[String, String, nil], nil] :parameters
1284
1548
  #
1549
+ # @example
1550
+ # client.export.export_transactions_org(
1551
+ # format: "csv",
1552
+ # org_id: 123,
1553
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
1554
+ # from_record: 251,
1555
+ # limit_record: 1000
1556
+ # )
1557
+ #
1285
1558
  # @return [Hash[String, Object]]
1286
1559
  def export_transactions_org(request_options: {}, **params)
1287
1560
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1291,10 +1564,12 @@ module Payabli
1291
1564
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
1292
1565
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1293
1566
 
1567
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1294
1568
  request = Payabli::Internal::JSON::Request.new(
1295
1569
  base_url: request_options[:base_url],
1296
1570
  method: "GET",
1297
1571
  path: "Export/transactions/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1572
+ headers: headers,
1298
1573
  query: query_params,
1299
1574
  request_options: request_options
1300
1575
  )
@@ -1336,6 +1611,17 @@ module Payabli
1336
1611
  # @option params [Hash[String, String, nil], nil] :parameters
1337
1612
  # @option params [String, nil] :sort_by
1338
1613
  #
1614
+ # @example
1615
+ # client.export.export_transfer_details(
1616
+ # format: "csv",
1617
+ # entry: "8cfec329267",
1618
+ # transfer_id: 4521,
1619
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
1620
+ # from_record: 251,
1621
+ # limit_record: 1000,
1622
+ # sort_by: "desc(field_name)"
1623
+ # )
1624
+ #
1339
1625
  # @return [Hash[String, Object]]
1340
1626
  def export_transfer_details(request_options: {}, **params)
1341
1627
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1346,10 +1632,12 @@ module Payabli
1346
1632
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1347
1633
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1348
1634
 
1635
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1349
1636
  request = Payabli::Internal::JSON::Request.new(
1350
1637
  base_url: request_options[:base_url],
1351
1638
  method: "GET",
1352
1639
  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)}",
1640
+ headers: headers,
1353
1641
  query: query_params,
1354
1642
  request_options: request_options
1355
1643
  )
@@ -1389,6 +1677,15 @@ module Payabli
1389
1677
  # @option params [Hash[String, String, nil], nil] :parameters
1390
1678
  # @option params [String, nil] :sort_by
1391
1679
  #
1680
+ # @example
1681
+ # client.export.export_transfers(
1682
+ # entry: "8cfec329267",
1683
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
1684
+ # from_record: 251,
1685
+ # limit_record: 1000,
1686
+ # sort_by: "desc(field_name)"
1687
+ # )
1688
+ #
1392
1689
  # @return [Hash[String, Object]]
1393
1690
  def export_transfers(request_options: {}, **params)
1394
1691
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1399,10 +1696,12 @@ module Payabli
1399
1696
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1400
1697
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1401
1698
 
1699
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1402
1700
  request = Payabli::Internal::JSON::Request.new(
1403
1701
  base_url: request_options[:base_url],
1404
1702
  method: "GET",
1405
1703
  path: "Export/transfers/#{URI.encode_uri_component(params[:entry].to_s)}",
1704
+ headers: headers,
1406
1705
  query: query_params,
1407
1706
  request_options: request_options
1408
1707
  )
@@ -1442,6 +1741,15 @@ module Payabli
1442
1741
  # @option params [Integer, nil] :limit_record
1443
1742
  # @option params [Hash[String, String, nil], nil] :parameters
1444
1743
  #
1744
+ # @example
1745
+ # client.export.export_vendors(
1746
+ # format: "csv",
1747
+ # entry: "8cfec329267",
1748
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
1749
+ # from_record: 251,
1750
+ # limit_record: 1000
1751
+ # )
1752
+ #
1445
1753
  # @return [Hash[String, Object]]
1446
1754
  def export_vendors(request_options: {}, **params)
1447
1755
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1451,10 +1759,12 @@ module Payabli
1451
1759
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
1452
1760
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1453
1761
 
1762
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1454
1763
  request = Payabli::Internal::JSON::Request.new(
1455
1764
  base_url: request_options[:base_url],
1456
1765
  method: "GET",
1457
1766
  path: "Export/vendors/#{URI.encode_uri_component(params[:format].to_s)}/#{URI.encode_uri_component(params[:entry].to_s)}",
1767
+ headers: headers,
1458
1768
  query: query_params,
1459
1769
  request_options: request_options
1460
1770
  )
@@ -1494,6 +1804,15 @@ module Payabli
1494
1804
  # @option params [Integer, nil] :limit_record
1495
1805
  # @option params [Hash[String, String, nil], nil] :parameters
1496
1806
  #
1807
+ # @example
1808
+ # client.export.export_vendors_org(
1809
+ # format: "csv",
1810
+ # org_id: 123,
1811
+ # columns_export: "BatchDate:Batch_Date,PaypointName:Legal_name",
1812
+ # from_record: 251,
1813
+ # limit_record: 1000
1814
+ # )
1815
+ #
1497
1816
  # @return [Hash[String, Object]]
1498
1817
  def export_vendors_org(request_options: {}, **params)
1499
1818
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1503,10 +1822,12 @@ module Payabli
1503
1822
  query_params["limitRecord"] = params[:limit_record] if params.key?(:limit_record)
1504
1823
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1505
1824
 
1825
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1506
1826
  request = Payabli::Internal::JSON::Request.new(
1507
1827
  base_url: request_options[:base_url],
1508
1828
  method: "GET",
1509
1829
  path: "Export/vendors/#{URI.encode_uri_component(params[:format].to_s)}/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1830
+ headers: headers,
1510
1831
  query: query_params,
1511
1832
  request_options: request_options
1512
1833
  )