@thera-hr/api-sdk 0.0.1-prerelease3044-dev-3 → 0.0.1-prerelease3045-dev-3
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/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
- package/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
- package/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
- package/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.d.ts +29 -0
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +117 -1
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionRequest.d.ts +11 -0
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionRequest.js +5 -0
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionResponse.d.ts +7 -0
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentStatusResponse.d.ts +13 -0
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentStatusResponse.js +5 -0
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +3 -0
- package/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.js +3 -0
- package/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
- package/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
- package/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
- package/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -11
- package/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/aiprise/resources/aipriseWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/dev/resources/dev/client/Client.js +1 -1
- package/dist/api/resources/api/resources/external/resources/externalApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/services/resources/file/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/accounting/resources/accountingApi/client/Client.js +4 -4
- package/dist/api/resources/api/resources/thera/resources/bank/resources/bankApi/client/Client.js +33 -33
- package/dist/api/resources/api/resources/thera/resources/bridge/resources/bridgeApi/client/Client.js +24 -24
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyApi/client/Client.js +18 -18
- package/dist/api/resources/api/resources/thera/resources/company/resources/companyW2PayrollApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/contractor/resources/contractorApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementApi/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/disbursement/resources/disbursementWebhookApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/document/resources/documentApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/email/resources/emailApi/client/Client.js +2 -2
- package/dist/api/resources/api/resources/thera/resources/employment/resources/employmentApi/client/Client.js +5 -5
- package/dist/api/resources/api/resources/thera/resources/eor/resources/eorTrackerApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.d.ts +29 -0
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.js +117 -1
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionRequest.d.ts +11 -0
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionRequest.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionResponse.d.ts +7 -0
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentStatusResponse.d.ts +13 -0
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentStatusResponse.js +5 -0
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +3 -0
- package/dist/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.js +3 -0
- package/dist/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.js +7 -7
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/offcycleApi/client/Client.js +1 -1
- package/dist/api/resources/api/resources/thera/resources/payroll/resources/oncycleApi/client/Client.js +3 -3
- package/dist/api/resources/api/resources/thera/resources/timeoff/resources/timeoffApi/client/Client.js +14 -14
- package/dist/api/resources/api/resources/thera/resources/timetracking/resources/timetrackingApi/client/Client.js +9 -9
- package/dist/api/resources/api/resources/thera/resources/tp/resources/tpApi/client/Client.js +11 -11
- package/dist/api/resources/api/resources/thera/resources/user/resources/userApi/client/Client.js +3 -3
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionRequest.d.ts +17 -0
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionRequest.js +48 -0
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionResponse.d.ts +13 -0
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionResponse.js +44 -0
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentStatusResponse.d.ts +19 -0
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentStatusResponse.js +50 -0
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +3 -0
- package/dist/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +135 -0
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionRequest.d.ts +17 -0
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionRequest.js +48 -0
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionResponse.d.ts +13 -0
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/CheckoutSessionResponse.js +44 -0
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentStatusResponse.d.ts +19 -0
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/PaymentStatusResponse.js +50 -0
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.d.ts +3 -0
- package/serialization/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/types/index.js +3 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -16,3 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./IncorporationSignupRequest"), exports);
|
|
18
18
|
__exportStar(require("./IncorporationSignupResponse"), exports);
|
|
19
|
+
__exportStar(require("./CheckoutSessionRequest"), exports);
|
|
20
|
+
__exportStar(require("./CheckoutSessionResponse"), exports);
|
|
21
|
+
__exportStar(require("./PaymentStatusResponse"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.1-
|
|
1
|
+
export declare const SDK_VERSION = "0.0.1-prerelease3045-dev-3";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -7974,6 +7974,141 @@ await client.api.thera.incorporation.incorporationApi.incorporationSignup({
|
|
|
7974
7974
|
</dl>
|
|
7975
7975
|
</details>
|
|
7976
7976
|
|
|
7977
|
+
<details><summary><code>client.api.thera.incorporation.incorporationApi.<a href="/src/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.ts">createCheckoutSession</a>({ ...params }) -> TheraApi.CheckoutSessionResponse</code></summary>
|
|
7978
|
+
<dl>
|
|
7979
|
+
<dd>
|
|
7980
|
+
|
|
7981
|
+
#### 📝 Description
|
|
7982
|
+
|
|
7983
|
+
<dl>
|
|
7984
|
+
<dd>
|
|
7985
|
+
|
|
7986
|
+
<dl>
|
|
7987
|
+
<dd>
|
|
7988
|
+
|
|
7989
|
+
Create a Stripe checkout session for payment
|
|
7990
|
+
|
|
7991
|
+
</dd>
|
|
7992
|
+
</dl>
|
|
7993
|
+
</dd>
|
|
7994
|
+
</dl>
|
|
7995
|
+
|
|
7996
|
+
#### 🔌 Usage
|
|
7997
|
+
|
|
7998
|
+
<dl>
|
|
7999
|
+
<dd>
|
|
8000
|
+
|
|
8001
|
+
<dl>
|
|
8002
|
+
<dd>
|
|
8003
|
+
|
|
8004
|
+
```typescript
|
|
8005
|
+
await client.api.thera.incorporation.incorporationApi.createCheckoutSession({
|
|
8006
|
+
amount: 1.1,
|
|
8007
|
+
productName: "string",
|
|
8008
|
+
currency: "string",
|
|
8009
|
+
successUrl: "string",
|
|
8010
|
+
cancelUrl: "string",
|
|
8011
|
+
metadata: {
|
|
8012
|
+
string: "string",
|
|
8013
|
+
},
|
|
8014
|
+
});
|
|
8015
|
+
```
|
|
8016
|
+
|
|
8017
|
+
</dd>
|
|
8018
|
+
</dl>
|
|
8019
|
+
</dd>
|
|
8020
|
+
</dl>
|
|
8021
|
+
|
|
8022
|
+
#### ⚙️ Parameters
|
|
8023
|
+
|
|
8024
|
+
<dl>
|
|
8025
|
+
<dd>
|
|
8026
|
+
|
|
8027
|
+
<dl>
|
|
8028
|
+
<dd>
|
|
8029
|
+
|
|
8030
|
+
**request:** `TheraApi.CheckoutSessionRequest`
|
|
8031
|
+
|
|
8032
|
+
</dd>
|
|
8033
|
+
</dl>
|
|
8034
|
+
|
|
8035
|
+
<dl>
|
|
8036
|
+
<dd>
|
|
8037
|
+
|
|
8038
|
+
**requestOptions:** `IncorporationApi.RequestOptions`
|
|
8039
|
+
|
|
8040
|
+
</dd>
|
|
8041
|
+
</dl>
|
|
8042
|
+
</dd>
|
|
8043
|
+
</dl>
|
|
8044
|
+
|
|
8045
|
+
</dd>
|
|
8046
|
+
</dl>
|
|
8047
|
+
</details>
|
|
8048
|
+
|
|
8049
|
+
<details><summary><code>client.api.thera.incorporation.incorporationApi.<a href="/src/api/resources/api/resources/thera/resources/incorporation/resources/incorporationApi/client/Client.ts">checkPaymentStatus</a>(sessionId) -> TheraApi.PaymentStatusResponse</code></summary>
|
|
8050
|
+
<dl>
|
|
8051
|
+
<dd>
|
|
8052
|
+
|
|
8053
|
+
#### 📝 Description
|
|
8054
|
+
|
|
8055
|
+
<dl>
|
|
8056
|
+
<dd>
|
|
8057
|
+
|
|
8058
|
+
<dl>
|
|
8059
|
+
<dd>
|
|
8060
|
+
|
|
8061
|
+
Check the status of a Stripe payment session
|
|
8062
|
+
|
|
8063
|
+
</dd>
|
|
8064
|
+
</dl>
|
|
8065
|
+
</dd>
|
|
8066
|
+
</dl>
|
|
8067
|
+
|
|
8068
|
+
#### 🔌 Usage
|
|
8069
|
+
|
|
8070
|
+
<dl>
|
|
8071
|
+
<dd>
|
|
8072
|
+
|
|
8073
|
+
<dl>
|
|
8074
|
+
<dd>
|
|
8075
|
+
|
|
8076
|
+
```typescript
|
|
8077
|
+
await client.api.thera.incorporation.incorporationApi.checkPaymentStatus("string");
|
|
8078
|
+
```
|
|
8079
|
+
|
|
8080
|
+
</dd>
|
|
8081
|
+
</dl>
|
|
8082
|
+
</dd>
|
|
8083
|
+
</dl>
|
|
8084
|
+
|
|
8085
|
+
#### ⚙️ Parameters
|
|
8086
|
+
|
|
8087
|
+
<dl>
|
|
8088
|
+
<dd>
|
|
8089
|
+
|
|
8090
|
+
<dl>
|
|
8091
|
+
<dd>
|
|
8092
|
+
|
|
8093
|
+
**sessionId:** `string`
|
|
8094
|
+
|
|
8095
|
+
</dd>
|
|
8096
|
+
</dl>
|
|
8097
|
+
|
|
8098
|
+
<dl>
|
|
8099
|
+
<dd>
|
|
8100
|
+
|
|
8101
|
+
**requestOptions:** `IncorporationApi.RequestOptions`
|
|
8102
|
+
|
|
8103
|
+
</dd>
|
|
8104
|
+
</dl>
|
|
8105
|
+
</dd>
|
|
8106
|
+
</dl>
|
|
8107
|
+
|
|
8108
|
+
</dd>
|
|
8109
|
+
</dl>
|
|
8110
|
+
</details>
|
|
8111
|
+
|
|
7977
8112
|
## Miscellaneous API
|
|
7978
8113
|
|
|
7979
8114
|
<details><summary><code>client.api.thera.misc.misc.<a href="/src/api/resources/api/resources/thera/resources/misc/resources/misc/client/Client.ts">regularCron</a>({ ...params }) -> TheraApi.DailyCronResponse</code></summary>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../../index";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
export declare const CheckoutSessionRequest: core.serialization.ObjectSchema<serializers.api.thera.incorporation.CheckoutSessionRequest.Raw, TheraApi.api.thera.incorporation.CheckoutSessionRequest>;
|
|
8
|
+
export declare namespace CheckoutSessionRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
amount: number;
|
|
11
|
+
productName: string;
|
|
12
|
+
currency: string;
|
|
13
|
+
successUrl: string;
|
|
14
|
+
cancelUrl: string;
|
|
15
|
+
metadata: Record<string, string>;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CheckoutSessionRequest = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
41
|
+
exports.CheckoutSessionRequest = core.serialization.object({
|
|
42
|
+
amount: core.serialization.number(),
|
|
43
|
+
productName: core.serialization.string(),
|
|
44
|
+
currency: core.serialization.string(),
|
|
45
|
+
successUrl: core.serialization.string(),
|
|
46
|
+
cancelUrl: core.serialization.string(),
|
|
47
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
|
48
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../../index";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
export declare const CheckoutSessionResponse: core.serialization.ObjectSchema<serializers.api.thera.incorporation.CheckoutSessionResponse.Raw, TheraApi.api.thera.incorporation.CheckoutSessionResponse>;
|
|
8
|
+
export declare namespace CheckoutSessionResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
sessionId: string;
|
|
11
|
+
checkoutUrl: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.CheckoutSessionResponse = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
41
|
+
exports.CheckoutSessionResponse = core.serialization.object({
|
|
42
|
+
sessionId: core.serialization.string(),
|
|
43
|
+
checkoutUrl: core.serialization.string(),
|
|
44
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../../../../../../index";
|
|
5
|
+
import * as TheraApi from "../../../../../../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../../../../../../core";
|
|
7
|
+
export declare const PaymentStatusResponse: core.serialization.ObjectSchema<serializers.api.thera.incorporation.PaymentStatusResponse.Raw, TheraApi.api.thera.incorporation.PaymentStatusResponse>;
|
|
8
|
+
export declare namespace PaymentStatusResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
sessionId: string;
|
|
11
|
+
paymentSuccessful: boolean;
|
|
12
|
+
paymentStatus: string;
|
|
13
|
+
sessionStatus: string;
|
|
14
|
+
amountTotal?: number | null;
|
|
15
|
+
currency?: string | null;
|
|
16
|
+
paymentIntentId?: string | null;
|
|
17
|
+
customerEmail?: string | null;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.PaymentStatusResponse = void 0;
|
|
40
|
+
const core = __importStar(require("../../../../../../../../../../core"));
|
|
41
|
+
exports.PaymentStatusResponse = core.serialization.object({
|
|
42
|
+
sessionId: core.serialization.string(),
|
|
43
|
+
paymentSuccessful: core.serialization.boolean(),
|
|
44
|
+
paymentStatus: core.serialization.string(),
|
|
45
|
+
sessionStatus: core.serialization.string(),
|
|
46
|
+
amountTotal: core.serialization.number().optional(),
|
|
47
|
+
currency: core.serialization.string().optional(),
|
|
48
|
+
paymentIntentId: core.serialization.string().optional(),
|
|
49
|
+
customerEmail: core.serialization.string().optional(),
|
|
50
|
+
});
|
|
@@ -16,3 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./IncorporationSignupRequest"), exports);
|
|
18
18
|
__exportStar(require("./IncorporationSignupResponse"), exports);
|
|
19
|
+
__exportStar(require("./CheckoutSessionRequest"), exports);
|
|
20
|
+
__exportStar(require("./CheckoutSessionResponse"), exports);
|
|
21
|
+
__exportStar(require("./PaymentStatusResponse"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.1-
|
|
1
|
+
export declare const SDK_VERSION = "0.0.1-prerelease3045-dev-3";
|
package/version.js
CHANGED