@payabli/sdk-node 0.0.108 → 0.0.110
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.
- package/README.md +5 -1
- package/dist/cjs/Client.d.ts +2 -2
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/bill/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/boarding/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/chargeBacks/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/chargeBacks/client/requests/ResponseChargeBack.d.ts +1 -2
- package/dist/cjs/api/resources/checkCapture/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/cloud/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/customer/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/export/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/hostedPaymentPages/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/import/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/invoice/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/lineItem/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/moneyIn/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/moneyIn/errors/CaptureError.js +1 -1
- package/dist/cjs/api/resources/moneyOut/client/Client.d.ts +8 -10
- package/dist/cjs/api/resources/moneyOut/client/Client.js +6 -8
- package/dist/cjs/api/resources/moneyOut/client/requests/MoneyOutTypesRequestOutAuthorize.d.ts +6 -8
- package/dist/cjs/api/resources/moneyOutTypes/types/AuthorizePaymentMethod.d.ts +30 -0
- package/dist/cjs/api/resources/moneyOutTypes/types/AuthorizePaymentMethod.js +5 -0
- package/dist/cjs/api/resources/moneyOutTypes/types/AuthorizePayoutBody.d.ts +3 -10
- package/dist/cjs/api/resources/moneyOutTypes/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/moneyOutTypes/types/index.js +1 -0
- package/dist/cjs/api/resources/notification/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/ocr/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/organization/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/organization/client/requests/AddOrganizationRequest.d.ts +1 -2
- package/dist/cjs/api/resources/paymentLink/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/paymentMethodDomain/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/paypoint/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/query/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/query/client/requests/ListTransfersRequest.d.ts +3 -0
- package/dist/cjs/api/resources/query/client/requests/ListVcardsOrgRequest.d.ts +0 -2
- package/dist/cjs/api/resources/query/client/requests/ListVcardsRequest.d.ts +0 -2
- package/dist/cjs/api/resources/queryTypes/types/ListOrganizationsResponse.d.ts +2 -2
- package/dist/cjs/api/resources/queryTypes/types/QueryBatchesDetailResponse.d.ts +7 -7
- package/dist/cjs/api/resources/queryTypes/types/QueryBatchesResponse.d.ts +10 -10
- package/dist/cjs/api/resources/queryTypes/types/QueryTransferDetailResponse.d.ts +72 -72
- package/dist/cjs/api/resources/queryTypes/types/QueryTransferResponse.d.ts +2 -2
- package/dist/cjs/api/resources/queryTypes/types/QueryTransferSummary.d.ts +23 -18
- package/dist/cjs/api/resources/statistic/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/subscription/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/templates/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/tokenStorage/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/user/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/vendor/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/wallet/client/Client.d.ts +2 -2
- package/dist/cjs/api/types/AdditionalData.d.ts +1 -1
- package/dist/cjs/api/types/BillDetailResponse.d.ts +1 -1
- package/dist/cjs/api/types/BillQueryRecord2.d.ts +37 -38
- package/dist/cjs/api/types/BillQueryResponse.d.ts +8 -8
- package/dist/cjs/api/types/IdempotencyKey.d.ts +1 -1
- package/dist/cjs/api/types/PaymentIdString.d.ts +7 -0
- package/dist/cjs/api/types/PaymentIdString.js +5 -0
- package/dist/cjs/api/types/Paymentid.d.ts +1 -1
- package/dist/cjs/api/types/QueryPayoutTransaction.d.ts +2 -2
- package/dist/cjs/api/types/TransactionOutQueryRecord.d.ts +1 -1
- package/dist/cjs/api/types/Transfer.d.ts +18 -6
- package/dist/cjs/api/types/TransferQueryResponse.d.ts +10 -6
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/cjs/core/fetcher/requestWithRetries.js +34 -2
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +2 -2
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/bill/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/boarding/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/chargeBacks/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/chargeBacks/client/requests/ResponseChargeBack.d.mts +1 -2
- package/dist/esm/api/resources/checkCapture/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/cloud/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/customer/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/export/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/hostedPaymentPages/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/import/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/invoice/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/lineItem/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/moneyIn/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/moneyIn/errors/CaptureError.mjs +1 -1
- package/dist/esm/api/resources/moneyOut/client/Client.d.mts +8 -10
- package/dist/esm/api/resources/moneyOut/client/Client.mjs +6 -8
- package/dist/esm/api/resources/moneyOut/client/requests/MoneyOutTypesRequestOutAuthorize.d.mts +6 -8
- package/dist/esm/api/resources/moneyOutTypes/types/AuthorizePaymentMethod.d.mts +30 -0
- package/dist/esm/api/resources/moneyOutTypes/types/AuthorizePaymentMethod.mjs +4 -0
- package/dist/esm/api/resources/moneyOutTypes/types/AuthorizePayoutBody.d.mts +3 -10
- package/dist/esm/api/resources/moneyOutTypes/types/index.d.mts +1 -0
- package/dist/esm/api/resources/moneyOutTypes/types/index.mjs +1 -0
- package/dist/esm/api/resources/notification/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/ocr/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/organization/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/organization/client/requests/AddOrganizationRequest.d.mts +1 -2
- package/dist/esm/api/resources/paymentLink/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/paymentMethodDomain/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/paypoint/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/query/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/query/client/requests/ListTransfersRequest.d.mts +3 -0
- package/dist/esm/api/resources/query/client/requests/ListVcardsOrgRequest.d.mts +0 -2
- package/dist/esm/api/resources/query/client/requests/ListVcardsRequest.d.mts +0 -2
- package/dist/esm/api/resources/queryTypes/types/ListOrganizationsResponse.d.mts +2 -2
- package/dist/esm/api/resources/queryTypes/types/QueryBatchesDetailResponse.d.mts +7 -7
- package/dist/esm/api/resources/queryTypes/types/QueryBatchesResponse.d.mts +10 -10
- package/dist/esm/api/resources/queryTypes/types/QueryTransferDetailResponse.d.mts +72 -72
- package/dist/esm/api/resources/queryTypes/types/QueryTransferResponse.d.mts +2 -2
- package/dist/esm/api/resources/queryTypes/types/QueryTransferSummary.d.mts +23 -18
- package/dist/esm/api/resources/statistic/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/subscription/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/templates/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/tokenStorage/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/user/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/vendor/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/wallet/client/Client.d.mts +2 -2
- package/dist/esm/api/types/AdditionalData.d.mts +1 -1
- package/dist/esm/api/types/BillDetailResponse.d.mts +1 -1
- package/dist/esm/api/types/BillQueryRecord2.d.mts +37 -38
- package/dist/esm/api/types/BillQueryResponse.d.mts +8 -8
- package/dist/esm/api/types/IdempotencyKey.d.mts +1 -1
- package/dist/esm/api/types/PaymentIdString.d.mts +7 -0
- package/dist/esm/api/types/PaymentIdString.mjs +4 -0
- package/dist/esm/api/types/Paymentid.d.mts +1 -1
- package/dist/esm/api/types/QueryPayoutTransaction.d.mts +2 -2
- package/dist/esm/api/types/TransactionOutQueryRecord.d.mts +1 -1
- package/dist/esm/api/types/Transfer.d.mts +18 -6
- package/dist/esm/api/types/TransferQueryResponse.d.mts +10 -6
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/core/fetcher/Fetcher.d.mts +1 -1
- package/dist/esm/core/fetcher/requestWithRetries.mjs +34 -2
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
|
@@ -3,71 +3,70 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Payabli from "../index.js";
|
|
5
5
|
export interface BillQueryRecord2 {
|
|
6
|
-
AccountingField1
|
|
7
|
-
AccountingField2
|
|
6
|
+
AccountingField1: Payabli.AccountingField | null;
|
|
7
|
+
AccountingField2: Payabli.AccountingField | null;
|
|
8
8
|
/** Additional data associated with the bill. */
|
|
9
|
-
AdditionalData
|
|
9
|
+
AdditionalData: Record<string, string> | null;
|
|
10
10
|
/** Batch number associated with the bill. */
|
|
11
|
-
BatchNumber
|
|
12
|
-
billApprovals
|
|
11
|
+
BatchNumber: string | null;
|
|
12
|
+
billApprovals: Payabli.BillQueryRecord2BillApprovalsItem[] | null;
|
|
13
13
|
/** Bill creation date in one of the accepted formats: YYYY-MM-DD, MM/DD/YYYY. */
|
|
14
|
-
BillDate
|
|
14
|
+
BillDate: (Payabli.Datenullable | undefined) | null;
|
|
15
15
|
/** Events associated with the bill. */
|
|
16
|
-
billEvents
|
|
16
|
+
billEvents: Payabli.GeneralEvents[] | null;
|
|
17
17
|
/** Array of items included in the bill. */
|
|
18
|
-
BillItems
|
|
18
|
+
BillItems: Payabli.BillItem[] | null;
|
|
19
19
|
/** Bill number. */
|
|
20
|
-
BillNumber
|
|
20
|
+
BillNumber: string | null;
|
|
21
21
|
/** Additional comments on the bill. */
|
|
22
|
-
Comments
|
|
22
|
+
Comments: string | null;
|
|
23
23
|
/** Timestamp of when bill was created, in UTC. */
|
|
24
|
-
CreatedAt
|
|
24
|
+
CreatedAt: Payabli.CreatedAt | null;
|
|
25
25
|
/** Discount amount applied to the bill. */
|
|
26
|
-
Discount
|
|
26
|
+
Discount: number | null;
|
|
27
27
|
/** Reference to documents associated with the bill. */
|
|
28
|
-
DocumentsRef
|
|
28
|
+
DocumentsRef: string | null;
|
|
29
29
|
/** Bill due date in one of the accepted formats: YYYY-MM-DD, MM/DD/YYYY. */
|
|
30
|
-
DueDate
|
|
30
|
+
DueDate: (Payabli.Datenullable | undefined) | null;
|
|
31
31
|
/** End date for the bill. */
|
|
32
|
-
EndDate
|
|
32
|
+
EndDate: (Payabli.Datenullable | undefined) | null;
|
|
33
33
|
/** Entity identifier associated with the bill. */
|
|
34
|
-
EntityID
|
|
35
|
-
externalPaypointID
|
|
34
|
+
EntityID: string | null;
|
|
35
|
+
externalPaypointID: Payabli.ExternalPaypointId | null;
|
|
36
36
|
/** Frequency for scheduled bills. Applied only in `Mode` = 1. */
|
|
37
|
-
Frequency
|
|
37
|
+
Frequency: Payabli.Frequency | null;
|
|
38
38
|
/** Identifier of the bill. */
|
|
39
|
-
IdBill
|
|
39
|
+
IdBill: number | null;
|
|
40
40
|
/** Timestamp of when bill was last updated, in UTC. */
|
|
41
|
-
LastUpdated
|
|
41
|
+
LastUpdated: (Payabli.DatetimeNullable | undefined) | null;
|
|
42
42
|
/** Lot number associated with the bill. */
|
|
43
|
-
LotNumber
|
|
43
|
+
LotNumber: string | null;
|
|
44
44
|
/** Bill mode: value `0` for single/one-time bills, `1` for scheduled bills. */
|
|
45
|
-
Mode
|
|
45
|
+
Mode: number | null;
|
|
46
46
|
/** Net amount of the bill. */
|
|
47
|
-
NetAmount
|
|
47
|
+
NetAmount: number | null;
|
|
48
48
|
/** Parent organization identifier. */
|
|
49
|
-
ParentOrgId
|
|
50
|
-
ParentOrgName
|
|
51
|
-
|
|
52
|
-
PaymentId?: string;
|
|
49
|
+
ParentOrgId: number | null;
|
|
50
|
+
ParentOrgName: Payabli.OrgParentName | null;
|
|
51
|
+
PaymentId: Payabli.PaymentIdString | null;
|
|
53
52
|
/** Preferred payment method used. */
|
|
54
|
-
PaymentMethod
|
|
53
|
+
PaymentMethod: Payabli.BillQueryRecord2PaymentMethod | null;
|
|
55
54
|
/** Paylink identifier associated with the bill. */
|
|
56
|
-
paylinkId
|
|
55
|
+
paylinkId: string | null;
|
|
57
56
|
/** The paypoint's DBA name. */
|
|
58
|
-
PaypointDbaname
|
|
57
|
+
PaypointDbaname: Payabli.Dbaname | null;
|
|
59
58
|
/** Entry name of the paypoint. */
|
|
60
|
-
PaypointEntryname
|
|
59
|
+
PaypointEntryname: string | null;
|
|
61
60
|
/** The paypoint's legal name. */
|
|
62
|
-
PaypointLegalname
|
|
61
|
+
PaypointLegalname: Payabli.Legalname | null;
|
|
63
62
|
/** Source of the bill. */
|
|
64
|
-
Source
|
|
65
|
-
Status
|
|
63
|
+
Source: string | null;
|
|
64
|
+
Status: Payabli.Billstatus | null;
|
|
66
65
|
/** The payment terms for invoice. If no terms were defined initially, then response data for this field will default to `N30`. */
|
|
67
|
-
Terms
|
|
66
|
+
Terms: Payabli.Terms | null;
|
|
68
67
|
/** Total amount of the bill including taxes and fees. */
|
|
69
|
-
TotalAmount
|
|
68
|
+
TotalAmount: number | null;
|
|
70
69
|
/** MoneyOut transaction associated to the bill. */
|
|
71
|
-
Transaction
|
|
72
|
-
Vendor
|
|
70
|
+
Transaction: Payabli.TransactionOutQueryRecord | null;
|
|
71
|
+
Vendor: Payabli.VendorOutData | null;
|
|
73
72
|
}
|
|
@@ -31,7 +31,7 @@ import * as Payabli from "../index.js";
|
|
|
31
31
|
* totalsent2approval: 1
|
|
32
32
|
* },
|
|
33
33
|
* Records: [{
|
|
34
|
-
* AdditionalData:
|
|
34
|
+
* AdditionalData: null,
|
|
35
35
|
* billApprovals: [{
|
|
36
36
|
* approved: 0,
|
|
37
37
|
* approvedTime: "2024-03-13T15:54:27Z",
|
|
@@ -70,10 +70,10 @@ import * as Payabli from "../index.js";
|
|
|
70
70
|
* Comments: "PAYBILL",
|
|
71
71
|
* CreatedAt: "2024-03-13T15:54:26Z",
|
|
72
72
|
* Discount: 0,
|
|
73
|
-
* DocumentsRef:
|
|
73
|
+
* DocumentsRef: null,
|
|
74
74
|
* DueDate: "2025-03-10",
|
|
75
|
-
* EndDate:
|
|
76
|
-
* EntityID:
|
|
75
|
+
* EndDate: null,
|
|
76
|
+
* EntityID: null,
|
|
77
77
|
* externalPaypointID: "micasa-10",
|
|
78
78
|
* Frequency: Payabli.Frequency.OneTime,
|
|
79
79
|
* IdBill: 6104,
|
|
@@ -83,9 +83,9 @@ import * as Payabli from "../index.js";
|
|
|
83
83
|
* NetAmount: 200,
|
|
84
84
|
* ParentOrgId: 1001,
|
|
85
85
|
* ParentOrgName: "Fitness Hub",
|
|
86
|
-
* PaymentId:
|
|
87
|
-
* PaymentMethod:
|
|
88
|
-
* paylinkId:
|
|
86
|
+
* PaymentId: null,
|
|
87
|
+
* PaymentMethod: null,
|
|
88
|
+
* paylinkId: null,
|
|
89
89
|
* PaypointDbaname: "MiCasa Sports",
|
|
90
90
|
* PaypointEntryname: "micasa",
|
|
91
91
|
* PaypointLegalname: "MiCasa Sports LLC",
|
|
@@ -93,7 +93,7 @@ import * as Payabli from "../index.js";
|
|
|
93
93
|
* Status: 2,
|
|
94
94
|
* Terms: "Net30",
|
|
95
95
|
* TotalAmount: 200,
|
|
96
|
-
* Transaction:
|
|
96
|
+
* Transaction: null,
|
|
97
97
|
* Vendor: {
|
|
98
98
|
* Address1: "1234 Liberdad St.",
|
|
99
99
|
* Address2: "Suite 100",
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
|
-
* _Optional but recommended_ A unique ID that you can include to prevent duplicating objects or transactions in the case that a request is sent more than once. This key isn't generated in Payabli, you must generate it yourself.
|
|
5
|
+
* _Optional but recommended_ A unique ID that you can include to prevent duplicating objects or transactions in the case that a request is sent more than once. This key isn't generated in Payabli, you must generate it yourself. This key persists for 2 minutes. After 2 minutes, you can reuse the key if needed.
|
|
6
6
|
*/
|
|
7
7
|
export type IdempotencyKey = string;
|
|
@@ -26,7 +26,7 @@ import * as Payabli from "../index.js";
|
|
|
26
26
|
* totalAmount: 100
|
|
27
27
|
* }
|
|
28
28
|
* },
|
|
29
|
-
* PaymentId: "
|
|
29
|
+
* PaymentId: "12345678910",
|
|
30
30
|
* PaymentMethod: "ach",
|
|
31
31
|
* PaymentStatus: "Processed",
|
|
32
32
|
* PaypointDbaname: "Sunshine Gutters",
|
|
@@ -111,7 +111,7 @@ export declare namespace QueryPayoutTransaction {
|
|
|
111
111
|
ParentOrgName?: Payabli.OrgParentName;
|
|
112
112
|
ParentOrgId?: Payabli.OrgParentId;
|
|
113
113
|
PaymentData?: Item.PaymentData;
|
|
114
|
-
PaymentId?: Payabli.
|
|
114
|
+
PaymentId?: Payabli.PaymentIdString;
|
|
115
115
|
/** The payment method for the transaction. */
|
|
116
116
|
PaymentMethod?: string;
|
|
117
117
|
/** Status of payout transaction. See [Payout Transaction Statuses](guides/money-out-statuses#payout-transaction-statuses) for a full reference. */
|
|
@@ -34,7 +34,7 @@ export interface TransactionOutQueryRecord {
|
|
|
34
34
|
CheckNumber?: string;
|
|
35
35
|
/** Object referencing to paper check image. */
|
|
36
36
|
CheckData?: Payabli.FileContent;
|
|
37
|
-
PaymentId?: Payabli.
|
|
37
|
+
PaymentId?: Payabli.PaymentIdString;
|
|
38
38
|
PaymentData?: Payabli.QueryPaymentData;
|
|
39
39
|
/** Events associated to this transaction. */
|
|
40
40
|
Bills?: Payabli.BillPayOutData[];
|
|
@@ -12,10 +12,14 @@ import * as Payabli from "../index.js";
|
|
|
12
12
|
* batchRecords: 1,
|
|
13
13
|
* transferIdentifier: "bbcbfed7-e535-45fe-8d62-000000",
|
|
14
14
|
* batchId: 111430,
|
|
15
|
-
* paypointEntryName: "
|
|
16
|
-
* paypointLegalName: "
|
|
17
|
-
* paypointDbaName: "
|
|
15
|
+
* paypointEntryName: "47ae3de37",
|
|
16
|
+
* paypointLegalName: "Gruzya Outdoor Outfitters LLC",
|
|
17
|
+
* paypointDbaName: "Gruzya Outdoor Outfitters",
|
|
18
18
|
* paypointLogo: "https://example.com/logo.png",
|
|
19
|
+
* parentOrgName: "Pilgrim Planner",
|
|
20
|
+
* parentOrgId: 12345,
|
|
21
|
+
* parentOrgLogo: "https://example.com/parent-logo.png",
|
|
22
|
+
* externalPaypointId: "ext-12345",
|
|
19
23
|
* bankAccount: {
|
|
20
24
|
* accountNumber: "****1234",
|
|
21
25
|
* routingNumber: "123456789"
|
|
@@ -23,15 +27,15 @@ import * as Payabli from "../index.js";
|
|
|
23
27
|
* transferDate: "2024-11-17T08:20:07.288+00:00",
|
|
24
28
|
* processor: "gp",
|
|
25
29
|
* transferStatus: 2,
|
|
26
|
-
* grossAmount:
|
|
27
|
-
* chargeBackAmount:
|
|
30
|
+
* grossAmount: 1029,
|
|
31
|
+
* chargeBackAmount: 25,
|
|
28
32
|
* returnedAmount: 0,
|
|
29
33
|
* holdAmount: 0,
|
|
30
34
|
* releasedAmount: 0,
|
|
31
35
|
* billingFeesAmount: 0,
|
|
32
36
|
* thirdPartyPaidAmount: 0,
|
|
33
37
|
* adjustmentsAmount: 0,
|
|
34
|
-
* netTransferAmount:
|
|
38
|
+
* netTransferAmount: 1004,
|
|
35
39
|
* eventsData: [{
|
|
36
40
|
* description: "Transfer Created",
|
|
37
41
|
* eventTime: "2024-11-16T08:15:33.4364067Z",
|
|
@@ -62,6 +66,14 @@ export interface Transfer {
|
|
|
62
66
|
paypointDbaName?: Payabli.Dbaname;
|
|
63
67
|
/** The paypoint logo URL. */
|
|
64
68
|
paypointLogo?: string;
|
|
69
|
+
/** The parent organization name. */
|
|
70
|
+
parentOrgName?: string;
|
|
71
|
+
/** The parent organization ID. */
|
|
72
|
+
parentOrgId?: number;
|
|
73
|
+
/** The parent organization logo URL. */
|
|
74
|
+
parentOrgLogo?: string;
|
|
75
|
+
/** The external paypoint ID. */
|
|
76
|
+
externalPaypointId?: string;
|
|
65
77
|
/** Bank account information for the transfer. */
|
|
66
78
|
bankAccount?: Payabli.TransferBankAccount;
|
|
67
79
|
/** Date when the transfer occurred. */
|
|
@@ -13,10 +13,14 @@ import * as Payabli from "../index.js";
|
|
|
13
13
|
* batchRecords: 1,
|
|
14
14
|
* transferIdentifier: "bbcbfed7-e535-45fe-8d62-000000",
|
|
15
15
|
* batchId: 111430,
|
|
16
|
-
* paypointEntryName: "
|
|
17
|
-
* paypointLegalName: "
|
|
18
|
-
* paypointDbaName: "
|
|
16
|
+
* paypointEntryName: "47ae3de37",
|
|
17
|
+
* paypointLegalName: "Gruzya Outdoor Outfitters LLC",
|
|
18
|
+
* paypointDbaName: "Gruzya Outdoor Outfitters",
|
|
19
19
|
* paypointLogo: "https://example.com/logo.png",
|
|
20
|
+
* parentOrgName: "Pilgrim Planner",
|
|
21
|
+
* parentOrgId: 12345,
|
|
22
|
+
* parentOrgLogo: "https://example.com/parent-logo.png",
|
|
23
|
+
* externalPaypointId: "ext-12345",
|
|
20
24
|
* bankAccount: {
|
|
21
25
|
* accountNumber: "****1234",
|
|
22
26
|
* routingNumber: "123456789"
|
|
@@ -24,15 +28,15 @@ import * as Payabli from "../index.js";
|
|
|
24
28
|
* transferDate: "2024-11-17T08:20:07.288+00:00",
|
|
25
29
|
* processor: "gp",
|
|
26
30
|
* transferStatus: 2,
|
|
27
|
-
* grossAmount:
|
|
28
|
-
* chargeBackAmount:
|
|
31
|
+
* grossAmount: 1029,
|
|
32
|
+
* chargeBackAmount: 25,
|
|
29
33
|
* returnedAmount: 0,
|
|
30
34
|
* holdAmount: 0,
|
|
31
35
|
* releasedAmount: 0,
|
|
32
36
|
* billingFeesAmount: 0,
|
|
33
37
|
* thirdPartyPaidAmount: 0,
|
|
34
38
|
* adjustmentsAmount: 0,
|
|
35
|
-
* netTransferAmount:
|
|
39
|
+
* netTransferAmount: 1004,
|
|
36
40
|
* eventsData: [{
|
|
37
41
|
* description: "Transfer Created",
|
|
38
42
|
* eventTime: "2024-11-16T08:15:33.4364067Z",
|
|
@@ -353,6 +353,7 @@ export * from "./PaymentCategories.js";
|
|
|
353
353
|
export * from "./PaymentDetail.js";
|
|
354
354
|
export * from "./PaymentDetailCredit.js";
|
|
355
355
|
export * from "./Paymentid.js";
|
|
356
|
+
export * from "./PaymentIdString.js";
|
|
356
357
|
export * from "./PaymentMethod.js";
|
|
357
358
|
export * from "./PayMethodBodyAllFields.js";
|
|
358
359
|
export * from "./PayMethodCredit.js";
|
|
@@ -369,6 +369,7 @@ __exportStar(require("./PaymentCategories.js"), exports);
|
|
|
369
369
|
__exportStar(require("./PaymentDetail.js"), exports);
|
|
370
370
|
__exportStar(require("./PaymentDetailCredit.js"), exports);
|
|
371
371
|
__exportStar(require("./Paymentid.js"), exports);
|
|
372
|
+
__exportStar(require("./PaymentIdString.js"), exports);
|
|
372
373
|
__exportStar(require("./PaymentMethod.js"), exports);
|
|
373
374
|
__exportStar(require("./PayMethodBodyAllFields.js"), exports);
|
|
374
375
|
__exportStar(require("./PayMethodCredit.js"), exports);
|
|
@@ -6,7 +6,7 @@ export declare namespace Fetcher {
|
|
|
6
6
|
url: string;
|
|
7
7
|
method: string;
|
|
8
8
|
contentType?: string;
|
|
9
|
-
headers?: Record<string, string | Supplier<string | undefined> | undefined>;
|
|
9
|
+
headers?: Record<string, string | Supplier<string | null | undefined> | null | undefined>;
|
|
10
10
|
queryParameters?: Record<string, unknown>;
|
|
11
11
|
body?: unknown;
|
|
12
12
|
timeoutMs?: number;
|
|
@@ -19,13 +19,45 @@ function addJitter(delay) {
|
|
|
19
19
|
const jitterMultiplier = 1 + (Math.random() * 2 - 1) * JITTER_FACTOR;
|
|
20
20
|
return delay * jitterMultiplier;
|
|
21
21
|
}
|
|
22
|
+
function getRetryDelayFromHeaders(response, retryAttempt) {
|
|
23
|
+
// Check for Retry-After header first (RFC 7231)
|
|
24
|
+
const retryAfter = response.headers.get("Retry-After");
|
|
25
|
+
if (retryAfter) {
|
|
26
|
+
// Parse as number of seconds...
|
|
27
|
+
const retryAfterSeconds = parseInt(retryAfter, 10);
|
|
28
|
+
if (!isNaN(retryAfterSeconds)) {
|
|
29
|
+
// Convert seconds to milliseconds and cap at MAX_RETRY_DELAY
|
|
30
|
+
return Math.min(retryAfterSeconds * 1000, MAX_RETRY_DELAY);
|
|
31
|
+
}
|
|
32
|
+
// ...or as an HTTP date; both are valid
|
|
33
|
+
const retryAfterDate = new Date(retryAfter);
|
|
34
|
+
if (!isNaN(retryAfterDate.getTime())) {
|
|
35
|
+
const delay = retryAfterDate.getTime() - Date.now();
|
|
36
|
+
return Math.min(Math.max(delay, 0), MAX_RETRY_DELAY);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
// Then check for industry-standard X-RateLimit-Reset header
|
|
40
|
+
const rateLimitReset = response.headers.get("X-RateLimit-Reset");
|
|
41
|
+
if (rateLimitReset) {
|
|
42
|
+
const resetTime = parseInt(rateLimitReset, 10);
|
|
43
|
+
if (!isNaN(resetTime)) {
|
|
44
|
+
// Assume Unix timestamp in epoch seconds
|
|
45
|
+
const delay = resetTime * 1000 - Date.now();
|
|
46
|
+
if (delay > 0) {
|
|
47
|
+
return Math.min(delay, MAX_RETRY_DELAY);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
// Fall back to exponential backoff
|
|
52
|
+
return Math.min(INITIAL_RETRY_DELAY * Math.pow(2, retryAttempt), MAX_RETRY_DELAY);
|
|
53
|
+
}
|
|
22
54
|
function requestWithRetries(requestFn_1) {
|
|
23
55
|
return __awaiter(this, arguments, void 0, function* (requestFn, maxRetries = DEFAULT_MAX_RETRIES) {
|
|
24
56
|
let response = yield requestFn();
|
|
25
57
|
for (let i = 0; i < maxRetries; ++i) {
|
|
26
58
|
if ([408, 429].includes(response.status) || response.status >= 500) {
|
|
27
|
-
//
|
|
28
|
-
const baseDelay =
|
|
59
|
+
// Get delay from headers or fall back to exponential backoff
|
|
60
|
+
const baseDelay = getRetryDelayFromHeaders(response, i);
|
|
29
61
|
// Add jitter to the delay
|
|
30
62
|
const delayWithJitter = addJitter(baseDelay);
|
|
31
63
|
yield new Promise((resolve) => setTimeout(resolve, delayWithJitter));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as core from "./index.js";
|
|
2
|
-
export declare function mergeHeaders(...headersArray: (Record<string, string | core.Supplier<string | undefined> | undefined> | undefined)[]): Record<string, string | core.Supplier<string | undefined>>;
|
|
3
|
-
export declare function mergeOnlyDefinedHeaders(...headersArray: (Record<string, string | core.Supplier<string | undefined> | undefined> | undefined)[]): Record<string, string | core.Supplier<string | undefined>>;
|
|
2
|
+
export declare function mergeHeaders(...headersArray: (Record<string, string | core.Supplier<string | null | undefined> | null | undefined> | null | undefined)[]): Record<string, string | core.Supplier<string | null | undefined>>;
|
|
3
|
+
export declare function mergeOnlyDefinedHeaders(...headersArray: (Record<string, string | core.Supplier<string | null | undefined> | null | undefined> | null | undefined)[]): Record<string, string | core.Supplier<string | null | undefined>>;
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.110";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -37,7 +37,7 @@ export declare namespace PayabliClient {
|
|
|
37
37
|
baseUrl?: core.Supplier<string>;
|
|
38
38
|
apiKey?: core.Supplier<string | undefined>;
|
|
39
39
|
/** Additional headers to include in requests. */
|
|
40
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
40
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
41
41
|
}
|
|
42
42
|
interface RequestOptions {
|
|
43
43
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -49,7 +49,7 @@ export declare namespace PayabliClient {
|
|
|
49
49
|
/** Additional query string parameters to include in the request. */
|
|
50
50
|
queryParams?: Record<string, unknown>;
|
|
51
51
|
/** Additional headers to include in the request. */
|
|
52
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
52
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
export declare class PayabliClient {
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -35,8 +35,8 @@ export class PayabliClient {
|
|
|
35
35
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
36
36
|
"X-Fern-Language": "JavaScript",
|
|
37
37
|
"X-Fern-SDK-Name": "@payabli/sdk-node",
|
|
38
|
-
"X-Fern-SDK-Version": "0.0.
|
|
39
|
-
"User-Agent": "@payabli/sdk-node/0.0.
|
|
38
|
+
"X-Fern-SDK-Version": "0.0.110",
|
|
39
|
+
"User-Agent": "@payabli/sdk-node/0.0.110",
|
|
40
40
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
41
41
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
42
42
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -11,7 +11,7 @@ export declare namespace Bill {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
17
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -23,7 +23,7 @@ export declare namespace Bill {
|
|
|
23
23
|
/** Additional query string parameters to include in the request. */
|
|
24
24
|
queryParams?: Record<string, unknown>;
|
|
25
25
|
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare class Bill {
|
|
@@ -11,7 +11,7 @@ export declare namespace Boarding {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
17
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -23,7 +23,7 @@ export declare namespace Boarding {
|
|
|
23
23
|
/** Additional query string parameters to include in the request. */
|
|
24
24
|
queryParams?: Record<string, unknown>;
|
|
25
25
|
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare class Boarding {
|
|
@@ -11,7 +11,7 @@ export declare namespace ChargeBacks {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
17
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -23,7 +23,7 @@ export declare namespace ChargeBacks {
|
|
|
23
23
|
/** Additional query string parameters to include in the request. */
|
|
24
24
|
queryParams?: Record<string, unknown>;
|
|
25
25
|
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare class ChargeBacks {
|
|
@@ -9,8 +9,7 @@ import * as Payabli from "../../../../index.mjs";
|
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface ResponseChargeBack {
|
|
12
|
-
|
|
13
|
-
idempotencyKey?: string;
|
|
12
|
+
idempotencyKey?: Payabli.IdempotencyKey;
|
|
14
13
|
/** Array of attached files to response. */
|
|
15
14
|
attachments?: Payabli.Attachments | undefined;
|
|
16
15
|
/** Email of response submitter. */
|
|
@@ -11,7 +11,7 @@ export declare namespace CheckCapture {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
17
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -23,7 +23,7 @@ export declare namespace CheckCapture {
|
|
|
23
23
|
/** Additional query string parameters to include in the request. */
|
|
24
24
|
queryParams?: Record<string, unknown>;
|
|
25
25
|
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare class CheckCapture {
|
|
@@ -11,7 +11,7 @@ export declare namespace Cloud {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
17
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -23,7 +23,7 @@ export declare namespace Cloud {
|
|
|
23
23
|
/** Additional query string parameters to include in the request. */
|
|
24
24
|
queryParams?: Record<string, unknown>;
|
|
25
25
|
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare class Cloud {
|
|
@@ -11,7 +11,7 @@ export declare namespace Customer {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
17
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -23,7 +23,7 @@ export declare namespace Customer {
|
|
|
23
23
|
/** Additional query string parameters to include in the request. */
|
|
24
24
|
queryParams?: Record<string, unknown>;
|
|
25
25
|
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare class Customer {
|
|
@@ -11,7 +11,7 @@ export declare namespace Export {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
17
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -23,7 +23,7 @@ export declare namespace Export {
|
|
|
23
23
|
/** Additional query string parameters to include in the request. */
|
|
24
24
|
queryParams?: Record<string, unknown>;
|
|
25
25
|
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare class Export {
|
|
@@ -11,7 +11,7 @@ export declare namespace HostedPaymentPages {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
17
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -23,7 +23,7 @@ export declare namespace HostedPaymentPages {
|
|
|
23
23
|
/** Additional query string parameters to include in the request. */
|
|
24
24
|
queryParams?: Record<string, unknown>;
|
|
25
25
|
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare class HostedPaymentPages {
|
|
@@ -11,7 +11,7 @@ export declare namespace Import {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
17
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -23,7 +23,7 @@ export declare namespace Import {
|
|
|
23
23
|
/** Additional query string parameters to include in the request. */
|
|
24
24
|
queryParams?: Record<string, unknown>;
|
|
25
25
|
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare class Import {
|
|
@@ -11,7 +11,7 @@ export declare namespace Invoice {
|
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
15
|
}
|
|
16
16
|
interface RequestOptions {
|
|
17
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -23,7 +23,7 @@ export declare namespace Invoice {
|
|
|
23
23
|
/** Additional query string parameters to include in the request. */
|
|
24
24
|
queryParams?: Record<string, unknown>;
|
|
25
25
|
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
export declare class Invoice {
|