@forteplatforms/sdk 1.0.548 → 1.0.555

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.
@@ -808,6 +808,12 @@ export interface ListWebAppInvocationsRequest {
808
808
  minTime?: Date;
809
809
  maxTime?: Date;
810
810
  failedOnly?: boolean;
811
+ minDurationMillis?: number;
812
+ maxDurationMillis?: number;
813
+ requestId?: string;
814
+ failureType?: ListWebAppInvocationsFailureTypeType;
815
+ sortBy?: ListWebAppInvocationsSortByType;
816
+ sortDirection?: ListWebAppInvocationsSortDirectionType;
811
817
  nextToken?: string;
812
818
  }
813
819
  export interface ListWebAppLogLinesRequest {
@@ -3236,6 +3242,30 @@ export declare const ListWebAppBlockedRequestGroupsCategoryType: {
3236
3242
  readonly RATE_LIMITED: "RATE_LIMITED";
3237
3243
  };
3238
3244
  export type ListWebAppBlockedRequestGroupsCategoryType = typeof ListWebAppBlockedRequestGroupsCategoryType[keyof typeof ListWebAppBlockedRequestGroupsCategoryType];
3245
+ /**
3246
+ * @export
3247
+ */
3248
+ export declare const ListWebAppInvocationsFailureTypeType: {
3249
+ readonly TIMEOUT: "TIMEOUT";
3250
+ readonly CRASH: "CRASH";
3251
+ };
3252
+ export type ListWebAppInvocationsFailureTypeType = typeof ListWebAppInvocationsFailureTypeType[keyof typeof ListWebAppInvocationsFailureTypeType];
3253
+ /**
3254
+ * @export
3255
+ */
3256
+ export declare const ListWebAppInvocationsSortByType: {
3257
+ readonly TIMESTAMP: "TIMESTAMP";
3258
+ readonly DURATION: "DURATION";
3259
+ };
3260
+ export type ListWebAppInvocationsSortByType = typeof ListWebAppInvocationsSortByType[keyof typeof ListWebAppInvocationsSortByType];
3261
+ /**
3262
+ * @export
3263
+ */
3264
+ export declare const ListWebAppInvocationsSortDirectionType: {
3265
+ readonly ASC: "ASC";
3266
+ readonly DESC: "DESC";
3267
+ };
3268
+ export type ListWebAppInvocationsSortDirectionType = typeof ListWebAppInvocationsSortDirectionType[keyof typeof ListWebAppInvocationsSortDirectionType];
3239
3269
  /**
3240
3270
  * @export
3241
3271
  */
@@ -64,7 +64,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
64
64
  }
65
65
  };
66
66
  Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.SuggestDatabaseEnvVarsDatabaseTypeType = exports.ListWebAppBlockedRequestGroupsCategoryType = exports.ListUserPaymentsStateType = exports.ListUserActionLogsNotActionTypeType = exports.ListUserActionLogsActionTypeType = exports.ListServiceBlockedRequestGroupsCategoryType = exports.ListProjectPaymentsStateType = exports.GetWebAppRuntimeMetricsGranularityType = exports.GetUserMetricsGranularityType = exports.GetServiceRouteTimeMetricsGranularityType = exports.GetServiceMetricsDimensionsType = exports.GetServiceMetricsGranularityType = exports.GetRequestBodyDownloadLinkPartType = exports.GetPaymentAnalyticsGranularityType = exports.GetPaymentAnalyticsGroupByType = exports.GetManagedDatabaseMetricsGranularityType = exports.GetActionsMetricsGranularityType = exports.ProjectsServerApi = void 0;
67
+ exports.SuggestDatabaseEnvVarsDatabaseTypeType = exports.ListWebAppInvocationsSortDirectionType = exports.ListWebAppInvocationsSortByType = exports.ListWebAppInvocationsFailureTypeType = exports.ListWebAppBlockedRequestGroupsCategoryType = exports.ListUserPaymentsStateType = exports.ListUserActionLogsNotActionTypeType = exports.ListUserActionLogsActionTypeType = exports.ListServiceBlockedRequestGroupsCategoryType = exports.ListProjectPaymentsStateType = exports.GetWebAppRuntimeMetricsGranularityType = exports.GetUserMetricsGranularityType = exports.GetServiceRouteTimeMetricsGranularityType = exports.GetServiceMetricsDimensionsType = exports.GetServiceMetricsGranularityType = exports.GetRequestBodyDownloadLinkPartType = exports.GetPaymentAnalyticsGranularityType = exports.GetPaymentAnalyticsGroupByType = exports.GetManagedDatabaseMetricsGranularityType = exports.GetActionsMetricsGranularityType = exports.ProjectsServerApi = void 0;
68
68
  var runtime = require("../runtime");
69
69
  var ActionInvocationObject_1 = require("../models/ActionInvocationObject");
70
70
  var ActionObject_1 = require("../models/ActionObject");
@@ -8263,6 +8263,24 @@ var ProjectsServerApi = /** @class */ (function (_super) {
8263
8263
  if (requestParameters['failedOnly'] != null) {
8264
8264
  queryParameters['failedOnly'] = requestParameters['failedOnly'];
8265
8265
  }
8266
+ if (requestParameters['minDurationMillis'] != null) {
8267
+ queryParameters['minDurationMillis'] = requestParameters['minDurationMillis'];
8268
+ }
8269
+ if (requestParameters['maxDurationMillis'] != null) {
8270
+ queryParameters['maxDurationMillis'] = requestParameters['maxDurationMillis'];
8271
+ }
8272
+ if (requestParameters['requestId'] != null) {
8273
+ queryParameters['requestId'] = requestParameters['requestId'];
8274
+ }
8275
+ if (requestParameters['failureType'] != null) {
8276
+ queryParameters['failureType'] = requestParameters['failureType'];
8277
+ }
8278
+ if (requestParameters['sortBy'] != null) {
8279
+ queryParameters['sortBy'] = requestParameters['sortBy'];
8280
+ }
8281
+ if (requestParameters['sortDirection'] != null) {
8282
+ queryParameters['sortDirection'] = requestParameters['sortDirection'];
8283
+ }
8266
8284
  if (requestParameters['nextToken'] != null) {
8267
8285
  queryParameters['nextToken'] = requestParameters['nextToken'];
8268
8286
  }
@@ -12590,6 +12608,27 @@ exports.ListWebAppBlockedRequestGroupsCategoryType = {
12590
12608
  ATTACK_TRAFFIC: 'ATTACK_TRAFFIC',
12591
12609
  RATE_LIMITED: 'RATE_LIMITED'
12592
12610
  };
12611
+ /**
12612
+ * @export
12613
+ */
12614
+ exports.ListWebAppInvocationsFailureTypeType = {
12615
+ TIMEOUT: 'TIMEOUT',
12616
+ CRASH: 'CRASH'
12617
+ };
12618
+ /**
12619
+ * @export
12620
+ */
12621
+ exports.ListWebAppInvocationsSortByType = {
12622
+ TIMESTAMP: 'TIMESTAMP',
12623
+ DURATION: 'DURATION'
12624
+ };
12625
+ /**
12626
+ * @export
12627
+ */
12628
+ exports.ListWebAppInvocationsSortDirectionType = {
12629
+ ASC: 'ASC',
12630
+ DESC: 'DESC'
12631
+ };
12593
12632
  /**
12594
12633
  * @export
12595
12634
  */
@@ -171,6 +171,7 @@ export declare const AccountActionLogObjectActionTypeType: {
171
171
  readonly ADMIN_INVOICE_MARKED_PAID: "ADMIN_INVOICE_MARKED_PAID";
172
172
  readonly FEATURE_ACCESS_OVERRIDDEN: "FEATURE_ACCESS_OVERRIDDEN";
173
173
  readonly QUOTA_OVERRIDDEN: "QUOTA_OVERRIDDEN";
174
+ readonly PAYMENT_FEE_OVERRIDDEN: "PAYMENT_FEE_OVERRIDDEN";
174
175
  readonly RATE_LIMIT_OVERRIDDEN: "RATE_LIMIT_OVERRIDDEN";
175
176
  readonly GRANDFATHER_FLAG_CHANGED: "GRANDFATHER_FLAG_CHANGED";
176
177
  readonly BUILD_BILLING_FAST_FAILED: "BUILD_BILLING_FAST_FAILED";
@@ -124,6 +124,7 @@ exports.AccountActionLogObjectActionTypeType = {
124
124
  ADMIN_INVOICE_MARKED_PAID: 'ADMIN_INVOICE_MARKED_PAID',
125
125
  FEATURE_ACCESS_OVERRIDDEN: 'FEATURE_ACCESS_OVERRIDDEN',
126
126
  QUOTA_OVERRIDDEN: 'QUOTA_OVERRIDDEN',
127
+ PAYMENT_FEE_OVERRIDDEN: 'PAYMENT_FEE_OVERRIDDEN',
127
128
  RATE_LIMIT_OVERRIDDEN: 'RATE_LIMIT_OVERRIDDEN',
128
129
  GRANDFATHER_FLAG_CHANGED: 'GRANDFATHER_FLAG_CHANGED',
129
130
  BUILD_BILLING_FAST_FAILED: 'BUILD_BILLING_FAST_FAILED',
@@ -0,0 +1,62 @@
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 DisputeTotals
16
+ */
17
+ export interface DisputeTotals {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof DisputeTotals
22
+ */
23
+ currency: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof DisputeTotals
28
+ */
29
+ chargebackCount: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof DisputeTotals
34
+ */
35
+ chargebackAmountCents: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof DisputeTotals
40
+ */
41
+ chargebacksLostCount: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof DisputeTotals
46
+ */
47
+ chargebacksWonCount: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof DisputeTotals
52
+ */
53
+ inquiryCount: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the DisputeTotals interface.
57
+ */
58
+ export declare function instanceOfDisputeTotals(value: object): value is DisputeTotals;
59
+ export declare function DisputeTotalsFromJSON(json: any): DisputeTotals;
60
+ export declare function DisputeTotalsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DisputeTotals;
61
+ export declare function DisputeTotalsToJSON(json: any): DisputeTotals;
62
+ export declare function DisputeTotalsToJSONTyped(value?: DisputeTotals | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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.instanceOfDisputeTotals = instanceOfDisputeTotals;
17
+ exports.DisputeTotalsFromJSON = DisputeTotalsFromJSON;
18
+ exports.DisputeTotalsFromJSONTyped = DisputeTotalsFromJSONTyped;
19
+ exports.DisputeTotalsToJSON = DisputeTotalsToJSON;
20
+ exports.DisputeTotalsToJSONTyped = DisputeTotalsToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DisputeTotals interface.
23
+ */
24
+ function instanceOfDisputeTotals(value) {
25
+ if (!('currency' in value) || value['currency'] === undefined)
26
+ return false;
27
+ if (!('chargebackCount' in value) || value['chargebackCount'] === undefined)
28
+ return false;
29
+ if (!('chargebackAmountCents' in value) || value['chargebackAmountCents'] === undefined)
30
+ return false;
31
+ if (!('chargebacksLostCount' in value) || value['chargebacksLostCount'] === undefined)
32
+ return false;
33
+ if (!('chargebacksWonCount' in value) || value['chargebacksWonCount'] === undefined)
34
+ return false;
35
+ if (!('inquiryCount' in value) || value['inquiryCount'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function DisputeTotalsFromJSON(json) {
40
+ return DisputeTotalsFromJSONTyped(json, false);
41
+ }
42
+ function DisputeTotalsFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'currency': json['currency'],
48
+ 'chargebackCount': json['chargebackCount'],
49
+ 'chargebackAmountCents': json['chargebackAmountCents'],
50
+ 'chargebacksLostCount': json['chargebacksLostCount'],
51
+ 'chargebacksWonCount': json['chargebacksWonCount'],
52
+ 'inquiryCount': json['inquiryCount'],
53
+ };
54
+ }
55
+ function DisputeTotalsToJSON(json) {
56
+ return DisputeTotalsToJSONTyped(json, false);
57
+ }
58
+ function DisputeTotalsToJSONTyped(value, ignoreDiscriminator) {
59
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'currency': value['currency'],
65
+ 'chargebackCount': value['chargebackCount'],
66
+ 'chargebackAmountCents': value['chargebackAmountCents'],
67
+ 'chargebacksLostCount': value['chargebacksLostCount'],
68
+ 'chargebacksWonCount': value['chargebacksWonCount'],
69
+ 'inquiryCount': value['inquiryCount'],
70
+ };
71
+ }
@@ -26,13 +26,13 @@ export interface ForteApiException {
26
26
  * @type {string}
27
27
  * @memberof ForteApiException
28
28
  */
29
- message?: string;
29
+ forteExceptionType?: string;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
33
  * @memberof ForteApiException
34
34
  */
35
- forteExceptionType?: string;
35
+ message?: string;
36
36
  }
37
37
  /**
38
38
  * @export
@@ -138,6 +138,7 @@ export declare const ForteApiExceptionErrorCodeType: {
138
138
  readonly NO_SERVICE_FOR_DOMAIN: "NO_SERVICE_FOR_DOMAIN";
139
139
  readonly INVALID_PAGINATION_TIME_PARAMS: "INVALID_PAGINATION_TIME_PARAMS";
140
140
  readonly INVALID_PAGINATION_TOKEN: "INVALID_PAGINATION_TOKEN";
141
+ readonly INVALID_INVOCATION_DURATION_RANGE: "INVALID_INVOCATION_DURATION_RANGE";
141
142
  readonly INVALID_GITHUB_INSTALLATION_STATE_TOKEN: "INVALID_GITHUB_INSTALLATION_STATE_TOKEN";
142
143
  readonly GITHUB_AUTH_STATE_INVALID: "GITHUB_AUTH_STATE_INVALID";
143
144
  readonly GITHUB_CODE_EXCHANGE_FAILED: "GITHUB_CODE_EXCHANGE_FAILED";
@@ -123,6 +123,7 @@ exports.ForteApiExceptionErrorCodeType = {
123
123
  NO_SERVICE_FOR_DOMAIN: 'NO_SERVICE_FOR_DOMAIN',
124
124
  INVALID_PAGINATION_TIME_PARAMS: 'INVALID_PAGINATION_TIME_PARAMS',
125
125
  INVALID_PAGINATION_TOKEN: 'INVALID_PAGINATION_TOKEN',
126
+ INVALID_INVOCATION_DURATION_RANGE: 'INVALID_INVOCATION_DURATION_RANGE',
126
127
  INVALID_GITHUB_INSTALLATION_STATE_TOKEN: 'INVALID_GITHUB_INSTALLATION_STATE_TOKEN',
127
128
  GITHUB_AUTH_STATE_INVALID: 'GITHUB_AUTH_STATE_INVALID',
128
129
  GITHUB_CODE_EXCHANGE_FAILED: 'GITHUB_CODE_EXCHANGE_FAILED',
@@ -446,8 +447,8 @@ function ForteApiExceptionFromJSONTyped(json, ignoreDiscriminator) {
446
447
  }
447
448
  return {
448
449
  'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
449
- 'message': json['message'] == null ? undefined : json['message'],
450
450
  'forteExceptionType': json['forteExceptionType'] == null ? undefined : json['forteExceptionType'],
451
+ 'message': json['message'] == null ? undefined : json['message'],
451
452
  };
452
453
  }
453
454
  function ForteApiExceptionToJSON(json) {
@@ -460,7 +461,7 @@ function ForteApiExceptionToJSONTyped(value, ignoreDiscriminator) {
460
461
  }
461
462
  return {
462
463
  'errorCode': value['errorCode'],
463
- 'message': value['message'],
464
464
  'forteExceptionType': value['forteExceptionType'],
465
+ 'message': value['message'],
465
466
  };
466
467
  }
@@ -12,6 +12,8 @@
12
12
  import type { CurrencyVolumeSeries } from './CurrencyVolumeSeries';
13
13
  import type { StateCurrencyTotals } from './StateCurrencyTotals';
14
14
  import type { CurrencyTotals } from './CurrencyTotals';
15
+ import type { DisputeTotals } from './DisputeTotals';
16
+ import type { PaymentMethodTotals } from './PaymentMethodTotals';
15
17
  import type { SpenderAggregate } from './SpenderAggregate';
16
18
  import type { ProductAggregate } from './ProductAggregate';
17
19
  /**
@@ -80,6 +82,18 @@ export interface PaymentAnalyticsResponse {
80
82
  * @memberof PaymentAnalyticsResponse
81
83
  */
82
84
  refundedUserCount?: number;
85
+ /**
86
+ *
87
+ * @type {Array<DisputeTotals>}
88
+ * @memberof PaymentAnalyticsResponse
89
+ */
90
+ disputesByCurrency?: Array<DisputeTotals>;
91
+ /**
92
+ *
93
+ * @type {Array<PaymentMethodTotals>}
94
+ * @memberof PaymentAnalyticsResponse
95
+ */
96
+ paymentMethodBreakdown?: Array<PaymentMethodTotals>;
83
97
  /**
84
98
  *
85
99
  * @type {PaymentAnalyticsResponseGroupByType}
@@ -22,6 +22,8 @@ exports.PaymentAnalyticsResponseToJSONTyped = PaymentAnalyticsResponseToJSONType
22
22
  var CurrencyVolumeSeries_1 = require("./CurrencyVolumeSeries");
23
23
  var StateCurrencyTotals_1 = require("./StateCurrencyTotals");
24
24
  var CurrencyTotals_1 = require("./CurrencyTotals");
25
+ var DisputeTotals_1 = require("./DisputeTotals");
26
+ var PaymentMethodTotals_1 = require("./PaymentMethodTotals");
25
27
  var SpenderAggregate_1 = require("./SpenderAggregate");
26
28
  var ProductAggregate_1 = require("./ProductAggregate");
27
29
  /**
@@ -74,6 +76,8 @@ function PaymentAnalyticsResponseFromJSONTyped(json, ignoreDiscriminator) {
74
76
  'topSpenders': (json['topSpenders'].map(SpenderAggregate_1.SpenderAggregateFromJSON)),
75
77
  'refundedByCurrency': json['refundedByCurrency'] == null ? undefined : (json['refundedByCurrency'].map(CurrencyTotals_1.CurrencyTotalsFromJSON)),
76
78
  'refundedUserCount': json['refundedUserCount'] == null ? undefined : json['refundedUserCount'],
79
+ 'disputesByCurrency': json['disputesByCurrency'] == null ? undefined : (json['disputesByCurrency'].map(DisputeTotals_1.DisputeTotalsFromJSON)),
80
+ 'paymentMethodBreakdown': json['paymentMethodBreakdown'] == null ? undefined : (json['paymentMethodBreakdown'].map(PaymentMethodTotals_1.PaymentMethodTotalsFromJSON)),
77
81
  'groupBy': json['groupBy'],
78
82
  };
79
83
  }
@@ -96,6 +100,8 @@ function PaymentAnalyticsResponseToJSONTyped(value, ignoreDiscriminator) {
96
100
  'topSpenders': (value['topSpenders'].map(SpenderAggregate_1.SpenderAggregateToJSON)),
97
101
  'refundedByCurrency': value['refundedByCurrency'] == null ? undefined : (value['refundedByCurrency'].map(CurrencyTotals_1.CurrencyTotalsToJSON)),
98
102
  'refundedUserCount': value['refundedUserCount'],
103
+ 'disputesByCurrency': value['disputesByCurrency'] == null ? undefined : (value['disputesByCurrency'].map(DisputeTotals_1.DisputeTotalsToJSON)),
104
+ 'paymentMethodBreakdown': value['paymentMethodBreakdown'] == null ? undefined : (value['paymentMethodBreakdown'].map(PaymentMethodTotals_1.PaymentMethodTotalsToJSON)),
99
105
  'groupBy': value['groupBy'],
100
106
  };
101
107
  }
@@ -0,0 +1,56 @@
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 PaymentChargeMethod
16
+ */
17
+ export interface PaymentChargeMethod {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PaymentChargeMethod
22
+ */
23
+ type: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PaymentChargeMethod
28
+ */
29
+ cardBrand?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PaymentChargeMethod
34
+ */
35
+ cardFunding?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PaymentChargeMethod
40
+ */
41
+ cardCountry?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PaymentChargeMethod
46
+ */
47
+ cardLast4?: string | null;
48
+ }
49
+ /**
50
+ * Check if a given object implements the PaymentChargeMethod interface.
51
+ */
52
+ export declare function instanceOfPaymentChargeMethod(value: object): value is PaymentChargeMethod;
53
+ export declare function PaymentChargeMethodFromJSON(json: any): PaymentChargeMethod;
54
+ export declare function PaymentChargeMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentChargeMethod;
55
+ export declare function PaymentChargeMethodToJSON(json: any): PaymentChargeMethod;
56
+ export declare function PaymentChargeMethodToJSONTyped(value?: PaymentChargeMethod | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfPaymentChargeMethod = instanceOfPaymentChargeMethod;
17
+ exports.PaymentChargeMethodFromJSON = PaymentChargeMethodFromJSON;
18
+ exports.PaymentChargeMethodFromJSONTyped = PaymentChargeMethodFromJSONTyped;
19
+ exports.PaymentChargeMethodToJSON = PaymentChargeMethodToJSON;
20
+ exports.PaymentChargeMethodToJSONTyped = PaymentChargeMethodToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PaymentChargeMethod interface.
23
+ */
24
+ function instanceOfPaymentChargeMethod(value) {
25
+ if (!('type' in value) || value['type'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function PaymentChargeMethodFromJSON(json) {
30
+ return PaymentChargeMethodFromJSONTyped(json, false);
31
+ }
32
+ function PaymentChargeMethodFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'type': json['type'],
38
+ 'cardBrand': json['cardBrand'] == null ? undefined : json['cardBrand'],
39
+ 'cardFunding': json['cardFunding'] == null ? undefined : json['cardFunding'],
40
+ 'cardCountry': json['cardCountry'] == null ? undefined : json['cardCountry'],
41
+ 'cardLast4': json['cardLast4'] == null ? undefined : json['cardLast4'],
42
+ };
43
+ }
44
+ function PaymentChargeMethodToJSON(json) {
45
+ return PaymentChargeMethodToJSONTyped(json, false);
46
+ }
47
+ function PaymentChargeMethodToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'type': value['type'],
54
+ 'cardBrand': value['cardBrand'],
55
+ 'cardFunding': value['cardFunding'],
56
+ 'cardCountry': value['cardCountry'],
57
+ 'cardLast4': value['cardLast4'],
58
+ };
59
+ }
@@ -0,0 +1,56 @@
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 PaymentDispute
16
+ */
17
+ export interface PaymentDispute {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PaymentDispute
22
+ */
23
+ stripeDisputeId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PaymentDispute
28
+ */
29
+ status: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PaymentDispute
34
+ */
35
+ reason?: string | null;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof PaymentDispute
40
+ */
41
+ amountCents: number;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof PaymentDispute
46
+ */
47
+ createdAt: Date;
48
+ }
49
+ /**
50
+ * Check if a given object implements the PaymentDispute interface.
51
+ */
52
+ export declare function instanceOfPaymentDispute(value: object): value is PaymentDispute;
53
+ export declare function PaymentDisputeFromJSON(json: any): PaymentDispute;
54
+ export declare function PaymentDisputeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentDispute;
55
+ export declare function PaymentDisputeToJSON(json: any): PaymentDispute;
56
+ export declare function PaymentDisputeToJSONTyped(value?: PaymentDispute | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,65 @@
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.instanceOfPaymentDispute = instanceOfPaymentDispute;
17
+ exports.PaymentDisputeFromJSON = PaymentDisputeFromJSON;
18
+ exports.PaymentDisputeFromJSONTyped = PaymentDisputeFromJSONTyped;
19
+ exports.PaymentDisputeToJSON = PaymentDisputeToJSON;
20
+ exports.PaymentDisputeToJSONTyped = PaymentDisputeToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PaymentDispute interface.
23
+ */
24
+ function instanceOfPaymentDispute(value) {
25
+ if (!('stripeDisputeId' in value) || value['stripeDisputeId'] === undefined)
26
+ return false;
27
+ if (!('status' in value) || value['status'] === undefined)
28
+ return false;
29
+ if (!('amountCents' in value) || value['amountCents'] === undefined)
30
+ return false;
31
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function PaymentDisputeFromJSON(json) {
36
+ return PaymentDisputeFromJSONTyped(json, false);
37
+ }
38
+ function PaymentDisputeFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'stripeDisputeId': json['stripeDisputeId'],
44
+ 'status': json['status'],
45
+ 'reason': json['reason'] == null ? undefined : json['reason'],
46
+ 'amountCents': json['amountCents'],
47
+ 'createdAt': (new Date(json['createdAt'])),
48
+ };
49
+ }
50
+ function PaymentDisputeToJSON(json) {
51
+ return PaymentDisputeToJSONTyped(json, false);
52
+ }
53
+ function PaymentDisputeToJSONTyped(value, ignoreDiscriminator) {
54
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'stripeDisputeId': value['stripeDisputeId'],
60
+ 'status': value['status'],
61
+ 'reason': value['reason'],
62
+ 'amountCents': value['amountCents'],
63
+ 'createdAt': value['createdAt'].toISOString(),
64
+ };
65
+ }
@@ -0,0 +1,56 @@
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 PaymentMethodTotals
16
+ */
17
+ export interface PaymentMethodTotals {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PaymentMethodTotals
22
+ */
23
+ paymentMethodType?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PaymentMethodTotals
28
+ */
29
+ cardBrand?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PaymentMethodTotals
34
+ */
35
+ currency: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof PaymentMethodTotals
40
+ */
41
+ count: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof PaymentMethodTotals
46
+ */
47
+ volumeCents: number;
48
+ }
49
+ /**
50
+ * Check if a given object implements the PaymentMethodTotals interface.
51
+ */
52
+ export declare function instanceOfPaymentMethodTotals(value: object): value is PaymentMethodTotals;
53
+ export declare function PaymentMethodTotalsFromJSON(json: any): PaymentMethodTotals;
54
+ export declare function PaymentMethodTotalsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethodTotals;
55
+ export declare function PaymentMethodTotalsToJSON(json: any): PaymentMethodTotals;
56
+ export declare function PaymentMethodTotalsToJSONTyped(value?: PaymentMethodTotals | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.instanceOfPaymentMethodTotals = instanceOfPaymentMethodTotals;
17
+ exports.PaymentMethodTotalsFromJSON = PaymentMethodTotalsFromJSON;
18
+ exports.PaymentMethodTotalsFromJSONTyped = PaymentMethodTotalsFromJSONTyped;
19
+ exports.PaymentMethodTotalsToJSON = PaymentMethodTotalsToJSON;
20
+ exports.PaymentMethodTotalsToJSONTyped = PaymentMethodTotalsToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PaymentMethodTotals interface.
23
+ */
24
+ function instanceOfPaymentMethodTotals(value) {
25
+ if (!('currency' in value) || value['currency'] === undefined)
26
+ return false;
27
+ if (!('count' in value) || value['count'] === undefined)
28
+ return false;
29
+ if (!('volumeCents' in value) || value['volumeCents'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function PaymentMethodTotalsFromJSON(json) {
34
+ return PaymentMethodTotalsFromJSONTyped(json, false);
35
+ }
36
+ function PaymentMethodTotalsFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'paymentMethodType': json['paymentMethodType'] == null ? undefined : json['paymentMethodType'],
42
+ 'cardBrand': json['cardBrand'] == null ? undefined : json['cardBrand'],
43
+ 'currency': json['currency'],
44
+ 'count': json['count'],
45
+ 'volumeCents': json['volumeCents'],
46
+ };
47
+ }
48
+ function PaymentMethodTotalsToJSON(json) {
49
+ return PaymentMethodTotalsToJSONTyped(json, false);
50
+ }
51
+ function PaymentMethodTotalsToJSONTyped(value, ignoreDiscriminator) {
52
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'paymentMethodType': value['paymentMethodType'],
58
+ 'cardBrand': value['cardBrand'],
59
+ 'currency': value['currency'],
60
+ 'count': value['count'],
61
+ 'volumeCents': value['volumeCents'],
62
+ };
63
+ }
@@ -13,8 +13,10 @@ import type { PaymentMethodType } from './PaymentMethodType';
13
13
  import type { TaxCalculationStatus } from './TaxCalculationStatus';
14
14
  import type { PaymentAddress } from './PaymentAddress';
15
15
  import type { PaymentLineItem } from './PaymentLineItem';
16
+ import type { PaymentDispute } from './PaymentDispute';
16
17
  import type { StateHistory } from './StateHistory';
17
18
  import type { RefundRecord } from './RefundRecord';
19
+ import type { PaymentChargeMethod } from './PaymentChargeMethod';
18
20
  /**
19
21
  *
20
22
  * @export
@@ -173,6 +175,18 @@ export interface PaymentObject {
173
175
  * @memberof PaymentObject
174
176
  */
175
177
  subscriptionStripeTaxTransactionId?: string | null;
178
+ /**
179
+ *
180
+ * @type {PaymentChargeMethod}
181
+ * @memberof PaymentObject
182
+ */
183
+ chargeMethod?: PaymentChargeMethod;
184
+ /**
185
+ *
186
+ * @type {PaymentDispute}
187
+ * @memberof PaymentObject
188
+ */
189
+ dispute?: PaymentDispute;
176
190
  /**
177
191
  *
178
192
  * @type {string}
@@ -23,8 +23,10 @@ var PaymentMethodType_1 = require("./PaymentMethodType");
23
23
  var TaxCalculationStatus_1 = require("./TaxCalculationStatus");
24
24
  var PaymentAddress_1 = require("./PaymentAddress");
25
25
  var PaymentLineItem_1 = require("./PaymentLineItem");
26
+ var PaymentDispute_1 = require("./PaymentDispute");
26
27
  var StateHistory_1 = require("./StateHistory");
27
28
  var RefundRecord_1 = require("./RefundRecord");
29
+ var PaymentChargeMethod_1 = require("./PaymentChargeMethod");
28
30
  /**
29
31
  * @export
30
32
  */
@@ -104,6 +106,8 @@ function PaymentObjectFromJSONTyped(json, ignoreDiscriminator) {
104
106
  'stripeTaxTransactionId': json['stripeTaxTransactionId'] == null ? undefined : json['stripeTaxTransactionId'],
105
107
  'subscriptionStripeTaxCalculationId': json['subscriptionStripeTaxCalculationId'] == null ? undefined : json['subscriptionStripeTaxCalculationId'],
106
108
  'subscriptionStripeTaxTransactionId': json['subscriptionStripeTaxTransactionId'] == null ? undefined : json['subscriptionStripeTaxTransactionId'],
109
+ 'chargeMethod': json['chargeMethod'] == null ? undefined : (0, PaymentChargeMethod_1.PaymentChargeMethodFromJSON)(json['chargeMethod']),
110
+ 'dispute': json['dispute'] == null ? undefined : (0, PaymentDispute_1.PaymentDisputeFromJSON)(json['dispute']),
107
111
  'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
108
112
  'subscriptionIds': json['subscriptionIds'],
109
113
  'scheduledSubscriptionIds': json['scheduledSubscriptionIds'] == null ? undefined : json['scheduledSubscriptionIds'],
@@ -149,6 +153,8 @@ function PaymentObjectToJSONTyped(value, ignoreDiscriminator) {
149
153
  'stripeTaxTransactionId': value['stripeTaxTransactionId'],
150
154
  'subscriptionStripeTaxCalculationId': value['subscriptionStripeTaxCalculationId'],
151
155
  'subscriptionStripeTaxTransactionId': value['subscriptionStripeTaxTransactionId'],
156
+ 'chargeMethod': (0, PaymentChargeMethod_1.PaymentChargeMethodToJSON)(value['chargeMethod']),
157
+ 'dispute': (0, PaymentDispute_1.PaymentDisputeToJSON)(value['dispute']),
152
158
  'subscriptionId': value['subscriptionId'],
153
159
  'subscriptionIds': value['subscriptionIds'],
154
160
  'scheduledSubscriptionIds': value['scheduledSubscriptionIds'],
@@ -84,6 +84,7 @@ export * from './CurrencyVolumeSeries';
84
84
  export * from './CustomDomain';
85
85
  export * from './CustomDomainResponse';
86
86
  export * from './CustomEmailTemplateObject';
87
+ export * from './DisputeTotals';
87
88
  export * from './DnsRecordCheck';
88
89
  export * from './DnsRecordRequirement';
89
90
  export * from './DnsValidationResult';
@@ -166,9 +167,12 @@ export * from './PasswordConfig';
166
167
  export * from './PasswordLoginRequest';
167
168
  export * from './PaymentAddress';
168
169
  export * from './PaymentAnalyticsResponse';
170
+ export * from './PaymentChargeMethod';
171
+ export * from './PaymentDispute';
169
172
  export * from './PaymentFilter';
170
173
  export * from './PaymentLineItem';
171
174
  export * from './PaymentMethodObject';
175
+ export * from './PaymentMethodTotals';
172
176
  export * from './PaymentMethodType';
173
177
  export * from './PaymentObject';
174
178
  export * from './PaymentSearchRequest';
@@ -102,6 +102,7 @@ __exportStar(require("./CurrencyVolumeSeries"), exports);
102
102
  __exportStar(require("./CustomDomain"), exports);
103
103
  __exportStar(require("./CustomDomainResponse"), exports);
104
104
  __exportStar(require("./CustomEmailTemplateObject"), exports);
105
+ __exportStar(require("./DisputeTotals"), exports);
105
106
  __exportStar(require("./DnsRecordCheck"), exports);
106
107
  __exportStar(require("./DnsRecordRequirement"), exports);
107
108
  __exportStar(require("./DnsValidationResult"), exports);
@@ -184,9 +185,12 @@ __exportStar(require("./PasswordConfig"), exports);
184
185
  __exportStar(require("./PasswordLoginRequest"), exports);
185
186
  __exportStar(require("./PaymentAddress"), exports);
186
187
  __exportStar(require("./PaymentAnalyticsResponse"), exports);
188
+ __exportStar(require("./PaymentChargeMethod"), exports);
189
+ __exportStar(require("./PaymentDispute"), exports);
187
190
  __exportStar(require("./PaymentFilter"), exports);
188
191
  __exportStar(require("./PaymentLineItem"), exports);
189
192
  __exportStar(require("./PaymentMethodObject"), exports);
193
+ __exportStar(require("./PaymentMethodTotals"), exports);
190
194
  __exportStar(require("./PaymentMethodType"), exports);
191
195
  __exportStar(require("./PaymentObject"), exports);
192
196
  __exportStar(require("./PaymentSearchRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forteplatforms/sdk",
3
- "version": "1.0.548",
3
+ "version": "1.0.555",
4
4
  "description": "Official TypeScript SDK for Forte Platforms",
5
5
  "author": "Forte Platforms <support@forteplatforms.com>",
6
6
  "repository": {