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
@@ -28,6 +28,14 @@ module Payabli
28
28
  # @option params [Hash[String, String, nil], nil] :parameters
29
29
  # @option params [String, nil] :sort_by
30
30
  #
31
+ # @example
32
+ # client.query.list_batch_details(
33
+ # entry: "8cfec329267",
34
+ # from_record: 251,
35
+ # limit_record: 0,
36
+ # sort_by: "desc(field_name)"
37
+ # )
38
+ #
31
39
  # @return [Payabli::Types::QueryBatchesDetailResponse]
32
40
  def list_batch_details(request_options: {}, **params)
33
41
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -38,10 +46,12 @@ module Payabli
38
46
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
39
47
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
40
48
 
49
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
41
50
  request = Payabli::Internal::JSON::Request.new(
42
51
  base_url: request_options[:base_url],
43
52
  method: "GET",
44
53
  path: "Query/batchDetails/#{URI.encode_uri_component(params[:entry].to_s)}",
54
+ headers: headers,
45
55
  query: query_params,
46
56
  request_options: request_options
47
57
  )
@@ -77,6 +87,14 @@ module Payabli
77
87
  # @option params [Hash[String, String, nil], nil] :parameters
78
88
  # @option params [String, nil] :sort_by
79
89
  #
90
+ # @example
91
+ # client.query.list_batch_details_org(
92
+ # org_id: 123,
93
+ # from_record: 251,
94
+ # limit_record: 0,
95
+ # sort_by: "desc(field_name)"
96
+ # )
97
+ #
80
98
  # @return [Payabli::Types::QueryBatchesDetailResponse]
81
99
  def list_batch_details_org(request_options: {}, **params)
82
100
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -87,10 +105,12 @@ module Payabli
87
105
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
88
106
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
89
107
 
108
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
90
109
  request = Payabli::Internal::JSON::Request.new(
91
110
  base_url: request_options[:base_url],
92
111
  method: "GET",
93
112
  path: "Query/batchDetails/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
113
+ headers: headers,
94
114
  query: query_params,
95
115
  request_options: request_options
96
116
  )
@@ -125,6 +145,14 @@ module Payabli
125
145
  # @option params [Hash[String, String, nil], nil] :parameters
126
146
  # @option params [String, nil] :sort_by
127
147
  #
148
+ # @example
149
+ # client.query.list_batches(
150
+ # entry: "8cfec329267",
151
+ # from_record: 251,
152
+ # limit_record: 0,
153
+ # sort_by: "desc(field_name)"
154
+ # )
155
+ #
128
156
  # @return [Payabli::Types::QueryBatchesResponse]
129
157
  def list_batches(request_options: {}, **params)
130
158
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -135,10 +163,12 @@ module Payabli
135
163
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
136
164
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
137
165
 
166
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
138
167
  request = Payabli::Internal::JSON::Request.new(
139
168
  base_url: request_options[:base_url],
140
169
  method: "GET",
141
170
  path: "Query/batches/#{URI.encode_uri_component(params[:entry].to_s)}",
171
+ headers: headers,
142
172
  query: query_params,
143
173
  request_options: request_options
144
174
  )
@@ -173,6 +203,14 @@ module Payabli
173
203
  # @option params [Hash[String, String, nil], nil] :parameters
174
204
  # @option params [String, nil] :sort_by
175
205
  #
206
+ # @example
207
+ # client.query.list_batches_org(
208
+ # org_id: 123,
209
+ # from_record: 251,
210
+ # limit_record: 0,
211
+ # sort_by: "desc(field_name)"
212
+ # )
213
+ #
176
214
  # @return [Payabli::Types::QueryBatchesResponse]
177
215
  def list_batches_org(request_options: {}, **params)
178
216
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -183,10 +221,12 @@ module Payabli
183
221
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
184
222
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
185
223
 
224
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
186
225
  request = Payabli::Internal::JSON::Request.new(
187
226
  base_url: request_options[:base_url],
188
227
  method: "GET",
189
228
  path: "Query/batches/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
229
+ headers: headers,
190
230
  query: query_params,
191
231
  request_options: request_options
192
232
  )
@@ -221,6 +261,14 @@ module Payabli
221
261
  # @option params [Hash[String, String, nil], nil] :parameters
222
262
  # @option params [String, nil] :sort_by
223
263
  #
264
+ # @example
265
+ # client.query.list_batches_out(
266
+ # entry: "8cfec329267",
267
+ # from_record: 251,
268
+ # limit_record: 0,
269
+ # sort_by: "desc(field_name)"
270
+ # )
271
+ #
224
272
  # @return [Payabli::Types::QueryBatchesOutResponse]
225
273
  def list_batches_out(request_options: {}, **params)
226
274
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -231,10 +279,12 @@ module Payabli
231
279
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
232
280
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
233
281
 
282
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
234
283
  request = Payabli::Internal::JSON::Request.new(
235
284
  base_url: request_options[:base_url],
236
285
  method: "GET",
237
286
  path: "Query/batchesOut/#{URI.encode_uri_component(params[:entry].to_s)}",
287
+ headers: headers,
238
288
  query: query_params,
239
289
  request_options: request_options
240
290
  )
@@ -269,6 +319,14 @@ module Payabli
269
319
  # @option params [Hash[String, String, nil], nil] :parameters
270
320
  # @option params [String, nil] :sort_by
271
321
  #
322
+ # @example
323
+ # client.query.list_batches_out_org(
324
+ # org_id: 123,
325
+ # from_record: 251,
326
+ # limit_record: 0,
327
+ # sort_by: "desc(field_name)"
328
+ # )
329
+ #
272
330
  # @return [Payabli::Types::QueryBatchesOutResponse]
273
331
  def list_batches_out_org(request_options: {}, **params)
274
332
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -279,10 +337,12 @@ module Payabli
279
337
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
280
338
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
281
339
 
340
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
282
341
  request = Payabli::Internal::JSON::Request.new(
283
342
  base_url: request_options[:base_url],
284
343
  method: "GET",
285
344
  path: "Query/batchesOut/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
345
+ headers: headers,
286
346
  query: query_params,
287
347
  request_options: request_options
288
348
  )
@@ -317,6 +377,14 @@ module Payabli
317
377
  # @option params [Hash[String, String, nil], nil] :parameters
318
378
  # @option params [String, nil] :sort_by
319
379
  #
380
+ # @example
381
+ # client.query.list_chargebacks(
382
+ # entry: "8cfec329267",
383
+ # from_record: 251,
384
+ # limit_record: 0,
385
+ # sort_by: "desc(field_name)"
386
+ # )
387
+ #
320
388
  # @return [Payabli::Types::QueryChargebacksResponse]
321
389
  def list_chargebacks(request_options: {}, **params)
322
390
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -327,10 +395,12 @@ module Payabli
327
395
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
328
396
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
329
397
 
398
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
330
399
  request = Payabli::Internal::JSON::Request.new(
331
400
  base_url: request_options[:base_url],
332
401
  method: "GET",
333
402
  path: "Query/chargebacks/#{URI.encode_uri_component(params[:entry].to_s)}",
403
+ headers: headers,
334
404
  query: query_params,
335
405
  request_options: request_options
336
406
  )
@@ -365,6 +435,14 @@ module Payabli
365
435
  # @option params [Hash[String, String, nil], nil] :parameters
366
436
  # @option params [String, nil] :sort_by
367
437
  #
438
+ # @example
439
+ # client.query.list_chargebacks_org(
440
+ # org_id: 123,
441
+ # from_record: 251,
442
+ # limit_record: 0,
443
+ # sort_by: "desc(field_name)"
444
+ # )
445
+ #
368
446
  # @return [Payabli::Types::QueryChargebacksResponse]
369
447
  def list_chargebacks_org(request_options: {}, **params)
370
448
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -375,10 +453,12 @@ module Payabli
375
453
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
376
454
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
377
455
 
456
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
378
457
  request = Payabli::Internal::JSON::Request.new(
379
458
  base_url: request_options[:base_url],
380
459
  method: "GET",
381
460
  path: "Query/chargebacks/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
461
+ headers: headers,
382
462
  query: query_params,
383
463
  request_options: request_options
384
464
  )
@@ -413,6 +493,14 @@ module Payabli
413
493
  # @option params [Hash[String, String, nil], nil] :parameters
414
494
  # @option params [String, nil] :sort_by
415
495
  #
496
+ # @example
497
+ # client.query.list_customers(
498
+ # entry: "8cfec329267",
499
+ # from_record: 251,
500
+ # limit_record: 0,
501
+ # sort_by: "desc(field_name)"
502
+ # )
503
+ #
416
504
  # @return [Payabli::Types::QueryCustomerResponse]
417
505
  def list_customers(request_options: {}, **params)
418
506
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -423,10 +511,12 @@ module Payabli
423
511
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
424
512
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
425
513
 
514
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
426
515
  request = Payabli::Internal::JSON::Request.new(
427
516
  base_url: request_options[:base_url],
428
517
  method: "GET",
429
518
  path: "Query/customers/#{URI.encode_uri_component(params[:entry].to_s)}",
519
+ headers: headers,
430
520
  query: query_params,
431
521
  request_options: request_options
432
522
  )
@@ -461,6 +551,14 @@ module Payabli
461
551
  # @option params [Hash[String, String, nil], nil] :parameters
462
552
  # @option params [String, nil] :sort_by
463
553
  #
554
+ # @example
555
+ # client.query.list_customers_org(
556
+ # org_id: 123,
557
+ # from_record: 251,
558
+ # limit_record: 0,
559
+ # sort_by: "desc(field_name)"
560
+ # )
561
+ #
464
562
  # @return [Payabli::Types::QueryCustomerResponse]
465
563
  def list_customers_org(request_options: {}, **params)
466
564
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -471,10 +569,12 @@ module Payabli
471
569
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
472
570
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
473
571
 
572
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
474
573
  request = Payabli::Internal::JSON::Request.new(
475
574
  base_url: request_options[:base_url],
476
575
  method: "GET",
477
576
  path: "Query/customers/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
577
+ headers: headers,
478
578
  query: query_params,
479
579
  request_options: request_options
480
580
  )
@@ -509,6 +609,14 @@ module Payabli
509
609
  # @option params [Hash[String, String, nil], nil] :parameters
510
610
  # @option params [String, nil] :sort_by
511
611
  #
612
+ # @example
613
+ # client.query.list_devices(
614
+ # entry: "8cfec329267",
615
+ # from_record: 0,
616
+ # limit_record: 20,
617
+ # sort_by: "desc(createdAt)"
618
+ # )
619
+ #
512
620
  # @return [Payabli::Types::QueryDeviceResponse]
513
621
  def list_devices(request_options: {}, **params)
514
622
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -519,10 +627,12 @@ module Payabli
519
627
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
520
628
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
521
629
 
630
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
522
631
  request = Payabli::Internal::JSON::Request.new(
523
632
  base_url: request_options[:base_url],
524
633
  method: "GET",
525
634
  path: "Query/devices/#{URI.encode_uri_component(params[:entry].to_s)}",
635
+ headers: headers,
526
636
  query: query_params,
527
637
  request_options: request_options
528
638
  )
@@ -557,6 +667,14 @@ module Payabli
557
667
  # @option params [Hash[String, String, nil], nil] :parameters
558
668
  # @option params [String, nil] :sort_by
559
669
  #
670
+ # @example
671
+ # client.query.list_devices_org(
672
+ # org_id: 123,
673
+ # from_record: 0,
674
+ # limit_record: 20,
675
+ # sort_by: "desc(createdAt)"
676
+ # )
677
+ #
560
678
  # @return [Payabli::Types::QueryDeviceResponse]
561
679
  def list_devices_org(request_options: {}, **params)
562
680
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -567,10 +685,12 @@ module Payabli
567
685
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
568
686
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
569
687
 
688
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
570
689
  request = Payabli::Internal::JSON::Request.new(
571
690
  base_url: request_options[:base_url],
572
691
  method: "GET",
573
692
  path: "Query/devices/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
693
+ headers: headers,
574
694
  query: query_params,
575
695
  request_options: request_options
576
696
  )
@@ -604,6 +724,14 @@ module Payabli
604
724
  # @option params [Hash[String, String, nil], nil] :parameters
605
725
  # @option params [String, nil] :sort_by
606
726
  #
727
+ # @example
728
+ # client.query.list_notification_reports(
729
+ # entry: "8cfec329267",
730
+ # from_record: 251,
731
+ # limit_record: 0,
732
+ # sort_by: "desc(field_name)"
733
+ # )
734
+ #
607
735
  # @return [Payabli::Types::QueryResponseNotificationReports]
608
736
  def list_notification_reports(request_options: {}, **params)
609
737
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -613,10 +741,12 @@ module Payabli
613
741
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
614
742
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
615
743
 
744
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
616
745
  request = Payabli::Internal::JSON::Request.new(
617
746
  base_url: request_options[:base_url],
618
747
  method: "GET",
619
748
  path: "Query/notificationReports/#{URI.encode_uri_component(params[:entry].to_s)}",
749
+ headers: headers,
620
750
  query: query_params,
621
751
  request_options: request_options
622
752
  )
@@ -649,6 +779,14 @@ module Payabli
649
779
  # @option params [Hash[String, String, nil], nil] :parameters
650
780
  # @option params [String, nil] :sort_by
651
781
  #
782
+ # @example
783
+ # client.query.list_notification_reports_org(
784
+ # org_id: 123,
785
+ # from_record: 251,
786
+ # limit_record: 0,
787
+ # sort_by: "desc(field_name)"
788
+ # )
789
+ #
652
790
  # @return [Payabli::Types::QueryResponseNotificationReports]
653
791
  def list_notification_reports_org(request_options: {}, **params)
654
792
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -658,10 +796,12 @@ module Payabli
658
796
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
659
797
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
660
798
 
799
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
661
800
  request = Payabli::Internal::JSON::Request.new(
662
801
  base_url: request_options[:base_url],
663
802
  method: "GET",
664
803
  path: "Query/notificationReports/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
804
+ headers: headers,
665
805
  query: query_params,
666
806
  request_options: request_options
667
807
  )
@@ -694,6 +834,14 @@ module Payabli
694
834
  # @option params [Hash[String, String, nil], nil] :parameters
695
835
  # @option params [String, nil] :sort_by
696
836
  #
837
+ # @example
838
+ # client.query.list_notifications(
839
+ # entry: "8cfec329267",
840
+ # from_record: 251,
841
+ # limit_record: 0,
842
+ # sort_by: "desc(field_name)"
843
+ # )
844
+ #
697
845
  # @return [Payabli::Types::QueryResponseNotifications]
698
846
  def list_notifications(request_options: {}, **params)
699
847
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -703,10 +851,12 @@ module Payabli
703
851
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
704
852
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
705
853
 
854
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
706
855
  request = Payabli::Internal::JSON::Request.new(
707
856
  base_url: request_options[:base_url],
708
857
  method: "GET",
709
858
  path: "Query/notifications/#{URI.encode_uri_component(params[:entry].to_s)}",
859
+ headers: headers,
710
860
  query: query_params,
711
861
  request_options: request_options
712
862
  )
@@ -739,6 +889,14 @@ module Payabli
739
889
  # @option params [Hash[String, String, nil], nil] :parameters
740
890
  # @option params [String, nil] :sort_by
741
891
  #
892
+ # @example
893
+ # client.query.list_notifications_org(
894
+ # org_id: 123,
895
+ # from_record: 251,
896
+ # limit_record: 0,
897
+ # sort_by: "desc(field_name)"
898
+ # )
899
+ #
742
900
  # @return [Payabli::Types::QueryResponseNotifications]
743
901
  def list_notifications_org(request_options: {}, **params)
744
902
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -748,10 +906,12 @@ module Payabli
748
906
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
749
907
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
750
908
 
909
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
751
910
  request = Payabli::Internal::JSON::Request.new(
752
911
  base_url: request_options[:base_url],
753
912
  method: "GET",
754
913
  path: "Query/notifications/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
914
+ headers: headers,
755
915
  query: query_params,
756
916
  request_options: request_options
757
917
  )
@@ -787,6 +947,14 @@ module Payabli
787
947
  # @option params [Hash[String, String, nil], nil] :parameters
788
948
  # @option params [String, nil] :sort_by
789
949
  #
950
+ # @example
951
+ # client.query.list_organizations(
952
+ # org_id: 123,
953
+ # from_record: 251,
954
+ # limit_record: 0,
955
+ # sort_by: "desc(field_name)"
956
+ # )
957
+ #
790
958
  # @return [Payabli::Types::ListOrganizationsResponse]
791
959
  def list_organizations(request_options: {}, **params)
792
960
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -797,10 +965,12 @@ module Payabli
797
965
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
798
966
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
799
967
 
968
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
800
969
  request = Payabli::Internal::JSON::Request.new(
801
970
  base_url: request_options[:base_url],
802
971
  method: "GET",
803
972
  path: "Query/organizations/#{URI.encode_uri_component(params[:org_id].to_s)}",
973
+ headers: headers,
804
974
  query: query_params,
805
975
  request_options: request_options
806
976
  )
@@ -835,6 +1005,14 @@ module Payabli
835
1005
  # @option params [Hash[String, String, nil], nil] :parameters
836
1006
  # @option params [String, nil] :sort_by
837
1007
  #
1008
+ # @example
1009
+ # client.query.list_payout(
1010
+ # entry: "8cfec329267",
1011
+ # from_record: 251,
1012
+ # limit_record: 0,
1013
+ # sort_by: "desc(field_name)"
1014
+ # )
1015
+ #
838
1016
  # @return [Payabli::Types::QueryPayoutTransaction]
839
1017
  def list_payout(request_options: {}, **params)
840
1018
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -845,10 +1023,12 @@ module Payabli
845
1023
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
846
1024
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
847
1025
 
1026
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
848
1027
  request = Payabli::Internal::JSON::Request.new(
849
1028
  base_url: request_options[:base_url],
850
1029
  method: "GET",
851
1030
  path: "Query/payouts/#{URI.encode_uri_component(params[:entry].to_s)}",
1031
+ headers: headers,
852
1032
  query: query_params,
853
1033
  request_options: request_options
854
1034
  )
@@ -883,6 +1063,14 @@ module Payabli
883
1063
  # @option params [Hash[String, String, nil], nil] :parameters
884
1064
  # @option params [String, nil] :sort_by
885
1065
  #
1066
+ # @example
1067
+ # client.query.list_payout_org(
1068
+ # org_id: 123,
1069
+ # from_record: 251,
1070
+ # limit_record: 0,
1071
+ # sort_by: "desc(field_name)"
1072
+ # )
1073
+ #
886
1074
  # @return [Payabli::Types::QueryPayoutTransaction]
887
1075
  def list_payout_org(request_options: {}, **params)
888
1076
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -893,10 +1081,12 @@ module Payabli
893
1081
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
894
1082
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
895
1083
 
1084
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
896
1085
  request = Payabli::Internal::JSON::Request.new(
897
1086
  base_url: request_options[:base_url],
898
1087
  method: "GET",
899
1088
  path: "Query/payouts/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1089
+ headers: headers,
900
1090
  query: query_params,
901
1091
  request_options: request_options
902
1092
  )
@@ -931,6 +1121,14 @@ module Payabli
931
1121
  # @option params [Hash[String, String, nil], nil] :parameters
932
1122
  # @option params [String, nil] :sort_by
933
1123
  #
1124
+ # @example
1125
+ # client.query.list_paypoints(
1126
+ # org_id: 123,
1127
+ # from_record: 251,
1128
+ # limit_record: 0,
1129
+ # sort_by: "desc(field_name)"
1130
+ # )
1131
+ #
934
1132
  # @return [Payabli::Types::QueryEntrypointResponse]
935
1133
  def list_paypoints(request_options: {}, **params)
936
1134
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -941,10 +1139,12 @@ module Payabli
941
1139
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
942
1140
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
943
1141
 
1142
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
944
1143
  request = Payabli::Internal::JSON::Request.new(
945
1144
  base_url: request_options[:base_url],
946
1145
  method: "GET",
947
1146
  path: "Query/paypoints/#{URI.encode_uri_component(params[:org_id].to_s)}",
1147
+ headers: headers,
948
1148
  query: query_params,
949
1149
  request_options: request_options
950
1150
  )
@@ -979,6 +1179,14 @@ module Payabli
979
1179
  # @option params [Hash[String, String, nil], nil] :parameters
980
1180
  # @option params [String, nil] :sort_by
981
1181
  #
1182
+ # @example
1183
+ # client.query.list_settlements(
1184
+ # entry: "8cfec329267",
1185
+ # from_record: 251,
1186
+ # limit_record: 0,
1187
+ # sort_by: "desc(field_name)"
1188
+ # )
1189
+ #
982
1190
  # @return [Payabli::Types::QueryResponseSettlements]
983
1191
  def list_settlements(request_options: {}, **params)
984
1192
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -989,10 +1197,12 @@ module Payabli
989
1197
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
990
1198
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
991
1199
 
1200
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
992
1201
  request = Payabli::Internal::JSON::Request.new(
993
1202
  base_url: request_options[:base_url],
994
1203
  method: "GET",
995
1204
  path: "Query/settlements/#{URI.encode_uri_component(params[:entry].to_s)}",
1205
+ headers: headers,
996
1206
  query: query_params,
997
1207
  request_options: request_options
998
1208
  )
@@ -1027,6 +1237,14 @@ module Payabli
1027
1237
  # @option params [Hash[String, String, nil], nil] :parameters
1028
1238
  # @option params [String, nil] :sort_by
1029
1239
  #
1240
+ # @example
1241
+ # client.query.list_settlements_org(
1242
+ # org_id: 123,
1243
+ # from_record: 251,
1244
+ # limit_record: 0,
1245
+ # sort_by: "desc(field_name)"
1246
+ # )
1247
+ #
1030
1248
  # @return [Payabli::Types::QueryResponseSettlements]
1031
1249
  def list_settlements_org(request_options: {}, **params)
1032
1250
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1037,10 +1255,12 @@ module Payabli
1037
1255
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1038
1256
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1039
1257
 
1258
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1040
1259
  request = Payabli::Internal::JSON::Request.new(
1041
1260
  base_url: request_options[:base_url],
1042
1261
  method: "GET",
1043
1262
  path: "Query/settlements/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1263
+ headers: headers,
1044
1264
  query: query_params,
1045
1265
  request_options: request_options
1046
1266
  )
@@ -1075,6 +1295,14 @@ module Payabli
1075
1295
  # @option params [Hash[String, String, nil], nil] :parameters
1076
1296
  # @option params [String, nil] :sort_by
1077
1297
  #
1298
+ # @example
1299
+ # client.query.list_subscriptions(
1300
+ # entry: "8cfec329267",
1301
+ # from_record: 251,
1302
+ # limit_record: 0,
1303
+ # sort_by: "desc(field_name)"
1304
+ # )
1305
+ #
1078
1306
  # @return [Payabli::Types::QuerySubscriptionResponse]
1079
1307
  def list_subscriptions(request_options: {}, **params)
1080
1308
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1085,10 +1313,12 @@ module Payabli
1085
1313
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1086
1314
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1087
1315
 
1316
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1088
1317
  request = Payabli::Internal::JSON::Request.new(
1089
1318
  base_url: request_options[:base_url],
1090
1319
  method: "GET",
1091
1320
  path: "Query/subscriptions/#{URI.encode_uri_component(params[:entry].to_s)}",
1321
+ headers: headers,
1092
1322
  query: query_params,
1093
1323
  request_options: request_options
1094
1324
  )
@@ -1123,6 +1353,14 @@ module Payabli
1123
1353
  # @option params [Hash[String, String, nil], nil] :parameters
1124
1354
  # @option params [String, nil] :sort_by
1125
1355
  #
1356
+ # @example
1357
+ # client.query.list_subscriptions_org(
1358
+ # org_id: 123,
1359
+ # from_record: 251,
1360
+ # limit_record: 0,
1361
+ # sort_by: "desc(field_name)"
1362
+ # )
1363
+ #
1126
1364
  # @return [Payabli::Types::QuerySubscriptionResponse]
1127
1365
  def list_subscriptions_org(request_options: {}, **params)
1128
1366
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1133,10 +1371,12 @@ module Payabli
1133
1371
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1134
1372
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1135
1373
 
1374
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1136
1375
  request = Payabli::Internal::JSON::Request.new(
1137
1376
  base_url: request_options[:base_url],
1138
1377
  method: "GET",
1139
1378
  path: "Query/subscriptions/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1379
+ headers: headers,
1140
1380
  query: query_params,
1141
1381
  request_options: request_options
1142
1382
  )
@@ -1172,6 +1412,14 @@ module Payabli
1172
1412
  # @option params [Hash[String, String, nil], nil] :parameters
1173
1413
  # @option params [String, nil] :sort_by
1174
1414
  #
1415
+ # @example
1416
+ # client.query.list_payout_subscriptions(
1417
+ # entry: "8cfec329267",
1418
+ # from_record: 0,
1419
+ # limit_record: 20,
1420
+ # sort_by: "desc(field_name)"
1421
+ # )
1422
+ #
1175
1423
  # @return [Payabli::Types::QueryPayoutSubscriptionResponse]
1176
1424
  def list_payout_subscriptions(request_options: {}, **params)
1177
1425
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1182,10 +1430,12 @@ module Payabli
1182
1430
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1183
1431
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1184
1432
 
1433
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1185
1434
  request = Payabli::Internal::JSON::Request.new(
1186
1435
  base_url: request_options[:base_url],
1187
1436
  method: "GET",
1188
1437
  path: "Query/payoutsubscriptions/#{URI.encode_uri_component(params[:entry].to_s)}",
1438
+ headers: headers,
1189
1439
  query: query_params,
1190
1440
  request_options: request_options
1191
1441
  )
@@ -1221,6 +1471,14 @@ module Payabli
1221
1471
  # @option params [Hash[String, String, nil], nil] :parameters
1222
1472
  # @option params [String, nil] :sort_by
1223
1473
  #
1474
+ # @example
1475
+ # client.query.list_payout_subscriptions_org(
1476
+ # org_id: 123,
1477
+ # from_record: 0,
1478
+ # limit_record: 20,
1479
+ # sort_by: "desc(field_name)"
1480
+ # )
1481
+ #
1224
1482
  # @return [Payabli::Types::QueryPayoutSubscriptionResponse]
1225
1483
  def list_payout_subscriptions_org(request_options: {}, **params)
1226
1484
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1231,10 +1489,12 @@ module Payabli
1231
1489
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1232
1490
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1233
1491
 
1492
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1234
1493
  request = Payabli::Internal::JSON::Request.new(
1235
1494
  base_url: request_options[:base_url],
1236
1495
  method: "GET",
1237
1496
  path: "Query/payoutsubscriptions/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1497
+ headers: headers,
1238
1498
  query: query_params,
1239
1499
  request_options: request_options
1240
1500
  )
@@ -1281,6 +1541,14 @@ module Payabli
1281
1541
  # @option params [Hash[String, String, nil], nil] :parameters
1282
1542
  # @option params [String, nil] :sort_by
1283
1543
  #
1544
+ # @example
1545
+ # client.query.list_transactions(
1546
+ # entry: "8cfec329267",
1547
+ # from_record: 251,
1548
+ # limit_record: 0,
1549
+ # sort_by: "desc(field_name)"
1550
+ # )
1551
+ #
1284
1552
  # @return [Payabli::Types::QueryResponseTransactions]
1285
1553
  def list_transactions(request_options: {}, **params)
1286
1554
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1291,10 +1559,12 @@ module Payabli
1291
1559
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1292
1560
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1293
1561
 
1562
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1294
1563
  request = Payabli::Internal::JSON::Request.new(
1295
1564
  base_url: request_options[:base_url],
1296
1565
  method: "GET",
1297
1566
  path: "Query/transactions/#{URI.encode_uri_component(params[:entry].to_s)}",
1567
+ headers: headers,
1298
1568
  query: query_params,
1299
1569
  request_options: request_options
1300
1570
  )
@@ -1341,6 +1611,14 @@ module Payabli
1341
1611
  # @option params [Hash[String, String, nil], nil] :parameters
1342
1612
  # @option params [String, nil] :sort_by
1343
1613
  #
1614
+ # @example
1615
+ # client.query.list_transactions_org(
1616
+ # org_id: 123,
1617
+ # from_record: 251,
1618
+ # limit_record: 0,
1619
+ # sort_by: "desc(field_name)"
1620
+ # )
1621
+ #
1344
1622
  # @return [Payabli::Types::QueryResponseTransactions]
1345
1623
  def list_transactions_org(request_options: {}, **params)
1346
1624
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1351,10 +1629,12 @@ module Payabli
1351
1629
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1352
1630
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1353
1631
 
1632
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1354
1633
  request = Payabli::Internal::JSON::Request.new(
1355
1634
  base_url: request_options[:base_url],
1356
1635
  method: "GET",
1357
1636
  path: "Query/transactions/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1637
+ headers: headers,
1358
1638
  query: query_params,
1359
1639
  request_options: request_options
1360
1640
  )
@@ -1390,6 +1670,12 @@ module Payabli
1390
1670
  # @option params [Hash[String, String, nil], nil] :parameters
1391
1671
  # @option params [String, nil] :sort_by
1392
1672
  #
1673
+ # @example
1674
+ # client.query.list_transfer_details(
1675
+ # entry: "8cfec329267",
1676
+ # transfer_id: 4521
1677
+ # )
1678
+ #
1393
1679
  # @return [Payabli::Types::QueryTransferDetailResponse]
1394
1680
  def list_transfer_details(request_options: {}, **params)
1395
1681
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1400,10 +1686,12 @@ module Payabli
1400
1686
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1401
1687
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1402
1688
 
1689
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1403
1690
  request = Payabli::Internal::JSON::Request.new(
1404
1691
  base_url: request_options[:base_url],
1405
1692
  method: "GET",
1406
1693
  path: "Query/transferDetails/#{URI.encode_uri_component(params[:entry].to_s)}/#{URI.encode_uri_component(params[:transfer_id].to_s)}",
1694
+ headers: headers,
1407
1695
  query: query_params,
1408
1696
  request_options: request_options
1409
1697
  )
@@ -1438,6 +1726,13 @@ module Payabli
1438
1726
  # @option params [Hash[String, String, nil], nil] :parameters
1439
1727
  # @option params [String, nil] :sort_by
1440
1728
  #
1729
+ # @example
1730
+ # client.query.list_transfers(
1731
+ # entry: "8cfec329267",
1732
+ # from_record: 0,
1733
+ # limit_record: 20
1734
+ # )
1735
+ #
1441
1736
  # @return [Payabli::Types::TransferQueryResponse]
1442
1737
  def list_transfers(request_options: {}, **params)
1443
1738
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1448,10 +1743,12 @@ module Payabli
1448
1743
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1449
1744
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1450
1745
 
1746
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1451
1747
  request = Payabli::Internal::JSON::Request.new(
1452
1748
  base_url: request_options[:base_url],
1453
1749
  method: "GET",
1454
1750
  path: "Query/transfers/#{URI.encode_uri_component(params[:entry].to_s)}",
1751
+ headers: headers,
1455
1752
  query: query_params,
1456
1753
  request_options: request_options
1457
1754
  )
@@ -1486,6 +1783,13 @@ module Payabli
1486
1783
  # @option params [Hash[String, String, nil], nil] :parameters
1487
1784
  # @option params [String, nil] :sort_by
1488
1785
  #
1786
+ # @example
1787
+ # client.query.list_transfers_org(
1788
+ # org_id: 123,
1789
+ # from_record: 0,
1790
+ # limit_record: 20
1791
+ # )
1792
+ #
1489
1793
  # @return [Payabli::Types::TransferQueryResponse]
1490
1794
  def list_transfers_org(request_options: {}, **params)
1491
1795
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1496,10 +1800,12 @@ module Payabli
1496
1800
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1497
1801
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1498
1802
 
1803
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1499
1804
  request = Payabli::Internal::JSON::Request.new(
1500
1805
  base_url: request_options[:base_url],
1501
1806
  method: "GET",
1502
1807
  path: "Query/transfers/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1808
+ headers: headers,
1503
1809
  query: query_params,
1504
1810
  request_options: request_options
1505
1811
  )
@@ -1532,6 +1838,13 @@ module Payabli
1532
1838
  # @option params [Hash[String, String, nil], nil] :parameters
1533
1839
  # @option params [String, nil] :sort_by
1534
1840
  #
1841
+ # @example
1842
+ # client.query.list_transfers_out_org(
1843
+ # org_id: 123,
1844
+ # from_record: 0,
1845
+ # limit_record: 20
1846
+ # )
1847
+ #
1535
1848
  # @return [Payabli::Types::TransferOutQueryResponse]
1536
1849
  def list_transfers_out_org(request_options: {}, **params)
1537
1850
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1541,10 +1854,12 @@ module Payabli
1541
1854
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1542
1855
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1543
1856
 
1857
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1544
1858
  request = Payabli::Internal::JSON::Request.new(
1545
1859
  base_url: request_options[:base_url],
1546
1860
  method: "GET",
1547
1861
  path: "Query/transfersOut/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
1862
+ headers: headers,
1548
1863
  query: query_params,
1549
1864
  request_options: request_options
1550
1865
  )
@@ -1577,6 +1892,13 @@ module Payabli
1577
1892
  # @option params [Hash[String, String, nil], nil] :parameters
1578
1893
  # @option params [String, nil] :sort_by
1579
1894
  #
1895
+ # @example
1896
+ # client.query.list_transfers_out_paypoint(
1897
+ # entry: "8cfec329267",
1898
+ # from_record: 0,
1899
+ # limit_record: 20
1900
+ # )
1901
+ #
1580
1902
  # @return [Payabli::Types::TransferOutQueryResponse]
1581
1903
  def list_transfers_out_paypoint(request_options: {}, **params)
1582
1904
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1586,10 +1908,12 @@ module Payabli
1586
1908
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1587
1909
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1588
1910
 
1911
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1589
1912
  request = Payabli::Internal::JSON::Request.new(
1590
1913
  base_url: request_options[:base_url],
1591
1914
  method: "GET",
1592
1915
  path: "Query/transfersOut/#{URI.encode_uri_component(params[:entry].to_s)}",
1916
+ headers: headers,
1593
1917
  query: query_params,
1594
1918
  request_options: request_options
1595
1919
  )
@@ -1623,6 +1947,14 @@ module Payabli
1623
1947
  # @option params [Hash[String, String, nil], nil] :parameters
1624
1948
  # @option params [String, nil] :sort_by
1625
1949
  #
1950
+ # @example
1951
+ # client.query.list_transfer_details_out(
1952
+ # entry: "8cfec329267",
1953
+ # transfer_id: 4521,
1954
+ # from_record: 0,
1955
+ # limit_record: 20
1956
+ # )
1957
+ #
1626
1958
  # @return [Payabli::Types::TransferOutDetailQueryResponse]
1627
1959
  def list_transfer_details_out(request_options: {}, **params)
1628
1960
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1632,10 +1964,12 @@ module Payabli
1632
1964
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1633
1965
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1634
1966
 
1967
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1635
1968
  request = Payabli::Internal::JSON::Request.new(
1636
1969
  base_url: request_options[:base_url],
1637
1970
  method: "GET",
1638
1971
  path: "Query/transferDetailsOut/#{URI.encode_uri_component(params[:entry].to_s)}/#{URI.encode_uri_component(params[:transfer_id].to_s)}",
1972
+ headers: headers,
1639
1973
  query: query_params,
1640
1974
  request_options: request_options
1641
1975
  )
@@ -1668,6 +2002,14 @@ module Payabli
1668
2002
  # @option params [Hash[String, String, nil], nil] :parameters
1669
2003
  # @option params [String, nil] :sort_by
1670
2004
  #
2005
+ # @example
2006
+ # client.query.list_users_org(
2007
+ # org_id: 123,
2008
+ # from_record: 251,
2009
+ # limit_record: 0,
2010
+ # sort_by: "desc(field_name)"
2011
+ # )
2012
+ #
1671
2013
  # @return [Payabli::Types::QueryUserResponse]
1672
2014
  def list_users_org(request_options: {}, **params)
1673
2015
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1677,10 +2019,12 @@ module Payabli
1677
2019
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1678
2020
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1679
2021
 
2022
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1680
2023
  request = Payabli::Internal::JSON::Request.new(
1681
2024
  base_url: request_options[:base_url],
1682
2025
  method: "GET",
1683
2026
  path: "Query/users/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
2027
+ headers: headers,
1684
2028
  query: query_params,
1685
2029
  request_options: request_options
1686
2030
  )
@@ -1713,6 +2057,14 @@ module Payabli
1713
2057
  # @option params [Hash[String, String, nil], nil] :parameters
1714
2058
  # @option params [String, nil] :sort_by
1715
2059
  #
2060
+ # @example
2061
+ # client.query.list_users_paypoint(
2062
+ # entry: "8cfec329267",
2063
+ # from_record: 251,
2064
+ # limit_record: 0,
2065
+ # sort_by: "desc(field_name)"
2066
+ # )
2067
+ #
1716
2068
  # @return [Payabli::Types::QueryUserResponse]
1717
2069
  def list_users_paypoint(request_options: {}, **params)
1718
2070
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1722,10 +2074,12 @@ module Payabli
1722
2074
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1723
2075
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1724
2076
 
2077
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1725
2078
  request = Payabli::Internal::JSON::Request.new(
1726
2079
  base_url: request_options[:base_url],
1727
2080
  method: "GET",
1728
2081
  path: "Query/users/point/#{URI.encode_uri_component(params[:entry].to_s)}",
2082
+ headers: headers,
1729
2083
  query: query_params,
1730
2084
  request_options: request_options
1731
2085
  )
@@ -1760,6 +2114,14 @@ module Payabli
1760
2114
  # @option params [Hash[String, String, nil], nil] :parameters
1761
2115
  # @option params [String, nil] :sort_by
1762
2116
  #
2117
+ # @example
2118
+ # client.query.list_vendors(
2119
+ # entry: "8cfec329267",
2120
+ # from_record: 251,
2121
+ # limit_record: 0,
2122
+ # sort_by: "desc(field_name)"
2123
+ # )
2124
+ #
1763
2125
  # @return [Payabli::Types::QueryResponseVendors]
1764
2126
  def list_vendors(request_options: {}, **params)
1765
2127
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1770,10 +2132,12 @@ module Payabli
1770
2132
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1771
2133
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1772
2134
 
2135
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1773
2136
  request = Payabli::Internal::JSON::Request.new(
1774
2137
  base_url: request_options[:base_url],
1775
2138
  method: "GET",
1776
2139
  path: "Query/vendors/#{URI.encode_uri_component(params[:entry].to_s)}",
2140
+ headers: headers,
1777
2141
  query: query_params,
1778
2142
  request_options: request_options
1779
2143
  )
@@ -1808,6 +2172,14 @@ module Payabli
1808
2172
  # @option params [Hash[String, String, nil], nil] :parameters
1809
2173
  # @option params [String, nil] :sort_by
1810
2174
  #
2175
+ # @example
2176
+ # client.query.list_vendors_org(
2177
+ # org_id: 123,
2178
+ # from_record: 251,
2179
+ # limit_record: 0,
2180
+ # sort_by: "desc(field_name)"
2181
+ # )
2182
+ #
1811
2183
  # @return [Payabli::Types::QueryResponseVendors]
1812
2184
  def list_vendors_org(request_options: {}, **params)
1813
2185
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1818,10 +2190,12 @@ module Payabli
1818
2190
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1819
2191
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1820
2192
 
2193
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1821
2194
  request = Payabli::Internal::JSON::Request.new(
1822
2195
  base_url: request_options[:base_url],
1823
2196
  method: "GET",
1824
2197
  path: "Query/vendors/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
2198
+ headers: headers,
1825
2199
  query: query_params,
1826
2200
  request_options: request_options
1827
2201
  )
@@ -1856,6 +2230,14 @@ module Payabli
1856
2230
  # @option params [Hash[String, String, nil], nil] :parameters
1857
2231
  # @option params [String, nil] :sort_by
1858
2232
  #
2233
+ # @example
2234
+ # client.query.list_vcards(
2235
+ # entry: "8cfec329267",
2236
+ # from_record: 251,
2237
+ # limit_record: 0,
2238
+ # sort_by: "desc(field_name)"
2239
+ # )
2240
+ #
1859
2241
  # @return [Payabli::Types::VCardQueryResponse]
1860
2242
  def list_vcards(request_options: {}, **params)
1861
2243
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1866,10 +2248,12 @@ module Payabli
1866
2248
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1867
2249
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1868
2250
 
2251
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1869
2252
  request = Payabli::Internal::JSON::Request.new(
1870
2253
  base_url: request_options[:base_url],
1871
2254
  method: "GET",
1872
2255
  path: "Query/vcards/#{URI.encode_uri_component(params[:entry].to_s)}",
2256
+ headers: headers,
1873
2257
  query: query_params,
1874
2258
  request_options: request_options
1875
2259
  )
@@ -1902,6 +2286,14 @@ module Payabli
1902
2286
  # @option params [Hash[String, String, nil], nil] :parameters
1903
2287
  # @option params [String, nil] :sort_by
1904
2288
  #
2289
+ # @example
2290
+ # client.query.list_vcards_transactions(
2291
+ # entry: "8cfec329267",
2292
+ # from_record: 0,
2293
+ # limit_record: 20,
2294
+ # sort_by: "desc(CreatedOn)"
2295
+ # )
2296
+ #
1905
2297
  # @return [Payabli::Types::VCardTransactionQueryResponse]
1906
2298
  def list_vcards_transactions(request_options: {}, **params)
1907
2299
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1911,10 +2303,12 @@ module Payabli
1911
2303
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1912
2304
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1913
2305
 
2306
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1914
2307
  request = Payabli::Internal::JSON::Request.new(
1915
2308
  base_url: request_options[:base_url],
1916
2309
  method: "GET",
1917
2310
  path: "Query/vcardsTransactions/#{URI.encode_uri_component(params[:entry].to_s)}",
2311
+ headers: headers,
1918
2312
  query: query_params,
1919
2313
  request_options: request_options
1920
2314
  )
@@ -1947,6 +2341,14 @@ module Payabli
1947
2341
  # @option params [Hash[String, String, nil], nil] :parameters
1948
2342
  # @option params [String, nil] :sort_by
1949
2343
  #
2344
+ # @example
2345
+ # client.query.list_vcards_transactions_org(
2346
+ # org_id: 123,
2347
+ # from_record: 0,
2348
+ # limit_record: 20,
2349
+ # sort_by: "desc(CreatedOn)"
2350
+ # )
2351
+ #
1950
2352
  # @return [Payabli::Types::VCardTransactionQueryResponse]
1951
2353
  def list_vcards_transactions_org(request_options: {}, **params)
1952
2354
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -1956,10 +2358,12 @@ module Payabli
1956
2358
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
1957
2359
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
1958
2360
 
2361
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
1959
2362
  request = Payabli::Internal::JSON::Request.new(
1960
2363
  base_url: request_options[:base_url],
1961
2364
  method: "GET",
1962
2365
  path: "Query/vcardsTransactions/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
2366
+ headers: headers,
1963
2367
  query: query_params,
1964
2368
  request_options: request_options
1965
2369
  )
@@ -1994,6 +2398,14 @@ module Payabli
1994
2398
  # @option params [Hash[String, String, nil], nil] :parameters
1995
2399
  # @option params [String, nil] :sort_by
1996
2400
  #
2401
+ # @example
2402
+ # client.query.list_vcards_org(
2403
+ # org_id: 123,
2404
+ # from_record: 251,
2405
+ # limit_record: 0,
2406
+ # sort_by: "desc(field_name)"
2407
+ # )
2408
+ #
1997
2409
  # @return [Payabli::Types::VCardQueryResponse]
1998
2410
  def list_vcards_org(request_options: {}, **params)
1999
2411
  params = Payabli::Internal::Types::Utils.normalize_keys(params)
@@ -2004,10 +2416,12 @@ module Payabli
2004
2416
  query_params["parameters"] = params[:parameters] if params.key?(:parameters)
2005
2417
  query_params["sortBy"] = params[:sort_by] if params.key?(:sort_by)
2006
2418
 
2419
+ headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
2007
2420
  request = Payabli::Internal::JSON::Request.new(
2008
2421
  base_url: request_options[:base_url],
2009
2422
  method: "GET",
2010
2423
  path: "Query/vcards/org/#{URI.encode_uri_component(params[:org_id].to_s)}",
2424
+ headers: headers,
2011
2425
  query: query_params,
2012
2426
  request_options: request_options
2013
2427
  )