@randock/nameshift-api-client 0.0.419 → 0.0.421
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 +2 -0
- package/README.md +3 -3
- package/dist/apis/OrdersPublicApi.d.ts +1 -0
- package/dist/apis/OrdersPublicApi.js +3 -0
- package/dist/apis/SubscriptionsPublicApi.d.ts +2 -0
- package/dist/apis/SubscriptionsPublicApi.js +6 -0
- package/dist/models/CreateAccountPaymentManualTransactionInput.d.ts +0 -96
- package/dist/models/CreateAccountPaymentManualTransactionInput.js +1 -80
- package/dist/models/CreateManualTransactionInput.d.ts +2 -8
- package/dist/models/CreateManualTransactionInput.js +2 -4
- package/dist/models/CreateSubscriptionManualTransactionInput.d.ts +2 -8
- package/dist/models/CreateSubscriptionManualTransactionInput.js +2 -4
- package/dist/models/OrderListItemDto.d.ts +13 -0
- package/dist/models/OrderListItemDto.js +9 -0
- package/dist/models/OrderListItemDtoTransaction.d.ts +53 -0
- package/dist/models/OrderListItemDtoTransaction.js +68 -0
- package/dist/models/SubscriptionListItemDto.d.ts +19 -0
- package/dist/models/SubscriptionListItemDto.js +13 -0
- package/dist/models/SubscriptionListItemDtoTransaction.d.ts +53 -0
- package/dist/models/SubscriptionListItemDtoTransaction.js +68 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/apis/OrdersPublicApi.ts +5 -0
- package/src/apis/SubscriptionsPublicApi.ts +10 -0
- package/src/models/CreateAccountPaymentManualTransactionInput.ts +0 -105
- package/src/models/CreateManualTransactionInput.ts +4 -12
- package/src/models/CreateSubscriptionManualTransactionInput.ts +4 -12
- package/src/models/OrderListItemDto.ts +25 -0
- package/src/models/OrderListItemDtoTransaction.ts +96 -0
- package/src/models/SubscriptionListItemDto.ts +34 -0
- package/src/models/SubscriptionListItemDtoTransaction.ts +96 -0
- package/src/models/index.ts +2 -0
|
@@ -27,6 +27,13 @@ import {
|
|
|
27
27
|
SubscriptionListItemDtoBuyerInformationToJSON,
|
|
28
28
|
SubscriptionListItemDtoBuyerInformationToJSONTyped,
|
|
29
29
|
} from './SubscriptionListItemDtoBuyerInformation';
|
|
30
|
+
import type { SubscriptionListItemDtoTransaction } from './SubscriptionListItemDtoTransaction';
|
|
31
|
+
import {
|
|
32
|
+
SubscriptionListItemDtoTransactionFromJSON,
|
|
33
|
+
SubscriptionListItemDtoTransactionFromJSONTyped,
|
|
34
|
+
SubscriptionListItemDtoTransactionToJSON,
|
|
35
|
+
SubscriptionListItemDtoTransactionToJSONTyped,
|
|
36
|
+
} from './SubscriptionListItemDtoTransaction';
|
|
30
37
|
import type { SubscriptionListItemDtoSellerAccount } from './SubscriptionListItemDtoSellerAccount';
|
|
31
38
|
import {
|
|
32
39
|
SubscriptionListItemDtoSellerAccountFromJSON,
|
|
@@ -205,6 +212,24 @@ export interface SubscriptionListItemDto {
|
|
|
205
212
|
* @memberof SubscriptionListItemDto
|
|
206
213
|
*/
|
|
207
214
|
sellerLeaseToOwnKickBackPercentage: number;
|
|
215
|
+
/**
|
|
216
|
+
* Indicates whether the subscription is imported from a lead.
|
|
217
|
+
* @type {boolean}
|
|
218
|
+
* @memberof SubscriptionListItemDto
|
|
219
|
+
*/
|
|
220
|
+
isLeadImported: boolean;
|
|
221
|
+
/**
|
|
222
|
+
* The subscription lead ID.
|
|
223
|
+
* @type {object}
|
|
224
|
+
* @memberof SubscriptionListItemDto
|
|
225
|
+
*/
|
|
226
|
+
leadId: object | null;
|
|
227
|
+
/**
|
|
228
|
+
* The selected invoice transaction data (paid one or latest fallback).
|
|
229
|
+
* @type {SubscriptionListItemDtoTransaction}
|
|
230
|
+
* @memberof SubscriptionListItemDto
|
|
231
|
+
*/
|
|
232
|
+
transaction: SubscriptionListItemDtoTransaction | null;
|
|
208
233
|
}
|
|
209
234
|
|
|
210
235
|
|
|
@@ -287,6 +312,9 @@ export function instanceOfSubscriptionListItemDto(value: object): value is Subsc
|
|
|
287
312
|
if (!('recurringMarkupPrice' in value) || value['recurringMarkupPrice'] === undefined) return false;
|
|
288
313
|
if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined) return false;
|
|
289
314
|
if (!('sellerLeaseToOwnKickBackPercentage' in value) || value['sellerLeaseToOwnKickBackPercentage'] === undefined) return false;
|
|
315
|
+
if (!('isLeadImported' in value) || value['isLeadImported'] === undefined) return false;
|
|
316
|
+
if (!('leadId' in value) || value['leadId'] === undefined) return false;
|
|
317
|
+
if (!('transaction' in value) || value['transaction'] === undefined) return false;
|
|
290
318
|
return true;
|
|
291
319
|
}
|
|
292
320
|
|
|
@@ -325,6 +353,9 @@ export function SubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
325
353
|
'recurringMarkupPrice': MoneyDtoFromJSON(json['recurringMarkupPrice']),
|
|
326
354
|
'billingPeriodicity': SubscriptionListItemBillingPeriodicityDtoFromJSON(json['billingPeriodicity']),
|
|
327
355
|
'sellerLeaseToOwnKickBackPercentage': json['sellerLeaseToOwnKickBackPercentage'],
|
|
356
|
+
'isLeadImported': json['isLeadImported'],
|
|
357
|
+
'leadId': json['leadId'],
|
|
358
|
+
'transaction': SubscriptionListItemDtoTransactionFromJSON(json['transaction']),
|
|
328
359
|
};
|
|
329
360
|
}
|
|
330
361
|
|
|
@@ -364,6 +395,9 @@ export function SubscriptionListItemDtoToJSONTyped(value?: SubscriptionListItemD
|
|
|
364
395
|
'recurringMarkupPrice': MoneyDtoToJSON(value['recurringMarkupPrice']),
|
|
365
396
|
'billingPeriodicity': SubscriptionListItemBillingPeriodicityDtoToJSON(value['billingPeriodicity']),
|
|
366
397
|
'sellerLeaseToOwnKickBackPercentage': value['sellerLeaseToOwnKickBackPercentage'],
|
|
398
|
+
'isLeadImported': value['isLeadImported'],
|
|
399
|
+
'leadId': value['leadId'],
|
|
400
|
+
'transaction': SubscriptionListItemDtoTransactionToJSON(value['transaction']),
|
|
367
401
|
};
|
|
368
402
|
}
|
|
369
403
|
|
|
@@ -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 SubscriptionListItemDtoTransaction
|
|
20
|
+
*/
|
|
21
|
+
export interface SubscriptionListItemDtoTransaction {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {object}
|
|
25
|
+
* @memberof SubscriptionListItemDtoTransaction
|
|
26
|
+
*/
|
|
27
|
+
id: object;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SubscriptionListItemDtoTransaction
|
|
32
|
+
*/
|
|
33
|
+
gateway: SubscriptionListItemDtoTransactionGatewayEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SubscriptionListItemDtoTransaction
|
|
38
|
+
*/
|
|
39
|
+
gatewayCustomerId: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export const SubscriptionListItemDtoTransactionGatewayEnum = {
|
|
47
|
+
STRIPE: 'stripe',
|
|
48
|
+
MOLLIE: 'mollie',
|
|
49
|
+
NICKY: 'nicky'
|
|
50
|
+
} as const;
|
|
51
|
+
export type SubscriptionListItemDtoTransactionGatewayEnum = typeof SubscriptionListItemDtoTransactionGatewayEnum[keyof typeof SubscriptionListItemDtoTransactionGatewayEnum];
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the SubscriptionListItemDtoTransaction interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfSubscriptionListItemDtoTransaction(value: object): value is SubscriptionListItemDtoTransaction {
|
|
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 SubscriptionListItemDtoTransactionFromJSON(json: any): SubscriptionListItemDtoTransaction {
|
|
65
|
+
return SubscriptionListItemDtoTransactionFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function SubscriptionListItemDtoTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemDtoTransaction {
|
|
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 SubscriptionListItemDtoTransactionToJSON(json: any): SubscriptionListItemDtoTransaction {
|
|
81
|
+
return SubscriptionListItemDtoTransactionToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function SubscriptionListItemDtoTransactionToJSONTyped(value?: SubscriptionListItemDtoTransaction | 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
|
@@ -313,6 +313,7 @@ export * from './OrderListItemDto';
|
|
|
313
313
|
export * from './OrderListItemDtoBuyerInformation';
|
|
314
314
|
export * from './OrderListItemDtoDomainInformation';
|
|
315
315
|
export * from './OrderListItemDtoSellerAccount';
|
|
316
|
+
export * from './OrderListItemDtoTransaction';
|
|
316
317
|
export * from './OwnedDomainDto';
|
|
317
318
|
export * from './PageBasedPageInfo';
|
|
318
319
|
export * from './PageBasedPaginationResponse';
|
|
@@ -419,6 +420,7 @@ export * from './SubscriptionListItemDto';
|
|
|
419
420
|
export * from './SubscriptionListItemDtoBuyerInformation';
|
|
420
421
|
export * from './SubscriptionListItemDtoDomainInformation';
|
|
421
422
|
export * from './SubscriptionListItemDtoSellerAccount';
|
|
423
|
+
export * from './SubscriptionListItemDtoTransaction';
|
|
422
424
|
export * from './TaskDataChallengeRewardDto';
|
|
423
425
|
export * from './TaskDataDomainTransferDto';
|
|
424
426
|
export * from './TaskDetailsDto';
|