@randock/nameshift-api-client 0.0.421 → 0.0.422
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 +1 -0
- package/README.md +3 -3
- package/dist/models/InvoiceDto.d.ts +7 -0
- package/dist/models/InvoiceDto.js +5 -0
- package/dist/models/InvoiceDtoTransaction.d.ts +53 -0
- package/dist/models/InvoiceDtoTransaction.js +68 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/models/InvoiceDto.ts +16 -0
- package/src/models/InvoiceDtoTransaction.ts +96 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -278,6 +278,7 @@ src/models/IntersectionTaskListTaskDto.ts
|
|
|
278
278
|
src/models/IntersectionTaskListTaskDtoData.ts
|
|
279
279
|
src/models/InvoiceDomainDto.ts
|
|
280
280
|
src/models/InvoiceDto.ts
|
|
281
|
+
src/models/InvoiceDtoTransaction.ts
|
|
281
282
|
src/models/InvoiceItemDto.ts
|
|
282
283
|
src/models/InvoiceItemTaxDto.ts
|
|
283
284
|
src/models/InvoiceSellerAccountDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.422
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.422 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
a87b300199006326fd5605519c5e1ba618a4e9278d4d5bbf007d3cc5e544d9c92b3d886f48bed56305ee372603a53df5
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import type { InvoiceDomainDto } from './InvoiceDomainDto';
|
|
13
13
|
import type { InvoiceSellerAccountDto } from './InvoiceSellerAccountDto';
|
|
14
14
|
import type { MoneyDto } from './MoneyDto';
|
|
15
|
+
import type { InvoiceDtoTransaction } from './InvoiceDtoTransaction';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -90,6 +91,12 @@ export interface InvoiceDto {
|
|
|
90
91
|
* @memberof InvoiceDto
|
|
91
92
|
*/
|
|
92
93
|
buyerEmail: string | null;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {InvoiceDtoTransaction}
|
|
97
|
+
* @memberof InvoiceDto
|
|
98
|
+
*/
|
|
99
|
+
transaction: InvoiceDtoTransaction | null;
|
|
93
100
|
}
|
|
94
101
|
/**
|
|
95
102
|
* @export
|
|
@@ -22,6 +22,7 @@ exports.InvoiceDtoToJSONTyped = InvoiceDtoToJSONTyped;
|
|
|
22
22
|
var InvoiceDomainDto_1 = require("./InvoiceDomainDto");
|
|
23
23
|
var InvoiceSellerAccountDto_1 = require("./InvoiceSellerAccountDto");
|
|
24
24
|
var MoneyDto_1 = require("./MoneyDto");
|
|
25
|
+
var InvoiceDtoTransaction_1 = require("./InvoiceDtoTransaction");
|
|
25
26
|
/**
|
|
26
27
|
* @export
|
|
27
28
|
*/
|
|
@@ -66,6 +67,8 @@ function instanceOfInvoiceDto(value) {
|
|
|
66
67
|
return false;
|
|
67
68
|
if (!('buyerEmail' in value) || value['buyerEmail'] === undefined)
|
|
68
69
|
return false;
|
|
70
|
+
if (!('transaction' in value) || value['transaction'] === undefined)
|
|
71
|
+
return false;
|
|
69
72
|
return true;
|
|
70
73
|
}
|
|
71
74
|
function InvoiceDtoFromJSON(json) {
|
|
@@ -88,6 +91,7 @@ function InvoiceDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
88
91
|
'hasChildren': json['hasChildren'],
|
|
89
92
|
'isAffiliateCommission': json['isAffiliateCommission'],
|
|
90
93
|
'buyerEmail': json['buyerEmail'],
|
|
94
|
+
'transaction': (0, InvoiceDtoTransaction_1.InvoiceDtoTransactionFromJSON)(json['transaction']),
|
|
91
95
|
};
|
|
92
96
|
}
|
|
93
97
|
function InvoiceDtoToJSON(json) {
|
|
@@ -111,5 +115,6 @@ function InvoiceDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
111
115
|
'hasChildren': value['hasChildren'],
|
|
112
116
|
'isAffiliateCommission': value['isAffiliateCommission'],
|
|
113
117
|
'buyerEmail': value['buyerEmail'],
|
|
118
|
+
'transaction': (0, InvoiceDtoTransaction_1.InvoiceDtoTransactionToJSON)(value['transaction']),
|
|
114
119
|
};
|
|
115
120
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
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 InvoiceDtoTransaction
|
|
16
|
+
*/
|
|
17
|
+
export interface InvoiceDtoTransaction {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof InvoiceDtoTransaction
|
|
22
|
+
*/
|
|
23
|
+
id: object;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof InvoiceDtoTransaction
|
|
28
|
+
*/
|
|
29
|
+
gateway: InvoiceDtoTransactionGatewayEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof InvoiceDtoTransaction
|
|
34
|
+
*/
|
|
35
|
+
gatewayCustomerId: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const InvoiceDtoTransactionGatewayEnum: {
|
|
41
|
+
readonly STRIPE: "stripe";
|
|
42
|
+
readonly MOLLIE: "mollie";
|
|
43
|
+
readonly NICKY: "nicky";
|
|
44
|
+
};
|
|
45
|
+
export type InvoiceDtoTransactionGatewayEnum = typeof InvoiceDtoTransactionGatewayEnum[keyof typeof InvoiceDtoTransactionGatewayEnum];
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the InvoiceDtoTransaction interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfInvoiceDtoTransaction(value: object): value is InvoiceDtoTransaction;
|
|
50
|
+
export declare function InvoiceDtoTransactionFromJSON(json: any): InvoiceDtoTransaction;
|
|
51
|
+
export declare function InvoiceDtoTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceDtoTransaction;
|
|
52
|
+
export declare function InvoiceDtoTransactionToJSON(json: any): InvoiceDtoTransaction;
|
|
53
|
+
export declare function InvoiceDtoTransactionToJSONTyped(value?: InvoiceDtoTransaction | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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.InvoiceDtoTransactionGatewayEnum = void 0;
|
|
17
|
+
exports.instanceOfInvoiceDtoTransaction = instanceOfInvoiceDtoTransaction;
|
|
18
|
+
exports.InvoiceDtoTransactionFromJSON = InvoiceDtoTransactionFromJSON;
|
|
19
|
+
exports.InvoiceDtoTransactionFromJSONTyped = InvoiceDtoTransactionFromJSONTyped;
|
|
20
|
+
exports.InvoiceDtoTransactionToJSON = InvoiceDtoTransactionToJSON;
|
|
21
|
+
exports.InvoiceDtoTransactionToJSONTyped = InvoiceDtoTransactionToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.InvoiceDtoTransactionGatewayEnum = {
|
|
26
|
+
STRIPE: 'stripe',
|
|
27
|
+
MOLLIE: 'mollie',
|
|
28
|
+
NICKY: 'nicky'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the InvoiceDtoTransaction interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfInvoiceDtoTransaction(value) {
|
|
34
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('gateway' in value) || value['gateway'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('gatewayCustomerId' in value) || value['gatewayCustomerId'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function InvoiceDtoTransactionFromJSON(json) {
|
|
43
|
+
return InvoiceDtoTransactionFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function InvoiceDtoTransactionFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'gateway': json['gateway'],
|
|
52
|
+
'gatewayCustomerId': json['gatewayCustomerId'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function InvoiceDtoTransactionToJSON(json) {
|
|
56
|
+
return InvoiceDtoTransactionToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function InvoiceDtoTransactionToJSONTyped(value, ignoreDiscriminator) {
|
|
59
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'gateway': value['gateway'],
|
|
66
|
+
'gatewayCustomerId': value['gatewayCustomerId'],
|
|
67
|
+
};
|
|
68
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -240,6 +240,7 @@ export * from './IntersectionTaskListTaskDto';
|
|
|
240
240
|
export * from './IntersectionTaskListTaskDtoData';
|
|
241
241
|
export * from './InvoiceDomainDto';
|
|
242
242
|
export * from './InvoiceDto';
|
|
243
|
+
export * from './InvoiceDtoTransaction';
|
|
243
244
|
export * from './InvoiceItemDto';
|
|
244
245
|
export * from './InvoiceItemTaxDto';
|
|
245
246
|
export * from './InvoiceSellerAccountDto';
|
package/dist/models/index.js
CHANGED
|
@@ -258,6 +258,7 @@ __exportStar(require("./IntersectionTaskListTaskDto"), exports);
|
|
|
258
258
|
__exportStar(require("./IntersectionTaskListTaskDtoData"), exports);
|
|
259
259
|
__exportStar(require("./InvoiceDomainDto"), exports);
|
|
260
260
|
__exportStar(require("./InvoiceDto"), exports);
|
|
261
|
+
__exportStar(require("./InvoiceDtoTransaction"), exports);
|
|
261
262
|
__exportStar(require("./InvoiceItemDto"), exports);
|
|
262
263
|
__exportStar(require("./InvoiceItemTaxDto"), exports);
|
|
263
264
|
__exportStar(require("./InvoiceSellerAccountDto"), exports);
|
package/package.json
CHANGED
package/src/models/InvoiceDto.ts
CHANGED
|
@@ -34,6 +34,13 @@ import {
|
|
|
34
34
|
MoneyDtoToJSON,
|
|
35
35
|
MoneyDtoToJSONTyped,
|
|
36
36
|
} from './MoneyDto';
|
|
37
|
+
import type { InvoiceDtoTransaction } from './InvoiceDtoTransaction';
|
|
38
|
+
import {
|
|
39
|
+
InvoiceDtoTransactionFromJSON,
|
|
40
|
+
InvoiceDtoTransactionFromJSONTyped,
|
|
41
|
+
InvoiceDtoTransactionToJSON,
|
|
42
|
+
InvoiceDtoTransactionToJSONTyped,
|
|
43
|
+
} from './InvoiceDtoTransaction';
|
|
37
44
|
|
|
38
45
|
/**
|
|
39
46
|
*
|
|
@@ -113,6 +120,12 @@ export interface InvoiceDto {
|
|
|
113
120
|
* @memberof InvoiceDto
|
|
114
121
|
*/
|
|
115
122
|
buyerEmail: string | null;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {InvoiceDtoTransaction}
|
|
126
|
+
* @memberof InvoiceDto
|
|
127
|
+
*/
|
|
128
|
+
transaction: InvoiceDtoTransaction | null;
|
|
116
129
|
}
|
|
117
130
|
|
|
118
131
|
|
|
@@ -153,6 +166,7 @@ export function instanceOfInvoiceDto(value: object): value is InvoiceDto {
|
|
|
153
166
|
if (!('hasChildren' in value) || value['hasChildren'] === undefined) return false;
|
|
154
167
|
if (!('isAffiliateCommission' in value) || value['isAffiliateCommission'] === undefined) return false;
|
|
155
168
|
if (!('buyerEmail' in value) || value['buyerEmail'] === undefined) return false;
|
|
169
|
+
if (!('transaction' in value) || value['transaction'] === undefined) return false;
|
|
156
170
|
return true;
|
|
157
171
|
}
|
|
158
172
|
|
|
@@ -178,6 +192,7 @@ export function InvoiceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
178
192
|
'hasChildren': json['hasChildren'],
|
|
179
193
|
'isAffiliateCommission': json['isAffiliateCommission'],
|
|
180
194
|
'buyerEmail': json['buyerEmail'],
|
|
195
|
+
'transaction': InvoiceDtoTransactionFromJSON(json['transaction']),
|
|
181
196
|
};
|
|
182
197
|
}
|
|
183
198
|
|
|
@@ -204,6 +219,7 @@ export function InvoiceDtoToJSONTyped(value?: InvoiceDto | null, ignoreDiscrimin
|
|
|
204
219
|
'hasChildren': value['hasChildren'],
|
|
205
220
|
'isAffiliateCommission': value['isAffiliateCommission'],
|
|
206
221
|
'buyerEmail': value['buyerEmail'],
|
|
222
|
+
'transaction': InvoiceDtoTransactionToJSON(value['transaction']),
|
|
207
223
|
};
|
|
208
224
|
}
|
|
209
225
|
|
|
@@ -0,0 +1,96 @@
|
|
|
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 InvoiceDtoTransaction
|
|
20
|
+
*/
|
|
21
|
+
export interface InvoiceDtoTransaction {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {object}
|
|
25
|
+
* @memberof InvoiceDtoTransaction
|
|
26
|
+
*/
|
|
27
|
+
id: object;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof InvoiceDtoTransaction
|
|
32
|
+
*/
|
|
33
|
+
gateway: InvoiceDtoTransactionGatewayEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof InvoiceDtoTransaction
|
|
38
|
+
*/
|
|
39
|
+
gatewayCustomerId: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const InvoiceDtoTransactionGatewayEnum = {
|
|
47
|
+
STRIPE: 'stripe',
|
|
48
|
+
MOLLIE: 'mollie',
|
|
49
|
+
NICKY: 'nicky'
|
|
50
|
+
} as const;
|
|
51
|
+
export type InvoiceDtoTransactionGatewayEnum = typeof InvoiceDtoTransactionGatewayEnum[keyof typeof InvoiceDtoTransactionGatewayEnum];
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the InvoiceDtoTransaction interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfInvoiceDtoTransaction(value: object): value is InvoiceDtoTransaction {
|
|
58
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
+
if (!('gateway' in value) || value['gateway'] === undefined) return false;
|
|
60
|
+
if (!('gatewayCustomerId' in value) || value['gatewayCustomerId'] === undefined) return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function InvoiceDtoTransactionFromJSON(json: any): InvoiceDtoTransaction {
|
|
65
|
+
return InvoiceDtoTransactionFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function InvoiceDtoTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceDtoTransaction {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'id': json['id'],
|
|
75
|
+
'gateway': json['gateway'],
|
|
76
|
+
'gatewayCustomerId': json['gatewayCustomerId'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function InvoiceDtoTransactionToJSON(json: any): InvoiceDtoTransaction {
|
|
81
|
+
return InvoiceDtoTransactionToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function InvoiceDtoTransactionToJSONTyped(value?: InvoiceDtoTransaction | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'id': value['id'],
|
|
92
|
+
'gateway': value['gateway'],
|
|
93
|
+
'gatewayCustomerId': value['gatewayCustomerId'],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -242,6 +242,7 @@ export * from './IntersectionTaskListTaskDto';
|
|
|
242
242
|
export * from './IntersectionTaskListTaskDtoData';
|
|
243
243
|
export * from './InvoiceDomainDto';
|
|
244
244
|
export * from './InvoiceDto';
|
|
245
|
+
export * from './InvoiceDtoTransaction';
|
|
245
246
|
export * from './InvoiceItemDto';
|
|
246
247
|
export * from './InvoiceItemTaxDto';
|
|
247
248
|
export * from './InvoiceSellerAccountDto';
|