@randock/nameshift-api-client 0.0.300 → 0.0.301
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/.openapi-generator/FILES +8 -0
- package/README.md +3 -3
- package/dist/apis/BuyersApi.d.ts +3 -3
- package/dist/apis/BuyersApi.js +1 -1
- package/dist/apis/InvoicesApi.d.ts +3 -3
- package/dist/apis/InvoicesApi.js +1 -1
- package/dist/models/BuyerInvoiceDomainDto.d.ts +44 -0
- package/dist/models/BuyerInvoiceDomainDto.js +59 -0
- package/dist/models/BuyerInvoiceDto.d.ts +113 -0
- package/dist/models/BuyerInvoiceDto.js +111 -0
- package/dist/models/BuyerInvoiceSellerAccountDto.d.ts +64 -0
- package/dist/models/BuyerInvoiceSellerAccountDto.js +75 -0
- package/dist/models/GetBuyerInvoices200Response.d.ts +47 -0
- package/dist/models/GetBuyerInvoices200Response.js +62 -0
- package/dist/models/GetInvoices200Response.d.ts +47 -0
- package/dist/models/GetInvoices200Response.js +62 -0
- package/dist/models/InvoiceDto.d.ts +6 -0
- package/dist/models/InvoiceDto.js +4 -0
- package/dist/models/SellerInvoiceDomainDto.d.ts +44 -0
- package/dist/models/SellerInvoiceDomainDto.js +59 -0
- package/dist/models/SellerInvoiceDto.d.ts +113 -0
- package/dist/models/SellerInvoiceDto.js +111 -0
- package/dist/models/SellerInvoiceSellerAccountDto.d.ts +64 -0
- package/dist/models/SellerInvoiceSellerAccountDto.js +75 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/BuyersApi.ts +6 -6
- package/src/apis/InvoicesApi.ts +6 -6
- package/src/models/BuyerInvoiceDomainDto.ts +84 -0
- package/src/models/BuyerInvoiceDto.ts +200 -0
- package/src/models/BuyerInvoiceSellerAccountDto.ts +113 -0
- package/src/models/GetBuyerInvoices200Response.ts +106 -0
- package/src/models/GetInvoices200Response.ts +106 -0
- package/src/models/InvoiceDto.ts +9 -0
- package/src/models/SellerInvoiceDomainDto.ts +84 -0
- package/src/models/SellerInvoiceDto.ts +200 -0
- package/src/models/SellerInvoiceSellerAccountDto.ts +113 -0
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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 { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
17
|
+
import {
|
|
18
|
+
PaginateResponseLinksFromJSON,
|
|
19
|
+
PaginateResponseLinksFromJSONTyped,
|
|
20
|
+
PaginateResponseLinksToJSON,
|
|
21
|
+
PaginateResponseLinksToJSONTyped,
|
|
22
|
+
} from './PaginateResponseLinks';
|
|
23
|
+
import type { SellerInvoiceDto } from './SellerInvoiceDto';
|
|
24
|
+
import {
|
|
25
|
+
SellerInvoiceDtoFromJSON,
|
|
26
|
+
SellerInvoiceDtoFromJSONTyped,
|
|
27
|
+
SellerInvoiceDtoToJSON,
|
|
28
|
+
SellerInvoiceDtoToJSONTyped,
|
|
29
|
+
} from './SellerInvoiceDto';
|
|
30
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
31
|
+
import {
|
|
32
|
+
PaginateResponseMetaFromJSON,
|
|
33
|
+
PaginateResponseMetaFromJSONTyped,
|
|
34
|
+
PaginateResponseMetaToJSON,
|
|
35
|
+
PaginateResponseMetaToJSONTyped,
|
|
36
|
+
} from './PaginateResponseMeta';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface GetInvoices200Response
|
|
42
|
+
*/
|
|
43
|
+
export interface GetInvoices200Response {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<SellerInvoiceDto>}
|
|
47
|
+
* @memberof GetInvoices200Response
|
|
48
|
+
*/
|
|
49
|
+
data: Array<SellerInvoiceDto>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {PaginateResponseMeta}
|
|
53
|
+
* @memberof GetInvoices200Response
|
|
54
|
+
*/
|
|
55
|
+
meta: PaginateResponseMeta;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {PaginateResponseLinks}
|
|
59
|
+
* @memberof GetInvoices200Response
|
|
60
|
+
*/
|
|
61
|
+
links: PaginateResponseLinks;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the GetInvoices200Response interface.
|
|
66
|
+
*/
|
|
67
|
+
export function instanceOfGetInvoices200Response(value: object): value is GetInvoices200Response {
|
|
68
|
+
if (!('data' in value) || value['data'] === undefined) return false;
|
|
69
|
+
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
70
|
+
if (!('links' in value) || value['links'] === undefined) return false;
|
|
71
|
+
return true;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function GetInvoices200ResponseFromJSON(json: any): GetInvoices200Response {
|
|
75
|
+
return GetInvoices200ResponseFromJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function GetInvoices200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetInvoices200Response {
|
|
79
|
+
if (json == null) {
|
|
80
|
+
return json;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'data': ((json['data'] as Array<any>).map(SellerInvoiceDtoFromJSON)),
|
|
85
|
+
'meta': PaginateResponseMetaFromJSON(json['meta']),
|
|
86
|
+
'links': PaginateResponseLinksFromJSON(json['links']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function GetInvoices200ResponseToJSON(json: any): GetInvoices200Response {
|
|
91
|
+
return GetInvoices200ResponseToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function GetInvoices200ResponseToJSONTyped(value?: GetInvoices200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'data': ((value['data'] as Array<any>).map(SellerInvoiceDtoToJSON)),
|
|
102
|
+
'meta': PaginateResponseMetaToJSON(value['meta']),
|
|
103
|
+
'links': PaginateResponseLinksToJSON(value['links']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
package/src/models/InvoiceDto.ts
CHANGED
|
@@ -107,6 +107,12 @@ export interface InvoiceDto {
|
|
|
107
107
|
* @memberof InvoiceDto
|
|
108
108
|
*/
|
|
109
109
|
isAffiliateCommission: boolean;
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof InvoiceDto
|
|
114
|
+
*/
|
|
115
|
+
buyerEmail: string | null;
|
|
110
116
|
}
|
|
111
117
|
|
|
112
118
|
|
|
@@ -146,6 +152,7 @@ export function instanceOfInvoiceDto(value: object): value is InvoiceDto {
|
|
|
146
152
|
if (!('parent' in value) || value['parent'] === undefined) return false;
|
|
147
153
|
if (!('hasChildren' in value) || value['hasChildren'] === undefined) return false;
|
|
148
154
|
if (!('isAffiliateCommission' in value) || value['isAffiliateCommission'] === undefined) return false;
|
|
155
|
+
if (!('buyerEmail' in value) || value['buyerEmail'] === undefined) return false;
|
|
149
156
|
return true;
|
|
150
157
|
}
|
|
151
158
|
|
|
@@ -170,6 +177,7 @@ export function InvoiceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
170
177
|
'parent': json['parent'],
|
|
171
178
|
'hasChildren': json['hasChildren'],
|
|
172
179
|
'isAffiliateCommission': json['isAffiliateCommission'],
|
|
180
|
+
'buyerEmail': json['buyerEmail'],
|
|
173
181
|
};
|
|
174
182
|
}
|
|
175
183
|
|
|
@@ -195,6 +203,7 @@ export function InvoiceDtoToJSONTyped(value?: InvoiceDto | null, ignoreDiscrimin
|
|
|
195
203
|
'parent': value['parent'],
|
|
196
204
|
'hasChildren': value['hasChildren'],
|
|
197
205
|
'isAffiliateCommission': value['isAffiliateCommission'],
|
|
206
|
+
'buyerEmail': value['buyerEmail'],
|
|
198
207
|
};
|
|
199
208
|
}
|
|
200
209
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SellerInvoiceDomainDto
|
|
20
|
+
*/
|
|
21
|
+
export interface SellerInvoiceDomainDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {object}
|
|
25
|
+
* @memberof SellerInvoiceDomainDto
|
|
26
|
+
*/
|
|
27
|
+
id: object;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SellerInvoiceDomainDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SellerInvoiceDomainDto
|
|
38
|
+
*/
|
|
39
|
+
displayName: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the SellerInvoiceDomainDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfSellerInvoiceDomainDto(value: object): value is SellerInvoiceDomainDto {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function SellerInvoiceDomainDtoFromJSON(json: any): SellerInvoiceDomainDto {
|
|
53
|
+
return SellerInvoiceDomainDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function SellerInvoiceDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerInvoiceDomainDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'displayName': json['displayName'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function SellerInvoiceDomainDtoToJSON(json: any): SellerInvoiceDomainDto {
|
|
69
|
+
return SellerInvoiceDomainDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function SellerInvoiceDomainDtoToJSONTyped(value?: SellerInvoiceDomainDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'displayName': value['displayName'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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 { SellerInvoiceDomainDto } from './SellerInvoiceDomainDto';
|
|
17
|
+
import {
|
|
18
|
+
SellerInvoiceDomainDtoFromJSON,
|
|
19
|
+
SellerInvoiceDomainDtoFromJSONTyped,
|
|
20
|
+
SellerInvoiceDomainDtoToJSON,
|
|
21
|
+
SellerInvoiceDomainDtoToJSONTyped,
|
|
22
|
+
} from './SellerInvoiceDomainDto';
|
|
23
|
+
import type { SellerInvoiceSellerAccountDto } from './SellerInvoiceSellerAccountDto';
|
|
24
|
+
import {
|
|
25
|
+
SellerInvoiceSellerAccountDtoFromJSON,
|
|
26
|
+
SellerInvoiceSellerAccountDtoFromJSONTyped,
|
|
27
|
+
SellerInvoiceSellerAccountDtoToJSON,
|
|
28
|
+
SellerInvoiceSellerAccountDtoToJSONTyped,
|
|
29
|
+
} from './SellerInvoiceSellerAccountDto';
|
|
30
|
+
import type { MoneyDto } from './MoneyDto';
|
|
31
|
+
import {
|
|
32
|
+
MoneyDtoFromJSON,
|
|
33
|
+
MoneyDtoFromJSONTyped,
|
|
34
|
+
MoneyDtoToJSON,
|
|
35
|
+
MoneyDtoToJSONTyped,
|
|
36
|
+
} from './MoneyDto';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface SellerInvoiceDto
|
|
42
|
+
*/
|
|
43
|
+
export interface SellerInvoiceDto {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {object}
|
|
47
|
+
* @memberof SellerInvoiceDto
|
|
48
|
+
*/
|
|
49
|
+
id: object;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof SellerInvoiceDto
|
|
54
|
+
*/
|
|
55
|
+
invoiceNumber: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {SellerInvoiceDomainDto}
|
|
59
|
+
* @memberof SellerInvoiceDto
|
|
60
|
+
*/
|
|
61
|
+
domain: SellerInvoiceDomainDto | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Date}
|
|
65
|
+
* @memberof SellerInvoiceDto
|
|
66
|
+
*/
|
|
67
|
+
date: Date | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof SellerInvoiceDto
|
|
72
|
+
*/
|
|
73
|
+
status: SellerInvoiceDtoStatusEnum;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {MoneyDto}
|
|
77
|
+
* @memberof SellerInvoiceDto
|
|
78
|
+
*/
|
|
79
|
+
totalPrice: MoneyDto;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof SellerInvoiceDto
|
|
84
|
+
*/
|
|
85
|
+
target: SellerInvoiceDtoTargetEnum;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {SellerInvoiceSellerAccountDto}
|
|
89
|
+
* @memberof SellerInvoiceDto
|
|
90
|
+
*/
|
|
91
|
+
sellerAccount: SellerInvoiceSellerAccountDto;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {object}
|
|
95
|
+
* @memberof SellerInvoiceDto
|
|
96
|
+
*/
|
|
97
|
+
parent: object | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {boolean}
|
|
101
|
+
* @memberof SellerInvoiceDto
|
|
102
|
+
*/
|
|
103
|
+
hasChildren: boolean;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {boolean}
|
|
107
|
+
* @memberof SellerInvoiceDto
|
|
108
|
+
*/
|
|
109
|
+
isAffiliateCommission: boolean;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @export
|
|
115
|
+
*/
|
|
116
|
+
export const SellerInvoiceDtoStatusEnum = {
|
|
117
|
+
DRAFT: 'draft',
|
|
118
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
119
|
+
PAID: 'paid',
|
|
120
|
+
CANCELLED: 'cancelled'
|
|
121
|
+
} as const;
|
|
122
|
+
export type SellerInvoiceDtoStatusEnum = typeof SellerInvoiceDtoStatusEnum[keyof typeof SellerInvoiceDtoStatusEnum];
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @export
|
|
126
|
+
*/
|
|
127
|
+
export const SellerInvoiceDtoTargetEnum = {
|
|
128
|
+
SELLER: 'seller',
|
|
129
|
+
BUYER: 'buyer'
|
|
130
|
+
} as const;
|
|
131
|
+
export type SellerInvoiceDtoTargetEnum = typeof SellerInvoiceDtoTargetEnum[keyof typeof SellerInvoiceDtoTargetEnum];
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Check if a given object implements the SellerInvoiceDto interface.
|
|
136
|
+
*/
|
|
137
|
+
export function instanceOfSellerInvoiceDto(value: object): value is SellerInvoiceDto {
|
|
138
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
139
|
+
if (!('invoiceNumber' in value) || value['invoiceNumber'] === undefined) return false;
|
|
140
|
+
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
141
|
+
if (!('date' in value) || value['date'] === undefined) return false;
|
|
142
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
143
|
+
if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
|
|
144
|
+
if (!('target' in value) || value['target'] === undefined) return false;
|
|
145
|
+
if (!('sellerAccount' in value) || value['sellerAccount'] === undefined) return false;
|
|
146
|
+
if (!('parent' in value) || value['parent'] === undefined) return false;
|
|
147
|
+
if (!('hasChildren' in value) || value['hasChildren'] === undefined) return false;
|
|
148
|
+
if (!('isAffiliateCommission' in value) || value['isAffiliateCommission'] === undefined) return false;
|
|
149
|
+
return true;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function SellerInvoiceDtoFromJSON(json: any): SellerInvoiceDto {
|
|
153
|
+
return SellerInvoiceDtoFromJSONTyped(json, false);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export function SellerInvoiceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerInvoiceDto {
|
|
157
|
+
if (json == null) {
|
|
158
|
+
return json;
|
|
159
|
+
}
|
|
160
|
+
return {
|
|
161
|
+
|
|
162
|
+
'id': json['id'],
|
|
163
|
+
'invoiceNumber': json['invoiceNumber'],
|
|
164
|
+
'domain': SellerInvoiceDomainDtoFromJSON(json['domain']),
|
|
165
|
+
'date': (json['date'] == null ? null : new Date(json['date'])),
|
|
166
|
+
'status': json['status'],
|
|
167
|
+
'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
|
|
168
|
+
'target': json['target'],
|
|
169
|
+
'sellerAccount': SellerInvoiceSellerAccountDtoFromJSON(json['sellerAccount']),
|
|
170
|
+
'parent': json['parent'],
|
|
171
|
+
'hasChildren': json['hasChildren'],
|
|
172
|
+
'isAffiliateCommission': json['isAffiliateCommission'],
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export function SellerInvoiceDtoToJSON(json: any): SellerInvoiceDto {
|
|
177
|
+
return SellerInvoiceDtoToJSONTyped(json, false);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export function SellerInvoiceDtoToJSONTyped(value?: SellerInvoiceDto | null, ignoreDiscriminator: boolean = false): any {
|
|
181
|
+
if (value == null) {
|
|
182
|
+
return value;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return {
|
|
186
|
+
|
|
187
|
+
'id': value['id'],
|
|
188
|
+
'invoiceNumber': value['invoiceNumber'],
|
|
189
|
+
'domain': SellerInvoiceDomainDtoToJSON(value['domain']),
|
|
190
|
+
'date': (value['date'] == null ? null : (value['date'] as any).toISOString()),
|
|
191
|
+
'status': value['status'],
|
|
192
|
+
'totalPrice': MoneyDtoToJSON(value['totalPrice']),
|
|
193
|
+
'target': value['target'],
|
|
194
|
+
'sellerAccount': SellerInvoiceSellerAccountDtoToJSON(value['sellerAccount']),
|
|
195
|
+
'parent': value['parent'],
|
|
196
|
+
'hasChildren': value['hasChildren'],
|
|
197
|
+
'isAffiliateCommission': value['isAffiliateCommission'],
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface SellerInvoiceSellerAccountDto
|
|
20
|
+
*/
|
|
21
|
+
export interface SellerInvoiceSellerAccountDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {object}
|
|
25
|
+
* @memberof SellerInvoiceSellerAccountDto
|
|
26
|
+
*/
|
|
27
|
+
id: object;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {object}
|
|
31
|
+
* @memberof SellerInvoiceSellerAccountDto
|
|
32
|
+
*/
|
|
33
|
+
identifier: object;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SellerInvoiceSellerAccountDto
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof SellerInvoiceSellerAccountDto
|
|
44
|
+
*/
|
|
45
|
+
isBusiness: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof SellerInvoiceSellerAccountDto
|
|
50
|
+
*/
|
|
51
|
+
payoutProvider: SellerInvoiceSellerAccountDtoPayoutProviderEnum;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const SellerInvoiceSellerAccountDtoPayoutProviderEnum = {
|
|
59
|
+
STRIPE: 'stripe',
|
|
60
|
+
BANK_ACCOUNT: 'bank_account'
|
|
61
|
+
} as const;
|
|
62
|
+
export type SellerInvoiceSellerAccountDtoPayoutProviderEnum = typeof SellerInvoiceSellerAccountDtoPayoutProviderEnum[keyof typeof SellerInvoiceSellerAccountDtoPayoutProviderEnum];
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the SellerInvoiceSellerAccountDto interface.
|
|
67
|
+
*/
|
|
68
|
+
export function instanceOfSellerInvoiceSellerAccountDto(value: object): value is SellerInvoiceSellerAccountDto {
|
|
69
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
70
|
+
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
71
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
72
|
+
if (!('isBusiness' in value) || value['isBusiness'] === undefined) return false;
|
|
73
|
+
if (!('payoutProvider' in value) || value['payoutProvider'] === undefined) return false;
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function SellerInvoiceSellerAccountDtoFromJSON(json: any): SellerInvoiceSellerAccountDto {
|
|
78
|
+
return SellerInvoiceSellerAccountDtoFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function SellerInvoiceSellerAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerInvoiceSellerAccountDto {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': json['id'],
|
|
88
|
+
'identifier': json['identifier'],
|
|
89
|
+
'name': json['name'],
|
|
90
|
+
'isBusiness': json['isBusiness'],
|
|
91
|
+
'payoutProvider': json['payoutProvider'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function SellerInvoiceSellerAccountDtoToJSON(json: any): SellerInvoiceSellerAccountDto {
|
|
96
|
+
return SellerInvoiceSellerAccountDtoToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function SellerInvoiceSellerAccountDtoToJSONTyped(value?: SellerInvoiceSellerAccountDto | null, ignoreDiscriminator: boolean = false): any {
|
|
100
|
+
if (value == null) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'id': value['id'],
|
|
107
|
+
'identifier': value['identifier'],
|
|
108
|
+
'name': value['name'],
|
|
109
|
+
'isBusiness': value['isBusiness'],
|
|
110
|
+
'payoutProvider': value['payoutProvider'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -49,6 +49,9 @@ export * from './BuyerDomainTransferAuthCodeDto';
|
|
|
49
49
|
export * from './BuyerDomainTransferListItemDomainDto';
|
|
50
50
|
export * from './BuyerDomainTransferListItemDto';
|
|
51
51
|
export * from './BuyerDto';
|
|
52
|
+
export * from './BuyerInvoiceDomainDto';
|
|
53
|
+
export * from './BuyerInvoiceDto';
|
|
54
|
+
export * from './BuyerInvoiceSellerAccountDto';
|
|
52
55
|
export * from './BuyerLeadListItemDomainDto';
|
|
53
56
|
export * from './BuyerLeadListItemDto';
|
|
54
57
|
export * from './BuyerSecurityUserDto';
|
|
@@ -114,9 +117,11 @@ export * from './GetAllOwnedDomains200Response';
|
|
|
114
117
|
export * from './GetAllReferrals200Response';
|
|
115
118
|
export * from './GetAllSubscriptions200Response';
|
|
116
119
|
export * from './GetAllSubscriptions200Response1';
|
|
120
|
+
export * from './GetBuyerInvoices200Response';
|
|
117
121
|
export * from './GetBuyerLeads200Response';
|
|
118
122
|
export * from './GetBuyerSubscriptions200Response';
|
|
119
123
|
export * from './GetBuyerTransfers200Response';
|
|
124
|
+
export * from './GetInvoices200Response';
|
|
120
125
|
export * from './HistoricalMetrics';
|
|
121
126
|
export * from './HttpException';
|
|
122
127
|
export * from './IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto';
|
|
@@ -213,6 +218,9 @@ export * from './SellerDomainTransferDto';
|
|
|
213
218
|
export * from './SellerDomainTransferListItemAuthCodeDto';
|
|
214
219
|
export * from './SellerDomainTransferListItemDomainDto';
|
|
215
220
|
export * from './SellerDomainTransferListItemDto';
|
|
221
|
+
export * from './SellerInvoiceDomainDto';
|
|
222
|
+
export * from './SellerInvoiceDto';
|
|
223
|
+
export * from './SellerInvoiceSellerAccountDto';
|
|
216
224
|
export * from './SellerSecurityUserAccountDto';
|
|
217
225
|
export * from './SellerSecurityUserDto';
|
|
218
226
|
export * from './SellerSubscriptionListItemDto';
|