@managespace/sdk 0.1.109 → 0.1.110
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/extensibility/functions/project/billing.d.ts +5 -15
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/generated/apis/default-api.d.ts +5 -17
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +16 -48
- package/dist/generated/models/billing-run-filter-options.d.ts +0 -6
- package/dist/generated/models/billing-run-filter-options.d.ts.map +1 -1
- package/dist/generated/models/billing-run-filter-options.js +0 -2
- package/dist/generated/models/create-subscription-charge.d.ts +0 -6
- package/dist/generated/models/create-subscription-charge.d.ts.map +1 -1
- package/dist/generated/models/create-subscription-charge.js +0 -2
- package/dist/generated/models/get-orders-query-with-filtering.d.ts +72 -0
- package/dist/generated/models/get-orders-query-with-filtering.d.ts.map +1 -0
- package/dist/generated/models/get-orders-query-with-filtering.js +64 -0
- package/dist/generated/models/get-orders-query.d.ts +72 -0
- package/dist/generated/models/get-orders-query.d.ts.map +1 -0
- package/dist/generated/models/get-orders-query.js +64 -0
- package/dist/generated/models/get-payments-query.d.ts +1 -1
- package/dist/generated/models/get-payments-query.d.ts.map +1 -1
- package/dist/generated/models/get-payments-query.js +2 -2
- package/dist/generated/models/get-refunds-query-with-filtering.d.ts +72 -0
- package/dist/generated/models/get-refunds-query-with-filtering.d.ts.map +1 -0
- package/dist/generated/models/get-refunds-query-with-filtering.js +64 -0
- package/dist/generated/models/get-refunds-query.d.ts +72 -0
- package/dist/generated/models/get-refunds-query.d.ts.map +1 -0
- package/dist/generated/models/get-refunds-query.js +64 -0
- package/dist/generated/models/index.d.ts +2 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +2 -0
- package/dist/generated/models/subscription-charge.d.ts +0 -6
- package/dist/generated/models/subscription-charge.d.ts.map +1 -1
- package/dist/generated/models/subscription-charge.js +0 -2
- package/dist/generated/models/update-subscription-charge.d.ts +0 -6
- package/dist/generated/models/update-subscription-charge.d.ts.map +1 -1
- package/dist/generated/models/update-subscription-charge.js +0 -2
- package/package.deploy.json +2 -2
- package/package.json +2 -2
- package/src/extensibility/functions/project/billing.ts +5 -15
- package/src/generated/.openapi-generator/FILES +2 -0
- package/src/generated/apis/default-api.ts +32 -77
- package/src/generated/models/billing-run-filter-options.ts +0 -8
- package/src/generated/models/create-subscription-charge.ts +0 -8
- package/src/generated/models/get-orders-query-with-filtering.ts +135 -0
- package/src/generated/models/get-orders-query.ts +135 -0
- package/src/generated/models/get-payments-query.ts +3 -3
- package/src/generated/models/get-refunds-query-with-filtering.ts +135 -0
- package/src/generated/models/get-refunds-query.ts +135 -0
- package/src/generated/models/index.ts +2 -0
- package/src/generated/models/subscription-charge.ts +0 -8
- package/src/generated/models/update-subscription-charge.ts +0 -8
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { BasePaginationQuery } from './base-pagination-query';
|
|
17
|
+
import {
|
|
18
|
+
BasePaginationQueryFromJSON,
|
|
19
|
+
BasePaginationQueryFromJSONTyped,
|
|
20
|
+
BasePaginationQueryToJSON,
|
|
21
|
+
BasePaginationQueryToJSONTyped,
|
|
22
|
+
} from './base-pagination-query';
|
|
23
|
+
import type { PluginFilterItem } from './plugin-filter-item';
|
|
24
|
+
import {
|
|
25
|
+
PluginFilterItemFromJSON,
|
|
26
|
+
PluginFilterItemFromJSONTyped,
|
|
27
|
+
PluginFilterItemToJSON,
|
|
28
|
+
PluginFilterItemToJSONTyped,
|
|
29
|
+
} from './plugin-filter-item';
|
|
30
|
+
import type { SortOrder } from './sort-order';
|
|
31
|
+
import {
|
|
32
|
+
SortOrderFromJSON,
|
|
33
|
+
SortOrderFromJSONTyped,
|
|
34
|
+
SortOrderToJSON,
|
|
35
|
+
SortOrderToJSONTyped,
|
|
36
|
+
} from './sort-order';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface GetOrdersQueryWithFiltering
|
|
42
|
+
*/
|
|
43
|
+
export interface GetOrdersQueryWithFiltering {
|
|
44
|
+
/**
|
|
45
|
+
* The pagination metadata
|
|
46
|
+
* @type {BasePaginationQuery}
|
|
47
|
+
* @memberof GetOrdersQueryWithFiltering
|
|
48
|
+
*/
|
|
49
|
+
pageOptions?: BasePaginationQuery;
|
|
50
|
+
/**
|
|
51
|
+
* The sort metadata
|
|
52
|
+
* @type {SortOrder}
|
|
53
|
+
* @memberof GetOrdersQueryWithFiltering
|
|
54
|
+
*/
|
|
55
|
+
sort?: SortOrder;
|
|
56
|
+
/**
|
|
57
|
+
* Status value and operator to filter by
|
|
58
|
+
* @type {PluginFilterItem}
|
|
59
|
+
* @memberof GetOrdersQueryWithFiltering
|
|
60
|
+
*/
|
|
61
|
+
status?: PluginFilterItem;
|
|
62
|
+
/**
|
|
63
|
+
* Customer ID value and operator to filter by
|
|
64
|
+
* @type {PluginFilterItem}
|
|
65
|
+
* @memberof GetOrdersQueryWithFiltering
|
|
66
|
+
*/
|
|
67
|
+
externalCustomerId?: PluginFilterItem;
|
|
68
|
+
/**
|
|
69
|
+
* Subscription ID value and operator to filter by
|
|
70
|
+
* @type {PluginFilterItem}
|
|
71
|
+
* @memberof GetOrdersQueryWithFiltering
|
|
72
|
+
*/
|
|
73
|
+
subscriptionId?: PluginFilterItem;
|
|
74
|
+
/**
|
|
75
|
+
* Invoice ID value and operator to filter by
|
|
76
|
+
* @type {PluginFilterItem}
|
|
77
|
+
* @memberof GetOrdersQueryWithFiltering
|
|
78
|
+
*/
|
|
79
|
+
invoiceId?: PluginFilterItem;
|
|
80
|
+
/**
|
|
81
|
+
* Order type value and operator to filter by
|
|
82
|
+
* @type {PluginFilterItem}
|
|
83
|
+
* @memberof GetOrdersQueryWithFiltering
|
|
84
|
+
*/
|
|
85
|
+
orderType?: PluginFilterItem;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the GetOrdersQueryWithFiltering interface.
|
|
90
|
+
*/
|
|
91
|
+
export function instanceOfGetOrdersQueryWithFiltering(value: object): value is GetOrdersQueryWithFiltering {
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function GetOrdersQueryWithFilteringFromJSON(json: any): GetOrdersQueryWithFiltering {
|
|
96
|
+
return GetOrdersQueryWithFilteringFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function GetOrdersQueryWithFilteringFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetOrdersQueryWithFiltering {
|
|
100
|
+
if (json == null) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'pageOptions': json['pageOptions'] == null ? undefined : BasePaginationQueryFromJSON(json['pageOptions']),
|
|
106
|
+
'sort': json['sort'] == null ? undefined : SortOrderFromJSON(json['sort']),
|
|
107
|
+
'status': json['status'] == null ? undefined : PluginFilterItemFromJSON(json['status']),
|
|
108
|
+
'externalCustomerId': json['externalCustomerId'] == null ? undefined : PluginFilterItemFromJSON(json['externalCustomerId']),
|
|
109
|
+
'subscriptionId': json['subscriptionId'] == null ? undefined : PluginFilterItemFromJSON(json['subscriptionId']),
|
|
110
|
+
'invoiceId': json['invoiceId'] == null ? undefined : PluginFilterItemFromJSON(json['invoiceId']),
|
|
111
|
+
'orderType': json['orderType'] == null ? undefined : PluginFilterItemFromJSON(json['orderType']),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function GetOrdersQueryWithFilteringToJSON(json: any): GetOrdersQueryWithFiltering {
|
|
116
|
+
return GetOrdersQueryWithFilteringToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function GetOrdersQueryWithFilteringToJSONTyped(value?: GetOrdersQueryWithFiltering | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
+
if (value == null) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'pageOptions': BasePaginationQueryToJSON(value['pageOptions']),
|
|
127
|
+
'sort': SortOrderToJSON(value['sort']),
|
|
128
|
+
'status': PluginFilterItemToJSON(value['status']),
|
|
129
|
+
'externalCustomerId': PluginFilterItemToJSON(value['externalCustomerId']),
|
|
130
|
+
'subscriptionId': PluginFilterItemToJSON(value['subscriptionId']),
|
|
131
|
+
'invoiceId': PluginFilterItemToJSON(value['invoiceId']),
|
|
132
|
+
'orderType': PluginFilterItemToJSON(value['orderType']),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { BasePaginationQuery } from './base-pagination-query';
|
|
17
|
+
import {
|
|
18
|
+
BasePaginationQueryFromJSON,
|
|
19
|
+
BasePaginationQueryFromJSONTyped,
|
|
20
|
+
BasePaginationQueryToJSON,
|
|
21
|
+
BasePaginationQueryToJSONTyped,
|
|
22
|
+
} from './base-pagination-query';
|
|
23
|
+
import type { PluginFilterItem } from './plugin-filter-item';
|
|
24
|
+
import {
|
|
25
|
+
PluginFilterItemFromJSON,
|
|
26
|
+
PluginFilterItemFromJSONTyped,
|
|
27
|
+
PluginFilterItemToJSON,
|
|
28
|
+
PluginFilterItemToJSONTyped,
|
|
29
|
+
} from './plugin-filter-item';
|
|
30
|
+
import type { SortOrder } from './sort-order';
|
|
31
|
+
import {
|
|
32
|
+
SortOrderFromJSON,
|
|
33
|
+
SortOrderFromJSONTyped,
|
|
34
|
+
SortOrderToJSON,
|
|
35
|
+
SortOrderToJSONTyped,
|
|
36
|
+
} from './sort-order';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface GetOrdersQuery
|
|
42
|
+
*/
|
|
43
|
+
export interface GetOrdersQuery {
|
|
44
|
+
/**
|
|
45
|
+
* The pagination metadata
|
|
46
|
+
* @type {BasePaginationQuery}
|
|
47
|
+
* @memberof GetOrdersQuery
|
|
48
|
+
*/
|
|
49
|
+
pageOptions?: BasePaginationQuery;
|
|
50
|
+
/**
|
|
51
|
+
* The sort metadata
|
|
52
|
+
* @type {SortOrder}
|
|
53
|
+
* @memberof GetOrdersQuery
|
|
54
|
+
*/
|
|
55
|
+
sort?: SortOrder;
|
|
56
|
+
/**
|
|
57
|
+
* Status value and operator to filter by
|
|
58
|
+
* @type {PluginFilterItem}
|
|
59
|
+
* @memberof GetOrdersQuery
|
|
60
|
+
*/
|
|
61
|
+
status?: PluginFilterItem;
|
|
62
|
+
/**
|
|
63
|
+
* Customer ID value and operator to filter by
|
|
64
|
+
* @type {PluginFilterItem}
|
|
65
|
+
* @memberof GetOrdersQuery
|
|
66
|
+
*/
|
|
67
|
+
customerId?: PluginFilterItem;
|
|
68
|
+
/**
|
|
69
|
+
* Subscription ID value and operator to filter by
|
|
70
|
+
* @type {PluginFilterItem}
|
|
71
|
+
* @memberof GetOrdersQuery
|
|
72
|
+
*/
|
|
73
|
+
subscriptionId?: PluginFilterItem;
|
|
74
|
+
/**
|
|
75
|
+
* Invoice ID value and operator to filter by
|
|
76
|
+
* @type {PluginFilterItem}
|
|
77
|
+
* @memberof GetOrdersQuery
|
|
78
|
+
*/
|
|
79
|
+
invoiceId?: PluginFilterItem;
|
|
80
|
+
/**
|
|
81
|
+
* Order type value and operator to filter by
|
|
82
|
+
* @type {PluginFilterItem}
|
|
83
|
+
* @memberof GetOrdersQuery
|
|
84
|
+
*/
|
|
85
|
+
orderType?: PluginFilterItem;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the GetOrdersQuery interface.
|
|
90
|
+
*/
|
|
91
|
+
export function instanceOfGetOrdersQuery(value: object): value is GetOrdersQuery {
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function GetOrdersQueryFromJSON(json: any): GetOrdersQuery {
|
|
96
|
+
return GetOrdersQueryFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function GetOrdersQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetOrdersQuery {
|
|
100
|
+
if (json == null) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'pageOptions': json['pageOptions'] == null ? undefined : BasePaginationQueryFromJSON(json['pageOptions']),
|
|
106
|
+
'sort': json['sort'] == null ? undefined : SortOrderFromJSON(json['sort']),
|
|
107
|
+
'status': json['status'] == null ? undefined : PluginFilterItemFromJSON(json['status']),
|
|
108
|
+
'customerId': json['customerId'] == null ? undefined : PluginFilterItemFromJSON(json['customerId']),
|
|
109
|
+
'subscriptionId': json['subscriptionId'] == null ? undefined : PluginFilterItemFromJSON(json['subscriptionId']),
|
|
110
|
+
'invoiceId': json['invoiceId'] == null ? undefined : PluginFilterItemFromJSON(json['invoiceId']),
|
|
111
|
+
'orderType': json['orderType'] == null ? undefined : PluginFilterItemFromJSON(json['orderType']),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function GetOrdersQueryToJSON(json: any): GetOrdersQuery {
|
|
116
|
+
return GetOrdersQueryToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function GetOrdersQueryToJSONTyped(value?: GetOrdersQuery | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
+
if (value == null) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'pageOptions': BasePaginationQueryToJSON(value['pageOptions']),
|
|
127
|
+
'sort': SortOrderToJSON(value['sort']),
|
|
128
|
+
'status': PluginFilterItemToJSON(value['status']),
|
|
129
|
+
'customerId': PluginFilterItemToJSON(value['customerId']),
|
|
130
|
+
'subscriptionId': PluginFilterItemToJSON(value['subscriptionId']),
|
|
131
|
+
'invoiceId': PluginFilterItemToJSON(value['invoiceId']),
|
|
132
|
+
'orderType': PluginFilterItemToJSON(value['orderType']),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
@@ -64,7 +64,7 @@ export interface GetPaymentsQuery {
|
|
|
64
64
|
* @type {PluginFilterItem}
|
|
65
65
|
* @memberof GetPaymentsQuery
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
customerId?: PluginFilterItem;
|
|
68
68
|
/**
|
|
69
69
|
* Payment Run ID value and operator to filter by
|
|
70
70
|
* @type {PluginFilterItem}
|
|
@@ -99,7 +99,7 @@ export function GetPaymentsQueryFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
99
99
|
'pageOptions': json['pageOptions'] == null ? undefined : BasePaginationQueryFromJSON(json['pageOptions']),
|
|
100
100
|
'sort': json['sort'] == null ? undefined : SortOrderFromJSON(json['sort']),
|
|
101
101
|
'status': json['status'] == null ? undefined : PluginFilterItemFromJSON(json['status']),
|
|
102
|
-
'
|
|
102
|
+
'customerId': json['customerId'] == null ? undefined : PluginFilterItemFromJSON(json['customerId']),
|
|
103
103
|
'paymentRunId': json['paymentRunId'] == null ? undefined : PluginFilterItemFromJSON(json['paymentRunId']),
|
|
104
104
|
'paymentMethod': json['paymentMethod'] == null ? undefined : PluginFilterItemFromJSON(json['paymentMethod']),
|
|
105
105
|
};
|
|
@@ -119,7 +119,7 @@ export function GetPaymentsQueryToJSONTyped(value?: GetPaymentsQuery | null, ign
|
|
|
119
119
|
'pageOptions': BasePaginationQueryToJSON(value['pageOptions']),
|
|
120
120
|
'sort': SortOrderToJSON(value['sort']),
|
|
121
121
|
'status': PluginFilterItemToJSON(value['status']),
|
|
122
|
-
'
|
|
122
|
+
'customerId': PluginFilterItemToJSON(value['customerId']),
|
|
123
123
|
'paymentRunId': PluginFilterItemToJSON(value['paymentRunId']),
|
|
124
124
|
'paymentMethod': PluginFilterItemToJSON(value['paymentMethod']),
|
|
125
125
|
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { BasePaginationQuery } from './base-pagination-query';
|
|
17
|
+
import {
|
|
18
|
+
BasePaginationQueryFromJSON,
|
|
19
|
+
BasePaginationQueryFromJSONTyped,
|
|
20
|
+
BasePaginationQueryToJSON,
|
|
21
|
+
BasePaginationQueryToJSONTyped,
|
|
22
|
+
} from './base-pagination-query';
|
|
23
|
+
import type { PluginFilterItem } from './plugin-filter-item';
|
|
24
|
+
import {
|
|
25
|
+
PluginFilterItemFromJSON,
|
|
26
|
+
PluginFilterItemFromJSONTyped,
|
|
27
|
+
PluginFilterItemToJSON,
|
|
28
|
+
PluginFilterItemToJSONTyped,
|
|
29
|
+
} from './plugin-filter-item';
|
|
30
|
+
import type { SortOrder } from './sort-order';
|
|
31
|
+
import {
|
|
32
|
+
SortOrderFromJSON,
|
|
33
|
+
SortOrderFromJSONTyped,
|
|
34
|
+
SortOrderToJSON,
|
|
35
|
+
SortOrderToJSONTyped,
|
|
36
|
+
} from './sort-order';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface GetRefundsQueryWithFiltering
|
|
42
|
+
*/
|
|
43
|
+
export interface GetRefundsQueryWithFiltering {
|
|
44
|
+
/**
|
|
45
|
+
* The pagination metadata
|
|
46
|
+
* @type {BasePaginationQuery}
|
|
47
|
+
* @memberof GetRefundsQueryWithFiltering
|
|
48
|
+
*/
|
|
49
|
+
pageOptions?: BasePaginationQuery;
|
|
50
|
+
/**
|
|
51
|
+
* The sort metadata
|
|
52
|
+
* @type {SortOrder}
|
|
53
|
+
* @memberof GetRefundsQueryWithFiltering
|
|
54
|
+
*/
|
|
55
|
+
sort?: SortOrder;
|
|
56
|
+
/**
|
|
57
|
+
* Status value and operator to filter by
|
|
58
|
+
* @type {PluginFilterItem}
|
|
59
|
+
* @memberof GetRefundsQueryWithFiltering
|
|
60
|
+
*/
|
|
61
|
+
status?: PluginFilterItem;
|
|
62
|
+
/**
|
|
63
|
+
* Customer ID value and operator to filter by
|
|
64
|
+
* @type {PluginFilterItem}
|
|
65
|
+
* @memberof GetRefundsQueryWithFiltering
|
|
66
|
+
*/
|
|
67
|
+
externalCustomerId?: PluginFilterItem;
|
|
68
|
+
/**
|
|
69
|
+
* Payment ID value and operator to filter by
|
|
70
|
+
* @type {PluginFilterItem}
|
|
71
|
+
* @memberof GetRefundsQueryWithFiltering
|
|
72
|
+
*/
|
|
73
|
+
paymentId?: PluginFilterItem;
|
|
74
|
+
/**
|
|
75
|
+
* Invoice ID value and operator to filter by
|
|
76
|
+
* @type {PluginFilterItem}
|
|
77
|
+
* @memberof GetRefundsQueryWithFiltering
|
|
78
|
+
*/
|
|
79
|
+
invoiceId?: PluginFilterItem;
|
|
80
|
+
/**
|
|
81
|
+
* Payment Run ID value and operator to filter by
|
|
82
|
+
* @type {PluginFilterItem}
|
|
83
|
+
* @memberof GetRefundsQueryWithFiltering
|
|
84
|
+
*/
|
|
85
|
+
paymentRunId?: PluginFilterItem;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the GetRefundsQueryWithFiltering interface.
|
|
90
|
+
*/
|
|
91
|
+
export function instanceOfGetRefundsQueryWithFiltering(value: object): value is GetRefundsQueryWithFiltering {
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function GetRefundsQueryWithFilteringFromJSON(json: any): GetRefundsQueryWithFiltering {
|
|
96
|
+
return GetRefundsQueryWithFilteringFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function GetRefundsQueryWithFilteringFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetRefundsQueryWithFiltering {
|
|
100
|
+
if (json == null) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'pageOptions': json['pageOptions'] == null ? undefined : BasePaginationQueryFromJSON(json['pageOptions']),
|
|
106
|
+
'sort': json['sort'] == null ? undefined : SortOrderFromJSON(json['sort']),
|
|
107
|
+
'status': json['status'] == null ? undefined : PluginFilterItemFromJSON(json['status']),
|
|
108
|
+
'externalCustomerId': json['externalCustomerId'] == null ? undefined : PluginFilterItemFromJSON(json['externalCustomerId']),
|
|
109
|
+
'paymentId': json['paymentId'] == null ? undefined : PluginFilterItemFromJSON(json['paymentId']),
|
|
110
|
+
'invoiceId': json['invoiceId'] == null ? undefined : PluginFilterItemFromJSON(json['invoiceId']),
|
|
111
|
+
'paymentRunId': json['paymentRunId'] == null ? undefined : PluginFilterItemFromJSON(json['paymentRunId']),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function GetRefundsQueryWithFilteringToJSON(json: any): GetRefundsQueryWithFiltering {
|
|
116
|
+
return GetRefundsQueryWithFilteringToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function GetRefundsQueryWithFilteringToJSONTyped(value?: GetRefundsQueryWithFiltering | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
+
if (value == null) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'pageOptions': BasePaginationQueryToJSON(value['pageOptions']),
|
|
127
|
+
'sort': SortOrderToJSON(value['sort']),
|
|
128
|
+
'status': PluginFilterItemToJSON(value['status']),
|
|
129
|
+
'externalCustomerId': PluginFilterItemToJSON(value['externalCustomerId']),
|
|
130
|
+
'paymentId': PluginFilterItemToJSON(value['paymentId']),
|
|
131
|
+
'invoiceId': PluginFilterItemToJSON(value['invoiceId']),
|
|
132
|
+
'paymentRunId': PluginFilterItemToJSON(value['paymentRunId']),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ManageSpace API
|
|
5
|
+
* ManageSpace API Documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { BasePaginationQuery } from './base-pagination-query';
|
|
17
|
+
import {
|
|
18
|
+
BasePaginationQueryFromJSON,
|
|
19
|
+
BasePaginationQueryFromJSONTyped,
|
|
20
|
+
BasePaginationQueryToJSON,
|
|
21
|
+
BasePaginationQueryToJSONTyped,
|
|
22
|
+
} from './base-pagination-query';
|
|
23
|
+
import type { PluginFilterItem } from './plugin-filter-item';
|
|
24
|
+
import {
|
|
25
|
+
PluginFilterItemFromJSON,
|
|
26
|
+
PluginFilterItemFromJSONTyped,
|
|
27
|
+
PluginFilterItemToJSON,
|
|
28
|
+
PluginFilterItemToJSONTyped,
|
|
29
|
+
} from './plugin-filter-item';
|
|
30
|
+
import type { SortOrder } from './sort-order';
|
|
31
|
+
import {
|
|
32
|
+
SortOrderFromJSON,
|
|
33
|
+
SortOrderFromJSONTyped,
|
|
34
|
+
SortOrderToJSON,
|
|
35
|
+
SortOrderToJSONTyped,
|
|
36
|
+
} from './sort-order';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface GetRefundsQuery
|
|
42
|
+
*/
|
|
43
|
+
export interface GetRefundsQuery {
|
|
44
|
+
/**
|
|
45
|
+
* The pagination metadata
|
|
46
|
+
* @type {BasePaginationQuery}
|
|
47
|
+
* @memberof GetRefundsQuery
|
|
48
|
+
*/
|
|
49
|
+
pageOptions?: BasePaginationQuery;
|
|
50
|
+
/**
|
|
51
|
+
* The sort metadata
|
|
52
|
+
* @type {SortOrder}
|
|
53
|
+
* @memberof GetRefundsQuery
|
|
54
|
+
*/
|
|
55
|
+
sort?: SortOrder;
|
|
56
|
+
/**
|
|
57
|
+
* Status value and operator to filter by
|
|
58
|
+
* @type {PluginFilterItem}
|
|
59
|
+
* @memberof GetRefundsQuery
|
|
60
|
+
*/
|
|
61
|
+
status?: PluginFilterItem;
|
|
62
|
+
/**
|
|
63
|
+
* Customer ID value and operator to filter by
|
|
64
|
+
* @type {PluginFilterItem}
|
|
65
|
+
* @memberof GetRefundsQuery
|
|
66
|
+
*/
|
|
67
|
+
customerId?: PluginFilterItem;
|
|
68
|
+
/**
|
|
69
|
+
* Payment ID value and operator to filter by
|
|
70
|
+
* @type {PluginFilterItem}
|
|
71
|
+
* @memberof GetRefundsQuery
|
|
72
|
+
*/
|
|
73
|
+
paymentId?: PluginFilterItem;
|
|
74
|
+
/**
|
|
75
|
+
* Invoice ID value and operator to filter by
|
|
76
|
+
* @type {PluginFilterItem}
|
|
77
|
+
* @memberof GetRefundsQuery
|
|
78
|
+
*/
|
|
79
|
+
invoiceId?: PluginFilterItem;
|
|
80
|
+
/**
|
|
81
|
+
* Payment Run ID value and operator to filter by
|
|
82
|
+
* @type {PluginFilterItem}
|
|
83
|
+
* @memberof GetRefundsQuery
|
|
84
|
+
*/
|
|
85
|
+
paymentRunId?: PluginFilterItem;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Check if a given object implements the GetRefundsQuery interface.
|
|
90
|
+
*/
|
|
91
|
+
export function instanceOfGetRefundsQuery(value: object): value is GetRefundsQuery {
|
|
92
|
+
return true;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function GetRefundsQueryFromJSON(json: any): GetRefundsQuery {
|
|
96
|
+
return GetRefundsQueryFromJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function GetRefundsQueryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetRefundsQuery {
|
|
100
|
+
if (json == null) {
|
|
101
|
+
return json;
|
|
102
|
+
}
|
|
103
|
+
return {
|
|
104
|
+
|
|
105
|
+
'pageOptions': json['pageOptions'] == null ? undefined : BasePaginationQueryFromJSON(json['pageOptions']),
|
|
106
|
+
'sort': json['sort'] == null ? undefined : SortOrderFromJSON(json['sort']),
|
|
107
|
+
'status': json['status'] == null ? undefined : PluginFilterItemFromJSON(json['status']),
|
|
108
|
+
'customerId': json['customerId'] == null ? undefined : PluginFilterItemFromJSON(json['customerId']),
|
|
109
|
+
'paymentId': json['paymentId'] == null ? undefined : PluginFilterItemFromJSON(json['paymentId']),
|
|
110
|
+
'invoiceId': json['invoiceId'] == null ? undefined : PluginFilterItemFromJSON(json['invoiceId']),
|
|
111
|
+
'paymentRunId': json['paymentRunId'] == null ? undefined : PluginFilterItemFromJSON(json['paymentRunId']),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function GetRefundsQueryToJSON(json: any): GetRefundsQuery {
|
|
116
|
+
return GetRefundsQueryToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function GetRefundsQueryToJSONTyped(value?: GetRefundsQuery | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
+
if (value == null) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'pageOptions': BasePaginationQueryToJSON(value['pageOptions']),
|
|
127
|
+
'sort': SortOrderToJSON(value['sort']),
|
|
128
|
+
'status': PluginFilterItemToJSON(value['status']),
|
|
129
|
+
'customerId': PluginFilterItemToJSON(value['customerId']),
|
|
130
|
+
'paymentId': PluginFilterItemToJSON(value['paymentId']),
|
|
131
|
+
'invoiceId': PluginFilterItemToJSON(value['invoiceId']),
|
|
132
|
+
'paymentRunId': PluginFilterItemToJSON(value['paymentRunId']),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
@@ -128,6 +128,7 @@ export * from './get-invoices-query';
|
|
|
128
128
|
export * from './get-notes200-response';
|
|
129
129
|
export * from './get-notifications200-response';
|
|
130
130
|
export * from './get-orders200-response';
|
|
131
|
+
export * from './get-orders-query';
|
|
131
132
|
export * from './get-payment-methods200-response';
|
|
132
133
|
export * from './get-payment-runs200-response';
|
|
133
134
|
export * from './get-payments200-response';
|
|
@@ -139,6 +140,7 @@ export * from './get-product-tax-groups200-response';
|
|
|
139
140
|
export * from './get-products200-response';
|
|
140
141
|
export * from './get-rate-changes200-response';
|
|
141
142
|
export * from './get-refunds200-response';
|
|
143
|
+
export * from './get-refunds-query';
|
|
142
144
|
export * from './get-revenue-rules200-response';
|
|
143
145
|
export * from './get-sites200-response';
|
|
144
146
|
export * from './get-statements200-response';
|
|
@@ -166,12 +166,6 @@ export interface SubscriptionCharge {
|
|
|
166
166
|
* @memberof SubscriptionCharge
|
|
167
167
|
*/
|
|
168
168
|
chargeBillingDate?: string;
|
|
169
|
-
/**
|
|
170
|
-
* For one time charges, when the charge will take effect
|
|
171
|
-
* @type {string}
|
|
172
|
-
* @memberof SubscriptionCharge
|
|
173
|
-
*/
|
|
174
|
-
effectiveDate?: string;
|
|
175
169
|
/**
|
|
176
170
|
* For one time charges, display completion date if chosen as charge effective date
|
|
177
171
|
* @type {string}
|
|
@@ -357,7 +351,6 @@ export function SubscriptionChargeFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
357
351
|
'prepaymentPeriods': json['prepaymentPeriods'] == null ? undefined : json['prepaymentPeriods'],
|
|
358
352
|
'prepaymentAmount': json['prepaymentAmount'] == null ? undefined : json['prepaymentAmount'],
|
|
359
353
|
'chargeBillingDate': json['chargeBillingDate'] == null ? undefined : json['chargeBillingDate'],
|
|
360
|
-
'effectiveDate': json['effectiveDate'] == null ? undefined : json['effectiveDate'],
|
|
361
354
|
'completionDate': json['completionDate'] == null ? undefined : json['completionDate'],
|
|
362
355
|
'subscriptionLineId': json['subscriptionLineId'] == null ? undefined : json['subscriptionLineId'],
|
|
363
356
|
'currentPeriodStartDate': json['currentPeriodStartDate'] == null ? undefined : json['currentPeriodStartDate'],
|
|
@@ -417,7 +410,6 @@ export function SubscriptionChargeToJSONTyped(value?: SubscriptionCharge | null,
|
|
|
417
410
|
'prepaymentPeriods': value['prepaymentPeriods'],
|
|
418
411
|
'prepaymentAmount': value['prepaymentAmount'],
|
|
419
412
|
'chargeBillingDate': value['chargeBillingDate'],
|
|
420
|
-
'effectiveDate': value['effectiveDate'],
|
|
421
413
|
'completionDate': value['completionDate'],
|
|
422
414
|
'subscriptionLineId': value['subscriptionLineId'],
|
|
423
415
|
'currentPeriodStartDate': value['currentPeriodStartDate'],
|
|
@@ -142,12 +142,6 @@ export interface UpdateSubscriptionCharge {
|
|
|
142
142
|
* @memberof UpdateSubscriptionCharge
|
|
143
143
|
*/
|
|
144
144
|
chargeBillingDate?: string;
|
|
145
|
-
/**
|
|
146
|
-
* For one time charges, when the charge will take effect
|
|
147
|
-
* @type {string}
|
|
148
|
-
* @memberof UpdateSubscriptionCharge
|
|
149
|
-
*/
|
|
150
|
-
effectiveDate?: string;
|
|
151
145
|
/**
|
|
152
146
|
* For one time charges, display completion date if chosen as charge effective date
|
|
153
147
|
* @type {string}
|
|
@@ -347,7 +341,6 @@ export function UpdateSubscriptionChargeFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
347
341
|
'prepaymentPeriods': json['prepaymentPeriods'] == null ? undefined : json['prepaymentPeriods'],
|
|
348
342
|
'prepaymentAmount': json['prepaymentAmount'] == null ? undefined : json['prepaymentAmount'],
|
|
349
343
|
'chargeBillingDate': json['chargeBillingDate'] == null ? undefined : json['chargeBillingDate'],
|
|
350
|
-
'effectiveDate': json['effectiveDate'] == null ? undefined : json['effectiveDate'],
|
|
351
344
|
'completionDate': json['completionDate'] == null ? undefined : json['completionDate'],
|
|
352
345
|
'subscriptionLineId': json['subscriptionLineId'] == null ? undefined : json['subscriptionLineId'],
|
|
353
346
|
'currentPeriodStartDate': json['currentPeriodStartDate'] == null ? undefined : json['currentPeriodStartDate'],
|
|
@@ -406,7 +399,6 @@ export function UpdateSubscriptionChargeToJSONTyped(value?: UpdateSubscriptionCh
|
|
|
406
399
|
'prepaymentPeriods': value['prepaymentPeriods'],
|
|
407
400
|
'prepaymentAmount': value['prepaymentAmount'],
|
|
408
401
|
'chargeBillingDate': value['chargeBillingDate'],
|
|
409
|
-
'effectiveDate': value['effectiveDate'],
|
|
410
402
|
'completionDate': value['completionDate'],
|
|
411
403
|
'subscriptionLineId': value['subscriptionLineId'],
|
|
412
404
|
'currentPeriodStartDate': value['currentPeriodStartDate'],
|