@forteplatforms/sdk 1.0.551 → 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.
- package/dist/generated/models/DisputeTotals.d.ts +62 -0
- package/dist/generated/models/DisputeTotals.js +71 -0
- package/dist/generated/models/PaymentAnalyticsResponse.d.ts +14 -0
- package/dist/generated/models/PaymentAnalyticsResponse.js +6 -0
- package/dist/generated/models/PaymentChargeMethod.d.ts +56 -0
- package/dist/generated/models/PaymentChargeMethod.js +59 -0
- package/dist/generated/models/PaymentDispute.d.ts +56 -0
- package/dist/generated/models/PaymentDispute.js +65 -0
- package/dist/generated/models/PaymentMethodTotals.d.ts +56 -0
- package/dist/generated/models/PaymentMethodTotals.js +63 -0
- package/dist/generated/models/PaymentObject.d.ts +14 -0
- package/dist/generated/models/PaymentObject.js +6 -0
- package/dist/generated/models/index.d.ts +4 -0
- package/dist/generated/models/index.js +4 -0
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -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);
|