@forteplatforms/sdk 1.0.345 → 1.0.348

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.
@@ -71,6 +71,7 @@ import { type PaginatedResponseWebAppBuildRequestObject } from '../models/Pagina
71
71
  import { type PaymentAnalyticsResponse } from '../models/PaymentAnalyticsResponse';
72
72
  import { type PaymentMethodObject } from '../models/PaymentMethodObject';
73
73
  import { type PaymentObject } from '../models/PaymentObject';
74
+ import { type PaymentSearchRequest } from '../models/PaymentSearchRequest';
74
75
  import { type PaymentTriggerConfig } from '../models/PaymentTriggerConfig';
75
76
  import { type ProjectObject } from '../models/ProjectObject';
76
77
  import { type PutSubscriptionItemsRequest } from '../models/PutSubscriptionItemsRequest';
@@ -340,6 +341,10 @@ export interface GetManagedDatabaseMetricsRequest {
340
341
  export interface GetNotificationTemplatesRequest {
341
342
  projectId: string;
342
343
  }
344
+ export interface GetPaymentRequest {
345
+ projectId: string;
346
+ paymentId: string;
347
+ }
343
348
  export interface GetPaymentAnalyticsRequest {
344
349
  projectId: string;
345
350
  minTime?: Date;
@@ -706,6 +711,10 @@ export interface SearchLogLinesRequest {
706
711
  level?: string;
707
712
  nextToken?: string;
708
713
  }
714
+ export interface SearchPaymentsRequest {
715
+ projectId: string;
716
+ paymentSearchRequest: PaymentSearchRequest;
717
+ }
709
718
  export interface SearchRequestInvocationLogsRequest {
710
719
  projectId: string;
711
720
  serviceId: string;
@@ -1317,6 +1326,16 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
1317
1326
  /**
1318
1327
  */
1319
1328
  getNotificationTemplates(requestParameters: GetNotificationTemplatesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotificationTemplatesResponse>;
1329
+ /**
1330
+ * Creates request options for getPayment without sending the request
1331
+ */
1332
+ getPaymentRequestOpts(requestParameters: GetPaymentRequest): Promise<runtime.RequestOpts>;
1333
+ /**
1334
+ */
1335
+ getPaymentRaw(requestParameters: GetPaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentObject>>;
1336
+ /**
1337
+ */
1338
+ getPayment(requestParameters: GetPaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentObject>;
1320
1339
  /**
1321
1340
  * Creates request options for getPaymentAnalytics without sending the request
1322
1341
  */
@@ -1977,6 +1996,16 @@ export declare class ProjectsServerApi extends runtime.BaseAPI {
1977
1996
  /**
1978
1997
  */
1979
1998
  searchLogLines(requestParameters: SearchLogLinesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseLogLineObject>;
1999
+ /**
2000
+ * Creates request options for searchPayments without sending the request
2001
+ */
2002
+ searchPaymentsRequestOpts(requestParameters: SearchPaymentsRequest): Promise<runtime.RequestOpts>;
2003
+ /**
2004
+ */
2005
+ searchPaymentsRaw(requestParameters: SearchPaymentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponsePaymentObject>>;
2006
+ /**
2007
+ */
2008
+ searchPayments(requestParameters: SearchPaymentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponsePaymentObject>;
1980
2009
  /**
1981
2010
  * Creates request options for searchRequestInvocationLogs without sending the request
1982
2011
  */
@@ -127,6 +127,7 @@ var PaginatedResponseWebAppBuildRequestObject_1 = require("../models/PaginatedRe
127
127
  var PaymentAnalyticsResponse_1 = require("../models/PaymentAnalyticsResponse");
128
128
  var PaymentMethodObject_1 = require("../models/PaymentMethodObject");
129
129
  var PaymentObject_1 = require("../models/PaymentObject");
130
+ var PaymentSearchRequest_1 = require("../models/PaymentSearchRequest");
130
131
  var PaymentTriggerConfig_1 = require("../models/PaymentTriggerConfig");
131
132
  var ProjectObject_1 = require("../models/ProjectObject");
132
133
  var PutSubscriptionItemsRequest_1 = require("../models/PutSubscriptionItemsRequest");
@@ -3322,6 +3323,67 @@ var ProjectsServerApi = /** @class */ (function (_super) {
3322
3323
  });
3323
3324
  });
3324
3325
  };
3326
+ /**
3327
+ * Creates request options for getPayment without sending the request
3328
+ */
3329
+ ProjectsServerApi.prototype.getPaymentRequestOpts = function (requestParameters) {
3330
+ return __awaiter(this, void 0, void 0, function () {
3331
+ var queryParameters, headerParameters, urlPath;
3332
+ return __generator(this, function (_a) {
3333
+ if (requestParameters['projectId'] == null) {
3334
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling getPayment().');
3335
+ }
3336
+ if (requestParameters['paymentId'] == null) {
3337
+ throw new runtime.RequiredError('paymentId', 'Required parameter "paymentId" was null or undefined when calling getPayment().');
3338
+ }
3339
+ queryParameters = {};
3340
+ headerParameters = {};
3341
+ urlPath = "/api/v1/projects/{projectId}/payments/{paymentId}";
3342
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
3343
+ urlPath = urlPath.replace('{paymentId}', encodeURIComponent(String(requestParameters['paymentId'])));
3344
+ return [2 /*return*/, {
3345
+ path: urlPath,
3346
+ method: 'GET',
3347
+ headers: headerParameters,
3348
+ query: queryParameters,
3349
+ }];
3350
+ });
3351
+ });
3352
+ };
3353
+ /**
3354
+ */
3355
+ ProjectsServerApi.prototype.getPaymentRaw = function (requestParameters, initOverrides) {
3356
+ return __awaiter(this, void 0, void 0, function () {
3357
+ var requestOptions, response;
3358
+ return __generator(this, function (_a) {
3359
+ switch (_a.label) {
3360
+ case 0: return [4 /*yield*/, this.getPaymentRequestOpts(requestParameters)];
3361
+ case 1:
3362
+ requestOptions = _a.sent();
3363
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
3364
+ case 2:
3365
+ response = _a.sent();
3366
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaymentObject_1.PaymentObjectFromJSON)(jsonValue); })];
3367
+ }
3368
+ });
3369
+ });
3370
+ };
3371
+ /**
3372
+ */
3373
+ ProjectsServerApi.prototype.getPayment = function (requestParameters, initOverrides) {
3374
+ return __awaiter(this, void 0, void 0, function () {
3375
+ var response;
3376
+ return __generator(this, function (_a) {
3377
+ switch (_a.label) {
3378
+ case 0: return [4 /*yield*/, this.getPaymentRaw(requestParameters, initOverrides)];
3379
+ case 1:
3380
+ response = _a.sent();
3381
+ return [4 /*yield*/, response.value()];
3382
+ case 2: return [2 /*return*/, _a.sent()];
3383
+ }
3384
+ });
3385
+ });
3386
+ };
3325
3387
  /**
3326
3388
  * Creates request options for getPaymentAnalytics without sending the request
3327
3389
  */
@@ -7680,6 +7742,68 @@ var ProjectsServerApi = /** @class */ (function (_super) {
7680
7742
  });
7681
7743
  });
7682
7744
  };
7745
+ /**
7746
+ * Creates request options for searchPayments without sending the request
7747
+ */
7748
+ ProjectsServerApi.prototype.searchPaymentsRequestOpts = function (requestParameters) {
7749
+ return __awaiter(this, void 0, void 0, function () {
7750
+ var queryParameters, headerParameters, urlPath;
7751
+ return __generator(this, function (_a) {
7752
+ if (requestParameters['projectId'] == null) {
7753
+ throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling searchPayments().');
7754
+ }
7755
+ if (requestParameters['paymentSearchRequest'] == null) {
7756
+ throw new runtime.RequiredError('paymentSearchRequest', 'Required parameter "paymentSearchRequest" was null or undefined when calling searchPayments().');
7757
+ }
7758
+ queryParameters = {};
7759
+ headerParameters = {};
7760
+ headerParameters['Content-Type'] = 'application/json';
7761
+ urlPath = "/api/v1/projects/{projectId}/payments/search";
7762
+ urlPath = urlPath.replace('{projectId}', encodeURIComponent(String(requestParameters['projectId'])));
7763
+ return [2 /*return*/, {
7764
+ path: urlPath,
7765
+ method: 'POST',
7766
+ headers: headerParameters,
7767
+ query: queryParameters,
7768
+ body: (0, PaymentSearchRequest_1.PaymentSearchRequestToJSON)(requestParameters['paymentSearchRequest']),
7769
+ }];
7770
+ });
7771
+ });
7772
+ };
7773
+ /**
7774
+ */
7775
+ ProjectsServerApi.prototype.searchPaymentsRaw = function (requestParameters, initOverrides) {
7776
+ return __awaiter(this, void 0, void 0, function () {
7777
+ var requestOptions, response;
7778
+ return __generator(this, function (_a) {
7779
+ switch (_a.label) {
7780
+ case 0: return [4 /*yield*/, this.searchPaymentsRequestOpts(requestParameters)];
7781
+ case 1:
7782
+ requestOptions = _a.sent();
7783
+ return [4 /*yield*/, this.request(requestOptions, initOverrides)];
7784
+ case 2:
7785
+ response = _a.sent();
7786
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, PaginatedResponsePaymentObject_1.PaginatedResponsePaymentObjectFromJSON)(jsonValue); })];
7787
+ }
7788
+ });
7789
+ });
7790
+ };
7791
+ /**
7792
+ */
7793
+ ProjectsServerApi.prototype.searchPayments = function (requestParameters, initOverrides) {
7794
+ return __awaiter(this, void 0, void 0, function () {
7795
+ var response;
7796
+ return __generator(this, function (_a) {
7797
+ switch (_a.label) {
7798
+ case 0: return [4 /*yield*/, this.searchPaymentsRaw(requestParameters, initOverrides)];
7799
+ case 1:
7800
+ response = _a.sent();
7801
+ return [4 /*yield*/, response.value()];
7802
+ case 2: return [2 /*return*/, _a.sent()];
7803
+ }
7804
+ });
7805
+ });
7806
+ };
7683
7807
  /**
7684
7808
  * Creates request options for searchRequestInvocationLogs without sending the request
7685
7809
  */
@@ -0,0 +1,121 @@
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 PaymentFilter
16
+ */
17
+ export interface PaymentFilter {
18
+ /**
19
+ *
20
+ * @type {Date}
21
+ * @memberof PaymentFilter
22
+ */
23
+ minTime?: Date;
24
+ /**
25
+ *
26
+ * @type {Date}
27
+ * @memberof PaymentFilter
28
+ */
29
+ maxTime?: Date;
30
+ /**
31
+ *
32
+ * @type {Array<PaymentFilterStatesType>}
33
+ * @memberof PaymentFilter
34
+ */
35
+ states?: Array<PaymentFilterStatesType>;
36
+ /**
37
+ *
38
+ * @type {Array<PaymentFilterNotStatesType>}
39
+ * @memberof PaymentFilter
40
+ */
41
+ notStates?: Array<PaymentFilterNotStatesType>;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PaymentFilter
46
+ */
47
+ userId?: string;
48
+ /**
49
+ *
50
+ * @type {Array<string>}
51
+ * @memberof PaymentFilter
52
+ */
53
+ ids?: Array<string>;
54
+ /**
55
+ *
56
+ * @type {Array<string>}
57
+ * @memberof PaymentFilter
58
+ */
59
+ notIds?: Array<string>;
60
+ /**
61
+ *
62
+ * @type {PaymentFilterProductGroupByType}
63
+ * @memberof PaymentFilter
64
+ */
65
+ productGroupBy?: PaymentFilterProductGroupByType;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof PaymentFilter
70
+ */
71
+ productKey?: string;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof PaymentFilter
76
+ */
77
+ productMetadataKey?: string;
78
+ }
79
+ /**
80
+ * @export
81
+ */
82
+ export declare const PaymentFilterStatesType: {
83
+ readonly DRAFT: "DRAFT";
84
+ readonly PROCESSING: "PROCESSING";
85
+ readonly COMPLETED: "COMPLETED";
86
+ readonly CANCELLED: "CANCELLED";
87
+ readonly FAILED: "FAILED";
88
+ readonly PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
89
+ readonly REFUNDED: "REFUNDED";
90
+ };
91
+ export type PaymentFilterStatesType = typeof PaymentFilterStatesType[keyof typeof PaymentFilterStatesType];
92
+ /**
93
+ * @export
94
+ */
95
+ export declare const PaymentFilterNotStatesType: {
96
+ readonly DRAFT: "DRAFT";
97
+ readonly PROCESSING: "PROCESSING";
98
+ readonly COMPLETED: "COMPLETED";
99
+ readonly CANCELLED: "CANCELLED";
100
+ readonly FAILED: "FAILED";
101
+ readonly PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
102
+ readonly REFUNDED: "REFUNDED";
103
+ };
104
+ export type PaymentFilterNotStatesType = typeof PaymentFilterNotStatesType[keyof typeof PaymentFilterNotStatesType];
105
+ /**
106
+ * @export
107
+ */
108
+ export declare const PaymentFilterProductGroupByType: {
109
+ readonly LINE_ITEM_DESCRIPTION: "LINE_ITEM_DESCRIPTION";
110
+ readonly PAYMENT_DESCRIPTION: "PAYMENT_DESCRIPTION";
111
+ readonly METADATA: "METADATA";
112
+ };
113
+ export type PaymentFilterProductGroupByType = typeof PaymentFilterProductGroupByType[keyof typeof PaymentFilterProductGroupByType];
114
+ /**
115
+ * Check if a given object implements the PaymentFilter interface.
116
+ */
117
+ export declare function instanceOfPaymentFilter(value: object): value is PaymentFilter;
118
+ export declare function PaymentFilterFromJSON(json: any): PaymentFilter;
119
+ export declare function PaymentFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentFilter;
120
+ export declare function PaymentFilterToJSON(json: any): PaymentFilter;
121
+ export declare function PaymentFilterToJSONTyped(value?: PaymentFilter | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,100 @@
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.PaymentFilterProductGroupByType = exports.PaymentFilterNotStatesType = exports.PaymentFilterStatesType = void 0;
17
+ exports.instanceOfPaymentFilter = instanceOfPaymentFilter;
18
+ exports.PaymentFilterFromJSON = PaymentFilterFromJSON;
19
+ exports.PaymentFilterFromJSONTyped = PaymentFilterFromJSONTyped;
20
+ exports.PaymentFilterToJSON = PaymentFilterToJSON;
21
+ exports.PaymentFilterToJSONTyped = PaymentFilterToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.PaymentFilterStatesType = {
26
+ DRAFT: 'DRAFT',
27
+ PROCESSING: 'PROCESSING',
28
+ COMPLETED: 'COMPLETED',
29
+ CANCELLED: 'CANCELLED',
30
+ FAILED: 'FAILED',
31
+ PARTIALLY_REFUNDED: 'PARTIALLY_REFUNDED',
32
+ REFUNDED: 'REFUNDED'
33
+ };
34
+ /**
35
+ * @export
36
+ */
37
+ exports.PaymentFilterNotStatesType = {
38
+ DRAFT: 'DRAFT',
39
+ PROCESSING: 'PROCESSING',
40
+ COMPLETED: 'COMPLETED',
41
+ CANCELLED: 'CANCELLED',
42
+ FAILED: 'FAILED',
43
+ PARTIALLY_REFUNDED: 'PARTIALLY_REFUNDED',
44
+ REFUNDED: 'REFUNDED'
45
+ };
46
+ /**
47
+ * @export
48
+ */
49
+ exports.PaymentFilterProductGroupByType = {
50
+ LINE_ITEM_DESCRIPTION: 'LINE_ITEM_DESCRIPTION',
51
+ PAYMENT_DESCRIPTION: 'PAYMENT_DESCRIPTION',
52
+ METADATA: 'METADATA'
53
+ };
54
+ /**
55
+ * Check if a given object implements the PaymentFilter interface.
56
+ */
57
+ function instanceOfPaymentFilter(value) {
58
+ return true;
59
+ }
60
+ function PaymentFilterFromJSON(json) {
61
+ return PaymentFilterFromJSONTyped(json, false);
62
+ }
63
+ function PaymentFilterFromJSONTyped(json, ignoreDiscriminator) {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+ 'minTime': json['minTime'] == null ? undefined : (new Date(json['minTime'])),
69
+ 'maxTime': json['maxTime'] == null ? undefined : (new Date(json['maxTime'])),
70
+ 'states': json['states'] == null ? undefined : json['states'],
71
+ 'notStates': json['notStates'] == null ? undefined : json['notStates'],
72
+ 'userId': json['userId'] == null ? undefined : json['userId'],
73
+ 'ids': json['ids'] == null ? undefined : json['ids'],
74
+ 'notIds': json['notIds'] == null ? undefined : json['notIds'],
75
+ 'productGroupBy': json['productGroupBy'] == null ? undefined : json['productGroupBy'],
76
+ 'productKey': json['productKey'] == null ? undefined : json['productKey'],
77
+ 'productMetadataKey': json['productMetadataKey'] == null ? undefined : json['productMetadataKey'],
78
+ };
79
+ }
80
+ function PaymentFilterToJSON(json) {
81
+ return PaymentFilterToJSONTyped(json, false);
82
+ }
83
+ function PaymentFilterToJSONTyped(value, ignoreDiscriminator) {
84
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
85
+ if (value == null) {
86
+ return value;
87
+ }
88
+ return {
89
+ 'minTime': value['minTime'] == null ? value['minTime'] : value['minTime'].toISOString(),
90
+ 'maxTime': value['maxTime'] == null ? value['maxTime'] : value['maxTime'].toISOString(),
91
+ 'states': value['states'],
92
+ 'notStates': value['notStates'],
93
+ 'userId': value['userId'],
94
+ 'ids': value['ids'],
95
+ 'notIds': value['notIds'],
96
+ 'productGroupBy': value['productGroupBy'],
97
+ 'productKey': value['productKey'],
98
+ 'productMetadataKey': value['productMetadataKey'],
99
+ };
100
+ }
@@ -0,0 +1,52 @@
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 { PaymentSort } from './PaymentSort';
13
+ import type { PaymentFilter } from './PaymentFilter';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaymentSearchRequest
18
+ */
19
+ export interface PaymentSearchRequest {
20
+ /**
21
+ *
22
+ * @type {PaymentFilter}
23
+ * @memberof PaymentSearchRequest
24
+ */
25
+ filter?: PaymentFilter;
26
+ /**
27
+ *
28
+ * @type {PaymentSort}
29
+ * @memberof PaymentSearchRequest
30
+ */
31
+ sort?: PaymentSort;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof PaymentSearchRequest
36
+ */
37
+ nextToken?: string;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof PaymentSearchRequest
42
+ */
43
+ pageSize?: number;
44
+ }
45
+ /**
46
+ * Check if a given object implements the PaymentSearchRequest interface.
47
+ */
48
+ export declare function instanceOfPaymentSearchRequest(value: object): value is PaymentSearchRequest;
49
+ export declare function PaymentSearchRequestFromJSON(json: any): PaymentSearchRequest;
50
+ export declare function PaymentSearchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentSearchRequest;
51
+ export declare function PaymentSearchRequestToJSON(json: any): PaymentSearchRequest;
52
+ export declare function PaymentSearchRequestToJSONTyped(value?: PaymentSearchRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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.instanceOfPaymentSearchRequest = instanceOfPaymentSearchRequest;
17
+ exports.PaymentSearchRequestFromJSON = PaymentSearchRequestFromJSON;
18
+ exports.PaymentSearchRequestFromJSONTyped = PaymentSearchRequestFromJSONTyped;
19
+ exports.PaymentSearchRequestToJSON = PaymentSearchRequestToJSON;
20
+ exports.PaymentSearchRequestToJSONTyped = PaymentSearchRequestToJSONTyped;
21
+ var PaymentSort_1 = require("./PaymentSort");
22
+ var PaymentFilter_1 = require("./PaymentFilter");
23
+ /**
24
+ * Check if a given object implements the PaymentSearchRequest interface.
25
+ */
26
+ function instanceOfPaymentSearchRequest(value) {
27
+ return true;
28
+ }
29
+ function PaymentSearchRequestFromJSON(json) {
30
+ return PaymentSearchRequestFromJSONTyped(json, false);
31
+ }
32
+ function PaymentSearchRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'filter': json['filter'] == null ? undefined : (0, PaymentFilter_1.PaymentFilterFromJSON)(json['filter']),
38
+ 'sort': json['sort'] == null ? undefined : (0, PaymentSort_1.PaymentSortFromJSON)(json['sort']),
39
+ 'nextToken': json['nextToken'] == null ? undefined : json['nextToken'],
40
+ 'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
41
+ };
42
+ }
43
+ function PaymentSearchRequestToJSON(json) {
44
+ return PaymentSearchRequestToJSONTyped(json, false);
45
+ }
46
+ function PaymentSearchRequestToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'filter': (0, PaymentFilter_1.PaymentFilterToJSON)(value['filter']),
53
+ 'sort': (0, PaymentSort_1.PaymentSortToJSON)(value['sort']),
54
+ 'nextToken': value['nextToken'],
55
+ 'pageSize': value['pageSize'],
56
+ };
57
+ }
@@ -0,0 +1,54 @@
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 PaymentSort
16
+ */
17
+ export interface PaymentSort {
18
+ /**
19
+ *
20
+ * @type {PaymentSortSortByType}
21
+ * @memberof PaymentSort
22
+ */
23
+ sortBy?: PaymentSortSortByType;
24
+ /**
25
+ *
26
+ * @type {PaymentSortSortDirType}
27
+ * @memberof PaymentSort
28
+ */
29
+ sortDir?: PaymentSortSortDirType;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const PaymentSortSortByType: {
35
+ readonly CREATED_AT: "CREATED_AT";
36
+ readonly AMOUNT_CENTS: "AMOUNT_CENTS";
37
+ };
38
+ export type PaymentSortSortByType = typeof PaymentSortSortByType[keyof typeof PaymentSortSortByType];
39
+ /**
40
+ * @export
41
+ */
42
+ export declare const PaymentSortSortDirType: {
43
+ readonly ASC: "ASC";
44
+ readonly DESC: "DESC";
45
+ };
46
+ export type PaymentSortSortDirType = typeof PaymentSortSortDirType[keyof typeof PaymentSortSortDirType];
47
+ /**
48
+ * Check if a given object implements the PaymentSort interface.
49
+ */
50
+ export declare function instanceOfPaymentSort(value: object): value is PaymentSort;
51
+ export declare function PaymentSortFromJSON(json: any): PaymentSort;
52
+ export declare function PaymentSortFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentSort;
53
+ export declare function PaymentSortToJSON(json: any): PaymentSort;
54
+ export declare function PaymentSortToJSONTyped(value?: PaymentSort | 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.PaymentSortSortDirType = exports.PaymentSortSortByType = void 0;
17
+ exports.instanceOfPaymentSort = instanceOfPaymentSort;
18
+ exports.PaymentSortFromJSON = PaymentSortFromJSON;
19
+ exports.PaymentSortFromJSONTyped = PaymentSortFromJSONTyped;
20
+ exports.PaymentSortToJSON = PaymentSortToJSON;
21
+ exports.PaymentSortToJSONTyped = PaymentSortToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.PaymentSortSortByType = {
26
+ CREATED_AT: 'CREATED_AT',
27
+ AMOUNT_CENTS: 'AMOUNT_CENTS'
28
+ };
29
+ /**
30
+ * @export
31
+ */
32
+ exports.PaymentSortSortDirType = {
33
+ ASC: 'ASC',
34
+ DESC: 'DESC'
35
+ };
36
+ /**
37
+ * Check if a given object implements the PaymentSort interface.
38
+ */
39
+ function instanceOfPaymentSort(value) {
40
+ return true;
41
+ }
42
+ function PaymentSortFromJSON(json) {
43
+ return PaymentSortFromJSONTyped(json, false);
44
+ }
45
+ function PaymentSortFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
51
+ 'sortDir': json['sortDir'] == null ? undefined : json['sortDir'],
52
+ };
53
+ }
54
+ function PaymentSortToJSON(json) {
55
+ return PaymentSortToJSONTyped(json, false);
56
+ }
57
+ function PaymentSortToJSONTyped(value, ignoreDiscriminator) {
58
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'sortBy': value['sortBy'],
64
+ 'sortDir': value['sortDir'],
65
+ };
66
+ }
@@ -53,6 +53,12 @@ export interface RegisterUserRequest {
53
53
  * @memberof RegisterUserRequest
54
54
  */
55
55
  password?: string;
56
+ /**
57
+ *
58
+ * @type {boolean}
59
+ * @memberof RegisterUserRequest
60
+ */
61
+ sendWelcomeMessage?: boolean;
56
62
  }
57
63
  /**
58
64
  * Check if a given object implements the RegisterUserRequest interface.
@@ -38,6 +38,7 @@ function RegisterUserRequestFromJSONTyped(json, ignoreDiscriminator) {
38
38
  'customMetadataAttributes': json['customMetadataAttributes'] == null ? undefined : json['customMetadataAttributes'],
39
39
  'recaptchaToken': json['recaptchaToken'] == null ? undefined : json['recaptchaToken'],
40
40
  'password': json['password'] == null ? undefined : json['password'],
41
+ 'sendWelcomeMessage': json['sendWelcomeMessage'] == null ? undefined : json['sendWelcomeMessage'],
41
42
  };
42
43
  }
43
44
  function RegisterUserRequestToJSON(json) {
@@ -55,5 +56,6 @@ function RegisterUserRequestToJSONTyped(value, ignoreDiscriminator) {
55
56
  'customMetadataAttributes': value['customMetadataAttributes'],
56
57
  'recaptchaToken': value['recaptchaToken'],
57
58
  'password': value['password'],
59
+ 'sendWelcomeMessage': value['sendWelcomeMessage'],
58
60
  };
59
61
  }
@@ -116,10 +116,13 @@ export * from './PasswordConfig';
116
116
  export * from './PasswordLoginRequest';
117
117
  export * from './PaymentAddress';
118
118
  export * from './PaymentAnalyticsResponse';
119
+ export * from './PaymentFilter';
119
120
  export * from './PaymentLineItem';
120
121
  export * from './PaymentMethodObject';
121
122
  export * from './PaymentMethodType';
122
123
  export * from './PaymentObject';
124
+ export * from './PaymentSearchRequest';
125
+ export * from './PaymentSort';
123
126
  export * from './PaymentTriggerConfig';
124
127
  export * from './PendingUserInviteObject';
125
128
  export * from './ProductAggregate';
@@ -134,10 +134,13 @@ __exportStar(require("./PasswordConfig"), exports);
134
134
  __exportStar(require("./PasswordLoginRequest"), exports);
135
135
  __exportStar(require("./PaymentAddress"), exports);
136
136
  __exportStar(require("./PaymentAnalyticsResponse"), exports);
137
+ __exportStar(require("./PaymentFilter"), exports);
137
138
  __exportStar(require("./PaymentLineItem"), exports);
138
139
  __exportStar(require("./PaymentMethodObject"), exports);
139
140
  __exportStar(require("./PaymentMethodType"), exports);
140
141
  __exportStar(require("./PaymentObject"), exports);
142
+ __exportStar(require("./PaymentSearchRequest"), exports);
143
+ __exportStar(require("./PaymentSort"), exports);
141
144
  __exportStar(require("./PaymentTriggerConfig"), exports);
142
145
  __exportStar(require("./PendingUserInviteObject"), exports);
143
146
  __exportStar(require("./ProductAggregate"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forteplatforms/sdk",
3
- "version": "1.0.345",
3
+ "version": "1.0.348",
4
4
  "description": "Official TypeScript SDK for Forte Platforms",
5
5
  "author": "Forte Platforms <support@forteplatforms.com>",
6
6
  "repository": {