@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
|
@@ -27,24 +27,24 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
27
27
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.
|
|
30
|
+
exports.PaymentPayment = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
32
|
var class_transformer_1 = require("class-transformer");
|
|
33
|
-
var
|
|
34
|
-
__extends(
|
|
35
|
-
function
|
|
33
|
+
var PaymentPayment = /** @class */ (function (_super) {
|
|
34
|
+
__extends(PaymentPayment, _super);
|
|
35
|
+
function PaymentPayment() {
|
|
36
36
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
37
|
}
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
40
40
|
(0, class_transformer_1.Expose)({ name: "account_id" }),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
|
-
],
|
|
42
|
+
], PaymentPayment.prototype, "accountId", void 0);
|
|
43
43
|
__decorate([
|
|
44
44
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
45
|
(0, class_transformer_1.Expose)({ name: "contact_id" }),
|
|
46
46
|
__metadata("design:type", String)
|
|
47
|
-
],
|
|
47
|
+
], PaymentPayment.prototype, "contactId", void 0);
|
|
48
48
|
__decorate([
|
|
49
49
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
50
50
|
(0, class_transformer_1.Expose)({ name: "created_at" }),
|
|
@@ -53,47 +53,47 @@ var AccountingPayment = /** @class */ (function (_super) {
|
|
|
53
53
|
return new Date(value);
|
|
54
54
|
}, { toClassOnly: true }),
|
|
55
55
|
__metadata("design:type", Date)
|
|
56
|
-
],
|
|
56
|
+
], PaymentPayment.prototype, "createdAt", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
59
59
|
(0, class_transformer_1.Expose)({ name: "currency" }),
|
|
60
60
|
__metadata("design:type", String)
|
|
61
|
-
],
|
|
61
|
+
], PaymentPayment.prototype, "currency", void 0);
|
|
62
62
|
__decorate([
|
|
63
63
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
64
64
|
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
65
65
|
__metadata("design:type", String)
|
|
66
|
-
],
|
|
66
|
+
], PaymentPayment.prototype, "id", void 0);
|
|
67
67
|
__decorate([
|
|
68
68
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
69
69
|
(0, class_transformer_1.Expose)({ name: "invoice_id" }),
|
|
70
70
|
__metadata("design:type", String)
|
|
71
|
-
],
|
|
71
|
+
], PaymentPayment.prototype, "invoiceId", void 0);
|
|
72
72
|
__decorate([
|
|
73
73
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
74
74
|
(0, class_transformer_1.Expose)({ name: "notes" }),
|
|
75
75
|
__metadata("design:type", String)
|
|
76
|
-
],
|
|
76
|
+
], PaymentPayment.prototype, "notes", void 0);
|
|
77
77
|
__decorate([
|
|
78
78
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
79
79
|
(0, class_transformer_1.Expose)({ name: "payment_method" }),
|
|
80
80
|
__metadata("design:type", String)
|
|
81
|
-
],
|
|
81
|
+
], PaymentPayment.prototype, "paymentMethod", void 0);
|
|
82
82
|
__decorate([
|
|
83
83
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
84
84
|
(0, class_transformer_1.Expose)({ name: "raw" }),
|
|
85
85
|
__metadata("design:type", Object)
|
|
86
|
-
],
|
|
86
|
+
], PaymentPayment.prototype, "raw", void 0);
|
|
87
87
|
__decorate([
|
|
88
88
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
89
89
|
(0, class_transformer_1.Expose)({ name: "reference" }),
|
|
90
90
|
__metadata("design:type", String)
|
|
91
|
-
],
|
|
91
|
+
], PaymentPayment.prototype, "reference", void 0);
|
|
92
92
|
__decorate([
|
|
93
93
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
94
94
|
(0, class_transformer_1.Expose)({ name: "total_amount" }),
|
|
95
95
|
__metadata("design:type", Number)
|
|
96
|
-
],
|
|
96
|
+
], PaymentPayment.prototype, "totalAmount", void 0);
|
|
97
97
|
__decorate([
|
|
98
98
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
99
99
|
(0, class_transformer_1.Expose)({ name: "updated_at" }),
|
|
@@ -102,7 +102,7 @@ var AccountingPayment = /** @class */ (function (_super) {
|
|
|
102
102
|
return new Date(value);
|
|
103
103
|
}, { toClassOnly: true }),
|
|
104
104
|
__metadata("design:type", Date)
|
|
105
|
-
],
|
|
106
|
-
return
|
|
105
|
+
], PaymentPayment.prototype, "updatedAt", void 0);
|
|
106
|
+
return PaymentPayment;
|
|
107
107
|
}(utils_1.SpeakeasyBase));
|
|
108
|
-
exports.
|
|
108
|
+
exports.PaymentPayment = PaymentPayment;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
-
export declare enum
|
|
2
|
+
export declare enum PaymentPayoutStatus {
|
|
3
3
|
Succeeded = "SUCCEEDED",
|
|
4
4
|
Pending = "PENDING",
|
|
5
5
|
Failed = "FAILED",
|
|
6
6
|
Canceled = "CANCELED"
|
|
7
7
|
}
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class PaymentPayout extends SpeakeasyBase {
|
|
9
9
|
createdAt?: string;
|
|
10
10
|
currency?: string;
|
|
11
11
|
id?: string;
|
|
12
12
|
notes?: string;
|
|
13
13
|
raw?: Record<string, any>;
|
|
14
|
-
status?:
|
|
14
|
+
status?: PaymentPayoutStatus;
|
|
15
15
|
totalAmount: number;
|
|
16
16
|
updatedAt?: string;
|
|
17
17
|
}
|
|
@@ -27,61 +27,61 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
27
27
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.
|
|
30
|
+
exports.PaymentPayout = exports.PaymentPayoutStatus = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
32
|
var class_transformer_1 = require("class-transformer");
|
|
33
|
-
var
|
|
34
|
-
(function (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
})(
|
|
40
|
-
var
|
|
41
|
-
__extends(
|
|
42
|
-
function
|
|
33
|
+
var PaymentPayoutStatus;
|
|
34
|
+
(function (PaymentPayoutStatus) {
|
|
35
|
+
PaymentPayoutStatus["Succeeded"] = "SUCCEEDED";
|
|
36
|
+
PaymentPayoutStatus["Pending"] = "PENDING";
|
|
37
|
+
PaymentPayoutStatus["Failed"] = "FAILED";
|
|
38
|
+
PaymentPayoutStatus["Canceled"] = "CANCELED";
|
|
39
|
+
})(PaymentPayoutStatus = exports.PaymentPayoutStatus || (exports.PaymentPayoutStatus = {}));
|
|
40
|
+
var PaymentPayout = /** @class */ (function (_super) {
|
|
41
|
+
__extends(PaymentPayout, _super);
|
|
42
|
+
function PaymentPayout() {
|
|
43
43
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
44
44
|
}
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
47
47
|
(0, class_transformer_1.Expose)({ name: "created_at" }),
|
|
48
48
|
__metadata("design:type", String)
|
|
49
|
-
],
|
|
49
|
+
], PaymentPayout.prototype, "createdAt", void 0);
|
|
50
50
|
__decorate([
|
|
51
51
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
52
52
|
(0, class_transformer_1.Expose)({ name: "currency" }),
|
|
53
53
|
__metadata("design:type", String)
|
|
54
|
-
],
|
|
54
|
+
], PaymentPayout.prototype, "currency", void 0);
|
|
55
55
|
__decorate([
|
|
56
56
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
57
57
|
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
58
58
|
__metadata("design:type", String)
|
|
59
|
-
],
|
|
59
|
+
], PaymentPayout.prototype, "id", void 0);
|
|
60
60
|
__decorate([
|
|
61
61
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
62
62
|
(0, class_transformer_1.Expose)({ name: "notes" }),
|
|
63
63
|
__metadata("design:type", String)
|
|
64
|
-
],
|
|
64
|
+
], PaymentPayout.prototype, "notes", void 0);
|
|
65
65
|
__decorate([
|
|
66
66
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
67
67
|
(0, class_transformer_1.Expose)({ name: "raw" }),
|
|
68
68
|
__metadata("design:type", Object)
|
|
69
|
-
],
|
|
69
|
+
], PaymentPayout.prototype, "raw", void 0);
|
|
70
70
|
__decorate([
|
|
71
71
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
72
72
|
(0, class_transformer_1.Expose)({ name: "status" }),
|
|
73
73
|
__metadata("design:type", String)
|
|
74
|
-
],
|
|
74
|
+
], PaymentPayout.prototype, "status", void 0);
|
|
75
75
|
__decorate([
|
|
76
76
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
77
77
|
(0, class_transformer_1.Expose)({ name: "total_amount" }),
|
|
78
78
|
__metadata("design:type", Number)
|
|
79
|
-
],
|
|
79
|
+
], PaymentPayout.prototype, "totalAmount", void 0);
|
|
80
80
|
__decorate([
|
|
81
81
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
82
82
|
(0, class_transformer_1.Expose)({ name: "updated_at" }),
|
|
83
83
|
__metadata("design:type", String)
|
|
84
|
-
],
|
|
85
|
-
return
|
|
84
|
+
], PaymentPayout.prototype, "updatedAt", void 0);
|
|
85
|
+
return PaymentPayout;
|
|
86
86
|
}(utils_1.SpeakeasyBase));
|
|
87
|
-
exports.
|
|
87
|
+
exports.PaymentPayout = PaymentPayout;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
-
export declare enum
|
|
2
|
+
export declare enum PaymentRefundStatus {
|
|
3
3
|
Succeeded = "SUCCEEDED",
|
|
4
4
|
Pending = "PENDING",
|
|
5
5
|
Failed = "FAILED",
|
|
6
6
|
Canceled = "CANCELED"
|
|
7
7
|
}
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class PaymentRefund extends SpeakeasyBase {
|
|
9
9
|
createdAt?: string;
|
|
10
10
|
currency?: string;
|
|
11
11
|
id?: string;
|
|
@@ -13,7 +13,7 @@ export declare class AccountingRefund extends SpeakeasyBase {
|
|
|
13
13
|
paymentId: string;
|
|
14
14
|
raw?: Record<string, any>;
|
|
15
15
|
reference?: string;
|
|
16
|
-
status?:
|
|
16
|
+
status?: PaymentRefundStatus;
|
|
17
17
|
totalAmount: number;
|
|
18
18
|
updatedAt?: string;
|
|
19
19
|
}
|
|
@@ -27,71 +27,71 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
27
27
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.
|
|
30
|
+
exports.PaymentRefund = exports.PaymentRefundStatus = void 0;
|
|
31
31
|
var utils_1 = require("../../../internal/utils");
|
|
32
32
|
var class_transformer_1 = require("class-transformer");
|
|
33
|
-
var
|
|
34
|
-
(function (
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
})(
|
|
40
|
-
var
|
|
41
|
-
__extends(
|
|
42
|
-
function
|
|
33
|
+
var PaymentRefundStatus;
|
|
34
|
+
(function (PaymentRefundStatus) {
|
|
35
|
+
PaymentRefundStatus["Succeeded"] = "SUCCEEDED";
|
|
36
|
+
PaymentRefundStatus["Pending"] = "PENDING";
|
|
37
|
+
PaymentRefundStatus["Failed"] = "FAILED";
|
|
38
|
+
PaymentRefundStatus["Canceled"] = "CANCELED";
|
|
39
|
+
})(PaymentRefundStatus = exports.PaymentRefundStatus || (exports.PaymentRefundStatus = {}));
|
|
40
|
+
var PaymentRefund = /** @class */ (function (_super) {
|
|
41
|
+
__extends(PaymentRefund, _super);
|
|
42
|
+
function PaymentRefund() {
|
|
43
43
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
44
44
|
}
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
47
47
|
(0, class_transformer_1.Expose)({ name: "created_at" }),
|
|
48
48
|
__metadata("design:type", String)
|
|
49
|
-
],
|
|
49
|
+
], PaymentRefund.prototype, "createdAt", void 0);
|
|
50
50
|
__decorate([
|
|
51
51
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
52
52
|
(0, class_transformer_1.Expose)({ name: "currency" }),
|
|
53
53
|
__metadata("design:type", String)
|
|
54
|
-
],
|
|
54
|
+
], PaymentRefund.prototype, "currency", void 0);
|
|
55
55
|
__decorate([
|
|
56
56
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
57
57
|
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
58
58
|
__metadata("design:type", String)
|
|
59
|
-
],
|
|
59
|
+
], PaymentRefund.prototype, "id", void 0);
|
|
60
60
|
__decorate([
|
|
61
61
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
62
62
|
(0, class_transformer_1.Expose)({ name: "notes" }),
|
|
63
63
|
__metadata("design:type", String)
|
|
64
|
-
],
|
|
64
|
+
], PaymentRefund.prototype, "notes", void 0);
|
|
65
65
|
__decorate([
|
|
66
66
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
67
67
|
(0, class_transformer_1.Expose)({ name: "payment_id" }),
|
|
68
68
|
__metadata("design:type", String)
|
|
69
|
-
],
|
|
69
|
+
], PaymentRefund.prototype, "paymentId", void 0);
|
|
70
70
|
__decorate([
|
|
71
71
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
72
72
|
(0, class_transformer_1.Expose)({ name: "raw" }),
|
|
73
73
|
__metadata("design:type", Object)
|
|
74
|
-
],
|
|
74
|
+
], PaymentRefund.prototype, "raw", void 0);
|
|
75
75
|
__decorate([
|
|
76
76
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
77
77
|
(0, class_transformer_1.Expose)({ name: "reference" }),
|
|
78
78
|
__metadata("design:type", String)
|
|
79
|
-
],
|
|
79
|
+
], PaymentRefund.prototype, "reference", void 0);
|
|
80
80
|
__decorate([
|
|
81
81
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
82
82
|
(0, class_transformer_1.Expose)({ name: "status" }),
|
|
83
83
|
__metadata("design:type", String)
|
|
84
|
-
],
|
|
84
|
+
], PaymentRefund.prototype, "status", void 0);
|
|
85
85
|
__decorate([
|
|
86
86
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
87
87
|
(0, class_transformer_1.Expose)({ name: "total_amount" }),
|
|
88
88
|
__metadata("design:type", Number)
|
|
89
|
-
],
|
|
89
|
+
], PaymentRefund.prototype, "totalAmount", void 0);
|
|
90
90
|
__decorate([
|
|
91
91
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
92
92
|
(0, class_transformer_1.Expose)({ name: "updated_at" }),
|
|
93
93
|
__metadata("design:type", String)
|
|
94
|
-
],
|
|
95
|
-
return
|
|
94
|
+
], PaymentRefund.prototype, "updatedAt", void 0);
|
|
95
|
+
return PaymentRefund;
|
|
96
96
|
}(utils_1.SpeakeasyBase));
|
|
97
|
-
exports.
|
|
97
|
+
exports.PaymentRefund = PaymentRefund;
|
|
@@ -18,4 +18,5 @@ var PropertyConnectionCategories;
|
|
|
18
18
|
PropertyConnectionCategories["Accounting"] = "accounting";
|
|
19
19
|
PropertyConnectionCategories["Storage"] = "storage";
|
|
20
20
|
PropertyConnectionCategories["Commerce"] = "commerce";
|
|
21
|
+
PropertyConnectionCategories["Payment"] = "payment";
|
|
21
22
|
})(PropertyConnectionCategories = exports.PropertyConnectionCategories || (exports.PropertyConnectionCategories = {}));
|
|
@@ -8,13 +8,15 @@ export declare enum PropertyConnectionPermissions {
|
|
|
8
8
|
AccountingInvoiceWrite = "accounting_invoice_write",
|
|
9
9
|
AccountingContactRead = "accounting_contact_read",
|
|
10
10
|
AccountingContactWrite = "accounting_contact_write",
|
|
11
|
-
AccountingPaymentRead = "accounting_payment_read",
|
|
12
|
-
AccountingPaymentWrite = "accounting_payment_write",
|
|
13
11
|
AccountingTaxrateRead = "accounting_taxrate_read",
|
|
14
12
|
AccountingTaxrateWrite = "accounting_taxrate_write",
|
|
15
13
|
AccountingOrganizationRead = "accounting_organization_read",
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
PaymentPaymentRead = "payment_payment_read",
|
|
15
|
+
PaymentPaymentWrite = "payment_payment_write",
|
|
16
|
+
PaymentPayoutRead = "payment_payout_read",
|
|
17
|
+
PaymentRefundRead = "payment_refund_read",
|
|
18
|
+
PaymentLinkRead = "payment_link_read",
|
|
19
|
+
PaymentLinkWrite = "payment_link_write",
|
|
18
20
|
CommerceItemRead = "commerce_item_read",
|
|
19
21
|
CommerceItemWrite = "commerce_item_write",
|
|
20
22
|
CommerceCollectionRead = "commerce_collection_read",
|
|
@@ -15,13 +15,15 @@ var PropertyConnectionPermissions;
|
|
|
15
15
|
PropertyConnectionPermissions["AccountingInvoiceWrite"] = "accounting_invoice_write";
|
|
16
16
|
PropertyConnectionPermissions["AccountingContactRead"] = "accounting_contact_read";
|
|
17
17
|
PropertyConnectionPermissions["AccountingContactWrite"] = "accounting_contact_write";
|
|
18
|
-
PropertyConnectionPermissions["AccountingPaymentRead"] = "accounting_payment_read";
|
|
19
|
-
PropertyConnectionPermissions["AccountingPaymentWrite"] = "accounting_payment_write";
|
|
20
18
|
PropertyConnectionPermissions["AccountingTaxrateRead"] = "accounting_taxrate_read";
|
|
21
19
|
PropertyConnectionPermissions["AccountingTaxrateWrite"] = "accounting_taxrate_write";
|
|
22
20
|
PropertyConnectionPermissions["AccountingOrganizationRead"] = "accounting_organization_read";
|
|
23
|
-
PropertyConnectionPermissions["
|
|
24
|
-
PropertyConnectionPermissions["
|
|
21
|
+
PropertyConnectionPermissions["PaymentPaymentRead"] = "payment_payment_read";
|
|
22
|
+
PropertyConnectionPermissions["PaymentPaymentWrite"] = "payment_payment_write";
|
|
23
|
+
PropertyConnectionPermissions["PaymentPayoutRead"] = "payment_payout_read";
|
|
24
|
+
PropertyConnectionPermissions["PaymentRefundRead"] = "payment_refund_read";
|
|
25
|
+
PropertyConnectionPermissions["PaymentLinkRead"] = "payment_link_read";
|
|
26
|
+
PropertyConnectionPermissions["PaymentLinkWrite"] = "payment_link_write";
|
|
25
27
|
PropertyConnectionPermissions["CommerceItemRead"] = "commerce_item_read";
|
|
26
28
|
PropertyConnectionPermissions["CommerceItemWrite"] = "commerce_item_write";
|
|
27
29
|
PropertyConnectionPermissions["CommerceCollectionRead"] = "commerce_collection_read";
|
|
@@ -18,4 +18,5 @@ var PropertyIntegrationCategories;
|
|
|
18
18
|
PropertyIntegrationCategories["Accounting"] = "accounting";
|
|
19
19
|
PropertyIntegrationCategories["Storage"] = "storage";
|
|
20
20
|
PropertyIntegrationCategories["Commerce"] = "commerce";
|
|
21
|
+
PropertyIntegrationCategories["Payment"] = "payment";
|
|
21
22
|
})(PropertyIntegrationCategories = exports.PropertyIntegrationCategories || (exports.PropertyIntegrationCategories = {}));
|
|
@@ -9,11 +9,12 @@ export declare enum ObjectType {
|
|
|
9
9
|
AccountingTransaction = "accounting_transaction",
|
|
10
10
|
AccountingContact = "accounting_contact",
|
|
11
11
|
AccountingInvoice = "accounting_invoice",
|
|
12
|
-
AccountingPayment = "accounting_payment",
|
|
13
12
|
AccountingTaxrate = "accounting_taxrate",
|
|
14
13
|
AccountingOrganization = "accounting_organization",
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
PaymentPayment = "payment_payment",
|
|
15
|
+
PaymentLink = "payment_link",
|
|
16
|
+
PaymentPayout = "payment_payout",
|
|
17
|
+
PaymentRefund = "payment_refund",
|
|
17
18
|
CommerceItem = "commerce_item",
|
|
18
19
|
CommerceCollection = "commerce_collection",
|
|
19
20
|
CommerceInventory = "commerce_inventory",
|
|
@@ -42,11 +42,12 @@ var ObjectType;
|
|
|
42
42
|
ObjectType["AccountingTransaction"] = "accounting_transaction";
|
|
43
43
|
ObjectType["AccountingContact"] = "accounting_contact";
|
|
44
44
|
ObjectType["AccountingInvoice"] = "accounting_invoice";
|
|
45
|
-
ObjectType["AccountingPayment"] = "accounting_payment";
|
|
46
45
|
ObjectType["AccountingTaxrate"] = "accounting_taxrate";
|
|
47
46
|
ObjectType["AccountingOrganization"] = "accounting_organization";
|
|
48
|
-
ObjectType["
|
|
49
|
-
ObjectType["
|
|
47
|
+
ObjectType["PaymentPayment"] = "payment_payment";
|
|
48
|
+
ObjectType["PaymentLink"] = "payment_link";
|
|
49
|
+
ObjectType["PaymentPayout"] = "payment_payout";
|
|
50
|
+
ObjectType["PaymentRefund"] = "payment_refund";
|
|
50
51
|
ObjectType["CommerceItem"] = "commerce_item";
|
|
51
52
|
ObjectType["CommerceCollection"] = "commerce_collection";
|
|
52
53
|
ObjectType["CommerceInventory"] = "commerce_inventory";
|
package/dist/sdk/payment.d.ts
CHANGED
|
@@ -4,28 +4,68 @@ import { AxiosRequestConfig } from "axios";
|
|
|
4
4
|
export declare class Payment {
|
|
5
5
|
private sdkConfiguration;
|
|
6
6
|
constructor(sdkConfig: SDKConfiguration);
|
|
7
|
+
/**
|
|
8
|
+
* Create a payment link
|
|
9
|
+
*/
|
|
10
|
+
createPaymentLink(req: operations.CreatePaymentLinkRequest, config?: AxiosRequestConfig): Promise<operations.CreatePaymentLinkResponse>;
|
|
7
11
|
/**
|
|
8
12
|
* Create a payment
|
|
9
13
|
*/
|
|
10
|
-
|
|
14
|
+
createPaymentPayment(req: operations.CreatePaymentPaymentRequest, config?: AxiosRequestConfig): Promise<operations.CreatePaymentPaymentResponse>;
|
|
15
|
+
/**
|
|
16
|
+
* Retrieve a payment link
|
|
17
|
+
*/
|
|
18
|
+
getPaymentLink(req: operations.GetPaymentLinkRequest, config?: AxiosRequestConfig): Promise<operations.GetPaymentLinkResponse>;
|
|
11
19
|
/**
|
|
12
20
|
* Retrieve a payment
|
|
13
21
|
*/
|
|
14
|
-
|
|
22
|
+
getPaymentPayment(req: operations.GetPaymentPaymentRequest, config?: AxiosRequestConfig): Promise<operations.GetPaymentPaymentResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Retrieve a payout
|
|
25
|
+
*/
|
|
26
|
+
getPaymentPayout(req: operations.GetPaymentPayoutRequest, config?: AxiosRequestConfig): Promise<operations.GetPaymentPayoutResponse>;
|
|
27
|
+
/**
|
|
28
|
+
* Retrieve a refund
|
|
29
|
+
*/
|
|
30
|
+
getPaymentRefund(req: operations.GetPaymentRefundRequest, config?: AxiosRequestConfig): Promise<operations.GetPaymentRefundResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* List all payment links
|
|
33
|
+
*/
|
|
34
|
+
listPaymentLinks(req: operations.ListPaymentLinksRequest, config?: AxiosRequestConfig): Promise<operations.ListPaymentLinksResponse>;
|
|
15
35
|
/**
|
|
16
36
|
* List all payments
|
|
17
37
|
*/
|
|
18
|
-
|
|
38
|
+
listPaymentPayments(req: operations.ListPaymentPaymentsRequest, config?: AxiosRequestConfig): Promise<operations.ListPaymentPaymentsResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* List all payouts
|
|
41
|
+
*/
|
|
42
|
+
listPaymentPayouts(req: operations.ListPaymentPayoutsRequest, config?: AxiosRequestConfig): Promise<operations.ListPaymentPayoutsResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* List all refunds
|
|
45
|
+
*/
|
|
46
|
+
listPaymentRefunds(req: operations.ListPaymentRefundsRequest, config?: AxiosRequestConfig): Promise<operations.ListPaymentRefundsResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Update a payment link
|
|
49
|
+
*/
|
|
50
|
+
patchPaymentLink(req: operations.PatchPaymentLinkRequest, config?: AxiosRequestConfig): Promise<operations.PatchPaymentLinkResponse>;
|
|
19
51
|
/**
|
|
20
52
|
* Update a payment
|
|
21
53
|
*/
|
|
22
|
-
|
|
54
|
+
patchPaymentPayment(req: operations.PatchPaymentPaymentRequest, config?: AxiosRequestConfig): Promise<operations.PatchPaymentPaymentResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Remove a payment link
|
|
57
|
+
*/
|
|
58
|
+
removePaymentLink(req: operations.RemovePaymentLinkRequest, config?: AxiosRequestConfig): Promise<operations.RemovePaymentLinkResponse>;
|
|
23
59
|
/**
|
|
24
60
|
* Remove a payment
|
|
25
61
|
*/
|
|
26
|
-
|
|
62
|
+
removePaymentPayment(req: operations.RemovePaymentPaymentRequest, config?: AxiosRequestConfig): Promise<operations.RemovePaymentPaymentResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Update a payment link
|
|
65
|
+
*/
|
|
66
|
+
updatePaymentLink(req: operations.UpdatePaymentLinkRequest, config?: AxiosRequestConfig): Promise<operations.UpdatePaymentLinkResponse>;
|
|
27
67
|
/**
|
|
28
68
|
* Update a payment
|
|
29
69
|
*/
|
|
30
|
-
|
|
70
|
+
updatePaymentPayment(req: operations.UpdatePaymentPaymentRequest, config?: AxiosRequestConfig): Promise<operations.UpdatePaymentPaymentResponse>;
|
|
31
71
|
}
|