@randock/nameshift-api-client 0.0.300 → 0.0.302
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/BuyerDto.d.ts +6 -0
- package/dist/models/BuyerDto.js +4 -0
- 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/BuyerDto.ts +9 -0
- 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
package/dist/models/index.d.ts
CHANGED
|
@@ -47,6 +47,9 @@ export * from './BuyerDomainTransferAuthCodeDto';
|
|
|
47
47
|
export * from './BuyerDomainTransferListItemDomainDto';
|
|
48
48
|
export * from './BuyerDomainTransferListItemDto';
|
|
49
49
|
export * from './BuyerDto';
|
|
50
|
+
export * from './BuyerInvoiceDomainDto';
|
|
51
|
+
export * from './BuyerInvoiceDto';
|
|
52
|
+
export * from './BuyerInvoiceSellerAccountDto';
|
|
50
53
|
export * from './BuyerLeadListItemDomainDto';
|
|
51
54
|
export * from './BuyerLeadListItemDto';
|
|
52
55
|
export * from './BuyerSecurityUserDto';
|
|
@@ -112,9 +115,11 @@ export * from './GetAllOwnedDomains200Response';
|
|
|
112
115
|
export * from './GetAllReferrals200Response';
|
|
113
116
|
export * from './GetAllSubscriptions200Response';
|
|
114
117
|
export * from './GetAllSubscriptions200Response1';
|
|
118
|
+
export * from './GetBuyerInvoices200Response';
|
|
115
119
|
export * from './GetBuyerLeads200Response';
|
|
116
120
|
export * from './GetBuyerSubscriptions200Response';
|
|
117
121
|
export * from './GetBuyerTransfers200Response';
|
|
122
|
+
export * from './GetInvoices200Response';
|
|
118
123
|
export * from './HistoricalMetrics';
|
|
119
124
|
export * from './HttpException';
|
|
120
125
|
export * from './IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto';
|
|
@@ -211,6 +216,9 @@ export * from './SellerDomainTransferDto';
|
|
|
211
216
|
export * from './SellerDomainTransferListItemAuthCodeDto';
|
|
212
217
|
export * from './SellerDomainTransferListItemDomainDto';
|
|
213
218
|
export * from './SellerDomainTransferListItemDto';
|
|
219
|
+
export * from './SellerInvoiceDomainDto';
|
|
220
|
+
export * from './SellerInvoiceDto';
|
|
221
|
+
export * from './SellerInvoiceSellerAccountDto';
|
|
214
222
|
export * from './SellerSecurityUserAccountDto';
|
|
215
223
|
export * from './SellerSecurityUserDto';
|
|
216
224
|
export * from './SellerSubscriptionListItemDto';
|
package/dist/models/index.js
CHANGED
|
@@ -65,6 +65,9 @@ __exportStar(require("./BuyerDomainTransferAuthCodeDto"), exports);
|
|
|
65
65
|
__exportStar(require("./BuyerDomainTransferListItemDomainDto"), exports);
|
|
66
66
|
__exportStar(require("./BuyerDomainTransferListItemDto"), exports);
|
|
67
67
|
__exportStar(require("./BuyerDto"), exports);
|
|
68
|
+
__exportStar(require("./BuyerInvoiceDomainDto"), exports);
|
|
69
|
+
__exportStar(require("./BuyerInvoiceDto"), exports);
|
|
70
|
+
__exportStar(require("./BuyerInvoiceSellerAccountDto"), exports);
|
|
68
71
|
__exportStar(require("./BuyerLeadListItemDomainDto"), exports);
|
|
69
72
|
__exportStar(require("./BuyerLeadListItemDto"), exports);
|
|
70
73
|
__exportStar(require("./BuyerSecurityUserDto"), exports);
|
|
@@ -130,9 +133,11 @@ __exportStar(require("./GetAllOwnedDomains200Response"), exports);
|
|
|
130
133
|
__exportStar(require("./GetAllReferrals200Response"), exports);
|
|
131
134
|
__exportStar(require("./GetAllSubscriptions200Response"), exports);
|
|
132
135
|
__exportStar(require("./GetAllSubscriptions200Response1"), exports);
|
|
136
|
+
__exportStar(require("./GetBuyerInvoices200Response"), exports);
|
|
133
137
|
__exportStar(require("./GetBuyerLeads200Response"), exports);
|
|
134
138
|
__exportStar(require("./GetBuyerSubscriptions200Response"), exports);
|
|
135
139
|
__exportStar(require("./GetBuyerTransfers200Response"), exports);
|
|
140
|
+
__exportStar(require("./GetInvoices200Response"), exports);
|
|
136
141
|
__exportStar(require("./HistoricalMetrics"), exports);
|
|
137
142
|
__exportStar(require("./HttpException"), exports);
|
|
138
143
|
__exportStar(require("./IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto"), exports);
|
|
@@ -229,6 +234,9 @@ __exportStar(require("./SellerDomainTransferDto"), exports);
|
|
|
229
234
|
__exportStar(require("./SellerDomainTransferListItemAuthCodeDto"), exports);
|
|
230
235
|
__exportStar(require("./SellerDomainTransferListItemDomainDto"), exports);
|
|
231
236
|
__exportStar(require("./SellerDomainTransferListItemDto"), exports);
|
|
237
|
+
__exportStar(require("./SellerInvoiceDomainDto"), exports);
|
|
238
|
+
__exportStar(require("./SellerInvoiceDto"), exports);
|
|
239
|
+
__exportStar(require("./SellerInvoiceSellerAccountDto"), exports);
|
|
232
240
|
__exportStar(require("./SellerSecurityUserAccountDto"), exports);
|
|
233
241
|
__exportStar(require("./SellerSecurityUserDto"), exports);
|
|
234
242
|
__exportStar(require("./SellerSubscriptionListItemDto"), exports);
|
package/package.json
CHANGED
package/src/apis/BuyersApi.ts
CHANGED
|
@@ -22,7 +22,7 @@ import type {
|
|
|
22
22
|
BuyerDomainTransferAuthCodeDto,
|
|
23
23
|
BuyerSessionDto,
|
|
24
24
|
CreateBuyerLeadMessageInput,
|
|
25
|
-
|
|
25
|
+
GetBuyerInvoices200Response,
|
|
26
26
|
GetBuyerLeads200Response,
|
|
27
27
|
GetBuyerSubscriptions200Response,
|
|
28
28
|
GetBuyerTransfers200Response,
|
|
@@ -52,8 +52,8 @@ import {
|
|
|
52
52
|
BuyerSessionDtoToJSON,
|
|
53
53
|
CreateBuyerLeadMessageInputFromJSON,
|
|
54
54
|
CreateBuyerLeadMessageInputToJSON,
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
GetBuyerInvoices200ResponseFromJSON,
|
|
56
|
+
GetBuyerInvoices200ResponseToJSON,
|
|
57
57
|
GetBuyerLeads200ResponseFromJSON,
|
|
58
58
|
GetBuyerLeads200ResponseToJSON,
|
|
59
59
|
GetBuyerSubscriptions200ResponseFromJSON,
|
|
@@ -562,7 +562,7 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
562
562
|
/**
|
|
563
563
|
*
|
|
564
564
|
*/
|
|
565
|
-
async getBuyerInvoicesRaw(requestParameters: BuyersApiGetBuyerInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
565
|
+
async getBuyerInvoicesRaw(requestParameters: BuyersApiGetBuyerInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetBuyerInvoices200Response>> {
|
|
566
566
|
const queryParameters: any = {};
|
|
567
567
|
|
|
568
568
|
if (requestParameters['filter'] != null) {
|
|
@@ -598,13 +598,13 @@ export class BuyersApi extends runtime.BaseAPI {
|
|
|
598
598
|
query: queryParameters,
|
|
599
599
|
}, initOverrides);
|
|
600
600
|
|
|
601
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
601
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetBuyerInvoices200ResponseFromJSON(jsonValue));
|
|
602
602
|
}
|
|
603
603
|
|
|
604
604
|
/**
|
|
605
605
|
*
|
|
606
606
|
*/
|
|
607
|
-
async getBuyerInvoices(requestParameters: BuyersApiGetBuyerInvoicesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
607
|
+
async getBuyerInvoices(requestParameters: BuyersApiGetBuyerInvoicesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetBuyerInvoices200Response> {
|
|
608
608
|
const response = await this.getBuyerInvoicesRaw(requestParameters, initOverrides);
|
|
609
609
|
return await response.value();
|
|
610
610
|
}
|
package/src/apis/InvoicesApi.ts
CHANGED
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
|
|
18
|
+
GetInvoices200Response,
|
|
19
19
|
NotFoundException,
|
|
20
20
|
ThrottlerException,
|
|
21
21
|
ValidationException,
|
|
22
22
|
} from '../models/index';
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
GetInvoices200ResponseFromJSON,
|
|
25
|
+
GetInvoices200ResponseToJSON,
|
|
26
26
|
NotFoundExceptionFromJSON,
|
|
27
27
|
NotFoundExceptionToJSON,
|
|
28
28
|
ThrottlerExceptionFromJSON,
|
|
@@ -91,7 +91,7 @@ export class InvoicesApi extends runtime.BaseAPI {
|
|
|
91
91
|
/**
|
|
92
92
|
*
|
|
93
93
|
*/
|
|
94
|
-
async getInvoicesRaw(requestParameters: InvoicesApiGetInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
94
|
+
async getInvoicesRaw(requestParameters: InvoicesApiGetInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetInvoices200Response>> {
|
|
95
95
|
const queryParameters: any = {};
|
|
96
96
|
|
|
97
97
|
if (requestParameters['filter'] != null) {
|
|
@@ -127,13 +127,13 @@ export class InvoicesApi extends runtime.BaseAPI {
|
|
|
127
127
|
query: queryParameters,
|
|
128
128
|
}, initOverrides);
|
|
129
129
|
|
|
130
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
130
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetInvoices200ResponseFromJSON(jsonValue));
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
*
|
|
135
135
|
*/
|
|
136
|
-
async getInvoices(requestParameters: InvoicesApiGetInvoicesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
136
|
+
async getInvoices(requestParameters: InvoicesApiGetInvoicesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInvoices200Response> {
|
|
137
137
|
const response = await this.getInvoicesRaw(requestParameters, initOverrides);
|
|
138
138
|
return await response.value();
|
|
139
139
|
}
|
package/src/models/BuyerDto.ts
CHANGED
|
@@ -49,6 +49,12 @@ export interface BuyerDto {
|
|
|
49
49
|
* @memberof BuyerDto
|
|
50
50
|
*/
|
|
51
51
|
buyerName: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof BuyerDto
|
|
56
|
+
*/
|
|
57
|
+
emailDomain: string;
|
|
52
58
|
}
|
|
53
59
|
|
|
54
60
|
/**
|
|
@@ -60,6 +66,7 @@ export function instanceOfBuyerDto(value: object): value is BuyerDto {
|
|
|
60
66
|
if (!('ipCountryCode' in value) || value['ipCountryCode'] === undefined) return false;
|
|
61
67
|
if (!('companyName' in value) || value['companyName'] === undefined) return false;
|
|
62
68
|
if (!('buyerName' in value) || value['buyerName'] === undefined) return false;
|
|
69
|
+
if (!('emailDomain' in value) || value['emailDomain'] === undefined) return false;
|
|
63
70
|
return true;
|
|
64
71
|
}
|
|
65
72
|
|
|
@@ -78,6 +85,7 @@ export function BuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
78
85
|
'ipCountryCode': json['ipCountryCode'],
|
|
79
86
|
'companyName': json['companyName'],
|
|
80
87
|
'buyerName': json['buyerName'],
|
|
88
|
+
'emailDomain': json['emailDomain'],
|
|
81
89
|
};
|
|
82
90
|
}
|
|
83
91
|
|
|
@@ -97,6 +105,7 @@ export function BuyerDtoToJSONTyped(value?: BuyerDto | null, ignoreDiscriminator
|
|
|
97
105
|
'ipCountryCode': value['ipCountryCode'],
|
|
98
106
|
'companyName': value['companyName'],
|
|
99
107
|
'buyerName': value['buyerName'],
|
|
108
|
+
'emailDomain': value['emailDomain'],
|
|
100
109
|
};
|
|
101
110
|
}
|
|
102
111
|
|
|
@@ -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 BuyerInvoiceDomainDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerInvoiceDomainDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {object}
|
|
25
|
+
* @memberof BuyerInvoiceDomainDto
|
|
26
|
+
*/
|
|
27
|
+
id: object;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BuyerInvoiceDomainDto
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BuyerInvoiceDomainDto
|
|
38
|
+
*/
|
|
39
|
+
displayName: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the BuyerInvoiceDomainDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfBuyerInvoiceDomainDto(value: object): value is BuyerInvoiceDomainDto {
|
|
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 BuyerInvoiceDomainDtoFromJSON(json: any): BuyerInvoiceDomainDto {
|
|
53
|
+
return BuyerInvoiceDomainDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function BuyerInvoiceDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerInvoiceDomainDto {
|
|
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 BuyerInvoiceDomainDtoToJSON(json: any): BuyerInvoiceDomainDto {
|
|
69
|
+
return BuyerInvoiceDomainDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function BuyerInvoiceDomainDtoToJSONTyped(value?: BuyerInvoiceDomainDto | 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 { MoneyDto } from './MoneyDto';
|
|
17
|
+
import {
|
|
18
|
+
MoneyDtoFromJSON,
|
|
19
|
+
MoneyDtoFromJSONTyped,
|
|
20
|
+
MoneyDtoToJSON,
|
|
21
|
+
MoneyDtoToJSONTyped,
|
|
22
|
+
} from './MoneyDto';
|
|
23
|
+
import type { BuyerInvoiceSellerAccountDto } from './BuyerInvoiceSellerAccountDto';
|
|
24
|
+
import {
|
|
25
|
+
BuyerInvoiceSellerAccountDtoFromJSON,
|
|
26
|
+
BuyerInvoiceSellerAccountDtoFromJSONTyped,
|
|
27
|
+
BuyerInvoiceSellerAccountDtoToJSON,
|
|
28
|
+
BuyerInvoiceSellerAccountDtoToJSONTyped,
|
|
29
|
+
} from './BuyerInvoiceSellerAccountDto';
|
|
30
|
+
import type { BuyerInvoiceDomainDto } from './BuyerInvoiceDomainDto';
|
|
31
|
+
import {
|
|
32
|
+
BuyerInvoiceDomainDtoFromJSON,
|
|
33
|
+
BuyerInvoiceDomainDtoFromJSONTyped,
|
|
34
|
+
BuyerInvoiceDomainDtoToJSON,
|
|
35
|
+
BuyerInvoiceDomainDtoToJSONTyped,
|
|
36
|
+
} from './BuyerInvoiceDomainDto';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface BuyerInvoiceDto
|
|
42
|
+
*/
|
|
43
|
+
export interface BuyerInvoiceDto {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {object}
|
|
47
|
+
* @memberof BuyerInvoiceDto
|
|
48
|
+
*/
|
|
49
|
+
id: object;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof BuyerInvoiceDto
|
|
54
|
+
*/
|
|
55
|
+
invoiceNumber: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {BuyerInvoiceDomainDto}
|
|
59
|
+
* @memberof BuyerInvoiceDto
|
|
60
|
+
*/
|
|
61
|
+
domain: BuyerInvoiceDomainDto | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Date}
|
|
65
|
+
* @memberof BuyerInvoiceDto
|
|
66
|
+
*/
|
|
67
|
+
date: Date | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof BuyerInvoiceDto
|
|
72
|
+
*/
|
|
73
|
+
status: BuyerInvoiceDtoStatusEnum;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {MoneyDto}
|
|
77
|
+
* @memberof BuyerInvoiceDto
|
|
78
|
+
*/
|
|
79
|
+
totalPrice: MoneyDto;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof BuyerInvoiceDto
|
|
84
|
+
*/
|
|
85
|
+
target: BuyerInvoiceDtoTargetEnum;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {BuyerInvoiceSellerAccountDto}
|
|
89
|
+
* @memberof BuyerInvoiceDto
|
|
90
|
+
*/
|
|
91
|
+
sellerAccount: BuyerInvoiceSellerAccountDto;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {object}
|
|
95
|
+
* @memberof BuyerInvoiceDto
|
|
96
|
+
*/
|
|
97
|
+
parent: object | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {boolean}
|
|
101
|
+
* @memberof BuyerInvoiceDto
|
|
102
|
+
*/
|
|
103
|
+
hasChildren: boolean;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @type {boolean}
|
|
107
|
+
* @memberof BuyerInvoiceDto
|
|
108
|
+
*/
|
|
109
|
+
isAffiliateCommission: boolean;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @export
|
|
115
|
+
*/
|
|
116
|
+
export const BuyerInvoiceDtoStatusEnum = {
|
|
117
|
+
DRAFT: 'draft',
|
|
118
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
119
|
+
PAID: 'paid',
|
|
120
|
+
CANCELLED: 'cancelled'
|
|
121
|
+
} as const;
|
|
122
|
+
export type BuyerInvoiceDtoStatusEnum = typeof BuyerInvoiceDtoStatusEnum[keyof typeof BuyerInvoiceDtoStatusEnum];
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @export
|
|
126
|
+
*/
|
|
127
|
+
export const BuyerInvoiceDtoTargetEnum = {
|
|
128
|
+
SELLER: 'seller',
|
|
129
|
+
BUYER: 'buyer'
|
|
130
|
+
} as const;
|
|
131
|
+
export type BuyerInvoiceDtoTargetEnum = typeof BuyerInvoiceDtoTargetEnum[keyof typeof BuyerInvoiceDtoTargetEnum];
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Check if a given object implements the BuyerInvoiceDto interface.
|
|
136
|
+
*/
|
|
137
|
+
export function instanceOfBuyerInvoiceDto(value: object): value is BuyerInvoiceDto {
|
|
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 BuyerInvoiceDtoFromJSON(json: any): BuyerInvoiceDto {
|
|
153
|
+
return BuyerInvoiceDtoFromJSONTyped(json, false);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export function BuyerInvoiceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerInvoiceDto {
|
|
157
|
+
if (json == null) {
|
|
158
|
+
return json;
|
|
159
|
+
}
|
|
160
|
+
return {
|
|
161
|
+
|
|
162
|
+
'id': json['id'],
|
|
163
|
+
'invoiceNumber': json['invoiceNumber'],
|
|
164
|
+
'domain': BuyerInvoiceDomainDtoFromJSON(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': BuyerInvoiceSellerAccountDtoFromJSON(json['sellerAccount']),
|
|
170
|
+
'parent': json['parent'],
|
|
171
|
+
'hasChildren': json['hasChildren'],
|
|
172
|
+
'isAffiliateCommission': json['isAffiliateCommission'],
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export function BuyerInvoiceDtoToJSON(json: any): BuyerInvoiceDto {
|
|
177
|
+
return BuyerInvoiceDtoToJSONTyped(json, false);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export function BuyerInvoiceDtoToJSONTyped(value?: BuyerInvoiceDto | 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': BuyerInvoiceDomainDtoToJSON(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': BuyerInvoiceSellerAccountDtoToJSON(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 BuyerInvoiceSellerAccountDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BuyerInvoiceSellerAccountDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {object}
|
|
25
|
+
* @memberof BuyerInvoiceSellerAccountDto
|
|
26
|
+
*/
|
|
27
|
+
id: object;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {object}
|
|
31
|
+
* @memberof BuyerInvoiceSellerAccountDto
|
|
32
|
+
*/
|
|
33
|
+
identifier: object;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof BuyerInvoiceSellerAccountDto
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof BuyerInvoiceSellerAccountDto
|
|
44
|
+
*/
|
|
45
|
+
isBusiness: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof BuyerInvoiceSellerAccountDto
|
|
50
|
+
*/
|
|
51
|
+
payoutProvider: BuyerInvoiceSellerAccountDtoPayoutProviderEnum;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const BuyerInvoiceSellerAccountDtoPayoutProviderEnum = {
|
|
59
|
+
STRIPE: 'stripe',
|
|
60
|
+
BANK_ACCOUNT: 'bank_account'
|
|
61
|
+
} as const;
|
|
62
|
+
export type BuyerInvoiceSellerAccountDtoPayoutProviderEnum = typeof BuyerInvoiceSellerAccountDtoPayoutProviderEnum[keyof typeof BuyerInvoiceSellerAccountDtoPayoutProviderEnum];
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Check if a given object implements the BuyerInvoiceSellerAccountDto interface.
|
|
67
|
+
*/
|
|
68
|
+
export function instanceOfBuyerInvoiceSellerAccountDto(value: object): value is BuyerInvoiceSellerAccountDto {
|
|
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 BuyerInvoiceSellerAccountDtoFromJSON(json: any): BuyerInvoiceSellerAccountDto {
|
|
78
|
+
return BuyerInvoiceSellerAccountDtoFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function BuyerInvoiceSellerAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerInvoiceSellerAccountDto {
|
|
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 BuyerInvoiceSellerAccountDtoToJSON(json: any): BuyerInvoiceSellerAccountDto {
|
|
96
|
+
return BuyerInvoiceSellerAccountDtoToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function BuyerInvoiceSellerAccountDtoToJSONTyped(value?: BuyerInvoiceSellerAccountDto | 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
|
+
|