@forteplatforms/sdk 1.0.520 → 1.0.525

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.
Files changed (33) hide show
  1. package/dist/generated/apis/ProjectsServerApi.d.ts +36 -0
  2. package/dist/generated/apis/ProjectsServerApi.js +142 -0
  3. package/dist/generated/apis/UsersServerApi.d.ts +34 -0
  4. package/dist/generated/apis/UsersServerApi.js +137 -0
  5. package/dist/generated/models/CheckoutSubscription.d.ts +67 -0
  6. package/dist/generated/models/CheckoutSubscription.js +70 -0
  7. package/dist/generated/models/CheckoutSubscriptionPreview.d.ts +71 -0
  8. package/dist/generated/models/CheckoutSubscriptionPreview.js +78 -0
  9. package/dist/generated/models/CreateCheckoutPreviewRequest.d.ts +73 -0
  10. package/dist/generated/models/CreateCheckoutPreviewRequest.js +66 -0
  11. package/dist/generated/models/CreateCheckoutPreviewResponse.d.ts +71 -0
  12. package/dist/generated/models/CreateCheckoutPreviewResponse.js +74 -0
  13. package/dist/generated/models/CreateCheckoutRequest.d.ts +79 -0
  14. package/dist/generated/models/CreateCheckoutRequest.js +68 -0
  15. package/dist/generated/models/CreateCheckoutResponse.d.ts +58 -0
  16. package/dist/generated/models/CreateCheckoutResponse.js +69 -0
  17. package/dist/generated/models/CreatePaymentRefundLineItem.d.ts +38 -0
  18. package/dist/generated/models/CreatePaymentRefundLineItem.js +53 -0
  19. package/dist/generated/models/CreatePaymentRefundRequest.d.ts +33 -0
  20. package/dist/generated/models/CreatePaymentRefundRequest.js +52 -0
  21. package/dist/generated/models/ForteApiException.d.ts +8 -0
  22. package/dist/generated/models/ForteApiException.js +8 -0
  23. package/dist/generated/models/PaymentLineItem.d.ts +12 -0
  24. package/dist/generated/models/PaymentLineItem.js +4 -0
  25. package/dist/generated/models/PaymentObject.d.ts +18 -0
  26. package/dist/generated/models/PaymentObject.js +8 -0
  27. package/dist/generated/models/RefundLineItem.d.ts +50 -0
  28. package/dist/generated/models/RefundLineItem.js +61 -0
  29. package/dist/generated/models/RefundRecord.d.ts +13 -0
  30. package/dist/generated/models/RefundRecord.js +5 -0
  31. package/dist/generated/models/index.d.ts +9 -0
  32. package/dist/generated/models/index.js +9 -0
  33. package/package.json +1 -1
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CheckoutSubscriptionPreviewIntervalType = void 0;
17
+ exports.instanceOfCheckoutSubscriptionPreview = instanceOfCheckoutSubscriptionPreview;
18
+ exports.CheckoutSubscriptionPreviewFromJSON = CheckoutSubscriptionPreviewFromJSON;
19
+ exports.CheckoutSubscriptionPreviewFromJSONTyped = CheckoutSubscriptionPreviewFromJSONTyped;
20
+ exports.CheckoutSubscriptionPreviewToJSON = CheckoutSubscriptionPreviewToJSON;
21
+ exports.CheckoutSubscriptionPreviewToJSONTyped = CheckoutSubscriptionPreviewToJSONTyped;
22
+ var PaymentLineItem_1 = require("./PaymentLineItem");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.CheckoutSubscriptionPreviewIntervalType = {
27
+ MONTH: 'MONTH',
28
+ YEAR: 'YEAR'
29
+ };
30
+ /**
31
+ * Check if a given object implements the CheckoutSubscriptionPreview interface.
32
+ */
33
+ function instanceOfCheckoutSubscriptionPreview(value) {
34
+ if (!('interval' in value) || value['interval'] === undefined)
35
+ return false;
36
+ if (!('subtotalCents' in value) || value['subtotalCents'] === undefined)
37
+ return false;
38
+ if (!('amountCents' in value) || value['amountCents'] === undefined)
39
+ return false;
40
+ if (!('lineItems' in value) || value['lineItems'] === undefined)
41
+ return false;
42
+ if (!('nextRenewalAt' in value) || value['nextRenewalAt'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function CheckoutSubscriptionPreviewFromJSON(json) {
47
+ return CheckoutSubscriptionPreviewFromJSONTyped(json, false);
48
+ }
49
+ function CheckoutSubscriptionPreviewFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'interval': json['interval'],
55
+ 'subtotalCents': json['subtotalCents'],
56
+ 'taxCents': json['taxCents'] == null ? undefined : json['taxCents'],
57
+ 'amountCents': json['amountCents'],
58
+ 'lineItems': (json['lineItems'].map(PaymentLineItem_1.PaymentLineItemFromJSON)),
59
+ 'nextRenewalAt': (new Date(json['nextRenewalAt'])),
60
+ };
61
+ }
62
+ function CheckoutSubscriptionPreviewToJSON(json) {
63
+ return CheckoutSubscriptionPreviewToJSONTyped(json, false);
64
+ }
65
+ function CheckoutSubscriptionPreviewToJSONTyped(value, ignoreDiscriminator) {
66
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'interval': value['interval'],
72
+ 'subtotalCents': value['subtotalCents'],
73
+ 'taxCents': value['taxCents'],
74
+ 'amountCents': value['amountCents'],
75
+ 'lineItems': (value['lineItems'].map(PaymentLineItem_1.PaymentLineItemToJSON)),
76
+ 'nextRenewalAt': value['nextRenewalAt'].toISOString(),
77
+ };
78
+ }
@@ -0,0 +1,73 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CheckoutSubscription } from './CheckoutSubscription';
13
+ import type { PaymentAddress } from './PaymentAddress';
14
+ import type { PaymentLineItem } from './PaymentLineItem';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface CreateCheckoutPreviewRequest
19
+ */
20
+ export interface CreateCheckoutPreviewRequest {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof CreateCheckoutPreviewRequest
25
+ */
26
+ currency: string;
27
+ /**
28
+ *
29
+ * @type {Array<PaymentLineItem>}
30
+ * @memberof CreateCheckoutPreviewRequest
31
+ */
32
+ lineItems?: Array<PaymentLineItem> | null;
33
+ /**
34
+ *
35
+ * @type {Array<CheckoutSubscription>}
36
+ * @memberof CreateCheckoutPreviewRequest
37
+ */
38
+ subscriptions?: Array<CheckoutSubscription> | null;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof CreateCheckoutPreviewRequest
43
+ */
44
+ description?: string | null;
45
+ /**
46
+ *
47
+ * @type {{ [key: string]: string; }}
48
+ * @memberof CreateCheckoutPreviewRequest
49
+ */
50
+ metadata?: {
51
+ [key: string]: string;
52
+ };
53
+ /**
54
+ *
55
+ * @type {PaymentAddress}
56
+ * @memberof CreateCheckoutPreviewRequest
57
+ */
58
+ customerAddress?: PaymentAddress;
59
+ /**
60
+ *
61
+ * @type {PaymentAddress}
62
+ * @memberof CreateCheckoutPreviewRequest
63
+ */
64
+ shippingAddress?: PaymentAddress;
65
+ }
66
+ /**
67
+ * Check if a given object implements the CreateCheckoutPreviewRequest interface.
68
+ */
69
+ export declare function instanceOfCreateCheckoutPreviewRequest(value: object): value is CreateCheckoutPreviewRequest;
70
+ export declare function CreateCheckoutPreviewRequestFromJSON(json: any): CreateCheckoutPreviewRequest;
71
+ export declare function CreateCheckoutPreviewRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCheckoutPreviewRequest;
72
+ export declare function CreateCheckoutPreviewRequestToJSON(json: any): CreateCheckoutPreviewRequest;
73
+ export declare function CreateCheckoutPreviewRequestToJSONTyped(value?: CreateCheckoutPreviewRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCreateCheckoutPreviewRequest = instanceOfCreateCheckoutPreviewRequest;
17
+ exports.CreateCheckoutPreviewRequestFromJSON = CreateCheckoutPreviewRequestFromJSON;
18
+ exports.CreateCheckoutPreviewRequestFromJSONTyped = CreateCheckoutPreviewRequestFromJSONTyped;
19
+ exports.CreateCheckoutPreviewRequestToJSON = CreateCheckoutPreviewRequestToJSON;
20
+ exports.CreateCheckoutPreviewRequestToJSONTyped = CreateCheckoutPreviewRequestToJSONTyped;
21
+ var CheckoutSubscription_1 = require("./CheckoutSubscription");
22
+ var PaymentAddress_1 = require("./PaymentAddress");
23
+ var PaymentLineItem_1 = require("./PaymentLineItem");
24
+ /**
25
+ * Check if a given object implements the CreateCheckoutPreviewRequest interface.
26
+ */
27
+ function instanceOfCreateCheckoutPreviewRequest(value) {
28
+ if (!('currency' in value) || value['currency'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function CreateCheckoutPreviewRequestFromJSON(json) {
33
+ return CreateCheckoutPreviewRequestFromJSONTyped(json, false);
34
+ }
35
+ function CreateCheckoutPreviewRequestFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'currency': json['currency'],
41
+ 'lineItems': json['lineItems'] == null ? undefined : (json['lineItems'].map(PaymentLineItem_1.PaymentLineItemFromJSON)),
42
+ 'subscriptions': json['subscriptions'] == null ? undefined : (json['subscriptions'].map(CheckoutSubscription_1.CheckoutSubscriptionFromJSON)),
43
+ 'description': json['description'] == null ? undefined : json['description'],
44
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
45
+ 'customerAddress': json['customerAddress'] == null ? undefined : (0, PaymentAddress_1.PaymentAddressFromJSON)(json['customerAddress']),
46
+ 'shippingAddress': json['shippingAddress'] == null ? undefined : (0, PaymentAddress_1.PaymentAddressFromJSON)(json['shippingAddress']),
47
+ };
48
+ }
49
+ function CreateCheckoutPreviewRequestToJSON(json) {
50
+ return CreateCheckoutPreviewRequestToJSONTyped(json, false);
51
+ }
52
+ function CreateCheckoutPreviewRequestToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'currency': value['currency'],
59
+ 'lineItems': value['lineItems'] == null ? undefined : (value['lineItems'].map(PaymentLineItem_1.PaymentLineItemToJSON)),
60
+ 'subscriptions': value['subscriptions'] == null ? undefined : (value['subscriptions'].map(CheckoutSubscription_1.CheckoutSubscriptionToJSON)),
61
+ 'description': value['description'],
62
+ 'metadata': value['metadata'],
63
+ 'customerAddress': (0, PaymentAddress_1.PaymentAddressToJSON)(value['customerAddress']),
64
+ 'shippingAddress': (0, PaymentAddress_1.PaymentAddressToJSON)(value['shippingAddress']),
65
+ };
66
+ }
@@ -0,0 +1,71 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PaymentAddress } from './PaymentAddress';
13
+ import type { PaymentLineItem } from './PaymentLineItem';
14
+ import type { CheckoutSubscriptionPreview } from './CheckoutSubscriptionPreview';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface CreateCheckoutPreviewResponse
19
+ */
20
+ export interface CreateCheckoutPreviewResponse {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof CreateCheckoutPreviewResponse
25
+ */
26
+ currency: string;
27
+ /**
28
+ *
29
+ * @type {number}
30
+ * @memberof CreateCheckoutPreviewResponse
31
+ */
32
+ subtotalCents: number;
33
+ /**
34
+ *
35
+ * @type {number}
36
+ * @memberof CreateCheckoutPreviewResponse
37
+ */
38
+ taxCents?: number | null;
39
+ /**
40
+ *
41
+ * @type {number}
42
+ * @memberof CreateCheckoutPreviewResponse
43
+ */
44
+ amountCents: number;
45
+ /**
46
+ *
47
+ * @type {Array<PaymentLineItem>}
48
+ * @memberof CreateCheckoutPreviewResponse
49
+ */
50
+ lineItems: Array<PaymentLineItem>;
51
+ /**
52
+ *
53
+ * @type {PaymentAddress}
54
+ * @memberof CreateCheckoutPreviewResponse
55
+ */
56
+ customerAddress?: PaymentAddress;
57
+ /**
58
+ *
59
+ * @type {Array<CheckoutSubscriptionPreview>}
60
+ * @memberof CreateCheckoutPreviewResponse
61
+ */
62
+ subscriptions: Array<CheckoutSubscriptionPreview>;
63
+ }
64
+ /**
65
+ * Check if a given object implements the CreateCheckoutPreviewResponse interface.
66
+ */
67
+ export declare function instanceOfCreateCheckoutPreviewResponse(value: object): value is CreateCheckoutPreviewResponse;
68
+ export declare function CreateCheckoutPreviewResponseFromJSON(json: any): CreateCheckoutPreviewResponse;
69
+ export declare function CreateCheckoutPreviewResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCheckoutPreviewResponse;
70
+ export declare function CreateCheckoutPreviewResponseToJSON(json: any): CreateCheckoutPreviewResponse;
71
+ export declare function CreateCheckoutPreviewResponseToJSONTyped(value?: CreateCheckoutPreviewResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCreateCheckoutPreviewResponse = instanceOfCreateCheckoutPreviewResponse;
17
+ exports.CreateCheckoutPreviewResponseFromJSON = CreateCheckoutPreviewResponseFromJSON;
18
+ exports.CreateCheckoutPreviewResponseFromJSONTyped = CreateCheckoutPreviewResponseFromJSONTyped;
19
+ exports.CreateCheckoutPreviewResponseToJSON = CreateCheckoutPreviewResponseToJSON;
20
+ exports.CreateCheckoutPreviewResponseToJSONTyped = CreateCheckoutPreviewResponseToJSONTyped;
21
+ var PaymentAddress_1 = require("./PaymentAddress");
22
+ var PaymentLineItem_1 = require("./PaymentLineItem");
23
+ var CheckoutSubscriptionPreview_1 = require("./CheckoutSubscriptionPreview");
24
+ /**
25
+ * Check if a given object implements the CreateCheckoutPreviewResponse interface.
26
+ */
27
+ function instanceOfCreateCheckoutPreviewResponse(value) {
28
+ if (!('currency' in value) || value['currency'] === undefined)
29
+ return false;
30
+ if (!('subtotalCents' in value) || value['subtotalCents'] === undefined)
31
+ return false;
32
+ if (!('amountCents' in value) || value['amountCents'] === undefined)
33
+ return false;
34
+ if (!('lineItems' in value) || value['lineItems'] === undefined)
35
+ return false;
36
+ if (!('subscriptions' in value) || value['subscriptions'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function CreateCheckoutPreviewResponseFromJSON(json) {
41
+ return CreateCheckoutPreviewResponseFromJSONTyped(json, false);
42
+ }
43
+ function CreateCheckoutPreviewResponseFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'currency': json['currency'],
49
+ 'subtotalCents': json['subtotalCents'],
50
+ 'taxCents': json['taxCents'] == null ? undefined : json['taxCents'],
51
+ 'amountCents': json['amountCents'],
52
+ 'lineItems': (json['lineItems'].map(PaymentLineItem_1.PaymentLineItemFromJSON)),
53
+ 'customerAddress': json['customerAddress'] == null ? undefined : (0, PaymentAddress_1.PaymentAddressFromJSON)(json['customerAddress']),
54
+ 'subscriptions': (json['subscriptions'].map(CheckoutSubscriptionPreview_1.CheckoutSubscriptionPreviewFromJSON)),
55
+ };
56
+ }
57
+ function CreateCheckoutPreviewResponseToJSON(json) {
58
+ return CreateCheckoutPreviewResponseToJSONTyped(json, false);
59
+ }
60
+ function CreateCheckoutPreviewResponseToJSONTyped(value, ignoreDiscriminator) {
61
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'currency': value['currency'],
67
+ 'subtotalCents': value['subtotalCents'],
68
+ 'taxCents': value['taxCents'],
69
+ 'amountCents': value['amountCents'],
70
+ 'lineItems': (value['lineItems'].map(PaymentLineItem_1.PaymentLineItemToJSON)),
71
+ 'customerAddress': (0, PaymentAddress_1.PaymentAddressToJSON)(value['customerAddress']),
72
+ 'subscriptions': (value['subscriptions'].map(CheckoutSubscriptionPreview_1.CheckoutSubscriptionPreviewToJSON)),
73
+ };
74
+ }
@@ -0,0 +1,79 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CheckoutSubscription } from './CheckoutSubscription';
13
+ import type { PaymentAddress } from './PaymentAddress';
14
+ import type { PaymentLineItem } from './PaymentLineItem';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface CreateCheckoutRequest
19
+ */
20
+ export interface CreateCheckoutRequest {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof CreateCheckoutRequest
25
+ */
26
+ currency: string;
27
+ /**
28
+ *
29
+ * @type {Array<PaymentLineItem>}
30
+ * @memberof CreateCheckoutRequest
31
+ */
32
+ lineItems?: Array<PaymentLineItem> | null;
33
+ /**
34
+ *
35
+ * @type {Array<CheckoutSubscription>}
36
+ * @memberof CreateCheckoutRequest
37
+ */
38
+ subscriptions?: Array<CheckoutSubscription> | null;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof CreateCheckoutRequest
43
+ */
44
+ description?: string | null;
45
+ /**
46
+ *
47
+ * @type {{ [key: string]: string; }}
48
+ * @memberof CreateCheckoutRequest
49
+ */
50
+ metadata?: {
51
+ [key: string]: string;
52
+ };
53
+ /**
54
+ *
55
+ * @type {PaymentAddress}
56
+ * @memberof CreateCheckoutRequest
57
+ */
58
+ customerAddress?: PaymentAddress;
59
+ /**
60
+ *
61
+ * @type {PaymentAddress}
62
+ * @memberof CreateCheckoutRequest
63
+ */
64
+ shippingAddress?: PaymentAddress;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof CreateCheckoutRequest
69
+ */
70
+ paymentMethodId?: string | null;
71
+ }
72
+ /**
73
+ * Check if a given object implements the CreateCheckoutRequest interface.
74
+ */
75
+ export declare function instanceOfCreateCheckoutRequest(value: object): value is CreateCheckoutRequest;
76
+ export declare function CreateCheckoutRequestFromJSON(json: any): CreateCheckoutRequest;
77
+ export declare function CreateCheckoutRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCheckoutRequest;
78
+ export declare function CreateCheckoutRequestToJSON(json: any): CreateCheckoutRequest;
79
+ export declare function CreateCheckoutRequestToJSONTyped(value?: CreateCheckoutRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCreateCheckoutRequest = instanceOfCreateCheckoutRequest;
17
+ exports.CreateCheckoutRequestFromJSON = CreateCheckoutRequestFromJSON;
18
+ exports.CreateCheckoutRequestFromJSONTyped = CreateCheckoutRequestFromJSONTyped;
19
+ exports.CreateCheckoutRequestToJSON = CreateCheckoutRequestToJSON;
20
+ exports.CreateCheckoutRequestToJSONTyped = CreateCheckoutRequestToJSONTyped;
21
+ var CheckoutSubscription_1 = require("./CheckoutSubscription");
22
+ var PaymentAddress_1 = require("./PaymentAddress");
23
+ var PaymentLineItem_1 = require("./PaymentLineItem");
24
+ /**
25
+ * Check if a given object implements the CreateCheckoutRequest interface.
26
+ */
27
+ function instanceOfCreateCheckoutRequest(value) {
28
+ if (!('currency' in value) || value['currency'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function CreateCheckoutRequestFromJSON(json) {
33
+ return CreateCheckoutRequestFromJSONTyped(json, false);
34
+ }
35
+ function CreateCheckoutRequestFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'currency': json['currency'],
41
+ 'lineItems': json['lineItems'] == null ? undefined : (json['lineItems'].map(PaymentLineItem_1.PaymentLineItemFromJSON)),
42
+ 'subscriptions': json['subscriptions'] == null ? undefined : (json['subscriptions'].map(CheckoutSubscription_1.CheckoutSubscriptionFromJSON)),
43
+ 'description': json['description'] == null ? undefined : json['description'],
44
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
45
+ 'customerAddress': json['customerAddress'] == null ? undefined : (0, PaymentAddress_1.PaymentAddressFromJSON)(json['customerAddress']),
46
+ 'shippingAddress': json['shippingAddress'] == null ? undefined : (0, PaymentAddress_1.PaymentAddressFromJSON)(json['shippingAddress']),
47
+ 'paymentMethodId': json['paymentMethodId'] == null ? undefined : json['paymentMethodId'],
48
+ };
49
+ }
50
+ function CreateCheckoutRequestToJSON(json) {
51
+ return CreateCheckoutRequestToJSONTyped(json, false);
52
+ }
53
+ function CreateCheckoutRequestToJSONTyped(value, ignoreDiscriminator) {
54
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'currency': value['currency'],
60
+ 'lineItems': value['lineItems'] == null ? undefined : (value['lineItems'].map(PaymentLineItem_1.PaymentLineItemToJSON)),
61
+ 'subscriptions': value['subscriptions'] == null ? undefined : (value['subscriptions'].map(CheckoutSubscription_1.CheckoutSubscriptionToJSON)),
62
+ 'description': value['description'],
63
+ 'metadata': value['metadata'],
64
+ 'customerAddress': (0, PaymentAddress_1.PaymentAddressToJSON)(value['customerAddress']),
65
+ 'shippingAddress': (0, PaymentAddress_1.PaymentAddressToJSON)(value['shippingAddress']),
66
+ 'paymentMethodId': value['paymentMethodId'],
67
+ };
68
+ }
@@ -0,0 +1,58 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SubscriptionObject } from './SubscriptionObject';
13
+ import type { PaymentObject } from './PaymentObject';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CreateCheckoutResponse
18
+ */
19
+ export interface CreateCheckoutResponse {
20
+ /**
21
+ *
22
+ * @type {PaymentObject}
23
+ * @memberof CreateCheckoutResponse
24
+ */
25
+ payment: PaymentObject;
26
+ /**
27
+ *
28
+ * @type {Array<SubscriptionObject>}
29
+ * @memberof CreateCheckoutResponse
30
+ */
31
+ subscriptions: Array<SubscriptionObject>;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof CreateCheckoutResponse
36
+ */
37
+ stripeClientSecret: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof CreateCheckoutResponse
42
+ */
43
+ stripePublishableKey: string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof CreateCheckoutResponse
48
+ */
49
+ stripeConnectedAccountId: string;
50
+ }
51
+ /**
52
+ * Check if a given object implements the CreateCheckoutResponse interface.
53
+ */
54
+ export declare function instanceOfCreateCheckoutResponse(value: object): value is CreateCheckoutResponse;
55
+ export declare function CreateCheckoutResponseFromJSON(json: any): CreateCheckoutResponse;
56
+ export declare function CreateCheckoutResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateCheckoutResponse;
57
+ export declare function CreateCheckoutResponseToJSON(json: any): CreateCheckoutResponse;
58
+ export declare function CreateCheckoutResponseToJSONTyped(value?: CreateCheckoutResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * OpenAPI definition
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: v0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCreateCheckoutResponse = instanceOfCreateCheckoutResponse;
17
+ exports.CreateCheckoutResponseFromJSON = CreateCheckoutResponseFromJSON;
18
+ exports.CreateCheckoutResponseFromJSONTyped = CreateCheckoutResponseFromJSONTyped;
19
+ exports.CreateCheckoutResponseToJSON = CreateCheckoutResponseToJSON;
20
+ exports.CreateCheckoutResponseToJSONTyped = CreateCheckoutResponseToJSONTyped;
21
+ var SubscriptionObject_1 = require("./SubscriptionObject");
22
+ var PaymentObject_1 = require("./PaymentObject");
23
+ /**
24
+ * Check if a given object implements the CreateCheckoutResponse interface.
25
+ */
26
+ function instanceOfCreateCheckoutResponse(value) {
27
+ if (!('payment' in value) || value['payment'] === undefined)
28
+ return false;
29
+ if (!('subscriptions' in value) || value['subscriptions'] === undefined)
30
+ return false;
31
+ if (!('stripeClientSecret' in value) || value['stripeClientSecret'] === undefined)
32
+ return false;
33
+ if (!('stripePublishableKey' in value) || value['stripePublishableKey'] === undefined)
34
+ return false;
35
+ if (!('stripeConnectedAccountId' in value) || value['stripeConnectedAccountId'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function CreateCheckoutResponseFromJSON(json) {
40
+ return CreateCheckoutResponseFromJSONTyped(json, false);
41
+ }
42
+ function CreateCheckoutResponseFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'payment': (0, PaymentObject_1.PaymentObjectFromJSON)(json['payment']),
48
+ 'subscriptions': (json['subscriptions'].map(SubscriptionObject_1.SubscriptionObjectFromJSON)),
49
+ 'stripeClientSecret': json['stripeClientSecret'],
50
+ 'stripePublishableKey': json['stripePublishableKey'],
51
+ 'stripeConnectedAccountId': json['stripeConnectedAccountId'],
52
+ };
53
+ }
54
+ function CreateCheckoutResponseToJSON(json) {
55
+ return CreateCheckoutResponseToJSONTyped(json, false);
56
+ }
57
+ function CreateCheckoutResponseToJSONTyped(value, ignoreDiscriminator) {
58
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'payment': (0, PaymentObject_1.PaymentObjectToJSON)(value['payment']),
64
+ 'subscriptions': (value['subscriptions'].map(SubscriptionObject_1.SubscriptionObjectToJSON)),
65
+ 'stripeClientSecret': value['stripeClientSecret'],
66
+ 'stripePublishableKey': value['stripePublishableKey'],
67
+ 'stripeConnectedAccountId': value['stripeConnectedAccountId'],
68
+ };
69
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * OpenAPI definition
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: v0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreatePaymentRefundLineItem
16
+ */
17
+ export interface CreatePaymentRefundLineItem {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreatePaymentRefundLineItem
22
+ */
23
+ lineItemId: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof CreatePaymentRefundLineItem
28
+ */
29
+ amountCents?: number | null;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CreatePaymentRefundLineItem interface.
33
+ */
34
+ export declare function instanceOfCreatePaymentRefundLineItem(value: object): value is CreatePaymentRefundLineItem;
35
+ export declare function CreatePaymentRefundLineItemFromJSON(json: any): CreatePaymentRefundLineItem;
36
+ export declare function CreatePaymentRefundLineItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePaymentRefundLineItem;
37
+ export declare function CreatePaymentRefundLineItemToJSON(json: any): CreatePaymentRefundLineItem;
38
+ export declare function CreatePaymentRefundLineItemToJSONTyped(value?: CreatePaymentRefundLineItem | null, ignoreDiscriminator?: boolean): any;