@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,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetBuyerInvoices200Response = instanceOfGetBuyerInvoices200Response;
|
|
17
|
+
exports.GetBuyerInvoices200ResponseFromJSON = GetBuyerInvoices200ResponseFromJSON;
|
|
18
|
+
exports.GetBuyerInvoices200ResponseFromJSONTyped = GetBuyerInvoices200ResponseFromJSONTyped;
|
|
19
|
+
exports.GetBuyerInvoices200ResponseToJSON = GetBuyerInvoices200ResponseToJSON;
|
|
20
|
+
exports.GetBuyerInvoices200ResponseToJSONTyped = GetBuyerInvoices200ResponseToJSONTyped;
|
|
21
|
+
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
+
var BuyerInvoiceDto_1 = require("./BuyerInvoiceDto");
|
|
23
|
+
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the GetBuyerInvoices200Response interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfGetBuyerInvoices200Response(value) {
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('links' in value) || value['links'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function GetBuyerInvoices200ResponseFromJSON(json) {
|
|
37
|
+
return GetBuyerInvoices200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function GetBuyerInvoices200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (json['data'].map(BuyerInvoiceDto_1.BuyerInvoiceDtoFromJSON)),
|
|
45
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function GetBuyerInvoices200ResponseToJSON(json) {
|
|
50
|
+
return GetBuyerInvoices200ResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function GetBuyerInvoices200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'data': (value['data'].map(BuyerInvoiceDto_1.BuyerInvoiceDtoToJSON)),
|
|
59
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
60
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { PaginateResponseLinks } from './PaginateResponseLinks';
|
|
13
|
+
import type { SellerInvoiceDto } from './SellerInvoiceDto';
|
|
14
|
+
import type { PaginateResponseMeta } from './PaginateResponseMeta';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface GetInvoices200Response
|
|
19
|
+
*/
|
|
20
|
+
export interface GetInvoices200Response {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {Array<SellerInvoiceDto>}
|
|
24
|
+
* @memberof GetInvoices200Response
|
|
25
|
+
*/
|
|
26
|
+
data: Array<SellerInvoiceDto>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {PaginateResponseMeta}
|
|
30
|
+
* @memberof GetInvoices200Response
|
|
31
|
+
*/
|
|
32
|
+
meta: PaginateResponseMeta;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {PaginateResponseLinks}
|
|
36
|
+
* @memberof GetInvoices200Response
|
|
37
|
+
*/
|
|
38
|
+
links: PaginateResponseLinks;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the GetInvoices200Response interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfGetInvoices200Response(value: object): value is GetInvoices200Response;
|
|
44
|
+
export declare function GetInvoices200ResponseFromJSON(json: any): GetInvoices200Response;
|
|
45
|
+
export declare function GetInvoices200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetInvoices200Response;
|
|
46
|
+
export declare function GetInvoices200ResponseToJSON(json: any): GetInvoices200Response;
|
|
47
|
+
export declare function GetInvoices200ResponseToJSONTyped(value?: GetInvoices200Response | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfGetInvoices200Response = instanceOfGetInvoices200Response;
|
|
17
|
+
exports.GetInvoices200ResponseFromJSON = GetInvoices200ResponseFromJSON;
|
|
18
|
+
exports.GetInvoices200ResponseFromJSONTyped = GetInvoices200ResponseFromJSONTyped;
|
|
19
|
+
exports.GetInvoices200ResponseToJSON = GetInvoices200ResponseToJSON;
|
|
20
|
+
exports.GetInvoices200ResponseToJSONTyped = GetInvoices200ResponseToJSONTyped;
|
|
21
|
+
var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
|
|
22
|
+
var SellerInvoiceDto_1 = require("./SellerInvoiceDto");
|
|
23
|
+
var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the GetInvoices200Response interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfGetInvoices200Response(value) {
|
|
28
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('meta' in value) || value['meta'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('links' in value) || value['links'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function GetInvoices200ResponseFromJSON(json) {
|
|
37
|
+
return GetInvoices200ResponseFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function GetInvoices200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'data': (json['data'].map(SellerInvoiceDto_1.SellerInvoiceDtoFromJSON)),
|
|
45
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
|
|
46
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function GetInvoices200ResponseToJSON(json) {
|
|
50
|
+
return GetInvoices200ResponseToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function GetInvoices200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
53
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'data': (value['data'].map(SellerInvoiceDto_1.SellerInvoiceDtoToJSON)),
|
|
59
|
+
'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
|
|
60
|
+
'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
@@ -64,6 +64,8 @@ function instanceOfInvoiceDto(value) {
|
|
|
64
64
|
return false;
|
|
65
65
|
if (!('isAffiliateCommission' in value) || value['isAffiliateCommission'] === undefined)
|
|
66
66
|
return false;
|
|
67
|
+
if (!('buyerEmail' in value) || value['buyerEmail'] === undefined)
|
|
68
|
+
return false;
|
|
67
69
|
return true;
|
|
68
70
|
}
|
|
69
71
|
function InvoiceDtoFromJSON(json) {
|
|
@@ -85,6 +87,7 @@ function InvoiceDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
85
87
|
'parent': json['parent'],
|
|
86
88
|
'hasChildren': json['hasChildren'],
|
|
87
89
|
'isAffiliateCommission': json['isAffiliateCommission'],
|
|
90
|
+
'buyerEmail': json['buyerEmail'],
|
|
88
91
|
};
|
|
89
92
|
}
|
|
90
93
|
function InvoiceDtoToJSON(json) {
|
|
@@ -107,5 +110,6 @@ function InvoiceDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
107
110
|
'parent': value['parent'],
|
|
108
111
|
'hasChildren': value['hasChildren'],
|
|
109
112
|
'isAffiliateCommission': value['isAffiliateCommission'],
|
|
113
|
+
'buyerEmail': value['buyerEmail'],
|
|
110
114
|
};
|
|
111
115
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SellerInvoiceDomainDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SellerInvoiceDomainDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof SellerInvoiceDomainDto
|
|
22
|
+
*/
|
|
23
|
+
id: object;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SellerInvoiceDomainDto
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SellerInvoiceDomainDto
|
|
34
|
+
*/
|
|
35
|
+
displayName: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the SellerInvoiceDomainDto interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfSellerInvoiceDomainDto(value: object): value is SellerInvoiceDomainDto;
|
|
41
|
+
export declare function SellerInvoiceDomainDtoFromJSON(json: any): SellerInvoiceDomainDto;
|
|
42
|
+
export declare function SellerInvoiceDomainDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerInvoiceDomainDto;
|
|
43
|
+
export declare function SellerInvoiceDomainDtoToJSON(json: any): SellerInvoiceDomainDto;
|
|
44
|
+
export declare function SellerInvoiceDomainDtoToJSONTyped(value?: SellerInvoiceDomainDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfSellerInvoiceDomainDto = instanceOfSellerInvoiceDomainDto;
|
|
17
|
+
exports.SellerInvoiceDomainDtoFromJSON = SellerInvoiceDomainDtoFromJSON;
|
|
18
|
+
exports.SellerInvoiceDomainDtoFromJSONTyped = SellerInvoiceDomainDtoFromJSONTyped;
|
|
19
|
+
exports.SellerInvoiceDomainDtoToJSON = SellerInvoiceDomainDtoToJSON;
|
|
20
|
+
exports.SellerInvoiceDomainDtoToJSONTyped = SellerInvoiceDomainDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the SellerInvoiceDomainDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfSellerInvoiceDomainDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('displayName' in value) || value['displayName'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function SellerInvoiceDomainDtoFromJSON(json) {
|
|
34
|
+
return SellerInvoiceDomainDtoFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function SellerInvoiceDomainDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'id': json['id'],
|
|
42
|
+
'name': json['name'],
|
|
43
|
+
'displayName': json['displayName'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function SellerInvoiceDomainDtoToJSON(json) {
|
|
47
|
+
return SellerInvoiceDomainDtoToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function SellerInvoiceDomainDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': value['id'],
|
|
56
|
+
'name': value['name'],
|
|
57
|
+
'displayName': value['displayName'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SellerInvoiceDomainDto } from './SellerInvoiceDomainDto';
|
|
13
|
+
import type { SellerInvoiceSellerAccountDto } from './SellerInvoiceSellerAccountDto';
|
|
14
|
+
import type { MoneyDto } from './MoneyDto';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface SellerInvoiceDto
|
|
19
|
+
*/
|
|
20
|
+
export interface SellerInvoiceDto {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {object}
|
|
24
|
+
* @memberof SellerInvoiceDto
|
|
25
|
+
*/
|
|
26
|
+
id: object;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof SellerInvoiceDto
|
|
31
|
+
*/
|
|
32
|
+
invoiceNumber: string | null;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {SellerInvoiceDomainDto}
|
|
36
|
+
* @memberof SellerInvoiceDto
|
|
37
|
+
*/
|
|
38
|
+
domain: SellerInvoiceDomainDto | null;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Date}
|
|
42
|
+
* @memberof SellerInvoiceDto
|
|
43
|
+
*/
|
|
44
|
+
date: Date | null;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @memberof SellerInvoiceDto
|
|
49
|
+
*/
|
|
50
|
+
status: SellerInvoiceDtoStatusEnum;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {MoneyDto}
|
|
54
|
+
* @memberof SellerInvoiceDto
|
|
55
|
+
*/
|
|
56
|
+
totalPrice: MoneyDto;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof SellerInvoiceDto
|
|
61
|
+
*/
|
|
62
|
+
target: SellerInvoiceDtoTargetEnum;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {SellerInvoiceSellerAccountDto}
|
|
66
|
+
* @memberof SellerInvoiceDto
|
|
67
|
+
*/
|
|
68
|
+
sellerAccount: SellerInvoiceSellerAccountDto;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {object}
|
|
72
|
+
* @memberof SellerInvoiceDto
|
|
73
|
+
*/
|
|
74
|
+
parent: object | null;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof SellerInvoiceDto
|
|
79
|
+
*/
|
|
80
|
+
hasChildren: boolean;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {boolean}
|
|
84
|
+
* @memberof SellerInvoiceDto
|
|
85
|
+
*/
|
|
86
|
+
isAffiliateCommission: boolean;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export declare const SellerInvoiceDtoStatusEnum: {
|
|
92
|
+
readonly DRAFT: "draft";
|
|
93
|
+
readonly PENDING_PAYMENT: "pending_payment";
|
|
94
|
+
readonly PAID: "paid";
|
|
95
|
+
readonly CANCELLED: "cancelled";
|
|
96
|
+
};
|
|
97
|
+
export type SellerInvoiceDtoStatusEnum = typeof SellerInvoiceDtoStatusEnum[keyof typeof SellerInvoiceDtoStatusEnum];
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export declare const SellerInvoiceDtoTargetEnum: {
|
|
102
|
+
readonly SELLER: "seller";
|
|
103
|
+
readonly BUYER: "buyer";
|
|
104
|
+
};
|
|
105
|
+
export type SellerInvoiceDtoTargetEnum = typeof SellerInvoiceDtoTargetEnum[keyof typeof SellerInvoiceDtoTargetEnum];
|
|
106
|
+
/**
|
|
107
|
+
* Check if a given object implements the SellerInvoiceDto interface.
|
|
108
|
+
*/
|
|
109
|
+
export declare function instanceOfSellerInvoiceDto(value: object): value is SellerInvoiceDto;
|
|
110
|
+
export declare function SellerInvoiceDtoFromJSON(json: any): SellerInvoiceDto;
|
|
111
|
+
export declare function SellerInvoiceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerInvoiceDto;
|
|
112
|
+
export declare function SellerInvoiceDtoToJSON(json: any): SellerInvoiceDto;
|
|
113
|
+
export declare function SellerInvoiceDtoToJSONTyped(value?: SellerInvoiceDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SellerInvoiceDtoTargetEnum = exports.SellerInvoiceDtoStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfSellerInvoiceDto = instanceOfSellerInvoiceDto;
|
|
18
|
+
exports.SellerInvoiceDtoFromJSON = SellerInvoiceDtoFromJSON;
|
|
19
|
+
exports.SellerInvoiceDtoFromJSONTyped = SellerInvoiceDtoFromJSONTyped;
|
|
20
|
+
exports.SellerInvoiceDtoToJSON = SellerInvoiceDtoToJSON;
|
|
21
|
+
exports.SellerInvoiceDtoToJSONTyped = SellerInvoiceDtoToJSONTyped;
|
|
22
|
+
var SellerInvoiceDomainDto_1 = require("./SellerInvoiceDomainDto");
|
|
23
|
+
var SellerInvoiceSellerAccountDto_1 = require("./SellerInvoiceSellerAccountDto");
|
|
24
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
exports.SellerInvoiceDtoStatusEnum = {
|
|
29
|
+
DRAFT: 'draft',
|
|
30
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
31
|
+
PAID: 'paid',
|
|
32
|
+
CANCELLED: 'cancelled'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
exports.SellerInvoiceDtoTargetEnum = {
|
|
38
|
+
SELLER: 'seller',
|
|
39
|
+
BUYER: 'buyer'
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the SellerInvoiceDto interface.
|
|
43
|
+
*/
|
|
44
|
+
function instanceOfSellerInvoiceDto(value) {
|
|
45
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('invoiceNumber' in value) || value['invoiceNumber'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('domain' in value) || value['domain'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('totalPrice' in value) || value['totalPrice'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('target' in value) || value['target'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('sellerAccount' in value) || value['sellerAccount'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('parent' in value) || value['parent'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('hasChildren' in value) || value['hasChildren'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
if (!('isAffiliateCommission' in value) || value['isAffiliateCommission'] === undefined)
|
|
66
|
+
return false;
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
function SellerInvoiceDtoFromJSON(json) {
|
|
70
|
+
return SellerInvoiceDtoFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
function SellerInvoiceDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
73
|
+
if (json == null) {
|
|
74
|
+
return json;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
'id': json['id'],
|
|
78
|
+
'invoiceNumber': json['invoiceNumber'],
|
|
79
|
+
'domain': (0, SellerInvoiceDomainDto_1.SellerInvoiceDomainDtoFromJSON)(json['domain']),
|
|
80
|
+
'date': (json['date'] == null ? null : new Date(json['date'])),
|
|
81
|
+
'status': json['status'],
|
|
82
|
+
'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
|
|
83
|
+
'target': json['target'],
|
|
84
|
+
'sellerAccount': (0, SellerInvoiceSellerAccountDto_1.SellerInvoiceSellerAccountDtoFromJSON)(json['sellerAccount']),
|
|
85
|
+
'parent': json['parent'],
|
|
86
|
+
'hasChildren': json['hasChildren'],
|
|
87
|
+
'isAffiliateCommission': json['isAffiliateCommission'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function SellerInvoiceDtoToJSON(json) {
|
|
91
|
+
return SellerInvoiceDtoToJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
function SellerInvoiceDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
94
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
95
|
+
if (value == null) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
'id': value['id'],
|
|
100
|
+
'invoiceNumber': value['invoiceNumber'],
|
|
101
|
+
'domain': (0, SellerInvoiceDomainDto_1.SellerInvoiceDomainDtoToJSON)(value['domain']),
|
|
102
|
+
'date': (value['date'] == null ? null : value['date'].toISOString()),
|
|
103
|
+
'status': value['status'],
|
|
104
|
+
'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
|
|
105
|
+
'target': value['target'],
|
|
106
|
+
'sellerAccount': (0, SellerInvoiceSellerAccountDto_1.SellerInvoiceSellerAccountDtoToJSON)(value['sellerAccount']),
|
|
107
|
+
'parent': value['parent'],
|
|
108
|
+
'hasChildren': value['hasChildren'],
|
|
109
|
+
'isAffiliateCommission': value['isAffiliateCommission'],
|
|
110
|
+
};
|
|
111
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SellerInvoiceSellerAccountDto
|
|
16
|
+
*/
|
|
17
|
+
export interface SellerInvoiceSellerAccountDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof SellerInvoiceSellerAccountDto
|
|
22
|
+
*/
|
|
23
|
+
id: object;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof SellerInvoiceSellerAccountDto
|
|
28
|
+
*/
|
|
29
|
+
identifier: object;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SellerInvoiceSellerAccountDto
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof SellerInvoiceSellerAccountDto
|
|
40
|
+
*/
|
|
41
|
+
isBusiness: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SellerInvoiceSellerAccountDto
|
|
46
|
+
*/
|
|
47
|
+
payoutProvider: SellerInvoiceSellerAccountDtoPayoutProviderEnum;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const SellerInvoiceSellerAccountDtoPayoutProviderEnum: {
|
|
53
|
+
readonly STRIPE: "stripe";
|
|
54
|
+
readonly BANK_ACCOUNT: "bank_account";
|
|
55
|
+
};
|
|
56
|
+
export type SellerInvoiceSellerAccountDtoPayoutProviderEnum = typeof SellerInvoiceSellerAccountDtoPayoutProviderEnum[keyof typeof SellerInvoiceSellerAccountDtoPayoutProviderEnum];
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the SellerInvoiceSellerAccountDto interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfSellerInvoiceSellerAccountDto(value: object): value is SellerInvoiceSellerAccountDto;
|
|
61
|
+
export declare function SellerInvoiceSellerAccountDtoFromJSON(json: any): SellerInvoiceSellerAccountDto;
|
|
62
|
+
export declare function SellerInvoiceSellerAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerInvoiceSellerAccountDto;
|
|
63
|
+
export declare function SellerInvoiceSellerAccountDtoToJSON(json: any): SellerInvoiceSellerAccountDto;
|
|
64
|
+
export declare function SellerInvoiceSellerAccountDtoToJSONTyped(value?: SellerInvoiceSellerAccountDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SellerInvoiceSellerAccountDtoPayoutProviderEnum = void 0;
|
|
17
|
+
exports.instanceOfSellerInvoiceSellerAccountDto = instanceOfSellerInvoiceSellerAccountDto;
|
|
18
|
+
exports.SellerInvoiceSellerAccountDtoFromJSON = SellerInvoiceSellerAccountDtoFromJSON;
|
|
19
|
+
exports.SellerInvoiceSellerAccountDtoFromJSONTyped = SellerInvoiceSellerAccountDtoFromJSONTyped;
|
|
20
|
+
exports.SellerInvoiceSellerAccountDtoToJSON = SellerInvoiceSellerAccountDtoToJSON;
|
|
21
|
+
exports.SellerInvoiceSellerAccountDtoToJSONTyped = SellerInvoiceSellerAccountDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SellerInvoiceSellerAccountDtoPayoutProviderEnum = {
|
|
26
|
+
STRIPE: 'stripe',
|
|
27
|
+
BANK_ACCOUNT: 'bank_account'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the SellerInvoiceSellerAccountDto interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfSellerInvoiceSellerAccountDto(value) {
|
|
33
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('identifier' in value) || value['identifier'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('isBusiness' in value) || value['isBusiness'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('payoutProvider' in value) || value['payoutProvider'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
function SellerInvoiceSellerAccountDtoFromJSON(json) {
|
|
46
|
+
return SellerInvoiceSellerAccountDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function SellerInvoiceSellerAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'id': json['id'],
|
|
54
|
+
'identifier': json['identifier'],
|
|
55
|
+
'name': json['name'],
|
|
56
|
+
'isBusiness': json['isBusiness'],
|
|
57
|
+
'payoutProvider': json['payoutProvider'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function SellerInvoiceSellerAccountDtoToJSON(json) {
|
|
61
|
+
return SellerInvoiceSellerAccountDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function SellerInvoiceSellerAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
64
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'id': value['id'],
|
|
70
|
+
'identifier': value['identifier'],
|
|
71
|
+
'name': value['name'],
|
|
72
|
+
'isBusiness': value['isBusiness'],
|
|
73
|
+
'payoutProvider': value['payoutProvider'],
|
|
74
|
+
};
|
|
75
|
+
}
|