@managespace/sdk 0.0.17 → 0.0.18
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/create-plan-charge.d.ts +0 -97
- package/dist/generated/models/create-plan-charge.d.ts.map +1 -1
- package/dist/generated/models/create-plan-charge.js +0 -65
- package/dist/generated/models/create-plan.d.ts +4 -10
- package/dist/generated/models/create-plan.d.ts.map +1 -1
- package/dist/generated/models/create-plan.js +6 -10
- package/dist/generated/models/plan-charge-response.d.ts +10 -10
- package/dist/generated/models/plan-charge-response.d.ts.map +1 -1
- package/dist/generated/models/plan-charge-response.js +8 -8
- package/dist/generated/models/plan-response.d.ts +18 -6
- package/dist/generated/models/plan-response.d.ts.map +1 -1
- package/dist/generated/models/plan-response.js +12 -4
- package/package.json +1 -1
- package/src/generated/models/create-plan-charge.ts +0 -152
- package/src/generated/models/create-plan.ts +10 -19
- package/src/generated/models/plan-charge-response.ts +16 -16
- package/src/generated/models/plan-response.ts +27 -9
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { TransactionPostingEntries } from './transaction-posting-entries';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -28,114 +27,18 @@ export interface CreatePlanCharge {
|
|
|
28
27
|
* @memberof CreatePlanCharge
|
|
29
28
|
*/
|
|
30
29
|
name: string;
|
|
31
|
-
/**
|
|
32
|
-
* Description of charge
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof CreatePlanCharge
|
|
35
|
-
*/
|
|
36
|
-
description: string;
|
|
37
30
|
/**
|
|
38
31
|
* Type of charge
|
|
39
32
|
* @type {string}
|
|
40
33
|
* @memberof CreatePlanCharge
|
|
41
34
|
*/
|
|
42
35
|
type: string;
|
|
43
|
-
/**
|
|
44
|
-
* Timing of charge
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof CreatePlanCharge
|
|
47
|
-
*/
|
|
48
|
-
chargeTiming: string;
|
|
49
|
-
/**
|
|
50
|
-
* How Charge will be priced
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof CreatePlanCharge
|
|
53
|
-
*/
|
|
54
|
-
pricingModel: string;
|
|
55
|
-
/**
|
|
56
|
-
* Original unit price of Charge
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof CreatePlanCharge
|
|
59
|
-
*/
|
|
60
|
-
listPrice: string;
|
|
61
|
-
/**
|
|
62
|
-
* List price of charge
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof CreatePlanCharge
|
|
65
|
-
*/
|
|
66
|
-
listPriceBase: string;
|
|
67
36
|
/**
|
|
68
37
|
* Billing period for recurring and usage based Charges
|
|
69
38
|
* @type {string}
|
|
70
39
|
* @memberof CreatePlanCharge
|
|
71
40
|
*/
|
|
72
41
|
billingPeriod: string;
|
|
73
|
-
/**
|
|
74
|
-
* Determine boundary of Charge period
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof CreatePlanCharge
|
|
77
|
-
*/
|
|
78
|
-
billingPeriodStartAlignment: string;
|
|
79
|
-
/**
|
|
80
|
-
* Which day of the month or week Charge is invoiced
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof CreatePlanCharge
|
|
83
|
-
*/
|
|
84
|
-
billingDay: string;
|
|
85
|
-
/**
|
|
86
|
-
* Date after which the One time charges should be processed
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof CreatePlanCharge
|
|
89
|
-
*/
|
|
90
|
-
billingDate: string;
|
|
91
|
-
/**
|
|
92
|
-
* Charge for partial periods
|
|
93
|
-
* @type {boolean}
|
|
94
|
-
* @memberof CreatePlanCharge
|
|
95
|
-
*/
|
|
96
|
-
proratePartialPeriods: boolean;
|
|
97
|
-
/**
|
|
98
|
-
* Determines proration logic
|
|
99
|
-
* @type {boolean}
|
|
100
|
-
* @memberof CreatePlanCharge
|
|
101
|
-
*/
|
|
102
|
-
backchargeCurrentPeriod: boolean;
|
|
103
|
-
/**
|
|
104
|
-
* Number of periods/units to charge
|
|
105
|
-
* @type {number}
|
|
106
|
-
* @memberof CreatePlanCharge
|
|
107
|
-
*/
|
|
108
|
-
prepaymentPeriods: number;
|
|
109
|
-
/**
|
|
110
|
-
* Determines account information for charge
|
|
111
|
-
* @type {boolean}
|
|
112
|
-
* @memberof CreatePlanCharge
|
|
113
|
-
*/
|
|
114
|
-
defaultFromProduct: boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Revenue rule ID
|
|
117
|
-
* @type {string}
|
|
118
|
-
* @memberof CreatePlanCharge
|
|
119
|
-
*/
|
|
120
|
-
revenueRuleId: string;
|
|
121
|
-
/**
|
|
122
|
-
* Date when revenue recognition will begin
|
|
123
|
-
* @type {string}
|
|
124
|
-
* @memberof CreatePlanCharge
|
|
125
|
-
*/
|
|
126
|
-
recognitionStartDate: string;
|
|
127
|
-
/**
|
|
128
|
-
* Date when revenue recognition will end
|
|
129
|
-
* @type {string}
|
|
130
|
-
* @memberof CreatePlanCharge
|
|
131
|
-
*/
|
|
132
|
-
recognitionEndDate: string;
|
|
133
|
-
/**
|
|
134
|
-
* Product transaction posting entries
|
|
135
|
-
* @type {Array<TransactionPostingEntries>}
|
|
136
|
-
* @memberof CreatePlanCharge
|
|
137
|
-
*/
|
|
138
|
-
transactionPostingEntries: Array<TransactionPostingEntries>;
|
|
139
42
|
}
|
|
140
43
|
/**
|
|
141
44
|
* Check if a given object implements the CreatePlanCharge interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-plan-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-plan-charge.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH
|
|
1
|
+
{"version":3,"file":"create-plan-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-plan-charge.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAMnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAWvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYtH"}
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreatePlanChargeToJSONTyped = exports.CreatePlanChargeToJSON = exports.CreatePlanChargeFromJSONTyped = exports.CreatePlanChargeFromJSON = exports.instanceOfCreatePlanCharge = void 0;
|
|
17
|
-
const transaction_posting_entries_1 = require("./transaction-posting-entries");
|
|
18
17
|
/**
|
|
19
18
|
* Check if a given object implements the CreatePlanCharge interface.
|
|
20
19
|
*/
|
|
@@ -23,42 +22,10 @@ function instanceOfCreatePlanCharge(value) {
|
|
|
23
22
|
return false;
|
|
24
23
|
if (!('name' in value) || value['name'] === undefined)
|
|
25
24
|
return false;
|
|
26
|
-
if (!('description' in value) || value['description'] === undefined)
|
|
27
|
-
return false;
|
|
28
25
|
if (!('type' in value) || value['type'] === undefined)
|
|
29
26
|
return false;
|
|
30
|
-
if (!('chargeTiming' in value) || value['chargeTiming'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
if (!('pricingModel' in value) || value['pricingModel'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (!('listPrice' in value) || value['listPrice'] === undefined)
|
|
35
|
-
return false;
|
|
36
|
-
if (!('listPriceBase' in value) || value['listPriceBase'] === undefined)
|
|
37
|
-
return false;
|
|
38
27
|
if (!('billingPeriod' in value) || value['billingPeriod'] === undefined)
|
|
39
28
|
return false;
|
|
40
|
-
if (!('billingPeriodStartAlignment' in value) || value['billingPeriodStartAlignment'] === undefined)
|
|
41
|
-
return false;
|
|
42
|
-
if (!('billingDay' in value) || value['billingDay'] === undefined)
|
|
43
|
-
return false;
|
|
44
|
-
if (!('billingDate' in value) || value['billingDate'] === undefined)
|
|
45
|
-
return false;
|
|
46
|
-
if (!('proratePartialPeriods' in value) || value['proratePartialPeriods'] === undefined)
|
|
47
|
-
return false;
|
|
48
|
-
if (!('backchargeCurrentPeriod' in value) || value['backchargeCurrentPeriod'] === undefined)
|
|
49
|
-
return false;
|
|
50
|
-
if (!('prepaymentPeriods' in value) || value['prepaymentPeriods'] === undefined)
|
|
51
|
-
return false;
|
|
52
|
-
if (!('defaultFromProduct' in value) || value['defaultFromProduct'] === undefined)
|
|
53
|
-
return false;
|
|
54
|
-
if (!('revenueRuleId' in value) || value['revenueRuleId'] === undefined)
|
|
55
|
-
return false;
|
|
56
|
-
if (!('recognitionStartDate' in value) || value['recognitionStartDate'] === undefined)
|
|
57
|
-
return false;
|
|
58
|
-
if (!('recognitionEndDate' in value) || value['recognitionEndDate'] === undefined)
|
|
59
|
-
return false;
|
|
60
|
-
if (!('transactionPostingEntries' in value) || value['transactionPostingEntries'] === undefined)
|
|
61
|
-
return false;
|
|
62
29
|
return true;
|
|
63
30
|
}
|
|
64
31
|
exports.instanceOfCreatePlanCharge = instanceOfCreatePlanCharge;
|
|
@@ -73,24 +40,8 @@ function CreatePlanChargeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
73
40
|
return {
|
|
74
41
|
'productId': json['productId'],
|
|
75
42
|
'name': json['name'],
|
|
76
|
-
'description': json['description'],
|
|
77
43
|
'type': json['type'],
|
|
78
|
-
'chargeTiming': json['chargeTiming'],
|
|
79
|
-
'pricingModel': json['pricingModel'],
|
|
80
|
-
'listPrice': json['listPrice'],
|
|
81
|
-
'listPriceBase': json['listPriceBase'],
|
|
82
44
|
'billingPeriod': json['billingPeriod'],
|
|
83
|
-
'billingPeriodStartAlignment': json['billingPeriodStartAlignment'],
|
|
84
|
-
'billingDay': json['billingDay'],
|
|
85
|
-
'billingDate': json['billingDate'],
|
|
86
|
-
'proratePartialPeriods': json['proratePartialPeriods'],
|
|
87
|
-
'backchargeCurrentPeriod': json['backchargeCurrentPeriod'],
|
|
88
|
-
'prepaymentPeriods': json['prepaymentPeriods'],
|
|
89
|
-
'defaultFromProduct': json['defaultFromProduct'],
|
|
90
|
-
'revenueRuleId': json['revenueRuleId'],
|
|
91
|
-
'recognitionStartDate': json['recognitionStartDate'],
|
|
92
|
-
'recognitionEndDate': json['recognitionEndDate'],
|
|
93
|
-
'transactionPostingEntries': (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
|
|
94
45
|
};
|
|
95
46
|
}
|
|
96
47
|
exports.CreatePlanChargeFromJSONTyped = CreatePlanChargeFromJSONTyped;
|
|
@@ -105,24 +56,8 @@ function CreatePlanChargeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
105
56
|
return {
|
|
106
57
|
'productId': value['productId'],
|
|
107
58
|
'name': value['name'],
|
|
108
|
-
'description': value['description'],
|
|
109
59
|
'type': value['type'],
|
|
110
|
-
'chargeTiming': value['chargeTiming'],
|
|
111
|
-
'pricingModel': value['pricingModel'],
|
|
112
|
-
'listPrice': value['listPrice'],
|
|
113
|
-
'listPriceBase': value['listPriceBase'],
|
|
114
60
|
'billingPeriod': value['billingPeriod'],
|
|
115
|
-
'billingPeriodStartAlignment': value['billingPeriodStartAlignment'],
|
|
116
|
-
'billingDay': value['billingDay'],
|
|
117
|
-
'billingDate': value['billingDate'],
|
|
118
|
-
'proratePartialPeriods': value['proratePartialPeriods'],
|
|
119
|
-
'backchargeCurrentPeriod': value['backchargeCurrentPeriod'],
|
|
120
|
-
'prepaymentPeriods': value['prepaymentPeriods'],
|
|
121
|
-
'defaultFromProduct': value['defaultFromProduct'],
|
|
122
|
-
'revenueRuleId': value['revenueRuleId'],
|
|
123
|
-
'recognitionStartDate': value['recognitionStartDate'],
|
|
124
|
-
'recognitionEndDate': value['recognitionEndDate'],
|
|
125
|
-
'transactionPostingEntries': (value['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesToJSON)),
|
|
126
61
|
};
|
|
127
62
|
}
|
|
128
63
|
exports.CreatePlanChargeToJSONTyped = CreatePlanChargeToJSONTyped;
|
|
@@ -23,23 +23,17 @@ export interface CreatePlan {
|
|
|
23
23
|
*/
|
|
24
24
|
name: string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Product ID
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof CreatePlan
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
productId: string;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Product name
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof CreatePlan
|
|
35
35
|
*/
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* URL used for self sign up
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof CreatePlan
|
|
41
|
-
*/
|
|
42
|
-
publicUrl: string;
|
|
36
|
+
productName: string;
|
|
43
37
|
/**
|
|
44
38
|
* Charges associated with plan
|
|
45
39
|
* @type {Array<CreatePlanCharge>}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-plan.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-plan.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAQ7D;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"create-plan.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-plan.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAQ7D;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAMvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAW3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY1G"}
|
|
@@ -21,11 +21,9 @@ const create_plan_charge_1 = require("./create-plan-charge");
|
|
|
21
21
|
function instanceOfCreatePlan(value) {
|
|
22
22
|
if (!('name' in value) || value['name'] === undefined)
|
|
23
23
|
return false;
|
|
24
|
-
if (!('
|
|
24
|
+
if (!('productId' in value) || value['productId'] === undefined)
|
|
25
25
|
return false;
|
|
26
|
-
if (!('
|
|
27
|
-
return false;
|
|
28
|
-
if (!('publicUrl' in value) || value['publicUrl'] === undefined)
|
|
26
|
+
if (!('productName' in value) || value['productName'] === undefined)
|
|
29
27
|
return false;
|
|
30
28
|
if (!('charges' in value) || value['charges'] === undefined)
|
|
31
29
|
return false;
|
|
@@ -42,9 +40,8 @@ function CreatePlanFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
40
|
}
|
|
43
41
|
return {
|
|
44
42
|
'name': json['name'],
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'publicUrl': json['publicUrl'],
|
|
43
|
+
'productId': json['productId'],
|
|
44
|
+
'productName': json['productName'],
|
|
48
45
|
'charges': (json['charges'].map(create_plan_charge_1.CreatePlanChargeFromJSON)),
|
|
49
46
|
};
|
|
50
47
|
}
|
|
@@ -59,9 +56,8 @@ function CreatePlanToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
59
56
|
}
|
|
60
57
|
return {
|
|
61
58
|
'name': value['name'],
|
|
62
|
-
'
|
|
63
|
-
'
|
|
64
|
-
'publicUrl': value['publicUrl'],
|
|
59
|
+
'productId': value['productId'],
|
|
60
|
+
'productName': value['productName'],
|
|
65
61
|
'charges': (value['charges'].map(create_plan_charge_1.CreatePlanChargeToJSON)),
|
|
66
62
|
};
|
|
67
63
|
}
|
|
@@ -35,17 +35,23 @@ export interface PlanChargeResponse {
|
|
|
35
35
|
*/
|
|
36
36
|
name: string;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Type of charge
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof PlanChargeResponse
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
type: string;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Billing period for recurring and usage based Charges
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof PlanChargeResponse
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
billingPeriod: string;
|
|
49
|
+
/**
|
|
50
|
+
* Description of charge
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PlanChargeResponse
|
|
53
|
+
*/
|
|
54
|
+
description: string;
|
|
49
55
|
/**
|
|
50
56
|
* Line number
|
|
51
57
|
* @type {number}
|
|
@@ -76,12 +82,6 @@ export interface PlanChargeResponse {
|
|
|
76
82
|
* @memberof PlanChargeResponse
|
|
77
83
|
*/
|
|
78
84
|
listPriceBase: string;
|
|
79
|
-
/**
|
|
80
|
-
* Billing period for recurring and usage based Charges
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof PlanChargeResponse
|
|
83
|
-
*/
|
|
84
|
-
billingPeriod: string;
|
|
85
85
|
/**
|
|
86
86
|
* Determine boundary of Charge period
|
|
87
87
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-charge-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/plan-charge-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAQ/E;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"plan-charge-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/plan-charge-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAQ/E;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,2BAA2B,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,uBAAuB,EAAE,OAAO,CAAC;IACjC;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,kBAAkB,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,yBAAyB,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5D;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAyBvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CA8B3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CA+B1H"}
|
|
@@ -25,10 +25,12 @@ function instanceOfPlanChargeResponse(value) {
|
|
|
25
25
|
return false;
|
|
26
26
|
if (!('name' in value) || value['name'] === undefined)
|
|
27
27
|
return false;
|
|
28
|
-
if (!('description' in value) || value['description'] === undefined)
|
|
29
|
-
return false;
|
|
30
28
|
if (!('type' in value) || value['type'] === undefined)
|
|
31
29
|
return false;
|
|
30
|
+
if (!('billingPeriod' in value) || value['billingPeriod'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
33
|
+
return false;
|
|
32
34
|
if (!('lineNumber' in value) || value['lineNumber'] === undefined)
|
|
33
35
|
return false;
|
|
34
36
|
if (!('chargeTiming' in value) || value['chargeTiming'] === undefined)
|
|
@@ -39,8 +41,6 @@ function instanceOfPlanChargeResponse(value) {
|
|
|
39
41
|
return false;
|
|
40
42
|
if (!('listPriceBase' in value) || value['listPriceBase'] === undefined)
|
|
41
43
|
return false;
|
|
42
|
-
if (!('billingPeriod' in value) || value['billingPeriod'] === undefined)
|
|
43
|
-
return false;
|
|
44
44
|
if (!('billingPeriodStartAlignment' in value) || value['billingPeriodStartAlignment'] === undefined)
|
|
45
45
|
return false;
|
|
46
46
|
if (!('billingDay' in value) || value['billingDay'] === undefined)
|
|
@@ -80,14 +80,14 @@ function PlanChargeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
80
80
|
'id': json['id'],
|
|
81
81
|
'productId': json['productId'],
|
|
82
82
|
'name': json['name'],
|
|
83
|
-
'description': json['description'],
|
|
84
83
|
'type': json['type'],
|
|
84
|
+
'billingPeriod': json['billingPeriod'],
|
|
85
|
+
'description': json['description'],
|
|
85
86
|
'lineNumber': json['lineNumber'],
|
|
86
87
|
'chargeTiming': json['chargeTiming'],
|
|
87
88
|
'pricingModel': json['pricingModel'],
|
|
88
89
|
'listPrice': json['listPrice'],
|
|
89
90
|
'listPriceBase': json['listPriceBase'],
|
|
90
|
-
'billingPeriod': json['billingPeriod'],
|
|
91
91
|
'billingPeriodStartAlignment': json['billingPeriodStartAlignment'],
|
|
92
92
|
'billingDay': json['billingDay'],
|
|
93
93
|
'billingDate': json['billingDate'],
|
|
@@ -115,14 +115,14 @@ function PlanChargeResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
115
115
|
'id': value['id'],
|
|
116
116
|
'productId': value['productId'],
|
|
117
117
|
'name': value['name'],
|
|
118
|
-
'description': value['description'],
|
|
119
118
|
'type': value['type'],
|
|
119
|
+
'billingPeriod': value['billingPeriod'],
|
|
120
|
+
'description': value['description'],
|
|
120
121
|
'lineNumber': value['lineNumber'],
|
|
121
122
|
'chargeTiming': value['chargeTiming'],
|
|
122
123
|
'pricingModel': value['pricingModel'],
|
|
123
124
|
'listPrice': value['listPrice'],
|
|
124
125
|
'listPriceBase': value['listPriceBase'],
|
|
125
|
-
'billingPeriod': value['billingPeriod'],
|
|
126
126
|
'billingPeriodStartAlignment': value['billingPeriodStartAlignment'],
|
|
127
127
|
'billingDay': value['billingDay'],
|
|
128
128
|
'billingDate': value['billingDate'],
|
|
@@ -28,6 +28,18 @@ export interface PlanResponse {
|
|
|
28
28
|
* @memberof PlanResponse
|
|
29
29
|
*/
|
|
30
30
|
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Product ID
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PlanResponse
|
|
35
|
+
*/
|
|
36
|
+
productId: string;
|
|
37
|
+
/**
|
|
38
|
+
* Product name
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PlanResponse
|
|
41
|
+
*/
|
|
42
|
+
productName: string;
|
|
31
43
|
/**
|
|
32
44
|
* Plan status
|
|
33
45
|
* @type {string}
|
|
@@ -46,6 +58,12 @@ export interface PlanResponse {
|
|
|
46
58
|
* @memberof PlanResponse
|
|
47
59
|
*/
|
|
48
60
|
showSsp: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* URL used for self sign up
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PlanResponse
|
|
65
|
+
*/
|
|
66
|
+
publicUrl: string;
|
|
49
67
|
/**
|
|
50
68
|
* Email of user who created record
|
|
51
69
|
* @type {string}
|
|
@@ -76,12 +94,6 @@ export interface PlanResponse {
|
|
|
76
94
|
* @memberof PlanResponse
|
|
77
95
|
*/
|
|
78
96
|
charges: Array<PlanChargeResponse>;
|
|
79
|
-
/**
|
|
80
|
-
* URL used for self sign up
|
|
81
|
-
* @type {string}
|
|
82
|
-
* @memberof PlanResponse
|
|
83
|
-
*/
|
|
84
|
-
publicUrl: string;
|
|
85
97
|
/**
|
|
86
98
|
* Custom fields on the invoice
|
|
87
99
|
* @type {object}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/plan-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAQjE;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"plan-response.d.ts","sourceRoot":"","sources":["../../../src/generated/models/plan-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAQjE;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACnC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAgB3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAqB/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAsB9G"}
|
|
@@ -23,12 +23,18 @@ function instanceOfPlanResponse(value) {
|
|
|
23
23
|
return false;
|
|
24
24
|
if (!('name' in value) || value['name'] === undefined)
|
|
25
25
|
return false;
|
|
26
|
+
if (!('productId' in value) || value['productId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('productName' in value) || value['productName'] === undefined)
|
|
29
|
+
return false;
|
|
26
30
|
if (!('status' in value) || value['status'] === undefined)
|
|
27
31
|
return false;
|
|
28
32
|
if (!('description' in value) || value['description'] === undefined)
|
|
29
33
|
return false;
|
|
30
34
|
if (!('showSsp' in value) || value['showSsp'] === undefined)
|
|
31
35
|
return false;
|
|
36
|
+
if (!('publicUrl' in value) || value['publicUrl'] === undefined)
|
|
37
|
+
return false;
|
|
32
38
|
if (!('createdBy' in value) || value['createdBy'] === undefined)
|
|
33
39
|
return false;
|
|
34
40
|
if (!('updatedBy' in value) || value['updatedBy'] === undefined)
|
|
@@ -39,8 +45,6 @@ function instanceOfPlanResponse(value) {
|
|
|
39
45
|
return false;
|
|
40
46
|
if (!('charges' in value) || value['charges'] === undefined)
|
|
41
47
|
return false;
|
|
42
|
-
if (!('publicUrl' in value) || value['publicUrl'] === undefined)
|
|
43
|
-
return false;
|
|
44
48
|
if (!('customFields' in value) || value['customFields'] === undefined)
|
|
45
49
|
return false;
|
|
46
50
|
return true;
|
|
@@ -57,15 +61,17 @@ function PlanResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
61
|
return {
|
|
58
62
|
'id': json['id'],
|
|
59
63
|
'name': json['name'],
|
|
64
|
+
'productId': json['productId'],
|
|
65
|
+
'productName': json['productName'],
|
|
60
66
|
'status': json['status'],
|
|
61
67
|
'description': json['description'],
|
|
62
68
|
'showSsp': json['showSsp'],
|
|
69
|
+
'publicUrl': json['publicUrl'],
|
|
63
70
|
'createdBy': json['createdBy'],
|
|
64
71
|
'updatedBy': json['updatedBy'],
|
|
65
72
|
'createdAt': json['createdAt'],
|
|
66
73
|
'updatedAt': json['updatedAt'],
|
|
67
74
|
'charges': (json['charges'].map(plan_charge_response_1.PlanChargeResponseFromJSON)),
|
|
68
|
-
'publicUrl': json['publicUrl'],
|
|
69
75
|
'customFields': json['customFields'],
|
|
70
76
|
};
|
|
71
77
|
}
|
|
@@ -81,15 +87,17 @@ function PlanResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
81
87
|
return {
|
|
82
88
|
'id': value['id'],
|
|
83
89
|
'name': value['name'],
|
|
90
|
+
'productId': value['productId'],
|
|
91
|
+
'productName': value['productName'],
|
|
84
92
|
'status': value['status'],
|
|
85
93
|
'description': value['description'],
|
|
86
94
|
'showSsp': value['showSsp'],
|
|
95
|
+
'publicUrl': value['publicUrl'],
|
|
87
96
|
'createdBy': value['createdBy'],
|
|
88
97
|
'updatedBy': value['updatedBy'],
|
|
89
98
|
'createdAt': value['createdAt'],
|
|
90
99
|
'updatedAt': value['updatedAt'],
|
|
91
100
|
'charges': (value['charges'].map(plan_charge_response_1.PlanChargeResponseToJSON)),
|
|
92
|
-
'publicUrl': value['publicUrl'],
|
|
93
101
|
'customFields': value['customFields'],
|
|
94
102
|
};
|
|
95
103
|
}
|
package/package.json
CHANGED
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type { TransactionPostingEntries } from './transaction-posting-entries';
|
|
17
|
-
import {
|
|
18
|
-
TransactionPostingEntriesFromJSON,
|
|
19
|
-
TransactionPostingEntriesFromJSONTyped,
|
|
20
|
-
TransactionPostingEntriesToJSON,
|
|
21
|
-
TransactionPostingEntriesToJSONTyped,
|
|
22
|
-
} from './transaction-posting-entries';
|
|
23
|
-
|
|
24
16
|
/**
|
|
25
17
|
*
|
|
26
18
|
* @export
|
|
@@ -39,114 +31,18 @@ export interface CreatePlanCharge {
|
|
|
39
31
|
* @memberof CreatePlanCharge
|
|
40
32
|
*/
|
|
41
33
|
name: string;
|
|
42
|
-
/**
|
|
43
|
-
* Description of charge
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof CreatePlanCharge
|
|
46
|
-
*/
|
|
47
|
-
description: string;
|
|
48
34
|
/**
|
|
49
35
|
* Type of charge
|
|
50
36
|
* @type {string}
|
|
51
37
|
* @memberof CreatePlanCharge
|
|
52
38
|
*/
|
|
53
39
|
type: string;
|
|
54
|
-
/**
|
|
55
|
-
* Timing of charge
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof CreatePlanCharge
|
|
58
|
-
*/
|
|
59
|
-
chargeTiming: string;
|
|
60
|
-
/**
|
|
61
|
-
* How Charge will be priced
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof CreatePlanCharge
|
|
64
|
-
*/
|
|
65
|
-
pricingModel: string;
|
|
66
|
-
/**
|
|
67
|
-
* Original unit price of Charge
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof CreatePlanCharge
|
|
70
|
-
*/
|
|
71
|
-
listPrice: string;
|
|
72
|
-
/**
|
|
73
|
-
* List price of charge
|
|
74
|
-
* @type {string}
|
|
75
|
-
* @memberof CreatePlanCharge
|
|
76
|
-
*/
|
|
77
|
-
listPriceBase: string;
|
|
78
40
|
/**
|
|
79
41
|
* Billing period for recurring and usage based Charges
|
|
80
42
|
* @type {string}
|
|
81
43
|
* @memberof CreatePlanCharge
|
|
82
44
|
*/
|
|
83
45
|
billingPeriod: string;
|
|
84
|
-
/**
|
|
85
|
-
* Determine boundary of Charge period
|
|
86
|
-
* @type {string}
|
|
87
|
-
* @memberof CreatePlanCharge
|
|
88
|
-
*/
|
|
89
|
-
billingPeriodStartAlignment: string;
|
|
90
|
-
/**
|
|
91
|
-
* Which day of the month or week Charge is invoiced
|
|
92
|
-
* @type {string}
|
|
93
|
-
* @memberof CreatePlanCharge
|
|
94
|
-
*/
|
|
95
|
-
billingDay: string;
|
|
96
|
-
/**
|
|
97
|
-
* Date after which the One time charges should be processed
|
|
98
|
-
* @type {string}
|
|
99
|
-
* @memberof CreatePlanCharge
|
|
100
|
-
*/
|
|
101
|
-
billingDate: string;
|
|
102
|
-
/**
|
|
103
|
-
* Charge for partial periods
|
|
104
|
-
* @type {boolean}
|
|
105
|
-
* @memberof CreatePlanCharge
|
|
106
|
-
*/
|
|
107
|
-
proratePartialPeriods: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* Determines proration logic
|
|
110
|
-
* @type {boolean}
|
|
111
|
-
* @memberof CreatePlanCharge
|
|
112
|
-
*/
|
|
113
|
-
backchargeCurrentPeriod: boolean;
|
|
114
|
-
/**
|
|
115
|
-
* Number of periods/units to charge
|
|
116
|
-
* @type {number}
|
|
117
|
-
* @memberof CreatePlanCharge
|
|
118
|
-
*/
|
|
119
|
-
prepaymentPeriods: number;
|
|
120
|
-
/**
|
|
121
|
-
* Determines account information for charge
|
|
122
|
-
* @type {boolean}
|
|
123
|
-
* @memberof CreatePlanCharge
|
|
124
|
-
*/
|
|
125
|
-
defaultFromProduct: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Revenue rule ID
|
|
128
|
-
* @type {string}
|
|
129
|
-
* @memberof CreatePlanCharge
|
|
130
|
-
*/
|
|
131
|
-
revenueRuleId: string;
|
|
132
|
-
/**
|
|
133
|
-
* Date when revenue recognition will begin
|
|
134
|
-
* @type {string}
|
|
135
|
-
* @memberof CreatePlanCharge
|
|
136
|
-
*/
|
|
137
|
-
recognitionStartDate: string;
|
|
138
|
-
/**
|
|
139
|
-
* Date when revenue recognition will end
|
|
140
|
-
* @type {string}
|
|
141
|
-
* @memberof CreatePlanCharge
|
|
142
|
-
*/
|
|
143
|
-
recognitionEndDate: string;
|
|
144
|
-
/**
|
|
145
|
-
* Product transaction posting entries
|
|
146
|
-
* @type {Array<TransactionPostingEntries>}
|
|
147
|
-
* @memberof CreatePlanCharge
|
|
148
|
-
*/
|
|
149
|
-
transactionPostingEntries: Array<TransactionPostingEntries>;
|
|
150
46
|
}
|
|
151
47
|
|
|
152
48
|
/**
|
|
@@ -155,24 +51,8 @@ export interface CreatePlanCharge {
|
|
|
155
51
|
export function instanceOfCreatePlanCharge(value: object): value is CreatePlanCharge {
|
|
156
52
|
if (!('productId' in value) || value['productId'] === undefined) return false;
|
|
157
53
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
158
|
-
if (!('description' in value) || value['description'] === undefined) return false;
|
|
159
54
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
160
|
-
if (!('chargeTiming' in value) || value['chargeTiming'] === undefined) return false;
|
|
161
|
-
if (!('pricingModel' in value) || value['pricingModel'] === undefined) return false;
|
|
162
|
-
if (!('listPrice' in value) || value['listPrice'] === undefined) return false;
|
|
163
|
-
if (!('listPriceBase' in value) || value['listPriceBase'] === undefined) return false;
|
|
164
55
|
if (!('billingPeriod' in value) || value['billingPeriod'] === undefined) return false;
|
|
165
|
-
if (!('billingPeriodStartAlignment' in value) || value['billingPeriodStartAlignment'] === undefined) return false;
|
|
166
|
-
if (!('billingDay' in value) || value['billingDay'] === undefined) return false;
|
|
167
|
-
if (!('billingDate' in value) || value['billingDate'] === undefined) return false;
|
|
168
|
-
if (!('proratePartialPeriods' in value) || value['proratePartialPeriods'] === undefined) return false;
|
|
169
|
-
if (!('backchargeCurrentPeriod' in value) || value['backchargeCurrentPeriod'] === undefined) return false;
|
|
170
|
-
if (!('prepaymentPeriods' in value) || value['prepaymentPeriods'] === undefined) return false;
|
|
171
|
-
if (!('defaultFromProduct' in value) || value['defaultFromProduct'] === undefined) return false;
|
|
172
|
-
if (!('revenueRuleId' in value) || value['revenueRuleId'] === undefined) return false;
|
|
173
|
-
if (!('recognitionStartDate' in value) || value['recognitionStartDate'] === undefined) return false;
|
|
174
|
-
if (!('recognitionEndDate' in value) || value['recognitionEndDate'] === undefined) return false;
|
|
175
|
-
if (!('transactionPostingEntries' in value) || value['transactionPostingEntries'] === undefined) return false;
|
|
176
56
|
return true;
|
|
177
57
|
}
|
|
178
58
|
|
|
@@ -188,24 +68,8 @@ export function CreatePlanChargeFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
188
68
|
|
|
189
69
|
'productId': json['productId'],
|
|
190
70
|
'name': json['name'],
|
|
191
|
-
'description': json['description'],
|
|
192
71
|
'type': json['type'],
|
|
193
|
-
'chargeTiming': json['chargeTiming'],
|
|
194
|
-
'pricingModel': json['pricingModel'],
|
|
195
|
-
'listPrice': json['listPrice'],
|
|
196
|
-
'listPriceBase': json['listPriceBase'],
|
|
197
72
|
'billingPeriod': json['billingPeriod'],
|
|
198
|
-
'billingPeriodStartAlignment': json['billingPeriodStartAlignment'],
|
|
199
|
-
'billingDay': json['billingDay'],
|
|
200
|
-
'billingDate': json['billingDate'],
|
|
201
|
-
'proratePartialPeriods': json['proratePartialPeriods'],
|
|
202
|
-
'backchargeCurrentPeriod': json['backchargeCurrentPeriod'],
|
|
203
|
-
'prepaymentPeriods': json['prepaymentPeriods'],
|
|
204
|
-
'defaultFromProduct': json['defaultFromProduct'],
|
|
205
|
-
'revenueRuleId': json['revenueRuleId'],
|
|
206
|
-
'recognitionStartDate': json['recognitionStartDate'],
|
|
207
|
-
'recognitionEndDate': json['recognitionEndDate'],
|
|
208
|
-
'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
|
|
209
73
|
};
|
|
210
74
|
}
|
|
211
75
|
|
|
@@ -222,24 +86,8 @@ export function CreatePlanChargeToJSONTyped(value?: CreatePlanCharge | null, ign
|
|
|
222
86
|
|
|
223
87
|
'productId': value['productId'],
|
|
224
88
|
'name': value['name'],
|
|
225
|
-
'description': value['description'],
|
|
226
89
|
'type': value['type'],
|
|
227
|
-
'chargeTiming': value['chargeTiming'],
|
|
228
|
-
'pricingModel': value['pricingModel'],
|
|
229
|
-
'listPrice': value['listPrice'],
|
|
230
|
-
'listPriceBase': value['listPriceBase'],
|
|
231
90
|
'billingPeriod': value['billingPeriod'],
|
|
232
|
-
'billingPeriodStartAlignment': value['billingPeriodStartAlignment'],
|
|
233
|
-
'billingDay': value['billingDay'],
|
|
234
|
-
'billingDate': value['billingDate'],
|
|
235
|
-
'proratePartialPeriods': value['proratePartialPeriods'],
|
|
236
|
-
'backchargeCurrentPeriod': value['backchargeCurrentPeriod'],
|
|
237
|
-
'prepaymentPeriods': value['prepaymentPeriods'],
|
|
238
|
-
'defaultFromProduct': value['defaultFromProduct'],
|
|
239
|
-
'revenueRuleId': value['revenueRuleId'],
|
|
240
|
-
'recognitionStartDate': value['recognitionStartDate'],
|
|
241
|
-
'recognitionEndDate': value['recognitionEndDate'],
|
|
242
|
-
'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
|
|
243
91
|
};
|
|
244
92
|
}
|
|
245
93
|
|
|
@@ -34,23 +34,17 @@ export interface CreatePlan {
|
|
|
34
34
|
*/
|
|
35
35
|
name: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Product ID
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CreatePlan
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
productId: string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Product name
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof CreatePlan
|
|
46
46
|
*/
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* URL used for self sign up
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof CreatePlan
|
|
52
|
-
*/
|
|
53
|
-
publicUrl: string;
|
|
47
|
+
productName: string;
|
|
54
48
|
/**
|
|
55
49
|
* Charges associated with plan
|
|
56
50
|
* @type {Array<CreatePlanCharge>}
|
|
@@ -64,9 +58,8 @@ export interface CreatePlan {
|
|
|
64
58
|
*/
|
|
65
59
|
export function instanceOfCreatePlan(value: object): value is CreatePlan {
|
|
66
60
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
67
|
-
if (!('
|
|
68
|
-
if (!('
|
|
69
|
-
if (!('publicUrl' in value) || value['publicUrl'] === undefined) return false;
|
|
61
|
+
if (!('productId' in value) || value['productId'] === undefined) return false;
|
|
62
|
+
if (!('productName' in value) || value['productName'] === undefined) return false;
|
|
70
63
|
if (!('charges' in value) || value['charges'] === undefined) return false;
|
|
71
64
|
return true;
|
|
72
65
|
}
|
|
@@ -82,9 +75,8 @@ export function CreatePlanFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
82
75
|
return {
|
|
83
76
|
|
|
84
77
|
'name': json['name'],
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'publicUrl': json['publicUrl'],
|
|
78
|
+
'productId': json['productId'],
|
|
79
|
+
'productName': json['productName'],
|
|
88
80
|
'charges': ((json['charges'] as Array<any>).map(CreatePlanChargeFromJSON)),
|
|
89
81
|
};
|
|
90
82
|
}
|
|
@@ -101,9 +93,8 @@ export function CreatePlanToJSONTyped(value?: CreatePlan | null, ignoreDiscrimin
|
|
|
101
93
|
return {
|
|
102
94
|
|
|
103
95
|
'name': value['name'],
|
|
104
|
-
'
|
|
105
|
-
'
|
|
106
|
-
'publicUrl': value['publicUrl'],
|
|
96
|
+
'productId': value['productId'],
|
|
97
|
+
'productName': value['productName'],
|
|
107
98
|
'charges': ((value['charges'] as Array<any>).map(CreatePlanChargeToJSON)),
|
|
108
99
|
};
|
|
109
100
|
}
|
|
@@ -46,17 +46,23 @@ export interface PlanChargeResponse {
|
|
|
46
46
|
*/
|
|
47
47
|
name: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Type of charge
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof PlanChargeResponse
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
type: string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Billing period for recurring and usage based Charges
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof PlanChargeResponse
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
billingPeriod: string;
|
|
60
|
+
/**
|
|
61
|
+
* Description of charge
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof PlanChargeResponse
|
|
64
|
+
*/
|
|
65
|
+
description: string;
|
|
60
66
|
/**
|
|
61
67
|
* Line number
|
|
62
68
|
* @type {number}
|
|
@@ -87,12 +93,6 @@ export interface PlanChargeResponse {
|
|
|
87
93
|
* @memberof PlanChargeResponse
|
|
88
94
|
*/
|
|
89
95
|
listPriceBase: string;
|
|
90
|
-
/**
|
|
91
|
-
* Billing period for recurring and usage based Charges
|
|
92
|
-
* @type {string}
|
|
93
|
-
* @memberof PlanChargeResponse
|
|
94
|
-
*/
|
|
95
|
-
billingPeriod: string;
|
|
96
96
|
/**
|
|
97
97
|
* Determine boundary of Charge period
|
|
98
98
|
* @type {string}
|
|
@@ -174,14 +174,14 @@ export function instanceOfPlanChargeResponse(value: object): value is PlanCharge
|
|
|
174
174
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
175
175
|
if (!('productId' in value) || value['productId'] === undefined) return false;
|
|
176
176
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
177
|
-
if (!('description' in value) || value['description'] === undefined) return false;
|
|
178
177
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
178
|
+
if (!('billingPeriod' in value) || value['billingPeriod'] === undefined) return false;
|
|
179
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
179
180
|
if (!('lineNumber' in value) || value['lineNumber'] === undefined) return false;
|
|
180
181
|
if (!('chargeTiming' in value) || value['chargeTiming'] === undefined) return false;
|
|
181
182
|
if (!('pricingModel' in value) || value['pricingModel'] === undefined) return false;
|
|
182
183
|
if (!('listPrice' in value) || value['listPrice'] === undefined) return false;
|
|
183
184
|
if (!('listPriceBase' in value) || value['listPriceBase'] === undefined) return false;
|
|
184
|
-
if (!('billingPeriod' in value) || value['billingPeriod'] === undefined) return false;
|
|
185
185
|
if (!('billingPeriodStartAlignment' in value) || value['billingPeriodStartAlignment'] === undefined) return false;
|
|
186
186
|
if (!('billingDay' in value) || value['billingDay'] === undefined) return false;
|
|
187
187
|
if (!('billingDate' in value) || value['billingDate'] === undefined) return false;
|
|
@@ -210,14 +210,14 @@ export function PlanChargeResponseFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
210
210
|
'id': json['id'],
|
|
211
211
|
'productId': json['productId'],
|
|
212
212
|
'name': json['name'],
|
|
213
|
-
'description': json['description'],
|
|
214
213
|
'type': json['type'],
|
|
214
|
+
'billingPeriod': json['billingPeriod'],
|
|
215
|
+
'description': json['description'],
|
|
215
216
|
'lineNumber': json['lineNumber'],
|
|
216
217
|
'chargeTiming': json['chargeTiming'],
|
|
217
218
|
'pricingModel': json['pricingModel'],
|
|
218
219
|
'listPrice': json['listPrice'],
|
|
219
220
|
'listPriceBase': json['listPriceBase'],
|
|
220
|
-
'billingPeriod': json['billingPeriod'],
|
|
221
221
|
'billingPeriodStartAlignment': json['billingPeriodStartAlignment'],
|
|
222
222
|
'billingDay': json['billingDay'],
|
|
223
223
|
'billingDate': json['billingDate'],
|
|
@@ -247,14 +247,14 @@ export function PlanChargeResponseToJSONTyped(value?: PlanChargeResponse | null,
|
|
|
247
247
|
'id': value['id'],
|
|
248
248
|
'productId': value['productId'],
|
|
249
249
|
'name': value['name'],
|
|
250
|
-
'description': value['description'],
|
|
251
250
|
'type': value['type'],
|
|
251
|
+
'billingPeriod': value['billingPeriod'],
|
|
252
|
+
'description': value['description'],
|
|
252
253
|
'lineNumber': value['lineNumber'],
|
|
253
254
|
'chargeTiming': value['chargeTiming'],
|
|
254
255
|
'pricingModel': value['pricingModel'],
|
|
255
256
|
'listPrice': value['listPrice'],
|
|
256
257
|
'listPriceBase': value['listPriceBase'],
|
|
257
|
-
'billingPeriod': value['billingPeriod'],
|
|
258
258
|
'billingPeriodStartAlignment': value['billingPeriodStartAlignment'],
|
|
259
259
|
'billingDay': value['billingDay'],
|
|
260
260
|
'billingDate': value['billingDate'],
|
|
@@ -39,6 +39,18 @@ export interface PlanResponse {
|
|
|
39
39
|
* @memberof PlanResponse
|
|
40
40
|
*/
|
|
41
41
|
name: string;
|
|
42
|
+
/**
|
|
43
|
+
* Product ID
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PlanResponse
|
|
46
|
+
*/
|
|
47
|
+
productId: string;
|
|
48
|
+
/**
|
|
49
|
+
* Product name
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PlanResponse
|
|
52
|
+
*/
|
|
53
|
+
productName: string;
|
|
42
54
|
/**
|
|
43
55
|
* Plan status
|
|
44
56
|
* @type {string}
|
|
@@ -57,6 +69,12 @@ export interface PlanResponse {
|
|
|
57
69
|
* @memberof PlanResponse
|
|
58
70
|
*/
|
|
59
71
|
showSsp: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* URL used for self sign up
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof PlanResponse
|
|
76
|
+
*/
|
|
77
|
+
publicUrl: string;
|
|
60
78
|
/**
|
|
61
79
|
* Email of user who created record
|
|
62
80
|
* @type {string}
|
|
@@ -87,12 +105,6 @@ export interface PlanResponse {
|
|
|
87
105
|
* @memberof PlanResponse
|
|
88
106
|
*/
|
|
89
107
|
charges: Array<PlanChargeResponse>;
|
|
90
|
-
/**
|
|
91
|
-
* URL used for self sign up
|
|
92
|
-
* @type {string}
|
|
93
|
-
* @memberof PlanResponse
|
|
94
|
-
*/
|
|
95
|
-
publicUrl: string;
|
|
96
108
|
/**
|
|
97
109
|
* Custom fields on the invoice
|
|
98
110
|
* @type {object}
|
|
@@ -107,15 +119,17 @@ export interface PlanResponse {
|
|
|
107
119
|
export function instanceOfPlanResponse(value: object): value is PlanResponse {
|
|
108
120
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
109
121
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
122
|
+
if (!('productId' in value) || value['productId'] === undefined) return false;
|
|
123
|
+
if (!('productName' in value) || value['productName'] === undefined) return false;
|
|
110
124
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
111
125
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
112
126
|
if (!('showSsp' in value) || value['showSsp'] === undefined) return false;
|
|
127
|
+
if (!('publicUrl' in value) || value['publicUrl'] === undefined) return false;
|
|
113
128
|
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
|
|
114
129
|
if (!('updatedBy' in value) || value['updatedBy'] === undefined) return false;
|
|
115
130
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
116
131
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
117
132
|
if (!('charges' in value) || value['charges'] === undefined) return false;
|
|
118
|
-
if (!('publicUrl' in value) || value['publicUrl'] === undefined) return false;
|
|
119
133
|
if (!('customFields' in value) || value['customFields'] === undefined) return false;
|
|
120
134
|
return true;
|
|
121
135
|
}
|
|
@@ -132,15 +146,17 @@ export function PlanResponseFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
132
146
|
|
|
133
147
|
'id': json['id'],
|
|
134
148
|
'name': json['name'],
|
|
149
|
+
'productId': json['productId'],
|
|
150
|
+
'productName': json['productName'],
|
|
135
151
|
'status': json['status'],
|
|
136
152
|
'description': json['description'],
|
|
137
153
|
'showSsp': json['showSsp'],
|
|
154
|
+
'publicUrl': json['publicUrl'],
|
|
138
155
|
'createdBy': json['createdBy'],
|
|
139
156
|
'updatedBy': json['updatedBy'],
|
|
140
157
|
'createdAt': json['createdAt'],
|
|
141
158
|
'updatedAt': json['updatedAt'],
|
|
142
159
|
'charges': ((json['charges'] as Array<any>).map(PlanChargeResponseFromJSON)),
|
|
143
|
-
'publicUrl': json['publicUrl'],
|
|
144
160
|
'customFields': json['customFields'],
|
|
145
161
|
};
|
|
146
162
|
}
|
|
@@ -158,15 +174,17 @@ export function PlanResponseToJSONTyped(value?: PlanResponse | null, ignoreDiscr
|
|
|
158
174
|
|
|
159
175
|
'id': value['id'],
|
|
160
176
|
'name': value['name'],
|
|
177
|
+
'productId': value['productId'],
|
|
178
|
+
'productName': value['productName'],
|
|
161
179
|
'status': value['status'],
|
|
162
180
|
'description': value['description'],
|
|
163
181
|
'showSsp': value['showSsp'],
|
|
182
|
+
'publicUrl': value['publicUrl'],
|
|
164
183
|
'createdBy': value['createdBy'],
|
|
165
184
|
'updatedBy': value['updatedBy'],
|
|
166
185
|
'createdAt': value['createdAt'],
|
|
167
186
|
'updatedAt': value['updatedAt'],
|
|
168
187
|
'charges': ((value['charges'] as Array<any>).map(PlanChargeResponseToJSON)),
|
|
169
|
-
'publicUrl': value['publicUrl'],
|
|
170
188
|
'customFields': value['customFields'],
|
|
171
189
|
};
|
|
172
190
|
}
|