@forteplatforms/sdk 1.0.527 → 1.0.535

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.
@@ -852,6 +852,11 @@ export interface ProjectsDeleteContentRequest {
852
852
  userId: string;
853
853
  contentId: string;
854
854
  }
855
+ export interface ProjectsDeletePaymentRequest {
856
+ projectId: string;
857
+ userId: string;
858
+ paymentId: string;
859
+ }
855
860
  export interface ProjectsDeletePaymentMethodRequest {
856
861
  projectId: string;
857
862
  userId: string;
@@ -2426,6 +2431,16 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
2426
2431
  /**
2427
2432
  */
2428
2433
  projectsDeleteContent(requestParameters: ProjectsDeleteContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
2434
+ /**
2435
+ * Creates request options for projectsDeletePayment without sending the request
2436
+ */
2437
+ projectsDeletePaymentRequestOpts(requestParameters: ProjectsDeletePaymentRequest): Promise<runtime.RequestOpts>;
2438
+ /**
2439
+ */
2440
+ projectsDeletePaymentRaw(requestParameters: ProjectsDeletePaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentObject>>;
2441
+ /**
2442
+ */
2443
+ projectsDeletePayment(requestParameters: ProjectsDeletePaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentObject>;
2429
2444
  /**
2430
2445
  * Creates request options for projectsDeletePaymentMethod without sending the request
2431
2446
  */
@@ -3024,6 +3039,7 @@ export declare const ListUserActionLogsActionTypeType: {
3024
3039
  readonly ALL_OTHER_SESSIONS_REVOKED: "ALL_OTHER_SESSIONS_REVOKED";
3025
3040
  readonly PAYMENT_CREATED: "PAYMENT_CREATED";
3026
3041
  readonly PAYMENT_REFUNDED: "PAYMENT_REFUNDED";
3042
+ readonly PAYMENT_CANCELLED: "PAYMENT_CANCELLED";
3027
3043
  readonly PAYMENT_METHOD_SETUP_STARTED: "PAYMENT_METHOD_SETUP_STARTED";
3028
3044
  readonly PAYMENT_METHOD_DEFAULT_CHANGED: "PAYMENT_METHOD_DEFAULT_CHANGED";
3029
3045
  readonly PAYMENT_METHOD_REMOVED: "PAYMENT_METHOD_REMOVED";
@@ -3086,6 +3102,7 @@ export declare const ListUserActionLogsNotActionTypeType: {
3086
3102
  readonly ALL_OTHER_SESSIONS_REVOKED: "ALL_OTHER_SESSIONS_REVOKED";
3087
3103
  readonly PAYMENT_CREATED: "PAYMENT_CREATED";
3088
3104
  readonly PAYMENT_REFUNDED: "PAYMENT_REFUNDED";
3105
+ readonly PAYMENT_CANCELLED: "PAYMENT_CANCELLED";
3089
3106
  readonly PAYMENT_METHOD_SETUP_STARTED: "PAYMENT_METHOD_SETUP_STARTED";
3090
3107
  readonly PAYMENT_METHOD_DEFAULT_CHANGED: "PAYMENT_METHOD_DEFAULT_CHANGED";
3091
3108
  readonly PAYMENT_METHOD_REMOVED: "PAYMENT_METHOD_REMOVED";
@@ -8912,6 +8912,74 @@ var ProjectsServerApi = /** @class */ (function (_super) {
8912
8912
  });
8913
8913
  });
8914
8914
  };
8915
+ /**
8916
+ * Creates request options for projectsDeletePayment without sending the request
8917
+ */
8918
+ ProjectsServerApi.prototype.projectsDeletePaymentRequestOpts = function (requestParameters) {
8919
+ return __awaiter(this, void 0, void 0, function () {
8920
+ var queryParameters, headerParameters, urlPath;
8921
+ return __generator(this, function (_a) {
8922
+ if (requestParameters['projectId'] == null) {
8923
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling projectsDeletePayment().');
8924
+ }
8925
+ if (requestParameters['userId'] == null) {
8926
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling projectsDeletePayment().');
8927
+ }
8928
+ if (requestParameters['paymentId'] == null) {
8929
+ throw new runtime.RequiredError('paymentId', 'Required parameter "paymentId" was null or undefined when calling projectsDeletePayment().');
8930
+ }
8931
+ queryParameters = {};
8932
+ headerParameters = {};
8933
+ if (headerParameters['Idempotency-Key'] == null) {
8934
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
8935
+ }
8936
+ urlPath = "/api/v1/projects/{projectId}/users/{userId}/payments/{paymentId}";
8937
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
8938
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
8939
+ urlPath = urlPath.replace('{paymentId}', encodeURIComponent(String(requestParameters['paymentId'])));
8940
+ return [2 /*return*/, {
8941
+ path: urlPath,
8942
+ method: 'DELETE',
8943
+ headers: headerParameters,
8944
+ query: queryParameters,
8945
+ }];
8946
+ });
8947
+ });
8948
+ };
8949
+ /**
8950
+ */
8951
+ ProjectsServerApi.prototype.projectsDeletePaymentRaw = function (requestParameters, initOverrides) {
8952
+ return __awaiter(this, void 0, void 0, function () {
8953
+ var requestOptions, response;
8954
+ return __generator(this, function (_a) {
8955
+ switch (_a.label) {
8956
+ case 0: return [4 /*yield*/, this.projectsDeletePaymentRequestOpts(requestParameters)];
8957
+ case 1:
8958
+ requestOptions = _a.sent();
8959
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
8960
+ case 2:
8961
+ response = _a.sent();
8962
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaymentObject_1.PaymentObjectFromJSON)(jsonValue); })];
8963
+ }
8964
+ });
8965
+ });
8966
+ };
8967
+ /**
8968
+ */
8969
+ ProjectsServerApi.prototype.projectsDeletePayment = function (requestParameters, initOverrides) {
8970
+ return __awaiter(this, void 0, void 0, function () {
8971
+ var response;
8972
+ return __generator(this, function (_a) {
8973
+ switch (_a.label) {
8974
+ case 0: return [4 /*yield*/, this.projectsDeletePaymentRaw(requestParameters, initOverrides)];
8975
+ case 1:
8976
+ response = _a.sent();
8977
+ return [4 /*yield*/, response.value()];
8978
+ case 2: return [2 /*return*/, _a.sent()];
8979
+ }
8980
+ });
8981
+ });
8982
+ };
8915
8983
  /**
8916
8984
  * Creates request options for projectsDeletePaymentMethod without sending the request
8917
8985
  */
@@ -12127,6 +12195,7 @@ exports.ListUserActionLogsActionTypeType = {
12127
12195
  ALL_OTHER_SESSIONS_REVOKED: 'ALL_OTHER_SESSIONS_REVOKED',
12128
12196
  PAYMENT_CREATED: 'PAYMENT_CREATED',
12129
12197
  PAYMENT_REFUNDED: 'PAYMENT_REFUNDED',
12198
+ PAYMENT_CANCELLED: 'PAYMENT_CANCELLED',
12130
12199
  PAYMENT_METHOD_SETUP_STARTED: 'PAYMENT_METHOD_SETUP_STARTED',
12131
12200
  PAYMENT_METHOD_DEFAULT_CHANGED: 'PAYMENT_METHOD_DEFAULT_CHANGED',
12132
12201
  PAYMENT_METHOD_REMOVED: 'PAYMENT_METHOD_REMOVED',
@@ -12188,6 +12257,7 @@ exports.ListUserActionLogsNotActionTypeType = {
12188
12257
  ALL_OTHER_SESSIONS_REVOKED: 'ALL_OTHER_SESSIONS_REVOKED',
12189
12258
  PAYMENT_CREATED: 'PAYMENT_CREATED',
12190
12259
  PAYMENT_REFUNDED: 'PAYMENT_REFUNDED',
12260
+ PAYMENT_CANCELLED: 'PAYMENT_CANCELLED',
12191
12261
  PAYMENT_METHOD_SETUP_STARTED: 'PAYMENT_METHOD_SETUP_STARTED',
12192
12262
  PAYMENT_METHOD_DEFAULT_CHANGED: 'PAYMENT_METHOD_DEFAULT_CHANGED',
12193
12263
  PAYMENT_METHOD_REMOVED: 'PAYMENT_METHOD_REMOVED',
@@ -51,6 +51,7 @@ import { type PaginatedResponseLoginHistoryEntry } from '../models/PaginatedResp
51
51
  import { type PaginatedResponsePaymentObject } from '../models/PaginatedResponsePaymentObject';
52
52
  import { type PasswordLoginRequest } from '../models/PasswordLoginRequest';
53
53
  import { type PaymentMethodObject } from '../models/PaymentMethodObject';
54
+ import { type PaymentObject } from '../models/PaymentObject';
54
55
  import { type PendingUserInviteObject } from '../models/PendingUserInviteObject';
55
56
  import { type ReauthenticationChallengeRequest } from '../models/ReauthenticationChallengeRequest';
56
57
  import { type ReauthenticationChallengeResponse } from '../models/ReauthenticationChallengeResponse';
@@ -307,6 +308,11 @@ export interface UsersDeleteContentRequest {
307
308
  contentId: string;
308
309
  authorization?: string;
309
310
  }
311
+ export interface UsersDeletePaymentRequest {
312
+ projectId: string;
313
+ paymentId: string;
314
+ authorization?: string;
315
+ }
310
316
  export interface UsersDeletePaymentMethodRequest {
311
317
  projectId: string;
312
318
  paymentMethodId: string;
@@ -855,6 +861,16 @@ export declare class UsersServerApi extends runtime.BaseAPI {
855
861
  /**
856
862
  */
857
863
  usersDeleteContent(requestParameters: UsersDeleteContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
864
+ /**
865
+ * Creates request options for usersDeletePayment without sending the request
866
+ */
867
+ usersDeletePaymentRequestOpts(requestParameters: UsersDeletePaymentRequest): Promise<runtime.RequestOpts>;
868
+ /**
869
+ */
870
+ usersDeletePaymentRaw(requestParameters: UsersDeletePaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentObject>>;
871
+ /**
872
+ */
873
+ usersDeletePayment(requestParameters: UsersDeletePaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentObject>;
858
874
  /**
859
875
  * Creates request options for usersDeletePaymentMethod without sending the request
860
876
  */
@@ -107,6 +107,7 @@ var PaginatedResponseLoginHistoryEntry_1 = require("../models/PaginatedResponseL
107
107
  var PaginatedResponsePaymentObject_1 = require("../models/PaginatedResponsePaymentObject");
108
108
  var PasswordLoginRequest_1 = require("../models/PasswordLoginRequest");
109
109
  var PaymentMethodObject_1 = require("../models/PaymentMethodObject");
110
+ var PaymentObject_1 = require("../models/PaymentObject");
110
111
  var PendingUserInviteObject_1 = require("../models/PendingUserInviteObject");
111
112
  var ReauthenticationChallengeRequest_1 = require("../models/ReauthenticationChallengeRequest");
112
113
  var ReauthenticationChallengeResponse_1 = require("../models/ReauthenticationChallengeResponse");
@@ -3242,6 +3243,73 @@ var UsersServerApi = /** @class */ (function (_super) {
3242
3243
  });
3243
3244
  });
3244
3245
  };
3246
+ /**
3247
+ * Creates request options for usersDeletePayment without sending the request
3248
+ */
3249
+ UsersServerApi.prototype.usersDeletePaymentRequestOpts = function (requestParameters) {
3250
+ return __awaiter(this, void 0, void 0, function () {
3251
+ var queryParameters, headerParameters, urlPath;
3252
+ return __generator(this, function (_a) {
3253
+ if (requestParameters['projectId'] == null) {
3254
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling usersDeletePayment().');
3255
+ }
3256
+ if (requestParameters['paymentId'] == null) {
3257
+ throw new runtime.RequiredError('paymentId', 'Required parameter "paymentId" was null or undefined when calling usersDeletePayment().');
3258
+ }
3259
+ queryParameters = {};
3260
+ headerParameters = {};
3261
+ if (requestParameters['authorization'] != null) {
3262
+ headerParameters['Authorization'] = String(requestParameters['authorization']);
3263
+ }
3264
+ if (headerParameters['Idempotency-Key'] == null) {
3265
+ headerParameters['Idempotency-Key'] = forteIdempotencyKey();
3266
+ }
3267
+ urlPath = "/api/v1/{projectId}/users/me/payments/{paymentId}";
3268
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
3269
+ urlPath = urlPath.replace('{paymentId}', encodeURIComponent(String(requestParameters['paymentId'])));
3270
+ return [2 /*return*/, {
3271
+ path: urlPath,
3272
+ method: 'DELETE',
3273
+ headers: headerParameters,
3274
+ query: queryParameters,
3275
+ }];
3276
+ });
3277
+ });
3278
+ };
3279
+ /**
3280
+ */
3281
+ UsersServerApi.prototype.usersDeletePaymentRaw = function (requestParameters, initOverrides) {
3282
+ return __awaiter(this, void 0, void 0, function () {
3283
+ var requestOptions, response;
3284
+ return __generator(this, function (_a) {
3285
+ switch (_a.label) {
3286
+ case 0: return [4 /*yield*/, this.usersDeletePaymentRequestOpts(requestParameters)];
3287
+ case 1:
3288
+ requestOptions = _a.sent();
3289
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
3290
+ case 2:
3291
+ response = _a.sent();
3292
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaymentObject_1.PaymentObjectFromJSON)(jsonValue); })];
3293
+ }
3294
+ });
3295
+ });
3296
+ };
3297
+ /**
3298
+ */
3299
+ UsersServerApi.prototype.usersDeletePayment = function (requestParameters, initOverrides) {
3300
+ return __awaiter(this, void 0, void 0, function () {
3301
+ var response;
3302
+ return __generator(this, function (_a) {
3303
+ switch (_a.label) {
3304
+ case 0: return [4 /*yield*/, this.usersDeletePaymentRaw(requestParameters, initOverrides)];
3305
+ case 1:
3306
+ response = _a.sent();
3307
+ return [4 /*yield*/, response.value()];
3308
+ case 2: return [2 /*return*/, _a.sent()];
3309
+ }
3310
+ });
3311
+ });
3312
+ };
3245
3313
  /**
3246
3314
  * Creates request options for usersDeletePaymentMethod without sending the request
3247
3315
  */
@@ -211,6 +211,7 @@ export declare const AccountActionLogObjectActionTypeType: {
211
211
  readonly DOMAIN_TRANSFER_FAILED: "DOMAIN_TRANSFER_FAILED";
212
212
  readonly DOMAIN_CONTACT_CHANGED: "DOMAIN_CONTACT_CHANGED";
213
213
  readonly OAUTH_GRANT_CREATED: "OAUTH_GRANT_CREATED";
214
+ readonly OAUTH_GRANT_UPDATED: "OAUTH_GRANT_UPDATED";
214
215
  readonly OAUTH_GRANT_DELETED: "OAUTH_GRANT_DELETED";
215
216
  readonly SUSPICIOUS_USER_ACTIVITY_DETECTED: "SUSPICIOUS_USER_ACTIVITY_DETECTED";
216
217
  };
@@ -164,6 +164,7 @@ exports.AccountActionLogObjectActionTypeType = {
164
164
  DOMAIN_TRANSFER_FAILED: 'DOMAIN_TRANSFER_FAILED',
165
165
  DOMAIN_CONTACT_CHANGED: 'DOMAIN_CONTACT_CHANGED',
166
166
  OAUTH_GRANT_CREATED: 'OAUTH_GRANT_CREATED',
167
+ OAUTH_GRANT_UPDATED: 'OAUTH_GRANT_UPDATED',
167
168
  OAUTH_GRANT_DELETED: 'OAUTH_GRANT_DELETED',
168
169
  SUSPICIOUS_USER_ACTIVITY_DETECTED: 'SUSPICIOUS_USER_ACTIVITY_DETECTED'
169
170
  };
@@ -245,9 +245,11 @@ export declare const ForteApiExceptionErrorCodeType: {
245
245
  readonly PAYMENT_BELOW_MINIMUM: "PAYMENT_BELOW_MINIMUM";
246
246
  readonly PAYMENT_CURRENCY_INVALID: "PAYMENT_CURRENCY_INVALID";
247
247
  readonly PAYMENT_TAX_ADDRESS_INVALID: "PAYMENT_TAX_ADDRESS_INVALID";
248
+ readonly PAYMENT_TAX_ADDRESS_REQUIRED: "PAYMENT_TAX_ADDRESS_REQUIRED";
248
249
  readonly PAYMENT_TAX_CALCULATION_FAILED: "PAYMENT_TAX_CALCULATION_FAILED";
249
250
  readonly PAYMENT_METADATA_FILTER_INVALID: "PAYMENT_METADATA_FILTER_INVALID";
250
251
  readonly PAYMENT_NOT_REFUNDABLE: "PAYMENT_NOT_REFUNDABLE";
252
+ readonly PAYMENT_NOT_CANCELLABLE: "PAYMENT_NOT_CANCELLABLE";
251
253
  readonly PAYMENT_ALREADY_REFUNDED: "PAYMENT_ALREADY_REFUNDED";
252
254
  readonly PAYMENT_REFUND_IN_PROGRESS: "PAYMENT_REFUND_IN_PROGRESS";
253
255
  readonly INVALID_REFUND_AMOUNT: "INVALID_REFUND_AMOUNT";
@@ -230,9 +230,11 @@ exports.ForteApiExceptionErrorCodeType = {
230
230
  PAYMENT_BELOW_MINIMUM: 'PAYMENT_BELOW_MINIMUM',
231
231
  PAYMENT_CURRENCY_INVALID: 'PAYMENT_CURRENCY_INVALID',
232
232
  PAYMENT_TAX_ADDRESS_INVALID: 'PAYMENT_TAX_ADDRESS_INVALID',
233
+ PAYMENT_TAX_ADDRESS_REQUIRED: 'PAYMENT_TAX_ADDRESS_REQUIRED',
233
234
  PAYMENT_TAX_CALCULATION_FAILED: 'PAYMENT_TAX_CALCULATION_FAILED',
234
235
  PAYMENT_METADATA_FILTER_INVALID: 'PAYMENT_METADATA_FILTER_INVALID',
235
236
  PAYMENT_NOT_REFUNDABLE: 'PAYMENT_NOT_REFUNDABLE',
237
+ PAYMENT_NOT_CANCELLABLE: 'PAYMENT_NOT_CANCELLABLE',
236
238
  PAYMENT_ALREADY_REFUNDED: 'PAYMENT_ALREADY_REFUNDED',
237
239
  PAYMENT_REFUND_IN_PROGRESS: 'PAYMENT_REFUND_IN_PROGRESS',
238
240
  INVALID_REFUND_AMOUNT: 'INVALID_REFUND_AMOUNT',
@@ -20,7 +20,7 @@ export interface PaymentAddress {
20
20
  * @type {string}
21
21
  * @memberof PaymentAddress
22
22
  */
23
- line1: string;
23
+ line1?: string | null;
24
24
  /**
25
25
  *
26
26
  * @type {string}
@@ -32,7 +32,7 @@ export interface PaymentAddress {
32
32
  * @type {string}
33
33
  * @memberof PaymentAddress
34
34
  */
35
- city: string;
35
+ city?: string | null;
36
36
  /**
37
37
  *
38
38
  * @type {string}
@@ -44,7 +44,7 @@ export interface PaymentAddress {
44
44
  * @type {string}
45
45
  * @memberof PaymentAddress
46
46
  */
47
- postalCode: string;
47
+ postalCode?: string | null;
48
48
  /**
49
49
  *
50
50
  * @type {string}
@@ -22,12 +22,6 @@ exports.PaymentAddressToJSONTyped = PaymentAddressToJSONTyped;
22
22
  * Check if a given object implements the PaymentAddress interface.
23
23
  */
24
24
  function instanceOfPaymentAddress(value) {
25
- if (!('line1' in value) || value['line1'] === undefined)
26
- return false;
27
- if (!('city' in value) || value['city'] === undefined)
28
- return false;
29
- if (!('postalCode' in value) || value['postalCode'] === undefined)
30
- return false;
31
25
  if (!('country' in value) || value['country'] === undefined)
32
26
  return false;
33
27
  return true;
@@ -40,11 +34,11 @@ function PaymentAddressFromJSONTyped(json, ignoreDiscriminator) {
40
34
  return json;
41
35
  }
42
36
  return {
43
- 'line1': json['line1'],
37
+ 'line1': json['line1'] == null ? undefined : json['line1'],
44
38
  'line2': json['line2'] == null ? undefined : json['line2'],
45
- 'city': json['city'],
39
+ 'city': json['city'] == null ? undefined : json['city'],
46
40
  'state': json['state'] == null ? undefined : json['state'],
47
- 'postalCode': json['postalCode'],
41
+ 'postalCode': json['postalCode'] == null ? undefined : json['postalCode'],
48
42
  'country': json['country'],
49
43
  };
50
44
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { PaymentMethodType } from './PaymentMethodType';
13
+ import type { TaxCalculationStatus } from './TaxCalculationStatus';
13
14
  import type { PaymentAddress } from './PaymentAddress';
14
15
  import type { PaymentLineItem } from './PaymentLineItem';
15
16
  import type { StateHistory } from './StateHistory';
@@ -56,6 +57,12 @@ export interface PaymentObject {
56
57
  * @memberof PaymentObject
57
58
  */
58
59
  taxCents?: number | null;
60
+ /**
61
+ *
62
+ * @type {TaxCalculationStatus}
63
+ * @memberof PaymentObject
64
+ */
65
+ taxCalculationStatus?: TaxCalculationStatus | null;
59
66
  /**
60
67
  *
61
68
  * @type {number}
@@ -20,6 +20,7 @@ exports.PaymentObjectFromJSONTyped = PaymentObjectFromJSONTyped;
20
20
  exports.PaymentObjectToJSON = PaymentObjectToJSON;
21
21
  exports.PaymentObjectToJSONTyped = PaymentObjectToJSONTyped;
22
22
  var PaymentMethodType_1 = require("./PaymentMethodType");
23
+ var TaxCalculationStatus_1 = require("./TaxCalculationStatus");
23
24
  var PaymentAddress_1 = require("./PaymentAddress");
24
25
  var PaymentLineItem_1 = require("./PaymentLineItem");
25
26
  var StateHistory_1 = require("./StateHistory");
@@ -84,6 +85,7 @@ function PaymentObjectFromJSONTyped(json, ignoreDiscriminator) {
84
85
  'state': json['state'],
85
86
  'subtotalCents': json['subtotalCents'],
86
87
  'taxCents': json['taxCents'] == null ? undefined : json['taxCents'],
88
+ 'taxCalculationStatus': json['taxCalculationStatus'] == null ? undefined : (0, TaxCalculationStatus_1.TaxCalculationStatusFromJSON)(json['taxCalculationStatus']),
87
89
  'amountCents': json['amountCents'],
88
90
  'currency': json['currency'],
89
91
  'description': json['description'] == null ? undefined : json['description'],
@@ -126,6 +128,7 @@ function PaymentObjectToJSONTyped(value, ignoreDiscriminator) {
126
128
  'state': value['state'],
127
129
  'subtotalCents': value['subtotalCents'],
128
130
  'taxCents': value['taxCents'],
131
+ 'taxCalculationStatus': (0, TaxCalculationStatus_1.TaxCalculationStatusToJSON)(value['taxCalculationStatus']),
129
132
  'amountCents': value['amountCents'],
130
133
  'currency': value['currency'],
131
134
  'description': value['description'],
@@ -40,6 +40,12 @@ export interface ProjectObject {
40
40
  * @memberof ProjectObject
41
41
  */
42
42
  projectName: string;
43
+ /**
44
+ *
45
+ * @type {boolean}
46
+ * @memberof ProjectObject
47
+ */
48
+ seededDefaultProject?: boolean | null;
43
49
  /**
44
50
  *
45
51
  * @type {Array<ServiceObject>}
@@ -83,6 +83,7 @@ function ProjectObjectFromJSONTyped(json, ignoreDiscriminator) {
83
83
  'projectId': json['projectId'] == null ? undefined : json['projectId'],
84
84
  'ownerAccountId': json['ownerAccountId'],
85
85
  'projectName': json['projectName'],
86
+ 'seededDefaultProject': json['seededDefaultProject'] == null ? undefined : json['seededDefaultProject'],
86
87
  'services': (json['services'].map(ServiceObject_1.ServiceObjectFromJSON)),
87
88
  'webApps': (json['webApps'].map(WebAppObject_1.WebAppObjectFromJSON)),
88
89
  'managedDatabases': (json['managedDatabases'].map(ManagedDatabaseObject_1.ManagedDatabaseObjectFromJSON)),
@@ -123,6 +124,7 @@ function ProjectObjectToJSONTyped(value, ignoreDiscriminator) {
123
124
  'projectId': value['projectId'],
124
125
  'ownerAccountId': value['ownerAccountId'],
125
126
  'projectName': value['projectName'],
127
+ 'seededDefaultProject': value['seededDefaultProject'],
126
128
  'services': (value['services'].map(ServiceObject_1.ServiceObjectToJSON)),
127
129
  'webApps': (value['webApps'].map(WebAppObject_1.WebAppObjectToJSON)),
128
130
  'managedDatabases': (value['managedDatabases'].map(ManagedDatabaseObject_1.ManagedDatabaseObjectToJSON)),
@@ -0,0 +1,25 @@
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
+ */
16
+ export declare const TaxCalculationStatus: {
17
+ readonly CALCULATED: "CALCULATED";
18
+ readonly SKIPPED_NO_ADDRESS: "SKIPPED_NO_ADDRESS";
19
+ };
20
+ export type TaxCalculationStatus = typeof TaxCalculationStatus[keyof typeof TaxCalculationStatus];
21
+ export declare function instanceOfTaxCalculationStatus(value: any): boolean;
22
+ export declare function TaxCalculationStatusFromJSON(json: any): TaxCalculationStatus;
23
+ export declare function TaxCalculationStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaxCalculationStatus;
24
+ export declare function TaxCalculationStatusToJSON(value?: TaxCalculationStatus | null): any;
25
+ export declare function TaxCalculationStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): TaxCalculationStatus;
@@ -0,0 +1,51 @@
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.TaxCalculationStatus = void 0;
17
+ exports.instanceOfTaxCalculationStatus = instanceOfTaxCalculationStatus;
18
+ exports.TaxCalculationStatusFromJSON = TaxCalculationStatusFromJSON;
19
+ exports.TaxCalculationStatusFromJSONTyped = TaxCalculationStatusFromJSONTyped;
20
+ exports.TaxCalculationStatusToJSON = TaxCalculationStatusToJSON;
21
+ exports.TaxCalculationStatusToJSONTyped = TaxCalculationStatusToJSONTyped;
22
+ /**
23
+ *
24
+ * @export
25
+ */
26
+ exports.TaxCalculationStatus = {
27
+ CALCULATED: 'CALCULATED',
28
+ SKIPPED_NO_ADDRESS: 'SKIPPED_NO_ADDRESS'
29
+ };
30
+ function instanceOfTaxCalculationStatus(value) {
31
+ for (var key in exports.TaxCalculationStatus) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.TaxCalculationStatus, key)) {
33
+ if (exports.TaxCalculationStatus[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function TaxCalculationStatusFromJSON(json) {
41
+ return TaxCalculationStatusFromJSONTyped(json, false);
42
+ }
43
+ function TaxCalculationStatusFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function TaxCalculationStatusToJSON(value) {
47
+ return value;
48
+ }
49
+ function TaxCalculationStatusToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -106,6 +106,7 @@ export declare const UserActionLogObjectActionTypeType: {
106
106
  readonly ALL_OTHER_SESSIONS_REVOKED: "ALL_OTHER_SESSIONS_REVOKED";
107
107
  readonly PAYMENT_CREATED: "PAYMENT_CREATED";
108
108
  readonly PAYMENT_REFUNDED: "PAYMENT_REFUNDED";
109
+ readonly PAYMENT_CANCELLED: "PAYMENT_CANCELLED";
109
110
  readonly PAYMENT_METHOD_SETUP_STARTED: "PAYMENT_METHOD_SETUP_STARTED";
110
111
  readonly PAYMENT_METHOD_DEFAULT_CHANGED: "PAYMENT_METHOD_DEFAULT_CHANGED";
111
112
  readonly PAYMENT_METHOD_REMOVED: "PAYMENT_METHOD_REMOVED";
@@ -47,6 +47,7 @@ exports.UserActionLogObjectActionTypeType = {
47
47
  ALL_OTHER_SESSIONS_REVOKED: 'ALL_OTHER_SESSIONS_REVOKED',
48
48
  PAYMENT_CREATED: 'PAYMENT_CREATED',
49
49
  PAYMENT_REFUNDED: 'PAYMENT_REFUNDED',
50
+ PAYMENT_CANCELLED: 'PAYMENT_CANCELLED',
50
51
  PAYMENT_METHOD_SETUP_STARTED: 'PAYMENT_METHOD_SETUP_STARTED',
51
52
  PAYMENT_METHOD_DEFAULT_CHANGED: 'PAYMENT_METHOD_DEFAULT_CHANGED',
52
53
  PAYMENT_METHOD_REMOVED: 'PAYMENT_METHOD_REMOVED',
@@ -223,6 +223,7 @@ export * from './StatusRange';
223
223
  export * from './SubscriptionObject';
224
224
  export * from './SuggestDatabaseEnvVarsResponse';
225
225
  export * from './SyncCustomDomainResponse';
226
+ export * from './TaxCalculationStatus';
226
227
  export * from './TestInvocationRequest';
227
228
  export * from './TestInvocationResponse';
228
229
  export * from './TimeSeriesDataPoint';
@@ -241,6 +241,7 @@ __exportStar(require("./StatusRange"), exports);
241
241
  __exportStar(require("./SubscriptionObject"), exports);
242
242
  __exportStar(require("./SuggestDatabaseEnvVarsResponse"), exports);
243
243
  __exportStar(require("./SyncCustomDomainResponse"), exports);
244
+ __exportStar(require("./TaxCalculationStatus"), exports);
244
245
  __exportStar(require("./TestInvocationRequest"), exports);
245
246
  __exportStar(require("./TestInvocationResponse"), exports);
246
247
  __exportStar(require("./TimeSeriesDataPoint"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forteplatforms/sdk",
3
- "version": "1.0.527",
3
+ "version": "1.0.535",
4
4
  "description": "Official TypeScript SDK for Forte Platforms",
5
5
  "author": "Forte Platforms <support@forteplatforms.com>",
6
6
  "repository": {