@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
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.RemovePaymentPaymentResponse = exports.RemovePaymentPaymentRequest = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var RemovePaymentPaymentRequest = /** @class */ (function (_super) {
|
|
33
|
+
__extends(RemovePaymentPaymentRequest, _super);
|
|
34
|
+
function RemovePaymentPaymentRequest() {
|
|
35
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
36
|
+
}
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connection_id" }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], RemovePaymentPaymentRequest.prototype, "connectionId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=id" }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], RemovePaymentPaymentRequest.prototype, "id", void 0);
|
|
45
|
+
return RemovePaymentPaymentRequest;
|
|
46
|
+
}(utils_1.SpeakeasyBase));
|
|
47
|
+
exports.RemovePaymentPaymentRequest = RemovePaymentPaymentRequest;
|
|
48
|
+
var RemovePaymentPaymentResponse = /** @class */ (function (_super) {
|
|
49
|
+
__extends(RemovePaymentPaymentResponse, _super);
|
|
50
|
+
function RemovePaymentPaymentResponse() {
|
|
51
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
52
|
+
}
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], RemovePaymentPaymentResponse.prototype, "contentType", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], RemovePaymentPaymentResponse.prototype, "statusCode", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], RemovePaymentPaymentResponse.prototype, "rawResponse", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], RemovePaymentPaymentResponse.prototype, "res", void 0);
|
|
69
|
+
return RemovePaymentPaymentResponse;
|
|
70
|
+
}(utils_1.SpeakeasyBase));
|
|
71
|
+
exports.RemovePaymentPaymentResponse = RemovePaymentPaymentResponse;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import * as shared from "../../../sdk/models/shared";
|
|
3
|
+
import { AxiosResponse } from "axios";
|
|
4
|
+
export declare class UpdatePaymentLinkRequest extends SpeakeasyBase {
|
|
5
|
+
paymentLink?: shared.PaymentLink;
|
|
6
|
+
/**
|
|
7
|
+
* ID of the connection
|
|
8
|
+
*/
|
|
9
|
+
connectionId: string;
|
|
10
|
+
/**
|
|
11
|
+
* ID of the Link
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class UpdatePaymentLinkResponse extends SpeakeasyBase {
|
|
16
|
+
/**
|
|
17
|
+
* HTTP response content type for this operation
|
|
18
|
+
*/
|
|
19
|
+
contentType: string;
|
|
20
|
+
/**
|
|
21
|
+
* Successful
|
|
22
|
+
*/
|
|
23
|
+
paymentLink?: shared.PaymentLink;
|
|
24
|
+
/**
|
|
25
|
+
* HTTP response status code for this operation
|
|
26
|
+
*/
|
|
27
|
+
statusCode: number;
|
|
28
|
+
/**
|
|
29
|
+
* Raw HTTP response; suitable for custom response parsing
|
|
30
|
+
*/
|
|
31
|
+
rawResponse: AxiosResponse;
|
|
32
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
25
|
+
}
|
|
26
|
+
Object.defineProperty(o, k2, desc);
|
|
27
|
+
}) : (function(o, m, k, k2) {
|
|
28
|
+
if (k2 === undefined) k2 = k;
|
|
29
|
+
o[k2] = m[k];
|
|
30
|
+
}));
|
|
31
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
32
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
33
|
+
}) : function(o, v) {
|
|
34
|
+
o["default"] = v;
|
|
35
|
+
});
|
|
36
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
37
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
38
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
39
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
40
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
41
|
+
};
|
|
42
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
43
|
+
if (mod && mod.__esModule) return mod;
|
|
44
|
+
var result = {};
|
|
45
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
46
|
+
__setModuleDefault(result, mod);
|
|
47
|
+
return result;
|
|
48
|
+
};
|
|
49
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
50
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
51
|
+
};
|
|
52
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
exports.UpdatePaymentLinkResponse = exports.UpdatePaymentLinkRequest = void 0;
|
|
54
|
+
var utils_1 = require("../../../internal/utils");
|
|
55
|
+
var shared = __importStar(require("../../../sdk/models/shared"));
|
|
56
|
+
var UpdatePaymentLinkRequest = /** @class */ (function (_super) {
|
|
57
|
+
__extends(UpdatePaymentLinkRequest, _super);
|
|
58
|
+
function UpdatePaymentLinkRequest() {
|
|
59
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
60
|
+
}
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "request, media_type=application/json" }),
|
|
63
|
+
__metadata("design:type", shared.PaymentLink)
|
|
64
|
+
], UpdatePaymentLinkRequest.prototype, "paymentLink", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connection_id" }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], UpdatePaymentLinkRequest.prototype, "connectionId", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=id" }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], UpdatePaymentLinkRequest.prototype, "id", void 0);
|
|
73
|
+
return UpdatePaymentLinkRequest;
|
|
74
|
+
}(utils_1.SpeakeasyBase));
|
|
75
|
+
exports.UpdatePaymentLinkRequest = UpdatePaymentLinkRequest;
|
|
76
|
+
var UpdatePaymentLinkResponse = /** @class */ (function (_super) {
|
|
77
|
+
__extends(UpdatePaymentLinkResponse, _super);
|
|
78
|
+
function UpdatePaymentLinkResponse() {
|
|
79
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
80
|
+
}
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], UpdatePaymentLinkResponse.prototype, "contentType", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
87
|
+
__metadata("design:type", shared.PaymentLink)
|
|
88
|
+
], UpdatePaymentLinkResponse.prototype, "paymentLink", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], UpdatePaymentLinkResponse.prototype, "statusCode", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
95
|
+
__metadata("design:type", Object)
|
|
96
|
+
], UpdatePaymentLinkResponse.prototype, "rawResponse", void 0);
|
|
97
|
+
return UpdatePaymentLinkResponse;
|
|
98
|
+
}(utils_1.SpeakeasyBase));
|
|
99
|
+
exports.UpdatePaymentLinkResponse = UpdatePaymentLinkResponse;
|
package/dist/sdk/models/operations/{updateaccountingpayment.d.ts → updatepaymentpayment.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
2
|
import * as shared from "../../../sdk/models/shared";
|
|
3
3
|
import { AxiosResponse } from "axios";
|
|
4
|
-
export declare class
|
|
5
|
-
|
|
4
|
+
export declare class UpdatePaymentPaymentRequest extends SpeakeasyBase {
|
|
5
|
+
paymentPayment?: shared.PaymentPayment;
|
|
6
6
|
/**
|
|
7
7
|
* ID of the connection
|
|
8
8
|
*/
|
|
@@ -12,15 +12,15 @@ export declare class UpdateAccountingPaymentRequest extends SpeakeasyBase {
|
|
|
12
12
|
*/
|
|
13
13
|
id: string;
|
|
14
14
|
}
|
|
15
|
-
export declare class
|
|
16
|
-
/**
|
|
17
|
-
* Successful
|
|
18
|
-
*/
|
|
19
|
-
accountingPayment?: shared.AccountingPayment;
|
|
15
|
+
export declare class UpdatePaymentPaymentResponse extends SpeakeasyBase {
|
|
20
16
|
/**
|
|
21
17
|
* HTTP response content type for this operation
|
|
22
18
|
*/
|
|
23
19
|
contentType: string;
|
|
20
|
+
/**
|
|
21
|
+
* Successful
|
|
22
|
+
*/
|
|
23
|
+
paymentPayment?: shared.PaymentPayment;
|
|
24
24
|
/**
|
|
25
25
|
* HTTP response status code for this operation
|
|
26
26
|
*/
|
|
@@ -50,50 +50,50 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
50
50
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
51
51
|
};
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
exports.
|
|
53
|
+
exports.UpdatePaymentPaymentResponse = exports.UpdatePaymentPaymentRequest = void 0;
|
|
54
54
|
var utils_1 = require("../../../internal/utils");
|
|
55
55
|
var shared = __importStar(require("../../../sdk/models/shared"));
|
|
56
|
-
var
|
|
57
|
-
__extends(
|
|
58
|
-
function
|
|
56
|
+
var UpdatePaymentPaymentRequest = /** @class */ (function (_super) {
|
|
57
|
+
__extends(UpdatePaymentPaymentRequest, _super);
|
|
58
|
+
function UpdatePaymentPaymentRequest() {
|
|
59
59
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
60
60
|
}
|
|
61
61
|
__decorate([
|
|
62
62
|
(0, utils_1.SpeakeasyMetadata)({ data: "request, media_type=application/json" }),
|
|
63
|
-
__metadata("design:type", shared.
|
|
64
|
-
],
|
|
63
|
+
__metadata("design:type", shared.PaymentPayment)
|
|
64
|
+
], UpdatePaymentPaymentRequest.prototype, "paymentPayment", void 0);
|
|
65
65
|
__decorate([
|
|
66
66
|
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=connection_id" }),
|
|
67
67
|
__metadata("design:type", String)
|
|
68
|
-
],
|
|
68
|
+
], UpdatePaymentPaymentRequest.prototype, "connectionId", void 0);
|
|
69
69
|
__decorate([
|
|
70
70
|
(0, utils_1.SpeakeasyMetadata)({ data: "pathParam, style=simple;explode=false;name=id" }),
|
|
71
71
|
__metadata("design:type", String)
|
|
72
|
-
],
|
|
73
|
-
return
|
|
72
|
+
], UpdatePaymentPaymentRequest.prototype, "id", void 0);
|
|
73
|
+
return UpdatePaymentPaymentRequest;
|
|
74
74
|
}(utils_1.SpeakeasyBase));
|
|
75
|
-
exports.
|
|
76
|
-
var
|
|
77
|
-
__extends(
|
|
78
|
-
function
|
|
75
|
+
exports.UpdatePaymentPaymentRequest = UpdatePaymentPaymentRequest;
|
|
76
|
+
var UpdatePaymentPaymentResponse = /** @class */ (function (_super) {
|
|
77
|
+
__extends(UpdatePaymentPaymentResponse, _super);
|
|
78
|
+
function UpdatePaymentPaymentResponse() {
|
|
79
79
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
80
80
|
}
|
|
81
81
|
__decorate([
|
|
82
82
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
83
|
-
__metadata("design:type",
|
|
84
|
-
],
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], UpdatePaymentPaymentResponse.prototype, "contentType", void 0);
|
|
85
85
|
__decorate([
|
|
86
86
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
87
|
-
__metadata("design:type",
|
|
88
|
-
],
|
|
87
|
+
__metadata("design:type", shared.PaymentPayment)
|
|
88
|
+
], UpdatePaymentPaymentResponse.prototype, "paymentPayment", void 0);
|
|
89
89
|
__decorate([
|
|
90
90
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
91
91
|
__metadata("design:type", Number)
|
|
92
|
-
],
|
|
92
|
+
], UpdatePaymentPaymentResponse.prototype, "statusCode", void 0);
|
|
93
93
|
__decorate([
|
|
94
94
|
(0, utils_1.SpeakeasyMetadata)(),
|
|
95
95
|
__metadata("design:type", Object)
|
|
96
|
-
],
|
|
97
|
-
return
|
|
96
|
+
], UpdatePaymentPaymentResponse.prototype, "rawResponse", void 0);
|
|
97
|
+
return UpdatePaymentPaymentResponse;
|
|
98
98
|
}(utils_1.SpeakeasyBase));
|
|
99
|
-
exports.
|
|
99
|
+
exports.UpdatePaymentPaymentResponse = UpdatePaymentPaymentResponse;
|
|
@@ -172,6 +172,11 @@ var AccountingInvoice = /** @class */ (function (_super) {
|
|
|
172
172
|
}, { toClassOnly: true }),
|
|
173
173
|
__metadata("design:type", Date)
|
|
174
174
|
], AccountingInvoice.prototype, "updatedAt", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
177
|
+
(0, class_transformer_1.Expose)({ name: "url" }),
|
|
178
|
+
__metadata("design:type", String)
|
|
179
|
+
], AccountingInvoice.prototype, "url", void 0);
|
|
175
180
|
return AccountingInvoice;
|
|
176
181
|
}(utils_1.SpeakeasyBase));
|
|
177
182
|
exports.AccountingInvoice = AccountingInvoice;
|
|
@@ -4,9 +4,6 @@ export * from "./accountingemail";
|
|
|
4
4
|
export * from "./accountinginvoice";
|
|
5
5
|
export * from "./accountinglineitem";
|
|
6
6
|
export * from "./accountingorganization";
|
|
7
|
-
export * from "./accountingpayment";
|
|
8
|
-
export * from "./accountingpayout";
|
|
9
|
-
export * from "./accountingrefund";
|
|
10
7
|
export * from "./accountingtaxrate";
|
|
11
8
|
export * from "./accountingtelephone";
|
|
12
9
|
export * from "./accountingtransaction";
|
|
@@ -60,6 +57,11 @@ export * from "./issue";
|
|
|
60
57
|
export * from "./marketingemail";
|
|
61
58
|
export * from "./marketinglist";
|
|
62
59
|
export * from "./marketingmember";
|
|
60
|
+
export * from "./paymenntlinklineitem";
|
|
61
|
+
export * from "./paymentlink";
|
|
62
|
+
export * from "./paymentpayment";
|
|
63
|
+
export * from "./paymentpayout";
|
|
64
|
+
export * from "./paymentrefund";
|
|
63
65
|
export * from "./propertyaccountingcontactbillingaddress";
|
|
64
66
|
export * from "./propertyaccountingcontactshippingaddress";
|
|
65
67
|
export * from "./propertyaccountingorganizationaddress";
|
|
@@ -23,9 +23,6 @@ __exportStar(require("./accountingemail"), exports);
|
|
|
23
23
|
__exportStar(require("./accountinginvoice"), exports);
|
|
24
24
|
__exportStar(require("./accountinglineitem"), exports);
|
|
25
25
|
__exportStar(require("./accountingorganization"), exports);
|
|
26
|
-
__exportStar(require("./accountingpayment"), exports);
|
|
27
|
-
__exportStar(require("./accountingpayout"), exports);
|
|
28
|
-
__exportStar(require("./accountingrefund"), exports);
|
|
29
26
|
__exportStar(require("./accountingtaxrate"), exports);
|
|
30
27
|
__exportStar(require("./accountingtelephone"), exports);
|
|
31
28
|
__exportStar(require("./accountingtransaction"), exports);
|
|
@@ -79,6 +76,11 @@ __exportStar(require("./issue"), exports);
|
|
|
79
76
|
__exportStar(require("./marketingemail"), exports);
|
|
80
77
|
__exportStar(require("./marketinglist"), exports);
|
|
81
78
|
__exportStar(require("./marketingmember"), exports);
|
|
79
|
+
__exportStar(require("./paymenntlinklineitem"), exports);
|
|
80
|
+
__exportStar(require("./paymentlink"), exports);
|
|
81
|
+
__exportStar(require("./paymentpayment"), exports);
|
|
82
|
+
__exportStar(require("./paymentpayout"), exports);
|
|
83
|
+
__exportStar(require("./paymentrefund"), exports);
|
|
82
84
|
__exportStar(require("./propertyaccountingcontactbillingaddress"), exports);
|
|
83
85
|
__exportStar(require("./propertyaccountingcontactshippingaddress"), exports);
|
|
84
86
|
__exportStar(require("./propertyaccountingorganizationaddress"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
export declare class PaymenntLinkLineitem extends SpeakeasyBase {
|
|
3
|
+
accountId?: string;
|
|
4
|
+
createdAt?: Date;
|
|
5
|
+
discountAmount?: number;
|
|
6
|
+
id?: string;
|
|
7
|
+
itemDescription?: string;
|
|
8
|
+
itemId?: string;
|
|
9
|
+
itemName?: string;
|
|
10
|
+
itemSku?: string;
|
|
11
|
+
notes?: string;
|
|
12
|
+
refundAmount?: number;
|
|
13
|
+
refundedAt?: Date;
|
|
14
|
+
taxAmount?: number;
|
|
15
|
+
taxrateId?: string;
|
|
16
|
+
totalAmount: number;
|
|
17
|
+
unitAmount?: number;
|
|
18
|
+
unitQuantity?: number;
|
|
19
|
+
updatedAt?: Date;
|
|
20
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.PaymenntLinkLineitem = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var class_transformer_1 = require("class-transformer");
|
|
33
|
+
var PaymenntLinkLineitem = /** @class */ (function (_super) {
|
|
34
|
+
__extends(PaymenntLinkLineitem, _super);
|
|
35
|
+
function PaymenntLinkLineitem() {
|
|
36
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
37
|
+
}
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
40
|
+
(0, class_transformer_1.Expose)({ name: "account_id" }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], PaymenntLinkLineitem.prototype, "accountId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
45
|
+
(0, class_transformer_1.Expose)({ name: "created_at" }),
|
|
46
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
47
|
+
var value = _a.value;
|
|
48
|
+
return new Date(value);
|
|
49
|
+
}, { toClassOnly: true }),
|
|
50
|
+
__metadata("design:type", Date)
|
|
51
|
+
], PaymenntLinkLineitem.prototype, "createdAt", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
54
|
+
(0, class_transformer_1.Expose)({ name: "discount_amount" }),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], PaymenntLinkLineitem.prototype, "discountAmount", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
59
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], PaymenntLinkLineitem.prototype, "id", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
64
|
+
(0, class_transformer_1.Expose)({ name: "item_description" }),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], PaymenntLinkLineitem.prototype, "itemDescription", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
69
|
+
(0, class_transformer_1.Expose)({ name: "item_id" }),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], PaymenntLinkLineitem.prototype, "itemId", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
74
|
+
(0, class_transformer_1.Expose)({ name: "item_name" }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], PaymenntLinkLineitem.prototype, "itemName", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
79
|
+
(0, class_transformer_1.Expose)({ name: "item_sku" }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], PaymenntLinkLineitem.prototype, "itemSku", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
84
|
+
(0, class_transformer_1.Expose)({ name: "notes" }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], PaymenntLinkLineitem.prototype, "notes", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
89
|
+
(0, class_transformer_1.Expose)({ name: "refund_amount" }),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], PaymenntLinkLineitem.prototype, "refundAmount", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
94
|
+
(0, class_transformer_1.Expose)({ name: "refunded_at" }),
|
|
95
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
96
|
+
var value = _a.value;
|
|
97
|
+
return new Date(value);
|
|
98
|
+
}, { toClassOnly: true }),
|
|
99
|
+
__metadata("design:type", Date)
|
|
100
|
+
], PaymenntLinkLineitem.prototype, "refundedAt", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
103
|
+
(0, class_transformer_1.Expose)({ name: "tax_amount" }),
|
|
104
|
+
__metadata("design:type", Number)
|
|
105
|
+
], PaymenntLinkLineitem.prototype, "taxAmount", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
108
|
+
(0, class_transformer_1.Expose)({ name: "taxrate_id" }),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], PaymenntLinkLineitem.prototype, "taxrateId", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
113
|
+
(0, class_transformer_1.Expose)({ name: "total_amount" }),
|
|
114
|
+
__metadata("design:type", Number)
|
|
115
|
+
], PaymenntLinkLineitem.prototype, "totalAmount", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
118
|
+
(0, class_transformer_1.Expose)({ name: "unit_amount" }),
|
|
119
|
+
__metadata("design:type", Number)
|
|
120
|
+
], PaymenntLinkLineitem.prototype, "unitAmount", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
123
|
+
(0, class_transformer_1.Expose)({ name: "unit_quantity" }),
|
|
124
|
+
__metadata("design:type", Number)
|
|
125
|
+
], PaymenntLinkLineitem.prototype, "unitQuantity", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
128
|
+
(0, class_transformer_1.Expose)({ name: "updated_at" }),
|
|
129
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
130
|
+
var value = _a.value;
|
|
131
|
+
return new Date(value);
|
|
132
|
+
}, { toClassOnly: true }),
|
|
133
|
+
__metadata("design:type", Date)
|
|
134
|
+
], PaymenntLinkLineitem.prototype, "updatedAt", void 0);
|
|
135
|
+
return PaymenntLinkLineitem;
|
|
136
|
+
}(utils_1.SpeakeasyBase));
|
|
137
|
+
exports.PaymenntLinkLineitem = PaymenntLinkLineitem;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SpeakeasyBase } from "../../../internal/utils";
|
|
2
|
+
import { PaymenntLinkLineitem } from "./paymenntlinklineitem";
|
|
3
|
+
export declare class PaymentLink extends SpeakeasyBase {
|
|
4
|
+
amount?: number;
|
|
5
|
+
contactId?: string;
|
|
6
|
+
createdAt?: Date;
|
|
7
|
+
currency?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
lineitems: PaymenntLinkLineitem[];
|
|
11
|
+
paymentId?: string;
|
|
12
|
+
raw?: Record<string, any>;
|
|
13
|
+
updatedAt?: Date;
|
|
14
|
+
url: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __extends = (this && this.__extends) || (function () {
|
|
6
|
+
var extendStatics = function (d, b) {
|
|
7
|
+
extendStatics = Object.setPrototypeOf ||
|
|
8
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
+
return extendStatics(d, b);
|
|
11
|
+
};
|
|
12
|
+
return function (d, b) {
|
|
13
|
+
if (typeof b !== "function" && b !== null)
|
|
14
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
+
extendStatics(d, b);
|
|
16
|
+
function __() { this.constructor = d; }
|
|
17
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
+
};
|
|
19
|
+
})();
|
|
20
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.PaymentLink = void 0;
|
|
31
|
+
var utils_1 = require("../../../internal/utils");
|
|
32
|
+
var paymenntlinklineitem_1 = require("./paymenntlinklineitem");
|
|
33
|
+
var class_transformer_1 = require("class-transformer");
|
|
34
|
+
var PaymentLink = /** @class */ (function (_super) {
|
|
35
|
+
__extends(PaymentLink, _super);
|
|
36
|
+
function PaymentLink() {
|
|
37
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
38
|
+
}
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
41
|
+
(0, class_transformer_1.Expose)({ name: "amount" }),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], PaymentLink.prototype, "amount", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
46
|
+
(0, class_transformer_1.Expose)({ name: "contact_id" }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], PaymentLink.prototype, "contactId", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
51
|
+
(0, class_transformer_1.Expose)({ name: "created_at" }),
|
|
52
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
53
|
+
var value = _a.value;
|
|
54
|
+
return new Date(value);
|
|
55
|
+
}, { toClassOnly: true }),
|
|
56
|
+
__metadata("design:type", Date)
|
|
57
|
+
], PaymentLink.prototype, "createdAt", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
60
|
+
(0, class_transformer_1.Expose)({ name: "currency" }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], PaymentLink.prototype, "currency", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
65
|
+
(0, class_transformer_1.Expose)({ name: "id" }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], PaymentLink.prototype, "id", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
70
|
+
(0, class_transformer_1.Expose)({ name: "is_active" }),
|
|
71
|
+
__metadata("design:type", Boolean)
|
|
72
|
+
], PaymentLink.prototype, "isActive", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, utils_1.SpeakeasyMetadata)({ elemType: paymenntlinklineitem_1.PaymenntLinkLineitem }),
|
|
75
|
+
(0, class_transformer_1.Expose)({ name: "lineitems" }),
|
|
76
|
+
(0, class_transformer_1.Type)(function () { return paymenntlinklineitem_1.PaymenntLinkLineitem; }),
|
|
77
|
+
__metadata("design:type", Array)
|
|
78
|
+
], PaymentLink.prototype, "lineitems", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
81
|
+
(0, class_transformer_1.Expose)({ name: "payment_id" }),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], PaymentLink.prototype, "paymentId", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
86
|
+
(0, class_transformer_1.Expose)({ name: "raw" }),
|
|
87
|
+
__metadata("design:type", Object)
|
|
88
|
+
], PaymentLink.prototype, "raw", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
91
|
+
(0, class_transformer_1.Expose)({ name: "updated_at" }),
|
|
92
|
+
(0, class_transformer_1.Transform)(function (_a) {
|
|
93
|
+
var value = _a.value;
|
|
94
|
+
return new Date(value);
|
|
95
|
+
}, { toClassOnly: true }),
|
|
96
|
+
__metadata("design:type", Date)
|
|
97
|
+
], PaymentLink.prototype, "updatedAt", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, utils_1.SpeakeasyMetadata)(),
|
|
100
|
+
(0, class_transformer_1.Expose)({ name: "url" }),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], PaymentLink.prototype, "url", void 0);
|
|
103
|
+
return PaymentLink;
|
|
104
|
+
}(utils_1.SpeakeasyBase));
|
|
105
|
+
exports.PaymentLink = PaymentLink;
|