payabli 3.0.10 → 3.0.12
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.
- checksums.yaml +4 -4
- data/.fern/metadata.json +4 -4
- data/lib/payabli/client.rb +1 -1
- data/lib/payabli/money_out/client.rb +88 -6
- data/lib/payabli/money_out/types/payout_request.rb +23 -0
- data/lib/payabli/money_out/types/request_out_authorize.rb +1 -23
- data/lib/payabli/ocr/client.rb +16 -13
- data/lib/payabli/ocr/types/ocr_document_form_request.rb +11 -0
- data/lib/payabli/ocr/types/ocr_document_json_request.rb +19 -0
- data/lib/payabli/types/authorize_payout_body.rb +31 -0
- data/lib/payabli/types/bill_details_response.rb +4 -0
- data/lib/payabli/types/bill_query_record_2.rb +4 -0
- data/lib/payabli/types/bill_response_data.rb +4 -0
- data/lib/payabli/types/owners.rb +1 -1
- data/lib/payabli/types/query_payout_transaction_records_item.rb +2 -0
- data/lib/payabli/types/query_summary.rb +1 -1
- data/lib/payabli/version.rb +1 -1
- data/lib/payabli.rb +4 -1
- data/reference.md +155 -80
- data/wiremock/wiremock-mappings.json +60 -34
- metadata +6 -3
- data/lib/payabli/types/file_content_image_only.rb +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0144b8863c13e815b04ac5deeb134ec9ff868dee0f613ebdb32c30f65fcc4e53
|
|
4
|
+
data.tar.gz: 2480d71e0c0ff34170adf2da7059c19e5ff6e133939639d2e19b4120a70642f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4f72da83aae935c0a21d6a95f45547261c3557a06a169c210b26a6ca114eb8f341581be1e6cc805b1ab2ad55afc8294f1348c93c2cb55923bc36f1896531f2c6
|
|
7
|
+
data.tar.gz: 1018bb7c00bec622ea398c474c8a90ce426a6348375d9a08984c70d8d2f1bca7a1d5389d21cae149d01bd0a713e35ace4ce506884cb2dc744d6adc3f216c315c
|
data/.fern/metadata.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"cliVersion": "5.98.1",
|
|
3
3
|
"generatorName": "fernapi/fern-ruby-sdk",
|
|
4
|
-
"generatorVersion": "1.
|
|
4
|
+
"generatorVersion": "1.24.0",
|
|
5
5
|
"generatorConfig": {
|
|
6
6
|
"enableWireTests": true,
|
|
7
7
|
"rubocopVariableNumberStyle": "snake_case",
|
|
8
8
|
"respectOptionalRequestBody": true
|
|
9
9
|
},
|
|
10
|
-
"originGitCommit": "
|
|
10
|
+
"originGitCommit": "75a6ae666f6df6ac60fb9521709c38d26cb8db9e",
|
|
11
11
|
"originGitCommitIsDirty": true,
|
|
12
12
|
"invokedBy": "ci",
|
|
13
|
-
"requestedVersion": "3.0.
|
|
13
|
+
"requestedVersion": "3.0.12",
|
|
14
14
|
"ciProvider": "github",
|
|
15
|
-
"sdkVersion": "3.0.
|
|
15
|
+
"sdkVersion": "3.0.12"
|
|
16
16
|
}
|
data/lib/payabli/client.rb
CHANGED
|
@@ -32,7 +32,7 @@ module Payabli
|
|
|
32
32
|
@raw_client = Payabli::Internal::Http::RawClient.new(
|
|
33
33
|
base_url: base_url || Payabli::Environment::SANDBOX,
|
|
34
34
|
headers: {
|
|
35
|
-
"User-Agent" => "payabli/3.0.
|
|
35
|
+
"User-Agent" => "payabli/3.0.12",
|
|
36
36
|
"X-Fern-Language" => "Ruby"
|
|
37
37
|
},
|
|
38
38
|
auth_provider: Payabli::Internal::RoutingAuthProvider.new(
|
|
@@ -31,7 +31,7 @@ module Payabli
|
|
|
31
31
|
# affected.
|
|
32
32
|
#
|
|
33
33
|
# @param request_options [Hash]
|
|
34
|
-
# @param params [Payabli::
|
|
34
|
+
# @param params [Payabli::Types::AuthorizePayoutBody]
|
|
35
35
|
# @option request_options [String] :base_url
|
|
36
36
|
# @option request_options [Hash{String => Object}] :additional_headers
|
|
37
37
|
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
@@ -65,14 +65,12 @@ module Payabli
|
|
|
65
65
|
# @return [Payabli::Types::AuthCapturePayoutResponse]
|
|
66
66
|
def authorize_out(request_options: {}, **params)
|
|
67
67
|
params = Payabli::Internal::Types::Utils.normalize_keys(params)
|
|
68
|
-
|
|
69
|
-
non_body_param_names = %w[allowDuplicatedBills doNotCreateBills sameDayACH idempotencyKey]
|
|
70
|
-
body = request_data.except(*non_body_param_names)
|
|
71
|
-
|
|
68
|
+
query_param_names = %i[allow_duplicated_bills do_not_create_bills same_day_ach]
|
|
72
69
|
query_params = {}
|
|
73
70
|
query_params["allowDuplicatedBills"] = params[:allow_duplicated_bills] if params.key?(:allow_duplicated_bills)
|
|
74
71
|
query_params["doNotCreateBills"] = params[:do_not_create_bills] if params.key?(:do_not_create_bills)
|
|
75
72
|
query_params["sameDayACH"] = params[:same_day_ach] if params.key?(:same_day_ach)
|
|
73
|
+
params = params.except(*query_param_names)
|
|
76
74
|
|
|
77
75
|
headers = {}
|
|
78
76
|
headers["idempotencyKey"] = params[:idempotency_key] if params[:idempotency_key]
|
|
@@ -84,7 +82,7 @@ module Payabli
|
|
|
84
82
|
path: "MoneyOut/authorize",
|
|
85
83
|
headers: headers,
|
|
86
84
|
query: query_params,
|
|
87
|
-
body:
|
|
85
|
+
body: Payabli::Types::AuthorizePayoutBody.new(params).to_h,
|
|
88
86
|
request_options: request_options
|
|
89
87
|
)
|
|
90
88
|
begin
|
|
@@ -322,6 +320,90 @@ module Payabli
|
|
|
322
320
|
end
|
|
323
321
|
end
|
|
324
322
|
|
|
323
|
+
# Authorizes a payout and captures it in the same request, returning the capture result. Use this endpoint when
|
|
324
|
+
# you need the capture outcome synchronously: it does the same work as calling `POST /MoneyOut/authorize` followed
|
|
325
|
+
# by `GET /MoneyOut/capture/{referenceId}`, in a single call.
|
|
326
|
+
#
|
|
327
|
+
# Risk and fraud review runs at both the authorize and capture stages, exactly as it does for the two-call flow.
|
|
328
|
+
#
|
|
329
|
+
# Payabli ignores the `autoCapture` field in the request body, since this endpoint always captures inline.
|
|
330
|
+
#
|
|
331
|
+
# If the capture fails, the payout stays authorized. Retry the capture with `GET /MoneyOut/capture/{referenceId}`
|
|
332
|
+
# using the `referenceId` from the error response rather than resubmitting, which would create a second payout.
|
|
333
|
+
# See the [Manage payouts guide](/guides/pay-out-developer-payouts-manage#authorize-and-capture-in-one-call) for
|
|
334
|
+
# details.
|
|
335
|
+
#
|
|
336
|
+
# @param request_options [Hash]
|
|
337
|
+
# @param params [Payabli::Types::AuthorizePayoutBody]
|
|
338
|
+
# @option request_options [String] :base_url
|
|
339
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
340
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
341
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
342
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
343
|
+
# @option params [Boolean, nil] :same_day_ach
|
|
344
|
+
# @option params [Boolean, nil] :do_not_create_bills
|
|
345
|
+
# @option params [Boolean, nil] :allow_duplicated_bills
|
|
346
|
+
# @option params [Boolean, nil] :update_vendor_payment_method
|
|
347
|
+
# @option params [Boolean, nil] :auto_convert_same_day_ach
|
|
348
|
+
# @option params [String, nil] :idempotency_key
|
|
349
|
+
#
|
|
350
|
+
# @example
|
|
351
|
+
# client.money_out.payout(
|
|
352
|
+
# entry_point: "8cfec329267",
|
|
353
|
+
# order_description: "Window Painting",
|
|
354
|
+
# payment_method: {
|
|
355
|
+
# method_: "managed"
|
|
356
|
+
# },
|
|
357
|
+
# payment_details: {
|
|
358
|
+
# total_amount: 47
|
|
359
|
+
# },
|
|
360
|
+
# vendor_data: {
|
|
361
|
+
# vendor_number: "VEN-123"
|
|
362
|
+
# },
|
|
363
|
+
# invoice_data: [{
|
|
364
|
+
# bill_id: 54323
|
|
365
|
+
# }]
|
|
366
|
+
# )
|
|
367
|
+
#
|
|
368
|
+
# @return [Payabli::Types::AuthCapturePayoutResponse]
|
|
369
|
+
def payout(request_options: {}, **params)
|
|
370
|
+
params = Payabli::Internal::Types::Utils.normalize_keys(params)
|
|
371
|
+
query_param_names = %i[same_day_ach do_not_create_bills allow_duplicated_bills update_vendor_payment_method auto_convert_same_day_ach]
|
|
372
|
+
query_params = {}
|
|
373
|
+
query_params["sameDayACH"] = params[:same_day_ach] if params.key?(:same_day_ach)
|
|
374
|
+
query_params["doNotCreateBills"] = params[:do_not_create_bills] if params.key?(:do_not_create_bills)
|
|
375
|
+
query_params["allowDuplicatedBills"] = params[:allow_duplicated_bills] if params.key?(:allow_duplicated_bills)
|
|
376
|
+
query_params["updateVendorPaymentMethod"] = params[:update_vendor_payment_method] if params.key?(:update_vendor_payment_method)
|
|
377
|
+
query_params["autoConvertSameDayAch"] = params[:auto_convert_same_day_ach] if params.key?(:auto_convert_same_day_ach)
|
|
378
|
+
params = params.except(*query_param_names)
|
|
379
|
+
|
|
380
|
+
headers = {}
|
|
381
|
+
headers["idempotencyKey"] = params[:idempotency_key] if params[:idempotency_key]
|
|
382
|
+
|
|
383
|
+
headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }]).merge(headers)
|
|
384
|
+
request = Payabli::Internal::JSON::Request.new(
|
|
385
|
+
base_url: request_options[:base_url],
|
|
386
|
+
method: "POST",
|
|
387
|
+
path: "MoneyOut/payout",
|
|
388
|
+
headers: headers,
|
|
389
|
+
query: query_params,
|
|
390
|
+
body: Payabli::Types::AuthorizePayoutBody.new(params).to_h,
|
|
391
|
+
request_options: request_options
|
|
392
|
+
)
|
|
393
|
+
begin
|
|
394
|
+
response = @client.send(request)
|
|
395
|
+
rescue Net::HTTPRequestTimeout
|
|
396
|
+
raise Payabli::Errors::TimeoutError
|
|
397
|
+
end
|
|
398
|
+
code = response.code.to_i
|
|
399
|
+
if code.between?(200, 299)
|
|
400
|
+
Payabli::Types::AuthCapturePayoutResponse.load(response.body)
|
|
401
|
+
else
|
|
402
|
+
error_class = Payabli::Errors::ResponseError.subclass_for_code(code)
|
|
403
|
+
raise error_class.new(response.body, code: code)
|
|
404
|
+
end
|
|
405
|
+
end
|
|
406
|
+
|
|
325
407
|
# Returns details for a processed money out transaction.
|
|
326
408
|
#
|
|
327
409
|
# @param request_options [Hash]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module MoneyOut
|
|
5
|
+
module Types
|
|
6
|
+
class PayoutRequest < Internal::Types::Model
|
|
7
|
+
field :same_day_ach, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "sameDayACH"
|
|
8
|
+
|
|
9
|
+
field :do_not_create_bills, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "doNotCreateBills"
|
|
10
|
+
|
|
11
|
+
field :allow_duplicated_bills, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "allowDuplicatedBills"
|
|
12
|
+
|
|
13
|
+
field :update_vendor_payment_method, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "updateVendorPaymentMethod"
|
|
14
|
+
|
|
15
|
+
field :auto_convert_same_day_ach, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "autoConvertSameDayAch"
|
|
16
|
+
|
|
17
|
+
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "idempotencyKey"
|
|
18
|
+
|
|
19
|
+
field :body, -> { Payabli::Types::AuthorizePayoutBody }, optional: false, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -12,29 +12,7 @@ module Payabli
|
|
|
12
12
|
|
|
13
13
|
field :idempotency_key, -> { String }, optional: true, nullable: false, api_name: "idempotencyKey"
|
|
14
14
|
|
|
15
|
-
field :
|
|
16
|
-
|
|
17
|
-
field :source, -> { String }, optional: true, nullable: false
|
|
18
|
-
|
|
19
|
-
field :order_id, -> { String }, optional: true, nullable: false, api_name: "orderId"
|
|
20
|
-
|
|
21
|
-
field :order_description, -> { String }, optional: true, nullable: false, api_name: "orderDescription"
|
|
22
|
-
|
|
23
|
-
field :payment_method, -> { Payabli::Types::AuthorizePaymentMethod }, optional: false, nullable: false, api_name: "paymentMethod"
|
|
24
|
-
|
|
25
|
-
field :payment_details, -> { Payabli::Types::RequestOutAuthorizePaymentDetails }, optional: false, nullable: false, api_name: "paymentDetails"
|
|
26
|
-
|
|
27
|
-
field :vendor_data, -> { Payabli::Types::RequestOutAuthorizeVendorData }, optional: false, nullable: false, api_name: "vendorData"
|
|
28
|
-
|
|
29
|
-
field :invoice_data, -> { Internal::Types::Array[Payabli::Types::RequestOutAuthorizeInvoiceData] }, optional: true, nullable: false, api_name: "invoiceData"
|
|
30
|
-
|
|
31
|
-
field :account_id, -> { String }, optional: true, nullable: false, api_name: "accountId"
|
|
32
|
-
|
|
33
|
-
field :subdomain, -> { String }, optional: true, nullable: false
|
|
34
|
-
|
|
35
|
-
field :subscription_id, -> { Integer }, optional: true, nullable: false, api_name: "subscriptionId"
|
|
36
|
-
|
|
37
|
-
field :auto_capture, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "autoCapture"
|
|
15
|
+
field :body, -> { Payabli::Types::AuthorizePayoutBody }, optional: false, nullable: false
|
|
38
16
|
end
|
|
39
17
|
end
|
|
40
18
|
end
|
data/lib/payabli/ocr/client.rb
CHANGED
|
@@ -10,13 +10,14 @@ module Payabli
|
|
|
10
10
|
@client = client
|
|
11
11
|
end
|
|
12
12
|
|
|
13
|
-
# Use this endpoint to upload
|
|
14
|
-
# PNG, and GIF. Specify the desired type of
|
|
15
|
-
# `typeResult`. The response will contain the OCR
|
|
16
|
-
# number, vendor information, bill items, and more.
|
|
13
|
+
# Use this endpoint to upload a document file for OCR processing as `multipart/form-data`, with the file in a
|
|
14
|
+
# field named `file`. The accepted file formats include PDF, JPG, JPEG, PNG, and GIF. Specify the desired type of
|
|
15
|
+
# result (either 'bill' or 'invoice') in the path parameter `typeResult`. The response will contain the OCR
|
|
16
|
+
# processing results, including extracted data such as bill number, vendor information, bill items, and more. To
|
|
17
|
+
# send the file as a Base64-encoded string in a JSON body instead, use `ocrDocumentJson`.
|
|
17
18
|
#
|
|
18
19
|
# @param request_options [Hash]
|
|
19
|
-
# @param params [
|
|
20
|
+
# @param params [void]
|
|
20
21
|
# @option request_options [String] :base_url
|
|
21
22
|
# @option request_options [Hash{String => Object}] :additional_headers
|
|
22
23
|
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
@@ -30,16 +31,17 @@ module Payabli
|
|
|
30
31
|
# @return [Payabli::Types::PayabliApiResponseOcr]
|
|
31
32
|
def ocr_document_form(request_options: {}, **params)
|
|
32
33
|
params = Payabli::Internal::Types::Utils.normalize_keys(params)
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
body = Internal::Multipart::FormData.new
|
|
35
|
+
|
|
36
|
+
body.add_part(params[:file].to_form_data_part(name: "file")) if params[:file]
|
|
35
37
|
|
|
36
38
|
headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
|
|
37
|
-
request = Payabli::Internal::
|
|
39
|
+
request = Payabli::Internal::Multipart::Request.new(
|
|
38
40
|
base_url: request_options[:base_url],
|
|
39
41
|
method: "POST",
|
|
40
42
|
path: "Import/ocrDocumentForm/#{URI.encode_uri_component(params[:type_result].to_s)}",
|
|
41
43
|
headers: headers,
|
|
42
|
-
body:
|
|
44
|
+
body: body,
|
|
43
45
|
request_options: request_options
|
|
44
46
|
)
|
|
45
47
|
begin
|
|
@@ -62,7 +64,7 @@ module Payabli
|
|
|
62
64
|
# bill number, vendor information, bill items, and more.
|
|
63
65
|
#
|
|
64
66
|
# @param request_options [Hash]
|
|
65
|
-
# @param params [Payabli::Types::
|
|
67
|
+
# @param params [Payabli::Ocr::Types::OcrDocumentJsonRequest]
|
|
66
68
|
# @option request_options [String] :base_url
|
|
67
69
|
# @option request_options [Hash{String => Object}] :additional_headers
|
|
68
70
|
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
@@ -76,8 +78,9 @@ module Payabli
|
|
|
76
78
|
# @return [Payabli::Types::PayabliApiResponseOcr]
|
|
77
79
|
def ocr_document_json(request_options: {}, **params)
|
|
78
80
|
params = Payabli::Internal::Types::Utils.normalize_keys(params)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
request_data = Payabli::Ocr::Types::OcrDocumentJsonRequest.new(params).to_h
|
|
82
|
+
non_body_param_names = %w[typeResult]
|
|
83
|
+
body = request_data.except(*non_body_param_names)
|
|
81
84
|
|
|
82
85
|
headers = @client.auth_headers_for_endpoint(security: [{ "BearerAuth" => [] }, { "APIKeyAuth" => [] }])
|
|
83
86
|
request = Payabli::Internal::JSON::Request.new(
|
|
@@ -85,7 +88,7 @@ module Payabli
|
|
|
85
88
|
method: "POST",
|
|
86
89
|
path: "Import/ocrDocumentJson/#{URI.encode_uri_component(params[:type_result].to_s)}",
|
|
87
90
|
headers: headers,
|
|
88
|
-
body:
|
|
91
|
+
body: body,
|
|
89
92
|
request_options: request_options
|
|
90
93
|
)
|
|
91
94
|
begin
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Ocr
|
|
5
|
+
module Types
|
|
6
|
+
class OcrDocumentJsonRequest < Internal::Types::Model
|
|
7
|
+
field :type_result, -> { String }, optional: false, nullable: false, api_name: "typeResult"
|
|
8
|
+
|
|
9
|
+
field :ftype, -> { Payabli::Types::FileContentFtype }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :filename, -> { String }, optional: true, nullable: false
|
|
12
|
+
|
|
13
|
+
field :furl, -> { String }, optional: true, nullable: false
|
|
14
|
+
|
|
15
|
+
field :f_content, -> { String }, optional: true, nullable: false, api_name: "fContent"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Payabli
|
|
4
|
+
module Types
|
|
5
|
+
class AuthorizePayoutBody < Internal::Types::Model
|
|
6
|
+
field :entry_point, -> { String }, optional: false, nullable: false, api_name: "entryPoint"
|
|
7
|
+
|
|
8
|
+
field :source, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :order_id, -> { String }, optional: true, nullable: false, api_name: "orderId"
|
|
11
|
+
|
|
12
|
+
field :order_description, -> { String }, optional: true, nullable: false, api_name: "orderDescription"
|
|
13
|
+
|
|
14
|
+
field :payment_method, -> { Payabli::Types::AuthorizePaymentMethod }, optional: false, nullable: false, api_name: "paymentMethod"
|
|
15
|
+
|
|
16
|
+
field :payment_details, -> { Payabli::Types::RequestOutAuthorizePaymentDetails }, optional: false, nullable: false, api_name: "paymentDetails"
|
|
17
|
+
|
|
18
|
+
field :vendor_data, -> { Payabli::Types::RequestOutAuthorizeVendorData }, optional: false, nullable: false, api_name: "vendorData"
|
|
19
|
+
|
|
20
|
+
field :invoice_data, -> { Internal::Types::Array[Payabli::Types::RequestOutAuthorizeInvoiceData] }, optional: true, nullable: false, api_name: "invoiceData"
|
|
21
|
+
|
|
22
|
+
field :account_id, -> { String }, optional: true, nullable: false, api_name: "accountId"
|
|
23
|
+
|
|
24
|
+
field :subdomain, -> { String }, optional: true, nullable: false
|
|
25
|
+
|
|
26
|
+
field :subscription_id, -> { Integer }, optional: true, nullable: false, api_name: "subscriptionId"
|
|
27
|
+
|
|
28
|
+
field :auto_capture, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "autoCapture"
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -12,6 +12,10 @@ module Payabli
|
|
|
12
12
|
|
|
13
13
|
field :net_amount, -> { String }, optional: true, nullable: false, api_name: "netAmount"
|
|
14
14
|
|
|
15
|
+
field :paid_amount, -> { String }, optional: true, nullable: false, api_name: "paidAmount"
|
|
16
|
+
|
|
17
|
+
field :outstanding_balance, -> { String }, optional: true, nullable: false, api_name: "outstandingBalance"
|
|
18
|
+
|
|
15
19
|
field :discount, -> { String }, optional: true, nullable: false
|
|
16
20
|
|
|
17
21
|
field :due_date, -> { String }, optional: false, nullable: true, api_name: "dueDate"
|
|
@@ -73,6 +73,10 @@ module Payabli
|
|
|
73
73
|
|
|
74
74
|
field :total_amount, -> { Integer }, optional: false, nullable: true, api_name: "TotalAmount"
|
|
75
75
|
|
|
76
|
+
field :paid_amount, -> { Integer }, optional: false, nullable: true, api_name: "PaidAmount"
|
|
77
|
+
|
|
78
|
+
field :outstanding_balance, -> { Integer }, optional: false, nullable: true, api_name: "OutstandingBalance"
|
|
79
|
+
|
|
76
80
|
field :transaction, -> { Payabli::Types::TransactionOutQueryRecord }, optional: false, nullable: true, api_name: "Transaction"
|
|
77
81
|
|
|
78
82
|
field :vendor, -> { Payabli::Types::VendorOutData }, optional: false, nullable: true, api_name: "Vendor"
|
|
@@ -13,6 +13,10 @@ module Payabli
|
|
|
13
13
|
|
|
14
14
|
field :total_amount, -> { Integer }, optional: true, nullable: false, api_name: "TotalAmount"
|
|
15
15
|
|
|
16
|
+
field :paid_amount, -> { Integer }, optional: true, nullable: false, api_name: "PaidAmount"
|
|
17
|
+
|
|
18
|
+
field :outstanding_balance, -> { Integer }, optional: true, nullable: false, api_name: "OutstandingBalance"
|
|
19
|
+
|
|
16
20
|
field :bill_date, -> { String }, optional: false, nullable: true, api_name: "BillDate"
|
|
17
21
|
|
|
18
22
|
field :due_date, -> { String }, optional: false, nullable: true, api_name: "DueDate"
|
data/lib/payabli/types/owners.rb
CHANGED
|
@@ -33,7 +33,7 @@ module Payabli
|
|
|
33
33
|
|
|
34
34
|
field :ozip, -> { String }, optional: true, nullable: false
|
|
35
35
|
|
|
36
|
-
field :additional_data, -> { String }, optional: true, nullable: false, api_name: "additionalData"
|
|
36
|
+
field :additional_data, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false, api_name: "additionalData"
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
end
|
|
@@ -21,6 +21,8 @@ module Payabli
|
|
|
21
21
|
|
|
22
22
|
field :payment_id, -> { String }, optional: true, nullable: false, api_name: "PaymentId"
|
|
23
23
|
|
|
24
|
+
field :order_id, -> { String }, optional: true, nullable: false, api_name: "orderId"
|
|
25
|
+
|
|
24
26
|
field :trans_id, -> { String }, optional: true, nullable: false, api_name: "TransId"
|
|
25
27
|
|
|
26
28
|
field :trans_status, -> { Integer }, optional: true, nullable: false, api_name: "TransStatus"
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module Payabli
|
|
4
4
|
module Types
|
|
5
5
|
class QuerySummary < Internal::Types::Model
|
|
6
|
-
field :page_identifier, -> { String }, optional:
|
|
6
|
+
field :page_identifier, -> { String }, optional: false, nullable: true, api_name: "pageidentifier"
|
|
7
7
|
|
|
8
8
|
field :page_size, -> { Integer }, optional: true, nullable: false, api_name: "pageSize"
|
|
9
9
|
|
data/lib/payabli/version.rb
CHANGED
data/lib/payabli.rb
CHANGED
|
@@ -643,7 +643,6 @@ require_relative "payabli/types/v_card_query_response"
|
|
|
643
643
|
require_relative "payabli/types/v_card_transaction_record"
|
|
644
644
|
require_relative "payabli/types/v_card_transaction_query_response"
|
|
645
645
|
require_relative "payabli/types/type_result"
|
|
646
|
-
require_relative "payabli/types/file_content_image_only"
|
|
647
646
|
require_relative "payabli/types/ocr_bill_item"
|
|
648
647
|
require_relative "payabli/types/ocr_bill_item_additional_data"
|
|
649
648
|
require_relative "payabli/types/ocr_vendor_billing_data"
|
|
@@ -872,6 +871,7 @@ require_relative "payabli/types/request_out_authorize_payment_details"
|
|
|
872
871
|
require_relative "payabli/types/request_out_authorize_vendor_data"
|
|
873
872
|
require_relative "payabli/types/request_out_authorize_invoice_data"
|
|
874
873
|
require_relative "payabli/types/auto_capture"
|
|
874
|
+
require_relative "payabli/types/authorize_payout_body"
|
|
875
875
|
require_relative "payabli/types/vendoridtrans"
|
|
876
876
|
require_relative "payabli/types/auth_capture_payout_response_data"
|
|
877
877
|
require_relative "payabli/types/auth_capture_payout_response"
|
|
@@ -1076,6 +1076,8 @@ require_relative "payabli/query/types/list_vcards_transactions_request"
|
|
|
1076
1076
|
require_relative "payabli/query/types/list_vcards_transactions_org_request"
|
|
1077
1077
|
require_relative "payabli/query/types/list_vcards_org_request"
|
|
1078
1078
|
require_relative "payabli/ocr/client"
|
|
1079
|
+
require_relative "payabli/ocr/types/ocr_document_form_request"
|
|
1080
|
+
require_relative "payabli/ocr/types/ocr_document_json_request"
|
|
1079
1081
|
require_relative "payabli/notificationlogs/client"
|
|
1080
1082
|
require_relative "payabli/notificationlogs/types/search_notification_logs_request"
|
|
1081
1083
|
require_relative "payabli/device/client"
|
|
@@ -1150,6 +1152,7 @@ require_relative "payabli/money_out/client"
|
|
|
1150
1152
|
require_relative "payabli/money_out/types/request_out_authorize"
|
|
1151
1153
|
require_relative "payabli/money_out/types/capture_all_out_request"
|
|
1152
1154
|
require_relative "payabli/money_out/types/capture_out_request"
|
|
1155
|
+
require_relative "payabli/money_out/types/payout_request"
|
|
1153
1156
|
require_relative "payabli/money_out/types/renew_v_card_request"
|
|
1154
1157
|
require_relative "payabli/money_out/types/send_v_card_link_request"
|
|
1155
1158
|
require_relative "payabli/money_out/types/reissue_out_request"
|