@unified-api/typescript-sdk 1.0.0 → 1.0.2
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 +54 -700
- package/dist/sdk/accounting.d.ts +0 -40
- package/dist/sdk/accounting.js +44 -696
- package/dist/sdk/link.d.ts +31 -0
- package/dist/sdk/link.js +503 -0
- package/dist/sdk/models/operations/{createaccountingpayment.d.ts → createpaymentlink.d.ts} +7 -7
- package/dist/sdk/models/operations/createpaymentlink.js +95 -0
- package/dist/sdk/models/operations/createpaymentpayment.d.ts +28 -0
- package/dist/sdk/models/operations/{createaccountingpayment.js → createpaymentpayment.js} +20 -20
- package/dist/sdk/models/operations/getpaymentlink.d.ts +35 -0
- package/dist/sdk/models/operations/getpaymentlink.js +99 -0
- package/dist/sdk/models/operations/{getaccountingpayment.d.ts → getpaymentpayment.d.ts} +6 -6
- package/dist/sdk/models/operations/{getaccountingpayment.js → getpaymentpayment.js} +20 -20
- package/dist/sdk/models/operations/{getaccountingpayout.d.ts → getpaymentpayout.d.ts} +6 -6
- package/dist/sdk/models/operations/{getaccountingpayout.js → getpaymentpayout.js} +20 -20
- package/dist/sdk/models/operations/{getaccountingrefund.d.ts → getpaymentrefund.d.ts} +6 -6
- package/dist/sdk/models/operations/{getaccountingrefund.js → getpaymentrefund.js} +20 -20
- package/dist/sdk/models/operations/getunifiedintegrationauth.d.ts +6 -4
- package/dist/sdk/models/operations/getunifiedintegrationauth.js +6 -4
- package/dist/sdk/models/operations/index.d.ts +16 -10
- package/dist/sdk/models/operations/index.js +16 -10
- package/dist/sdk/models/operations/listpaymentlinks.d.ts +51 -0
- package/dist/sdk/models/operations/listpaymentlinks.js +127 -0
- package/dist/sdk/models/operations/{listaccountingpayments.d.ts → listpaymentpayments.d.ts} +6 -6
- package/dist/sdk/models/operations/{listaccountingpayments.js → listpaymentpayments.js} +28 -28
- package/dist/sdk/models/operations/{listaccountingpayouts.d.ts → listpaymentpayouts.d.ts} +6 -6
- package/dist/sdk/models/operations/{listaccountingpayouts.js → listpaymentpayouts.js} +26 -26
- package/dist/sdk/models/operations/{listaccountingrefunds.d.ts → listpaymentrefunds.d.ts} +6 -6
- package/dist/sdk/models/operations/{listaccountingrefunds.js → listpaymentrefunds.js} +27 -27
- package/dist/sdk/models/operations/listunifiedconnections.d.ts +2 -1
- package/dist/sdk/models/operations/listunifiedconnections.js +1 -0
- package/dist/sdk/models/operations/listunifiedintegrations.d.ts +2 -1
- package/dist/sdk/models/operations/listunifiedintegrations.js +1 -0
- package/dist/sdk/models/operations/listunifiedintegrationworkspaces.d.ts +2 -1
- package/dist/sdk/models/operations/listunifiedintegrationworkspaces.js +1 -0
- package/dist/sdk/models/operations/patchpaymentlink.d.ts +32 -0
- package/dist/sdk/models/operations/patchpaymentlink.js +99 -0
- package/dist/sdk/models/operations/{patchaccountingpayment.d.ts → patchpaymentpayment.d.ts} +7 -7
- package/dist/sdk/models/operations/{patchaccountingpayment.js → patchpaymentpayment.js} +21 -21
- package/dist/sdk/models/operations/removepaymentlink.d.ts +30 -0
- package/dist/sdk/models/operations/{removeaccountingpayment.js → removepaymentlink.js} +17 -17
- package/dist/sdk/models/operations/{removeaccountingpayment.d.ts → removepaymentpayment.d.ts} +2 -2
- package/dist/sdk/models/operations/removepaymentpayment.js +71 -0
- package/dist/sdk/models/operations/updatepaymentlink.d.ts +32 -0
- package/dist/sdk/models/operations/updatepaymentlink.js +99 -0
- package/dist/sdk/models/operations/{updateaccountingpayment.d.ts → updatepaymentpayment.d.ts} +7 -7
- package/dist/sdk/models/operations/{updateaccountingpayment.js → updatepaymentpayment.js} +21 -21
- package/dist/sdk/models/shared/accountinginvoice.d.ts +1 -0
- package/dist/sdk/models/shared/accountinginvoice.js +5 -0
- package/dist/sdk/models/shared/index.d.ts +5 -3
- package/dist/sdk/models/shared/index.js +5 -3
- package/dist/sdk/models/shared/paymenntlinklineitem.d.ts +20 -0
- package/dist/sdk/models/shared/paymenntlinklineitem.js +137 -0
- package/dist/sdk/models/shared/paymentlink.d.ts +15 -0
- package/dist/sdk/models/shared/paymentlink.js +105 -0
- package/dist/sdk/models/shared/{accountingpayment.d.ts → paymentpayment.d.ts} +1 -1
- package/dist/sdk/models/shared/{accountingpayment.js → paymentpayment.js} +18 -18
- package/dist/sdk/models/shared/{accountingpayout.d.ts → paymentpayout.d.ts} +3 -3
- package/dist/sdk/models/shared/{accountingpayout.js → paymentpayout.js} +21 -21
- package/dist/sdk/models/shared/{accountingrefund.d.ts → paymentrefund.d.ts} +3 -3
- package/dist/sdk/models/shared/{accountingrefund.js → paymentrefund.js} +23 -23
- package/dist/sdk/models/shared/propertyconnectioncategories.d.ts +2 -1
- package/dist/sdk/models/shared/propertyconnectioncategories.js +1 -0
- package/dist/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -4
- package/dist/sdk/models/shared/propertyconnectionpermissions.js +6 -4
- package/dist/sdk/models/shared/propertyintegrationcategories.d.ts +2 -1
- package/dist/sdk/models/shared/propertyintegrationcategories.js +1 -0
- package/dist/sdk/models/shared/webhook.d.ts +4 -3
- package/dist/sdk/models/shared/webhook.js +4 -3
- package/dist/sdk/payment.d.ts +46 -6
- package/dist/sdk/payment.js +705 -53
- package/dist/sdk/payout.d.ts +2 -2
- package/dist/sdk/payout.js +11 -11
- package/dist/sdk/refund.d.ts +2 -2
- package/dist/sdk/refund.js +11 -11
- package/dist/sdk/sdk.d.ts +5 -3
- package/dist/sdk/sdk.js +7 -5
- package/docs/sdk/models/operations/categories.md +2 -1
- package/docs/sdk/models/operations/createpaymentlinkrequest.md +9 -0
- package/docs/sdk/models/operations/createpaymentlinkresponse.md +11 -0
- package/docs/sdk/models/operations/createpaymentpaymentrequest.md +9 -0
- package/docs/sdk/models/operations/createpaymentpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/getpaymentlinkrequest.md +10 -0
- package/docs/sdk/models/operations/getpaymentlinkresponse.md +11 -0
- package/docs/sdk/models/operations/{getaccountingpaymentrequest.md → getpaymentpaymentrequest.md} +1 -1
- package/docs/sdk/models/operations/getpaymentpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/{getaccountingpayoutrequest.md → getpaymentpayoutrequest.md} +1 -1
- package/docs/sdk/models/operations/getpaymentpayoutresponse.md +11 -0
- package/docs/sdk/models/operations/{getaccountingrefundrequest.md → getpaymentrefundrequest.md} +1 -1
- package/docs/sdk/models/operations/getpaymentrefundresponse.md +11 -0
- package/docs/sdk/models/operations/listpaymentlinksrequest.md +17 -0
- package/docs/sdk/models/operations/listpaymentlinksresponse.md +11 -0
- package/docs/sdk/models/operations/{listaccountingpaymentsrequest.md → listpaymentpaymentsrequest.md} +1 -1
- package/docs/sdk/models/operations/listpaymentpaymentsresponse.md +11 -0
- package/docs/sdk/models/operations/{listaccountingpayoutsrequest.md → listpaymentpayoutsrequest.md} +1 -1
- package/docs/sdk/models/operations/listpaymentpayoutsresponse.md +11 -0
- package/docs/sdk/models/operations/{listaccountingrefundsrequest.md → listpaymentrefundsrequest.md} +1 -1
- package/docs/sdk/models/operations/listpaymentrefundsresponse.md +11 -0
- package/docs/sdk/models/operations/listunifiedintegrationsqueryparamcategories.md +2 -1
- package/docs/sdk/models/operations/patchpaymentlinkrequest.md +10 -0
- package/docs/sdk/models/operations/patchpaymentlinkresponse.md +11 -0
- package/docs/sdk/models/operations/patchpaymentpaymentrequest.md +10 -0
- package/docs/sdk/models/operations/patchpaymentpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/queryparamcategories.md +2 -1
- package/docs/sdk/models/operations/{removeaccountingpaymentrequest.md → removepaymentlinkrequest.md} +2 -2
- package/docs/sdk/models/operations/{removeaccountingpaymentresponse.md → removepaymentlinkresponse.md} +1 -1
- package/docs/sdk/models/operations/removepaymentpaymentrequest.md +9 -0
- package/docs/sdk/models/operations/removepaymentpaymentresponse.md +11 -0
- package/docs/sdk/models/operations/scopes.md +6 -4
- package/docs/sdk/models/operations/updatepaymentlinkrequest.md +10 -0
- package/docs/sdk/models/operations/updatepaymentlinkresponse.md +11 -0
- package/docs/sdk/models/operations/updatepaymentpaymentrequest.md +10 -0
- package/docs/sdk/models/operations/updatepaymentpaymentresponse.md +11 -0
- package/docs/sdk/models/shared/accountinginvoice.md +2 -1
- package/docs/sdk/models/shared/objecttype.md +4 -3
- package/docs/sdk/models/shared/paymenntlinklineitem.md +24 -0
- package/docs/sdk/models/shared/paymentlink.md +18 -0
- package/docs/sdk/models/shared/{accountingpayment.md → paymentpayment.md} +1 -1
- package/docs/sdk/models/shared/paymentpayout.md +15 -0
- package/docs/sdk/models/shared/{accountingpayoutstatus.md → paymentpayoutstatus.md} +1 -1
- package/docs/sdk/models/shared/paymentrefund.md +17 -0
- package/docs/sdk/models/shared/{accountingrefundstatus.md → paymentrefundstatus.md} +1 -1
- package/docs/sdk/models/shared/propertyconnectioncategories.md +2 -1
- package/docs/sdk/models/shared/propertyconnectionpermissions.md +6 -4
- package/docs/sdk/models/shared/propertyintegrationcategories.md +2 -1
- package/package.json +1 -1
- package/docs/sdk/models/operations/createaccountingpaymentrequest.md +0 -9
- package/docs/sdk/models/operations/createaccountingpaymentresponse.md +0 -11
- package/docs/sdk/models/operations/getaccountingpaymentresponse.md +0 -11
- package/docs/sdk/models/operations/getaccountingpayoutresponse.md +0 -11
- package/docs/sdk/models/operations/getaccountingrefundresponse.md +0 -11
- package/docs/sdk/models/operations/listaccountingpaymentsresponse.md +0 -11
- package/docs/sdk/models/operations/listaccountingpayoutsresponse.md +0 -11
- package/docs/sdk/models/operations/listaccountingrefundsresponse.md +0 -11
- package/docs/sdk/models/operations/patchaccountingpaymentrequest.md +0 -10
- package/docs/sdk/models/operations/patchaccountingpaymentresponse.md +0 -11
- package/docs/sdk/models/operations/updateaccountingpaymentrequest.md +0 -10
- package/docs/sdk/models/operations/updateaccountingpaymentresponse.md +0 -11
- package/docs/sdk/models/shared/accountingpayout.md +0 -15
- package/docs/sdk/models/shared/accountingrefund.md +0 -17
- package/docs/sdks/account/README.md +0 -312
- package/docs/sdks/accounting/README.md +0 -2198
- package/docs/sdks/activity/README.md +0 -321
- package/docs/sdks/apicall/README.md +0 -95
- package/docs/sdks/application/README.md +0 -333
- package/docs/sdks/applicationstatus/README.md +0 -54
- package/docs/sdks/ats/README.md +0 -2488
- package/docs/sdks/auth/README.md +0 -103
- package/docs/sdks/call/README.md +0 -54
- package/docs/sdks/candidate/README.md +0 -369
- package/docs/sdks/collection/README.md +0 -348
- package/docs/sdks/commerce/README.md +0 -1371
- package/docs/sdks/company/README.md +0 -517
- package/docs/sdks/connection/README.md +0 -359
- package/docs/sdks/contact/README.md +0 -1028
- package/docs/sdks/crm/README.md +0 -2048
- package/docs/sdks/customer/README.md +0 -348
- package/docs/sdks/deal/README.md +0 -315
- package/docs/sdks/document/README.md +0 -309
- package/docs/sdks/employee/README.md +0 -363
- package/docs/sdks/enrich/README.md +0 -97
- package/docs/sdks/event/README.md +0 -390
- package/docs/sdks/file/README.md +0 -330
- package/docs/sdks/group/README.md +0 -327
- package/docs/sdks/hris/README.md +0 -685
- package/docs/sdks/integration/README.md +0 -155
- package/docs/sdks/interview/README.md +0 -318
- package/docs/sdks/inventory/README.md +0 -309
- package/docs/sdks/invoice/README.md +0 -324
- package/docs/sdks/issue/README.md +0 -49
- package/docs/sdks/item/README.md +0 -417
- package/docs/sdks/job/README.md +0 -396
- package/docs/sdks/lead/README.md +0 -336
- package/docs/sdks/list/README.md +0 -306
- package/docs/sdks/location/README.md +0 -312
- package/docs/sdks/login/README.md +0 -52
- package/docs/sdks/martech/README.md +0 -643
- package/docs/sdks/member/README.md +0 -342
- package/docs/sdks/note/README.md +0 -306
- package/docs/sdks/organization/README.md +0 -104
- package/docs/sdks/passthrough/README.md +0 -249
- package/docs/sdks/payment/README.md +0 -306
- package/docs/sdks/payout/README.md +0 -104
- package/docs/sdks/person/README.md +0 -51
- package/docs/sdks/pipeline/README.md +0 -306
- package/docs/sdks/refund/README.md +0 -104
- package/docs/sdks/scorecard/README.md +0 -324
- package/docs/sdks/storage/README.md +0 -330
- package/docs/sdks/taxrate/README.md +0 -312
- package/docs/sdks/ticket/README.md +0 -318
- package/docs/sdks/ticketing/README.md +0 -962
- package/docs/sdks/transaction/README.md +0 -327
- package/docs/sdks/uc/README.md +0 -388
- package/docs/sdks/unified/README.md +0 -929
- package/docs/sdks/unifiedto/README.md +0 -9
- package/docs/sdks/webhook/README.md +0 -291
|
@@ -1,327 +0,0 @@
|
|
|
1
|
-
# Transaction
|
|
2
|
-
(*transaction*)
|
|
3
|
-
|
|
4
|
-
### Available Operations
|
|
5
|
-
|
|
6
|
-
* [createAccountingTransaction](#createaccountingtransaction) - Create a transaction
|
|
7
|
-
* [getAccountingTransaction](#getaccountingtransaction) - Retrieve a transaction
|
|
8
|
-
* [listAccountingTransactions](#listaccountingtransactions) - List all transactions
|
|
9
|
-
* [patchAccountingTransaction](#patchaccountingtransaction) - Update a transaction
|
|
10
|
-
* [removeAccountingTransaction](#removeaccountingtransaction) - Remove a transaction
|
|
11
|
-
* [updateAccountingTransaction](#updateaccountingtransaction) - Update a transaction
|
|
12
|
-
|
|
13
|
-
## createAccountingTransaction
|
|
14
|
-
|
|
15
|
-
Create a transaction
|
|
16
|
-
|
|
17
|
-
### Example Usage
|
|
18
|
-
|
|
19
|
-
```typescript
|
|
20
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
21
|
-
|
|
22
|
-
async function run() {
|
|
23
|
-
const sdk = new UnifiedTo({
|
|
24
|
-
security: {
|
|
25
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
26
|
-
},
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
const res = await sdk.transaction.createAccountingTransaction({
|
|
30
|
-
accountingTransaction: {
|
|
31
|
-
id: "<id>",
|
|
32
|
-
lineitems: [
|
|
33
|
-
{
|
|
34
|
-
accountId: "<value>",
|
|
35
|
-
totalAmount: 4969.62,
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
raw: {
|
|
39
|
-
"key": "<value>",
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
connectionId: "<value>",
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
if (res.statusCode == 200) {
|
|
46
|
-
// handle response
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
run();
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
### Parameters
|
|
54
|
-
|
|
55
|
-
| Parameter | Type | Required | Description |
|
|
56
|
-
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
|
57
|
-
| `request` | [operations.CreateAccountingTransactionRequest](../../sdk/models/operations/createaccountingtransactionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
58
|
-
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
### Response
|
|
62
|
-
|
|
63
|
-
**Promise<[operations.CreateAccountingTransactionResponse](../../sdk/models/operations/createaccountingtransactionresponse.md)>**
|
|
64
|
-
### Errors
|
|
65
|
-
|
|
66
|
-
| Error Object | Status Code | Content Type |
|
|
67
|
-
| --------------- | --------------- | --------------- |
|
|
68
|
-
| errors.SDKError | 4xx-5xx | */* |
|
|
69
|
-
|
|
70
|
-
## getAccountingTransaction
|
|
71
|
-
|
|
72
|
-
Retrieve a transaction
|
|
73
|
-
|
|
74
|
-
### Example Usage
|
|
75
|
-
|
|
76
|
-
```typescript
|
|
77
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
78
|
-
|
|
79
|
-
async function run() {
|
|
80
|
-
const sdk = new UnifiedTo({
|
|
81
|
-
security: {
|
|
82
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
83
|
-
},
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
const res = await sdk.transaction.getAccountingTransaction({
|
|
87
|
-
connectionId: "<value>",
|
|
88
|
-
fields: [
|
|
89
|
-
"<value>",
|
|
90
|
-
],
|
|
91
|
-
id: "<id>",
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
if (res.statusCode == 200) {
|
|
95
|
-
// handle response
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
run();
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
### Parameters
|
|
103
|
-
|
|
104
|
-
| Parameter | Type | Required | Description |
|
|
105
|
-
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
|
|
106
|
-
| `request` | [operations.GetAccountingTransactionRequest](../../sdk/models/operations/getaccountingtransactionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
107
|
-
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
### Response
|
|
111
|
-
|
|
112
|
-
**Promise<[operations.GetAccountingTransactionResponse](../../sdk/models/operations/getaccountingtransactionresponse.md)>**
|
|
113
|
-
### Errors
|
|
114
|
-
|
|
115
|
-
| Error Object | Status Code | Content Type |
|
|
116
|
-
| --------------- | --------------- | --------------- |
|
|
117
|
-
| errors.SDKError | 4xx-5xx | */* |
|
|
118
|
-
|
|
119
|
-
## listAccountingTransactions
|
|
120
|
-
|
|
121
|
-
List all transactions
|
|
122
|
-
|
|
123
|
-
### Example Usage
|
|
124
|
-
|
|
125
|
-
```typescript
|
|
126
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
127
|
-
|
|
128
|
-
async function run() {
|
|
129
|
-
const sdk = new UnifiedTo({
|
|
130
|
-
security: {
|
|
131
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
132
|
-
},
|
|
133
|
-
});
|
|
134
|
-
|
|
135
|
-
const res = await sdk.transaction.listAccountingTransactions({
|
|
136
|
-
connectionId: "<value>",
|
|
137
|
-
fields: [
|
|
138
|
-
"<value>",
|
|
139
|
-
],
|
|
140
|
-
});
|
|
141
|
-
|
|
142
|
-
if (res.statusCode == 200) {
|
|
143
|
-
// handle response
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
run();
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
### Parameters
|
|
151
|
-
|
|
152
|
-
| Parameter | Type | Required | Description |
|
|
153
|
-
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
154
|
-
| `request` | [operations.ListAccountingTransactionsRequest](../../sdk/models/operations/listaccountingtransactionsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
155
|
-
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
### Response
|
|
159
|
-
|
|
160
|
-
**Promise<[operations.ListAccountingTransactionsResponse](../../sdk/models/operations/listaccountingtransactionsresponse.md)>**
|
|
161
|
-
### Errors
|
|
162
|
-
|
|
163
|
-
| Error Object | Status Code | Content Type |
|
|
164
|
-
| --------------- | --------------- | --------------- |
|
|
165
|
-
| errors.SDKError | 4xx-5xx | */* |
|
|
166
|
-
|
|
167
|
-
## patchAccountingTransaction
|
|
168
|
-
|
|
169
|
-
Update a transaction
|
|
170
|
-
|
|
171
|
-
### Example Usage
|
|
172
|
-
|
|
173
|
-
```typescript
|
|
174
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
175
|
-
|
|
176
|
-
async function run() {
|
|
177
|
-
const sdk = new UnifiedTo({
|
|
178
|
-
security: {
|
|
179
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
180
|
-
},
|
|
181
|
-
});
|
|
182
|
-
|
|
183
|
-
const res = await sdk.transaction.patchAccountingTransaction({
|
|
184
|
-
accountingTransaction: {
|
|
185
|
-
id: "<id>",
|
|
186
|
-
lineitems: [
|
|
187
|
-
{
|
|
188
|
-
accountId: "<value>",
|
|
189
|
-
totalAmount: 5633.69,
|
|
190
|
-
},
|
|
191
|
-
],
|
|
192
|
-
raw: {
|
|
193
|
-
"key": "<value>",
|
|
194
|
-
},
|
|
195
|
-
},
|
|
196
|
-
connectionId: "<value>",
|
|
197
|
-
id: "<id>",
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
if (res.statusCode == 200) {
|
|
201
|
-
// handle response
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
run();
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
### Parameters
|
|
209
|
-
|
|
210
|
-
| Parameter | Type | Required | Description |
|
|
211
|
-
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
212
|
-
| `request` | [operations.PatchAccountingTransactionRequest](../../sdk/models/operations/patchaccountingtransactionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
213
|
-
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
### Response
|
|
217
|
-
|
|
218
|
-
**Promise<[operations.PatchAccountingTransactionResponse](../../sdk/models/operations/patchaccountingtransactionresponse.md)>**
|
|
219
|
-
### Errors
|
|
220
|
-
|
|
221
|
-
| Error Object | Status Code | Content Type |
|
|
222
|
-
| --------------- | --------------- | --------------- |
|
|
223
|
-
| errors.SDKError | 4xx-5xx | */* |
|
|
224
|
-
|
|
225
|
-
## removeAccountingTransaction
|
|
226
|
-
|
|
227
|
-
Remove a transaction
|
|
228
|
-
|
|
229
|
-
### Example Usage
|
|
230
|
-
|
|
231
|
-
```typescript
|
|
232
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
233
|
-
|
|
234
|
-
async function run() {
|
|
235
|
-
const sdk = new UnifiedTo({
|
|
236
|
-
security: {
|
|
237
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
238
|
-
},
|
|
239
|
-
});
|
|
240
|
-
|
|
241
|
-
const res = await sdk.transaction.removeAccountingTransaction({
|
|
242
|
-
connectionId: "<value>",
|
|
243
|
-
id: "<id>",
|
|
244
|
-
});
|
|
245
|
-
|
|
246
|
-
if (res.statusCode == 200) {
|
|
247
|
-
// handle response
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
run();
|
|
252
|
-
```
|
|
253
|
-
|
|
254
|
-
### Parameters
|
|
255
|
-
|
|
256
|
-
| Parameter | Type | Required | Description |
|
|
257
|
-
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
|
258
|
-
| `request` | [operations.RemoveAccountingTransactionRequest](../../sdk/models/operations/removeaccountingtransactionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
259
|
-
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
### Response
|
|
263
|
-
|
|
264
|
-
**Promise<[operations.RemoveAccountingTransactionResponse](../../sdk/models/operations/removeaccountingtransactionresponse.md)>**
|
|
265
|
-
### Errors
|
|
266
|
-
|
|
267
|
-
| Error Object | Status Code | Content Type |
|
|
268
|
-
| --------------- | --------------- | --------------- |
|
|
269
|
-
| errors.SDKError | 4xx-5xx | */* |
|
|
270
|
-
|
|
271
|
-
## updateAccountingTransaction
|
|
272
|
-
|
|
273
|
-
Update a transaction
|
|
274
|
-
|
|
275
|
-
### Example Usage
|
|
276
|
-
|
|
277
|
-
```typescript
|
|
278
|
-
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
279
|
-
|
|
280
|
-
async function run() {
|
|
281
|
-
const sdk = new UnifiedTo({
|
|
282
|
-
security: {
|
|
283
|
-
jwt: "<YOUR_API_KEY_HERE>",
|
|
284
|
-
},
|
|
285
|
-
});
|
|
286
|
-
|
|
287
|
-
const res = await sdk.transaction.updateAccountingTransaction({
|
|
288
|
-
accountingTransaction: {
|
|
289
|
-
id: "<id>",
|
|
290
|
-
lineitems: [
|
|
291
|
-
{
|
|
292
|
-
accountId: "<value>",
|
|
293
|
-
totalAmount: 6498.37,
|
|
294
|
-
},
|
|
295
|
-
],
|
|
296
|
-
raw: {
|
|
297
|
-
"key": "<value>",
|
|
298
|
-
},
|
|
299
|
-
},
|
|
300
|
-
connectionId: "<value>",
|
|
301
|
-
id: "<id>",
|
|
302
|
-
});
|
|
303
|
-
|
|
304
|
-
if (res.statusCode == 200) {
|
|
305
|
-
// handle response
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
run();
|
|
310
|
-
```
|
|
311
|
-
|
|
312
|
-
### Parameters
|
|
313
|
-
|
|
314
|
-
| Parameter | Type | Required | Description |
|
|
315
|
-
| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
|
|
316
|
-
| `request` | [operations.UpdateAccountingTransactionRequest](../../sdk/models/operations/updateaccountingtransactionrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
317
|
-
| `config` | [AxiosRequestConfig](https://axios-http.com/docs/req_config) | :heavy_minus_sign: | Available config options for making requests. |
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
### Response
|
|
321
|
-
|
|
322
|
-
**Promise<[operations.UpdateAccountingTransactionResponse](../../sdk/models/operations/updateaccountingtransactionresponse.md)>**
|
|
323
|
-
### Errors
|
|
324
|
-
|
|
325
|
-
| Error Object | Status Code | Content Type |
|
|
326
|
-
| --------------- | --------------- | --------------- |
|
|
327
|
-
| errors.SDKError | 4xx-5xx | */* |
|