conductor-node 12.6.0 → 12.8.0
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/CHANGELOG.md +16 -0
- package/package.json +1 -1
- package/resources/qbd/index.d.ts +2 -0
- package/resources/qbd/index.d.ts.map +1 -1
- package/resources/qbd/index.js +6 -2
- package/resources/qbd/index.js.map +1 -1
- package/resources/qbd/index.mjs +2 -0
- package/resources/qbd/index.mjs.map +1 -1
- package/resources/qbd/other-names.d.ts +690 -0
- package/resources/qbd/other-names.d.ts.map +1 -0
- package/resources/qbd/other-names.js +88 -0
- package/resources/qbd/other-names.js.map +1 -0
- package/resources/qbd/other-names.mjs +84 -0
- package/resources/qbd/other-names.mjs.map +1 -0
- package/resources/qbd/payment-methods.d.ts +235 -0
- package/resources/qbd/payment-methods.d.ts.map +1 -0
- package/resources/qbd/payment-methods.js +69 -0
- package/resources/qbd/payment-methods.js.map +1 -0
- package/resources/qbd/payment-methods.mjs +65 -0
- package/resources/qbd/payment-methods.mjs.map +1 -0
- package/resources/qbd/qbd.d.ts +8 -0
- package/resources/qbd/qbd.d.ts.map +1 -1
- package/resources/qbd/qbd.js +8 -0
- package/resources/qbd/qbd.js.map +1 -1
- package/resources/qbd/qbd.mjs +8 -0
- package/resources/qbd/qbd.mjs.map +1 -1
- package/src/resources/qbd/index.ts +17 -0
- package/src/resources/qbd/other-names.ts +855 -0
- package/src/resources/qbd/payment-methods.ts +335 -0
- package/src/resources/qbd/qbd.ts +42 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.OtherNames = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class OtherNames extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new other-name.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const otherName = await client.qbd.otherNames.create({
|
|
13
|
+
* name: 'John Doe',
|
|
14
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(params, options) {
|
|
19
|
+
const { conductorEndUserId, ...body } = params;
|
|
20
|
+
return this._client.post('/quickbooks-desktop/other-names', {
|
|
21
|
+
body,
|
|
22
|
+
...options,
|
|
23
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves an other-name by ID.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const otherName = await client.qbd.otherNames.retrieve(
|
|
32
|
+
* '80000001-1234567890',
|
|
33
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
retrieve(id, params, options) {
|
|
38
|
+
const { conductorEndUserId } = params;
|
|
39
|
+
return this._client.get(`/quickbooks-desktop/other-names/${id}`, {
|
|
40
|
+
...options,
|
|
41
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Updates an existing other-name.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const otherName = await client.qbd.otherNames.update(
|
|
50
|
+
* '80000001-1234567890',
|
|
51
|
+
* {
|
|
52
|
+
* revisionNumber: '1721172183',
|
|
53
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
54
|
+
* },
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
update(id, params, options) {
|
|
59
|
+
const { conductorEndUserId, ...body } = params;
|
|
60
|
+
return this._client.post(`/quickbooks-desktop/other-names/${id}`, {
|
|
61
|
+
body,
|
|
62
|
+
...options,
|
|
63
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Returns a list of other-names. NOTE: QuickBooks Desktop does not support
|
|
68
|
+
* pagination for other-names; hence, there is no `cursor` parameter. Users
|
|
69
|
+
* typically have few other-names.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const otherNames = await client.qbd.otherNames.list({
|
|
74
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
75
|
+
* });
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
list(params, options) {
|
|
79
|
+
const { conductorEndUserId, ...query } = params;
|
|
80
|
+
return this._client.get('/quickbooks-desktop/other-names', {
|
|
81
|
+
query,
|
|
82
|
+
...options,
|
|
83
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.OtherNames = OtherNames;
|
|
88
|
+
//# sourceMappingURL=other-names.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"other-names.js","sourceRoot":"","sources":["../../src/resources/qbd/other-names.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,UAAW,SAAQ,sBAAW;IACzC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAA6B,EAAE,OAA6B;QACjE,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iCAAiC,EAAE;YAC1D,IAAI;YAC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stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
export class OtherNames extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new other-name.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const otherName = await client.qbd.otherNames.create({
|
|
10
|
+
* name: 'John Doe',
|
|
11
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
12
|
+
* });
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
create(params, options) {
|
|
16
|
+
const { conductorEndUserId, ...body } = params;
|
|
17
|
+
return this._client.post('/quickbooks-desktop/other-names', {
|
|
18
|
+
body,
|
|
19
|
+
...options,
|
|
20
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Retrieves an other-name by ID.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const otherName = await client.qbd.otherNames.retrieve(
|
|
29
|
+
* '80000001-1234567890',
|
|
30
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
retrieve(id, params, options) {
|
|
35
|
+
const { conductorEndUserId } = params;
|
|
36
|
+
return this._client.get(`/quickbooks-desktop/other-names/${id}`, {
|
|
37
|
+
...options,
|
|
38
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Updates an existing other-name.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const otherName = await client.qbd.otherNames.update(
|
|
47
|
+
* '80000001-1234567890',
|
|
48
|
+
* {
|
|
49
|
+
* revisionNumber: '1721172183',
|
|
50
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
51
|
+
* },
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
update(id, params, options) {
|
|
56
|
+
const { conductorEndUserId, ...body } = params;
|
|
57
|
+
return this._client.post(`/quickbooks-desktop/other-names/${id}`, {
|
|
58
|
+
body,
|
|
59
|
+
...options,
|
|
60
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Returns a list of other-names. NOTE: QuickBooks Desktop does not support
|
|
65
|
+
* pagination for other-names; hence, there is no `cursor` parameter. Users
|
|
66
|
+
* typically have few other-names.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const otherNames = await client.qbd.otherNames.list({
|
|
71
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
list(params, options) {
|
|
76
|
+
const { conductorEndUserId, ...query } = params;
|
|
77
|
+
return this._client.get('/quickbooks-desktop/other-names', {
|
|
78
|
+
query,
|
|
79
|
+
...options,
|
|
80
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=other-names.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"other-names.mjs","sourceRoot":"","sources":["../../src/resources/qbd/other-names.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAA6B,EAAE,OAA6B;QACjE,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI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0 +1,235 @@
|
|
|
1
|
+
import { APIResource } from "../../resource.js";
|
|
2
|
+
import * as Core from "../../core.js";
|
|
3
|
+
export declare class PaymentMethods extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new payment method.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const paymentMethod =
|
|
10
|
+
* await client.qbd.paymentMethods.create({
|
|
11
|
+
* name: 'Cash',
|
|
12
|
+
* paymentMethodType: 'cash',
|
|
13
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(params: PaymentMethodCreateParams, options?: Core.RequestOptions): Core.APIPromise<PaymentMethod>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a payment method by ID.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const paymentMethod =
|
|
24
|
+
* await client.qbd.paymentMethods.retrieve(
|
|
25
|
+
* '80000001-1234567890',
|
|
26
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
27
|
+
* );
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
retrieve(id: string, params: PaymentMethodRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<PaymentMethod>;
|
|
31
|
+
/**
|
|
32
|
+
* Returns a list of payment methods. NOTE: QuickBooks Desktop does not support
|
|
33
|
+
* pagination for payment methods; hence, there is no `cursor` parameter. Users
|
|
34
|
+
* typically have few payment methods.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const paymentMethods = await client.qbd.paymentMethods.list(
|
|
39
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
list(params: PaymentMethodListParams, options?: Core.RequestOptions): Core.APIPromise<PaymentMethodListResponse>;
|
|
44
|
+
}
|
|
45
|
+
export interface PaymentMethod {
|
|
46
|
+
/**
|
|
47
|
+
* The unique identifier assigned by QuickBooks to this payment method. This ID is
|
|
48
|
+
* unique across all payment methods but not across different QuickBooks object
|
|
49
|
+
* types.
|
|
50
|
+
*/
|
|
51
|
+
id: string;
|
|
52
|
+
/**
|
|
53
|
+
* The date and time when this payment method was created, in ISO 8601 format
|
|
54
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
|
|
55
|
+
* in QuickBooks.
|
|
56
|
+
*/
|
|
57
|
+
createdAt: string;
|
|
58
|
+
/**
|
|
59
|
+
* Indicates whether this payment method is active. Inactive objects are typically
|
|
60
|
+
* hidden from views and reports in QuickBooks. Defaults to `true`.
|
|
61
|
+
*/
|
|
62
|
+
isActive: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* The case-insensitive unique name of this payment method, unique across all
|
|
65
|
+
* payment methods.
|
|
66
|
+
*
|
|
67
|
+
* **NOTE**: Payment methods do not have a `fullName` field because they are not
|
|
68
|
+
* hierarchical objects, which is why `name` is unique for them but not for objects
|
|
69
|
+
* that have parents.
|
|
70
|
+
*/
|
|
71
|
+
name: string;
|
|
72
|
+
/**
|
|
73
|
+
* The type of object. This value is always `"qbd_payment_method"`.
|
|
74
|
+
*/
|
|
75
|
+
objectType: 'qbd_payment_method';
|
|
76
|
+
/**
|
|
77
|
+
* This payment method's type.
|
|
78
|
+
*/
|
|
79
|
+
paymentMethodType: 'american_express' | 'cash' | 'check' | 'debit_card' | 'discover' | 'e_check' | 'gift_card' | 'master_card' | 'other' | 'other_credit_card' | 'visa';
|
|
80
|
+
/**
|
|
81
|
+
* The current QuickBooks-assigned revision number of this payment method object,
|
|
82
|
+
* which changes each time the object is modified. When updating this object, you
|
|
83
|
+
* must provide the most recent `revisionNumber` to ensure you're working with the
|
|
84
|
+
* latest data; otherwise, the update will return an error.
|
|
85
|
+
*/
|
|
86
|
+
revisionNumber: string;
|
|
87
|
+
/**
|
|
88
|
+
* The date and time when this payment method was last updated, in ISO 8601 format
|
|
89
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
|
|
90
|
+
* in QuickBooks.
|
|
91
|
+
*/
|
|
92
|
+
updatedAt: string;
|
|
93
|
+
}
|
|
94
|
+
export interface PaymentMethodListResponse {
|
|
95
|
+
/**
|
|
96
|
+
* The array of payment methods.
|
|
97
|
+
*/
|
|
98
|
+
data: Array<PaymentMethod>;
|
|
99
|
+
/**
|
|
100
|
+
* The type of object. This value is always `"list"`.
|
|
101
|
+
*/
|
|
102
|
+
objectType: 'list';
|
|
103
|
+
/**
|
|
104
|
+
* The endpoint URL where this list can be accessed.
|
|
105
|
+
*/
|
|
106
|
+
url: string;
|
|
107
|
+
}
|
|
108
|
+
export interface PaymentMethodCreateParams {
|
|
109
|
+
/**
|
|
110
|
+
* Body param: The case-insensitive unique name of this payment method, unique
|
|
111
|
+
* across all payment methods.
|
|
112
|
+
*
|
|
113
|
+
* **NOTE**: Payment methods do not have a `fullName` field because they are not
|
|
114
|
+
* hierarchical objects, which is why `name` is unique for them but not for objects
|
|
115
|
+
* that have parents.
|
|
116
|
+
*
|
|
117
|
+
* Maximum length: 31 characters.
|
|
118
|
+
*/
|
|
119
|
+
name: string;
|
|
120
|
+
/**
|
|
121
|
+
* Body param: This payment method's type.
|
|
122
|
+
*/
|
|
123
|
+
paymentMethodType: 'american_express' | 'cash' | 'check' | 'debit_card' | 'discover' | 'e_check' | 'gift_card' | 'master_card' | 'other' | 'other_credit_card' | 'visa';
|
|
124
|
+
/**
|
|
125
|
+
* Header param: The ID of the EndUser to receive this request (e.g.,
|
|
126
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
127
|
+
*/
|
|
128
|
+
conductorEndUserId: string;
|
|
129
|
+
/**
|
|
130
|
+
* Body param: Indicates whether this payment method is active. Inactive objects
|
|
131
|
+
* are typically hidden from views and reports in QuickBooks. Defaults to `true`.
|
|
132
|
+
*/
|
|
133
|
+
isActive?: boolean;
|
|
134
|
+
}
|
|
135
|
+
export interface PaymentMethodRetrieveParams {
|
|
136
|
+
/**
|
|
137
|
+
* The ID of the EndUser to receive this request (e.g.,
|
|
138
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
139
|
+
*/
|
|
140
|
+
conductorEndUserId: string;
|
|
141
|
+
}
|
|
142
|
+
export interface PaymentMethodListParams {
|
|
143
|
+
/**
|
|
144
|
+
* Header param: The ID of the EndUser to receive this request (e.g.,
|
|
145
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
146
|
+
*/
|
|
147
|
+
conductorEndUserId: string;
|
|
148
|
+
/**
|
|
149
|
+
* Query param: Filter for specific payment methods by their QuickBooks-assigned
|
|
150
|
+
* unique identifier(s).
|
|
151
|
+
*
|
|
152
|
+
* **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
|
|
153
|
+
* query parameters for this request.
|
|
154
|
+
*
|
|
155
|
+
* **NOTE**: If any of the values you specify in this parameter are not found, the
|
|
156
|
+
* request will return an error.
|
|
157
|
+
*/
|
|
158
|
+
ids?: Array<string>;
|
|
159
|
+
/**
|
|
160
|
+
* Query param: The maximum number of objects to return.
|
|
161
|
+
*
|
|
162
|
+
* **IMPORTANT**: QuickBooks Desktop does not support cursor-based pagination for
|
|
163
|
+
* payment methods. This parameter will limit the response size, but you cannot
|
|
164
|
+
* fetch subsequent results using a cursor. For pagination, use the name-range
|
|
165
|
+
* parameters instead (e.g., `nameFrom=A&nameTo=B`).
|
|
166
|
+
*
|
|
167
|
+
* When this parameter is omitted, the endpoint returns all payment methods without
|
|
168
|
+
* limit, unlike paginated endpoints which default to 150 records. This is
|
|
169
|
+
* acceptable because payment methods typically have low record counts.
|
|
170
|
+
*/
|
|
171
|
+
limit?: number;
|
|
172
|
+
/**
|
|
173
|
+
* Query param: Filter for payment methods whose `name` contains this substring,
|
|
174
|
+
* case-insensitive. NOTE: If you use this parameter, you cannot also use
|
|
175
|
+
* `nameStartsWith` or `nameEndsWith`.
|
|
176
|
+
*/
|
|
177
|
+
nameContains?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Query param: Filter for payment methods whose `name` ends with this substring,
|
|
180
|
+
* case-insensitive. NOTE: If you use this parameter, you cannot also use
|
|
181
|
+
* `nameContains` or `nameStartsWith`.
|
|
182
|
+
*/
|
|
183
|
+
nameEndsWith?: string;
|
|
184
|
+
/**
|
|
185
|
+
* Query param: Filter for payment methods whose `name` is alphabetically greater
|
|
186
|
+
* than or equal to this value.
|
|
187
|
+
*/
|
|
188
|
+
nameFrom?: string;
|
|
189
|
+
/**
|
|
190
|
+
* Query param: Filter for specific payment methods by their name(s),
|
|
191
|
+
* case-insensitive. Like `id`, `name` is a unique identifier for a payment method.
|
|
192
|
+
*
|
|
193
|
+
* **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
|
|
194
|
+
* query parameters for this request.
|
|
195
|
+
*
|
|
196
|
+
* **NOTE**: If any of the values you specify in this parameter are not found, the
|
|
197
|
+
* request will return an error.
|
|
198
|
+
*/
|
|
199
|
+
names?: Array<string>;
|
|
200
|
+
/**
|
|
201
|
+
* Query param: Filter for payment methods whose `name` starts with this substring,
|
|
202
|
+
* case-insensitive. NOTE: If you use this parameter, you cannot also use
|
|
203
|
+
* `nameContains` or `nameEndsWith`.
|
|
204
|
+
*/
|
|
205
|
+
nameStartsWith?: string;
|
|
206
|
+
/**
|
|
207
|
+
* Query param: Filter for payment methods whose `name` is alphabetically less than
|
|
208
|
+
* or equal to this value.
|
|
209
|
+
*/
|
|
210
|
+
nameTo?: string;
|
|
211
|
+
/**
|
|
212
|
+
* Query param: Filter for payment methods of this type.
|
|
213
|
+
*/
|
|
214
|
+
paymentMethodType?: 'american_express' | 'cash' | 'check' | 'debit_card' | 'discover' | 'e_check' | 'gift_card' | 'master_card' | 'other' | 'other_credit_card' | 'visa';
|
|
215
|
+
/**
|
|
216
|
+
* Query param: Filter for payment methods that are active, inactive, or both.
|
|
217
|
+
*/
|
|
218
|
+
status?: 'active' | 'all' | 'inactive';
|
|
219
|
+
/**
|
|
220
|
+
* Query param: Filter for payment methods updated on or after this date and time,
|
|
221
|
+
* in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date
|
|
222
|
+
* (YYYY-MM-DD), the time is assumed to be 00:00:00 of that day.
|
|
223
|
+
*/
|
|
224
|
+
updatedAfter?: string;
|
|
225
|
+
/**
|
|
226
|
+
* Query param: Filter for payment methods updated on or before this date and time,
|
|
227
|
+
* in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date
|
|
228
|
+
* (YYYY-MM-DD), the time is assumed to be 23:59:59 of that day.
|
|
229
|
+
*/
|
|
230
|
+
updatedBefore?: string;
|
|
231
|
+
}
|
|
232
|
+
export declare namespace PaymentMethods {
|
|
233
|
+
export { type PaymentMethod as PaymentMethod, type PaymentMethodListResponse as PaymentMethodListResponse, type PaymentMethodCreateParams as PaymentMethodCreateParams, type PaymentMethodRetrieveParams as PaymentMethodRetrieveParams, type PaymentMethodListParams as PaymentMethodListParams, };
|
|
234
|
+
}
|
|
235
|
+
//# sourceMappingURL=payment-methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-methods.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/payment-methods.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;IASxG;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,2BAA2B,EACnC,OAAO,CA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|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PaymentMethods = void 0;
|
|
5
|
+
const resource_1 = require("../../resource.js");
|
|
6
|
+
class PaymentMethods extends resource_1.APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new payment method.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const paymentMethod =
|
|
13
|
+
* await client.qbd.paymentMethods.create({
|
|
14
|
+
* name: 'Cash',
|
|
15
|
+
* paymentMethodType: 'cash',
|
|
16
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
create(params, options) {
|
|
21
|
+
const { conductorEndUserId, ...body } = params;
|
|
22
|
+
return this._client.post('/quickbooks-desktop/payment-methods', {
|
|
23
|
+
body,
|
|
24
|
+
...options,
|
|
25
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Retrieves a payment method by ID.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const paymentMethod =
|
|
34
|
+
* await client.qbd.paymentMethods.retrieve(
|
|
35
|
+
* '80000001-1234567890',
|
|
36
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
retrieve(id, params, options) {
|
|
41
|
+
const { conductorEndUserId } = params;
|
|
42
|
+
return this._client.get(`/quickbooks-desktop/payment-methods/${id}`, {
|
|
43
|
+
...options,
|
|
44
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Returns a list of payment methods. NOTE: QuickBooks Desktop does not support
|
|
49
|
+
* pagination for payment methods; hence, there is no `cursor` parameter. Users
|
|
50
|
+
* typically have few payment methods.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const paymentMethods = await client.qbd.paymentMethods.list(
|
|
55
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
56
|
+
* );
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
list(params, options) {
|
|
60
|
+
const { conductorEndUserId, ...query } = params;
|
|
61
|
+
return this._client.get('/quickbooks-desktop/payment-methods', {
|
|
62
|
+
query,
|
|
63
|
+
...options,
|
|
64
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
exports.PaymentMethods = PaymentMethods;
|
|
69
|
+
//# sourceMappingURL=payment-methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-methods.js","sourceRoot":"","sources":["../../src/resources/qbd/payment-methods.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAiC,EAAE,OAA6B;QACrE,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE;YAC9D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAU,EACV,MAAmC,EACnC,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,EAAE,EAAE,EAAE;YACnE,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,MAA+B,EAC/B,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE;YAC7D,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;CACF;AAtED,wCAsEC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../resource.mjs";
|
|
3
|
+
export class PaymentMethods extends APIResource {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new payment method.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const paymentMethod =
|
|
10
|
+
* await client.qbd.paymentMethods.create({
|
|
11
|
+
* name: 'Cash',
|
|
12
|
+
* paymentMethodType: 'cash',
|
|
13
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(params, options) {
|
|
18
|
+
const { conductorEndUserId, ...body } = params;
|
|
19
|
+
return this._client.post('/quickbooks-desktop/payment-methods', {
|
|
20
|
+
body,
|
|
21
|
+
...options,
|
|
22
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves a payment method by ID.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const paymentMethod =
|
|
31
|
+
* await client.qbd.paymentMethods.retrieve(
|
|
32
|
+
* '80000001-1234567890',
|
|
33
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
retrieve(id, params, options) {
|
|
38
|
+
const { conductorEndUserId } = params;
|
|
39
|
+
return this._client.get(`/quickbooks-desktop/payment-methods/${id}`, {
|
|
40
|
+
...options,
|
|
41
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Returns a list of payment methods. NOTE: QuickBooks Desktop does not support
|
|
46
|
+
* pagination for payment methods; hence, there is no `cursor` parameter. Users
|
|
47
|
+
* typically have few payment methods.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const paymentMethods = await client.qbd.paymentMethods.list(
|
|
52
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
53
|
+
* );
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
list(params, options) {
|
|
57
|
+
const { conductorEndUserId, ...query } = params;
|
|
58
|
+
return this._client.get('/quickbooks-desktop/payment-methods', {
|
|
59
|
+
query,
|
|
60
|
+
...options,
|
|
61
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=payment-methods.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-methods.mjs","sourceRoot":"","sources":["../../src/resources/qbd/payment-methods.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,MAAiC,EAAE,OAA6B;QACrE,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE;YAC9D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAU,EACV,MAAmC,EACnC,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,EAAE,EAAE,EAAE;YACnE,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,MAA+B,EAC/B,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE;YAC7D,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/resources/qbd/qbd.d.ts
CHANGED
|
@@ -52,6 +52,10 @@ import * as JournalEntriesAPI from "./journal-entries.js";
|
|
|
52
52
|
import { JournalEntries, JournalEntriesCursorPage, JournalEntry, JournalEntryCreateParams, JournalEntryDeleteParams, JournalEntryDeleteResponse, JournalEntryListParams, JournalEntryRetrieveParams, JournalEntryUpdateParams } from "./journal-entries.js";
|
|
53
53
|
import * as NonInventoryItemsAPI from "./non-inventory-items.js";
|
|
54
54
|
import { NonInventoryItem, NonInventoryItemCreateParams, NonInventoryItemListParams, NonInventoryItemRetrieveParams, NonInventoryItemUpdateParams, NonInventoryItems, NonInventoryItemsCursorPage } from "./non-inventory-items.js";
|
|
55
|
+
import * as OtherNamesAPI from "./other-names.js";
|
|
56
|
+
import { OtherName, OtherNameCreateParams, OtherNameListParams, OtherNameListResponse, OtherNameRetrieveParams, OtherNameUpdateParams, OtherNames } from "./other-names.js";
|
|
57
|
+
import * as PaymentMethodsAPI from "./payment-methods.js";
|
|
58
|
+
import { PaymentMethod, PaymentMethodCreateParams, PaymentMethodListParams, PaymentMethodListResponse, PaymentMethodRetrieveParams, PaymentMethods } from "./payment-methods.js";
|
|
55
59
|
import * as PayrollWageItemsAPI from "./payroll-wage-items.js";
|
|
56
60
|
import { PayrollWageItem, PayrollWageItemCreateParams, PayrollWageItemListParams, PayrollWageItemRetrieveParams, PayrollWageItems, PayrollWageItemsCursorPage } from "./payroll-wage-items.js";
|
|
57
61
|
import * as PreferencesAPI from "./preferences.js";
|
|
@@ -115,6 +119,8 @@ export declare class Qbd extends APIResource {
|
|
|
115
119
|
itemSites: ItemSitesAPI.ItemSites;
|
|
116
120
|
journalEntries: JournalEntriesAPI.JournalEntries;
|
|
117
121
|
nonInventoryItems: NonInventoryItemsAPI.NonInventoryItems;
|
|
122
|
+
otherNames: OtherNamesAPI.OtherNames;
|
|
123
|
+
paymentMethods: PaymentMethodsAPI.PaymentMethods;
|
|
118
124
|
payrollWageItems: PayrollWageItemsAPI.PayrollWageItems;
|
|
119
125
|
preferences: PreferencesAPI.Preferences;
|
|
120
126
|
priceLevels: PriceLevelsAPI.PriceLevels;
|
|
@@ -195,6 +201,8 @@ export declare namespace Qbd {
|
|
|
195
201
|
export { ItemSites as ItemSites, type ItemSite as ItemSite, ItemSitesCursorPage as ItemSitesCursorPage, type ItemSiteRetrieveParams as ItemSiteRetrieveParams, type ItemSiteListParams as ItemSiteListParams, };
|
|
196
202
|
export { JournalEntries as JournalEntries, type JournalEntry as JournalEntry, type JournalEntryDeleteResponse as JournalEntryDeleteResponse, JournalEntriesCursorPage as JournalEntriesCursorPage, type JournalEntryCreateParams as JournalEntryCreateParams, type JournalEntryRetrieveParams as JournalEntryRetrieveParams, type JournalEntryUpdateParams as JournalEntryUpdateParams, type JournalEntryListParams as JournalEntryListParams, type JournalEntryDeleteParams as JournalEntryDeleteParams, };
|
|
197
203
|
export { NonInventoryItems as NonInventoryItems, type NonInventoryItem as NonInventoryItem, NonInventoryItemsCursorPage as NonInventoryItemsCursorPage, type NonInventoryItemCreateParams as NonInventoryItemCreateParams, type NonInventoryItemRetrieveParams as NonInventoryItemRetrieveParams, type NonInventoryItemUpdateParams as NonInventoryItemUpdateParams, type NonInventoryItemListParams as NonInventoryItemListParams, };
|
|
204
|
+
export { OtherNames as OtherNames, type OtherName as OtherName, type OtherNameListResponse as OtherNameListResponse, type OtherNameCreateParams as OtherNameCreateParams, type OtherNameRetrieveParams as OtherNameRetrieveParams, type OtherNameUpdateParams as OtherNameUpdateParams, type OtherNameListParams as OtherNameListParams, };
|
|
205
|
+
export { PaymentMethods as PaymentMethods, type PaymentMethod as PaymentMethod, type PaymentMethodListResponse as PaymentMethodListResponse, type PaymentMethodCreateParams as PaymentMethodCreateParams, type PaymentMethodRetrieveParams as PaymentMethodRetrieveParams, type PaymentMethodListParams as PaymentMethodListParams, };
|
|
198
206
|
export { PayrollWageItems as PayrollWageItems, type PayrollWageItem as PayrollWageItem, PayrollWageItemsCursorPage as PayrollWageItemsCursorPage, type PayrollWageItemCreateParams as PayrollWageItemCreateParams, type PayrollWageItemRetrieveParams as PayrollWageItemRetrieveParams, type PayrollWageItemListParams as PayrollWageItemListParams, };
|
|
199
207
|
export { type Preferences as Preferences, type PreferenceRetrieveParams as PreferenceRetrieveParams };
|
|
200
208
|
export { PriceLevels as PriceLevels, type PriceLevel as PriceLevel, type PriceLevelListResponse as PriceLevelListResponse, type PriceLevelCreateParams as PriceLevelCreateParams, type PriceLevelRetrieveParams as PriceLevelRetrieveParams, type PriceLevelUpdateParams as PriceLevelUpdateParams, type PriceLevelListParams as PriceLevelListParams, };
|