@randock/nameshift-api-client 0.0.420 → 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.
@@ -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
@@ -349,6 +350,7 @@ src/models/OrderListItemDto.ts
349
350
  src/models/OrderListItemDtoBuyerInformation.ts
350
351
  src/models/OrderListItemDtoDomainInformation.ts
351
352
  src/models/OrderListItemDtoSellerAccount.ts
353
+ src/models/OrderListItemDtoTransaction.ts
352
354
  src/models/OwnedDomainDto.ts
353
355
  src/models/PageBasedPageInfo.ts
354
356
  src/models/PageBasedPaginationResponse.ts
@@ -455,6 +457,7 @@ src/models/SubscriptionListItemDto.ts
455
457
  src/models/SubscriptionListItemDtoBuyerInformation.ts
456
458
  src/models/SubscriptionListItemDtoDomainInformation.ts
457
459
  src/models/SubscriptionListItemDtoSellerAccount.ts
460
+ src/models/SubscriptionListItemDtoTransaction.ts
458
461
  src/models/TaskDataChallengeRewardDto.ts
459
462
  src/models/TaskDataDomainTransferDto.ts
460
463
  src/models/TaskDetailsDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.420
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.420 --save
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
- 9bbdebad5f15a1008a8d87d3c3677e8806e3162d119553b6750ad46ccbdf6f6cca7869d44cfc8709a7c1a775b3467cf0
47
+ a87b300199006326fd5605519c5e1ba618a4e9278d4d5bbf007d3cc5e544d9c92b3d886f48bed56305ee372603a53df5
@@ -23,6 +23,7 @@ export interface OrdersPublicApiDownloadOrderProformaInvoiceRequest {
23
23
  }
24
24
  export interface OrdersPublicApiGetOrderRequest {
25
25
  orderId: string;
26
+ includePaymentMethods?: boolean;
26
27
  }
27
28
  export interface OrdersPublicApiUpdateOrderRequest {
28
29
  orderId: string;
@@ -227,6 +227,9 @@ var OrdersPublicApi = /** @class */ (function (_super) {
227
227
  throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling getOrder().');
228
228
  }
229
229
  queryParameters = {};
230
+ if (requestParameters['includePaymentMethods'] != null) {
231
+ queryParameters['includePaymentMethods'] = requestParameters['includePaymentMethods'];
232
+ }
230
233
  headerParameters = {};
231
234
  return [4 /*yield*/, this.request({
232
235
  path: "/orders/{orderId}".replace("{".concat("orderId", "}"), encodeURIComponent(String(requestParameters['orderId']))),
@@ -24,10 +24,12 @@ export interface SubscriptionsPublicApiDownloadSubscriptionProformaInvoiceReques
24
24
  }
25
25
  export interface SubscriptionsPublicApiGetSubscriptionRequest {
26
26
  subscriptionId: string;
27
+ includePaymentMethods?: boolean;
27
28
  }
28
29
  export interface SubscriptionsPublicApiGetSubscriptionByInvoiceRequest {
29
30
  subscriptionId: string;
30
31
  invoiceId: string;
32
+ includePaymentMethods?: boolean;
31
33
  }
32
34
  export interface SubscriptionsPublicApiUpdateSubscriptionRequest {
33
35
  subscriptionId: string;
@@ -232,6 +232,9 @@ var SubscriptionsPublicApi = /** @class */ (function (_super) {
232
232
  throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling getSubscription().');
233
233
  }
234
234
  queryParameters = {};
235
+ if (requestParameters['includePaymentMethods'] != null) {
236
+ queryParameters['includePaymentMethods'] = requestParameters['includePaymentMethods'];
237
+ }
235
238
  headerParameters = {};
236
239
  return [4 /*yield*/, this.request({
237
240
  path: "/subscriptions/{subscriptionId}".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
@@ -280,6 +283,9 @@ var SubscriptionsPublicApi = /** @class */ (function (_super) {
280
283
  throw new runtime.RequiredError('invoiceId', 'Required parameter "invoiceId" was null or undefined when calling getSubscriptionByInvoice().');
281
284
  }
282
285
  queryParameters = {};
286
+ if (requestParameters['includePaymentMethods'] != null) {
287
+ queryParameters['includePaymentMethods'] = requestParameters['includePaymentMethods'];
288
+ }
283
289
  headerParameters = {};
284
290
  return [4 /*yield*/, this.request({
285
291
  path: "/subscriptions/{subscriptionId}/invoices/{invoiceId}".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))).replace("{".concat("invoiceId", "}"), encodeURIComponent(String(requestParameters['invoiceId']))),
@@ -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
+ }
@@ -12,6 +12,7 @@
12
12
  import type { OrderListItemDtoDomainInformation } from './OrderListItemDtoDomainInformation';
13
13
  import type { MoneyDto } from './MoneyDto';
14
14
  import type { OrderListItemDtoBuyerInformation } from './OrderListItemDtoBuyerInformation';
15
+ import type { OrderListItemDtoTransaction } from './OrderListItemDtoTransaction';
15
16
  import type { OrderListItemDtoSellerAccount } from './OrderListItemDtoSellerAccount';
16
17
  /**
17
18
  *
@@ -85,6 +86,12 @@ export interface OrderListItemDto {
85
86
  * @memberof OrderListItemDto
86
87
  */
87
88
  leadId: object | null;
89
+ /**
90
+ * Indicates whether the order is imported from a lead.
91
+ * @type {boolean}
92
+ * @memberof OrderListItemDto
93
+ */
94
+ isLeadImported: boolean;
88
95
  /**
89
96
  * The order auction ID
90
97
  * @type {object}
@@ -97,6 +104,12 @@ export interface OrderListItemDto {
97
104
  * @memberof OrderListItemDto
98
105
  */
99
106
  domainTransferId: object | null;
107
+ /**
108
+ * The selected invoice transaction data (paid one or latest fallback).
109
+ * @type {OrderListItemDtoTransaction}
110
+ * @memberof OrderListItemDto
111
+ */
112
+ transaction: OrderListItemDtoTransaction | null;
100
113
  }
101
114
  /**
102
115
  * @export
@@ -22,6 +22,7 @@ exports.OrderListItemDtoToJSONTyped = OrderListItemDtoToJSONTyped;
22
22
  var OrderListItemDtoDomainInformation_1 = require("./OrderListItemDtoDomainInformation");
23
23
  var MoneyDto_1 = require("./MoneyDto");
24
24
  var OrderListItemDtoBuyerInformation_1 = require("./OrderListItemDtoBuyerInformation");
25
+ var OrderListItemDtoTransaction_1 = require("./OrderListItemDtoTransaction");
25
26
  var OrderListItemDtoSellerAccount_1 = require("./OrderListItemDtoSellerAccount");
26
27
  /**
27
28
  * @export
@@ -58,10 +59,14 @@ function instanceOfOrderListItemDto(value) {
58
59
  return false;
59
60
  if (!('leadId' in value) || value['leadId'] === undefined)
60
61
  return false;
62
+ if (!('isLeadImported' in value) || value['isLeadImported'] === undefined)
63
+ return false;
61
64
  if (!('auctionId' in value) || value['auctionId'] === undefined)
62
65
  return false;
63
66
  if (!('domainTransferId' in value) || value['domainTransferId'] === undefined)
64
67
  return false;
68
+ if (!('transaction' in value) || value['transaction'] === undefined)
69
+ return false;
65
70
  return true;
66
71
  }
67
72
  function OrderListItemDtoFromJSON(json) {
@@ -83,8 +88,10 @@ function OrderListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
83
88
  'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
84
89
  'basePriceEur': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePriceEur']),
85
90
  'leadId': json['leadId'],
91
+ 'isLeadImported': json['isLeadImported'],
86
92
  'auctionId': json['auctionId'],
87
93
  'domainTransferId': json['domainTransferId'],
94
+ 'transaction': (0, OrderListItemDtoTransaction_1.OrderListItemDtoTransactionFromJSON)(json['transaction']),
88
95
  };
89
96
  }
90
97
  function OrderListItemDtoToJSON(json) {
@@ -107,7 +114,9 @@ function OrderListItemDtoToJSONTyped(value, ignoreDiscriminator) {
107
114
  'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
108
115
  'basePriceEur': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePriceEur']),
109
116
  'leadId': value['leadId'],
117
+ 'isLeadImported': value['isLeadImported'],
110
118
  'auctionId': value['auctionId'],
111
119
  'domainTransferId': value['domainTransferId'],
120
+ 'transaction': (0, OrderListItemDtoTransaction_1.OrderListItemDtoTransactionToJSON)(value['transaction']),
112
121
  };
113
122
  }
@@ -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 OrderListItemDtoTransaction
16
+ */
17
+ export interface OrderListItemDtoTransaction {
18
+ /**
19
+ *
20
+ * @type {object}
21
+ * @memberof OrderListItemDtoTransaction
22
+ */
23
+ id: object;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof OrderListItemDtoTransaction
28
+ */
29
+ gateway: OrderListItemDtoTransactionGatewayEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof OrderListItemDtoTransaction
34
+ */
35
+ gatewayCustomerId: string | null;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const OrderListItemDtoTransactionGatewayEnum: {
41
+ readonly STRIPE: "stripe";
42
+ readonly MOLLIE: "mollie";
43
+ readonly NICKY: "nicky";
44
+ };
45
+ export type OrderListItemDtoTransactionGatewayEnum = typeof OrderListItemDtoTransactionGatewayEnum[keyof typeof OrderListItemDtoTransactionGatewayEnum];
46
+ /**
47
+ * Check if a given object implements the OrderListItemDtoTransaction interface.
48
+ */
49
+ export declare function instanceOfOrderListItemDtoTransaction(value: object): value is OrderListItemDtoTransaction;
50
+ export declare function OrderListItemDtoTransactionFromJSON(json: any): OrderListItemDtoTransaction;
51
+ export declare function OrderListItemDtoTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDtoTransaction;
52
+ export declare function OrderListItemDtoTransactionToJSON(json: any): OrderListItemDtoTransaction;
53
+ export declare function OrderListItemDtoTransactionToJSONTyped(value?: OrderListItemDtoTransaction | 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.OrderListItemDtoTransactionGatewayEnum = void 0;
17
+ exports.instanceOfOrderListItemDtoTransaction = instanceOfOrderListItemDtoTransaction;
18
+ exports.OrderListItemDtoTransactionFromJSON = OrderListItemDtoTransactionFromJSON;
19
+ exports.OrderListItemDtoTransactionFromJSONTyped = OrderListItemDtoTransactionFromJSONTyped;
20
+ exports.OrderListItemDtoTransactionToJSON = OrderListItemDtoTransactionToJSON;
21
+ exports.OrderListItemDtoTransactionToJSONTyped = OrderListItemDtoTransactionToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.OrderListItemDtoTransactionGatewayEnum = {
26
+ STRIPE: 'stripe',
27
+ MOLLIE: 'mollie',
28
+ NICKY: 'nicky'
29
+ };
30
+ /**
31
+ * Check if a given object implements the OrderListItemDtoTransaction interface.
32
+ */
33
+ function instanceOfOrderListItemDtoTransaction(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 OrderListItemDtoTransactionFromJSON(json) {
43
+ return OrderListItemDtoTransactionFromJSONTyped(json, false);
44
+ }
45
+ function OrderListItemDtoTransactionFromJSONTyped(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 OrderListItemDtoTransactionToJSON(json) {
56
+ return OrderListItemDtoTransactionToJSONTyped(json, false);
57
+ }
58
+ function OrderListItemDtoTransactionToJSONTyped(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
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { SubscriptionListItemBillingPeriodicityDto } from './SubscriptionListItemBillingPeriodicityDto';
13
13
  import type { SubscriptionListItemDtoBuyerInformation } from './SubscriptionListItemDtoBuyerInformation';
14
+ import type { SubscriptionListItemDtoTransaction } from './SubscriptionListItemDtoTransaction';
14
15
  import type { SubscriptionListItemDtoSellerAccount } from './SubscriptionListItemDtoSellerAccount';
15
16
  import type { MoneyDto } from './MoneyDto';
16
17
  import type { SubscriptionListItemDtoDomainInformation } from './SubscriptionListItemDtoDomainInformation';
@@ -170,6 +171,24 @@ export interface SubscriptionListItemDto {
170
171
  * @memberof SubscriptionListItemDto
171
172
  */
172
173
  sellerLeaseToOwnKickBackPercentage: number;
174
+ /**
175
+ * Indicates whether the subscription is imported from a lead.
176
+ * @type {boolean}
177
+ * @memberof SubscriptionListItemDto
178
+ */
179
+ isLeadImported: boolean;
180
+ /**
181
+ * The subscription lead ID.
182
+ * @type {object}
183
+ * @memberof SubscriptionListItemDto
184
+ */
185
+ leadId: object | null;
186
+ /**
187
+ * The selected invoice transaction data (paid one or latest fallback).
188
+ * @type {SubscriptionListItemDtoTransaction}
189
+ * @memberof SubscriptionListItemDto
190
+ */
191
+ transaction: SubscriptionListItemDtoTransaction | null;
173
192
  }
174
193
  /**
175
194
  * @export
@@ -21,6 +21,7 @@ exports.SubscriptionListItemDtoToJSON = SubscriptionListItemDtoToJSON;
21
21
  exports.SubscriptionListItemDtoToJSONTyped = SubscriptionListItemDtoToJSONTyped;
22
22
  var SubscriptionListItemBillingPeriodicityDto_1 = require("./SubscriptionListItemBillingPeriodicityDto");
23
23
  var SubscriptionListItemDtoBuyerInformation_1 = require("./SubscriptionListItemDtoBuyerInformation");
24
+ var SubscriptionListItemDtoTransaction_1 = require("./SubscriptionListItemDtoTransaction");
24
25
  var SubscriptionListItemDtoSellerAccount_1 = require("./SubscriptionListItemDtoSellerAccount");
25
26
  var MoneyDto_1 = require("./MoneyDto");
26
27
  var SubscriptionListItemDtoDomainInformation_1 = require("./SubscriptionListItemDtoDomainInformation");
@@ -117,6 +118,12 @@ function instanceOfSubscriptionListItemDto(value) {
117
118
  return false;
118
119
  if (!('sellerLeaseToOwnKickBackPercentage' in value) || value['sellerLeaseToOwnKickBackPercentage'] === undefined)
119
120
  return false;
121
+ if (!('isLeadImported' in value) || value['isLeadImported'] === undefined)
122
+ return false;
123
+ if (!('leadId' in value) || value['leadId'] === undefined)
124
+ return false;
125
+ if (!('transaction' in value) || value['transaction'] === undefined)
126
+ return false;
120
127
  return true;
121
128
  }
122
129
  function SubscriptionListItemDtoFromJSON(json) {
@@ -152,6 +159,9 @@ function SubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
152
159
  'recurringMarkupPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['recurringMarkupPrice']),
153
160
  'billingPeriodicity': (0, SubscriptionListItemBillingPeriodicityDto_1.SubscriptionListItemBillingPeriodicityDtoFromJSON)(json['billingPeriodicity']),
154
161
  'sellerLeaseToOwnKickBackPercentage': json['sellerLeaseToOwnKickBackPercentage'],
162
+ 'isLeadImported': json['isLeadImported'],
163
+ 'leadId': json['leadId'],
164
+ 'transaction': (0, SubscriptionListItemDtoTransaction_1.SubscriptionListItemDtoTransactionFromJSON)(json['transaction']),
155
165
  };
156
166
  }
157
167
  function SubscriptionListItemDtoToJSON(json) {
@@ -188,5 +198,8 @@ function SubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
188
198
  'recurringMarkupPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['recurringMarkupPrice']),
189
199
  'billingPeriodicity': (0, SubscriptionListItemBillingPeriodicityDto_1.SubscriptionListItemBillingPeriodicityDtoToJSON)(value['billingPeriodicity']),
190
200
  'sellerLeaseToOwnKickBackPercentage': value['sellerLeaseToOwnKickBackPercentage'],
201
+ 'isLeadImported': value['isLeadImported'],
202
+ 'leadId': value['leadId'],
203
+ 'transaction': (0, SubscriptionListItemDtoTransaction_1.SubscriptionListItemDtoTransactionToJSON)(value['transaction']),
191
204
  };
192
205
  }
@@ -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 SubscriptionListItemDtoTransaction
16
+ */
17
+ export interface SubscriptionListItemDtoTransaction {
18
+ /**
19
+ *
20
+ * @type {object}
21
+ * @memberof SubscriptionListItemDtoTransaction
22
+ */
23
+ id: object;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SubscriptionListItemDtoTransaction
28
+ */
29
+ gateway: SubscriptionListItemDtoTransactionGatewayEnum;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SubscriptionListItemDtoTransaction
34
+ */
35
+ gatewayCustomerId: string | null;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const SubscriptionListItemDtoTransactionGatewayEnum: {
41
+ readonly STRIPE: "stripe";
42
+ readonly MOLLIE: "mollie";
43
+ readonly NICKY: "nicky";
44
+ };
45
+ export type SubscriptionListItemDtoTransactionGatewayEnum = typeof SubscriptionListItemDtoTransactionGatewayEnum[keyof typeof SubscriptionListItemDtoTransactionGatewayEnum];
46
+ /**
47
+ * Check if a given object implements the SubscriptionListItemDtoTransaction interface.
48
+ */
49
+ export declare function instanceOfSubscriptionListItemDtoTransaction(value: object): value is SubscriptionListItemDtoTransaction;
50
+ export declare function SubscriptionListItemDtoTransactionFromJSON(json: any): SubscriptionListItemDtoTransaction;
51
+ export declare function SubscriptionListItemDtoTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemDtoTransaction;
52
+ export declare function SubscriptionListItemDtoTransactionToJSON(json: any): SubscriptionListItemDtoTransaction;
53
+ export declare function SubscriptionListItemDtoTransactionToJSONTyped(value?: SubscriptionListItemDtoTransaction | 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.SubscriptionListItemDtoTransactionGatewayEnum = void 0;
17
+ exports.instanceOfSubscriptionListItemDtoTransaction = instanceOfSubscriptionListItemDtoTransaction;
18
+ exports.SubscriptionListItemDtoTransactionFromJSON = SubscriptionListItemDtoTransactionFromJSON;
19
+ exports.SubscriptionListItemDtoTransactionFromJSONTyped = SubscriptionListItemDtoTransactionFromJSONTyped;
20
+ exports.SubscriptionListItemDtoTransactionToJSON = SubscriptionListItemDtoTransactionToJSON;
21
+ exports.SubscriptionListItemDtoTransactionToJSONTyped = SubscriptionListItemDtoTransactionToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.SubscriptionListItemDtoTransactionGatewayEnum = {
26
+ STRIPE: 'stripe',
27
+ MOLLIE: 'mollie',
28
+ NICKY: 'nicky'
29
+ };
30
+ /**
31
+ * Check if a given object implements the SubscriptionListItemDtoTransaction interface.
32
+ */
33
+ function instanceOfSubscriptionListItemDtoTransaction(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 SubscriptionListItemDtoTransactionFromJSON(json) {
43
+ return SubscriptionListItemDtoTransactionFromJSONTyped(json, false);
44
+ }
45
+ function SubscriptionListItemDtoTransactionFromJSONTyped(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 SubscriptionListItemDtoTransactionToJSON(json) {
56
+ return SubscriptionListItemDtoTransactionToJSONTyped(json, false);
57
+ }
58
+ function SubscriptionListItemDtoTransactionToJSONTyped(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
+ }
@@ -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';
@@ -311,6 +312,7 @@ export * from './OrderListItemDto';
311
312
  export * from './OrderListItemDtoBuyerInformation';
312
313
  export * from './OrderListItemDtoDomainInformation';
313
314
  export * from './OrderListItemDtoSellerAccount';
315
+ export * from './OrderListItemDtoTransaction';
314
316
  export * from './OwnedDomainDto';
315
317
  export * from './PageBasedPageInfo';
316
318
  export * from './PageBasedPaginationResponse';
@@ -417,6 +419,7 @@ export * from './SubscriptionListItemDto';
417
419
  export * from './SubscriptionListItemDtoBuyerInformation';
418
420
  export * from './SubscriptionListItemDtoDomainInformation';
419
421
  export * from './SubscriptionListItemDtoSellerAccount';
422
+ export * from './SubscriptionListItemDtoTransaction';
420
423
  export * from './TaskDataChallengeRewardDto';
421
424
  export * from './TaskDataDomainTransferDto';
422
425
  export * from './TaskDetailsDto';
@@ -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);
@@ -329,6 +330,7 @@ __exportStar(require("./OrderListItemDto"), exports);
329
330
  __exportStar(require("./OrderListItemDtoBuyerInformation"), exports);
330
331
  __exportStar(require("./OrderListItemDtoDomainInformation"), exports);
331
332
  __exportStar(require("./OrderListItemDtoSellerAccount"), exports);
333
+ __exportStar(require("./OrderListItemDtoTransaction"), exports);
332
334
  __exportStar(require("./OwnedDomainDto"), exports);
333
335
  __exportStar(require("./PageBasedPageInfo"), exports);
334
336
  __exportStar(require("./PageBasedPaginationResponse"), exports);
@@ -435,6 +437,7 @@ __exportStar(require("./SubscriptionListItemDto"), exports);
435
437
  __exportStar(require("./SubscriptionListItemDtoBuyerInformation"), exports);
436
438
  __exportStar(require("./SubscriptionListItemDtoDomainInformation"), exports);
437
439
  __exportStar(require("./SubscriptionListItemDtoSellerAccount"), exports);
440
+ __exportStar(require("./SubscriptionListItemDtoTransaction"), exports);
438
441
  __exportStar(require("./TaskDataChallengeRewardDto"), exports);
439
442
  __exportStar(require("./TaskDataDomainTransferDto"), exports);
440
443
  __exportStar(require("./TaskDetailsDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.420",
3
+ "version": "0.0.422",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -58,6 +58,7 @@ export interface OrdersPublicApiDownloadOrderProformaInvoiceRequest {
58
58
 
59
59
  export interface OrdersPublicApiGetOrderRequest {
60
60
  orderId: string;
61
+ includePaymentMethods?: boolean;
61
62
  }
62
63
 
63
64
  export interface OrdersPublicApiUpdateOrderRequest {
@@ -196,6 +197,10 @@ export class OrdersPublicApi extends runtime.BaseAPI {
196
197
 
197
198
  const queryParameters: any = {};
198
199
 
200
+ if (requestParameters['includePaymentMethods'] != null) {
201
+ queryParameters['includePaymentMethods'] = requestParameters['includePaymentMethods'];
202
+ }
203
+
199
204
  const headerParameters: runtime.HTTPHeaders = {};
200
205
 
201
206
  const response = await this.request({
@@ -59,11 +59,13 @@ export interface SubscriptionsPublicApiDownloadSubscriptionProformaInvoiceReques
59
59
 
60
60
  export interface SubscriptionsPublicApiGetSubscriptionRequest {
61
61
  subscriptionId: string;
62
+ includePaymentMethods?: boolean;
62
63
  }
63
64
 
64
65
  export interface SubscriptionsPublicApiGetSubscriptionByInvoiceRequest {
65
66
  subscriptionId: string;
66
67
  invoiceId: string;
68
+ includePaymentMethods?: boolean;
67
69
  }
68
70
 
69
71
  export interface SubscriptionsPublicApiUpdateSubscriptionRequest {
@@ -211,6 +213,10 @@ export class SubscriptionsPublicApi extends runtime.BaseAPI {
211
213
 
212
214
  const queryParameters: any = {};
213
215
 
216
+ if (requestParameters['includePaymentMethods'] != null) {
217
+ queryParameters['includePaymentMethods'] = requestParameters['includePaymentMethods'];
218
+ }
219
+
214
220
  const headerParameters: runtime.HTTPHeaders = {};
215
221
 
216
222
  const response = await this.request({
@@ -252,6 +258,10 @@ export class SubscriptionsPublicApi extends runtime.BaseAPI {
252
258
 
253
259
  const queryParameters: any = {};
254
260
 
261
+ if (requestParameters['includePaymentMethods'] != null) {
262
+ queryParameters['includePaymentMethods'] = requestParameters['includePaymentMethods'];
263
+ }
264
+
255
265
  const headerParameters: runtime.HTTPHeaders = {};
256
266
 
257
267
  const response = await this.request({
@@ -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
+
@@ -34,6 +34,13 @@ import {
34
34
  OrderListItemDtoBuyerInformationToJSON,
35
35
  OrderListItemDtoBuyerInformationToJSONTyped,
36
36
  } from './OrderListItemDtoBuyerInformation';
37
+ import type { OrderListItemDtoTransaction } from './OrderListItemDtoTransaction';
38
+ import {
39
+ OrderListItemDtoTransactionFromJSON,
40
+ OrderListItemDtoTransactionFromJSONTyped,
41
+ OrderListItemDtoTransactionToJSON,
42
+ OrderListItemDtoTransactionToJSONTyped,
43
+ } from './OrderListItemDtoTransaction';
37
44
  import type { OrderListItemDtoSellerAccount } from './OrderListItemDtoSellerAccount';
38
45
  import {
39
46
  OrderListItemDtoSellerAccountFromJSON,
@@ -114,6 +121,12 @@ export interface OrderListItemDto {
114
121
  * @memberof OrderListItemDto
115
122
  */
116
123
  leadId: object | null;
124
+ /**
125
+ * Indicates whether the order is imported from a lead.
126
+ * @type {boolean}
127
+ * @memberof OrderListItemDto
128
+ */
129
+ isLeadImported: boolean;
117
130
  /**
118
131
  * The order auction ID
119
132
  * @type {object}
@@ -126,6 +139,12 @@ export interface OrderListItemDto {
126
139
  * @memberof OrderListItemDto
127
140
  */
128
141
  domainTransferId: object | null;
142
+ /**
143
+ * The selected invoice transaction data (paid one or latest fallback).
144
+ * @type {OrderListItemDtoTransaction}
145
+ * @memberof OrderListItemDto
146
+ */
147
+ transaction: OrderListItemDtoTransaction | null;
129
148
  }
130
149
 
131
150
 
@@ -156,8 +175,10 @@ export function instanceOfOrderListItemDto(value: object): value is OrderListIte
156
175
  if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
157
176
  if (!('basePriceEur' in value) || value['basePriceEur'] === undefined) return false;
158
177
  if (!('leadId' in value) || value['leadId'] === undefined) return false;
178
+ if (!('isLeadImported' in value) || value['isLeadImported'] === undefined) return false;
159
179
  if (!('auctionId' in value) || value['auctionId'] === undefined) return false;
160
180
  if (!('domainTransferId' in value) || value['domainTransferId'] === undefined) return false;
181
+ if (!('transaction' in value) || value['transaction'] === undefined) return false;
161
182
  return true;
162
183
  }
163
184
 
@@ -182,8 +203,10 @@ export function OrderListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: bo
182
203
  'basePrice': MoneyDtoFromJSON(json['basePrice']),
183
204
  'basePriceEur': MoneyDtoFromJSON(json['basePriceEur']),
184
205
  'leadId': json['leadId'],
206
+ 'isLeadImported': json['isLeadImported'],
185
207
  'auctionId': json['auctionId'],
186
208
  'domainTransferId': json['domainTransferId'],
209
+ 'transaction': OrderListItemDtoTransactionFromJSON(json['transaction']),
187
210
  };
188
211
  }
189
212
 
@@ -209,8 +232,10 @@ export function OrderListItemDtoToJSONTyped(value?: OrderListItemDto | null, ign
209
232
  'basePrice': MoneyDtoToJSON(value['basePrice']),
210
233
  'basePriceEur': MoneyDtoToJSON(value['basePriceEur']),
211
234
  'leadId': value['leadId'],
235
+ 'isLeadImported': value['isLeadImported'],
212
236
  'auctionId': value['auctionId'],
213
237
  'domainTransferId': value['domainTransferId'],
238
+ 'transaction': OrderListItemDtoTransactionToJSON(value['transaction']),
214
239
  };
215
240
  }
216
241
 
@@ -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 OrderListItemDtoTransaction
20
+ */
21
+ export interface OrderListItemDtoTransaction {
22
+ /**
23
+ *
24
+ * @type {object}
25
+ * @memberof OrderListItemDtoTransaction
26
+ */
27
+ id: object;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof OrderListItemDtoTransaction
32
+ */
33
+ gateway: OrderListItemDtoTransactionGatewayEnum;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof OrderListItemDtoTransaction
38
+ */
39
+ gatewayCustomerId: string | null;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const OrderListItemDtoTransactionGatewayEnum = {
47
+ STRIPE: 'stripe',
48
+ MOLLIE: 'mollie',
49
+ NICKY: 'nicky'
50
+ } as const;
51
+ export type OrderListItemDtoTransactionGatewayEnum = typeof OrderListItemDtoTransactionGatewayEnum[keyof typeof OrderListItemDtoTransactionGatewayEnum];
52
+
53
+
54
+ /**
55
+ * Check if a given object implements the OrderListItemDtoTransaction interface.
56
+ */
57
+ export function instanceOfOrderListItemDtoTransaction(value: object): value is OrderListItemDtoTransaction {
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 OrderListItemDtoTransactionFromJSON(json: any): OrderListItemDtoTransaction {
65
+ return OrderListItemDtoTransactionFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function OrderListItemDtoTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderListItemDtoTransaction {
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 OrderListItemDtoTransactionToJSON(json: any): OrderListItemDtoTransaction {
81
+ return OrderListItemDtoTransactionToJSONTyped(json, false);
82
+ }
83
+
84
+ export function OrderListItemDtoTransactionToJSONTyped(value?: OrderListItemDtoTransaction | 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
+
@@ -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
+
@@ -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';
@@ -313,6 +314,7 @@ export * from './OrderListItemDto';
313
314
  export * from './OrderListItemDtoBuyerInformation';
314
315
  export * from './OrderListItemDtoDomainInformation';
315
316
  export * from './OrderListItemDtoSellerAccount';
317
+ export * from './OrderListItemDtoTransaction';
316
318
  export * from './OwnedDomainDto';
317
319
  export * from './PageBasedPageInfo';
318
320
  export * from './PageBasedPaginationResponse';
@@ -419,6 +421,7 @@ export * from './SubscriptionListItemDto';
419
421
  export * from './SubscriptionListItemDtoBuyerInformation';
420
422
  export * from './SubscriptionListItemDtoDomainInformation';
421
423
  export * from './SubscriptionListItemDtoSellerAccount';
424
+ export * from './SubscriptionListItemDtoTransaction';
422
425
  export * from './TaskDataChallengeRewardDto';
423
426
  export * from './TaskDataDomainTransferDto';
424
427
  export * from './TaskDetailsDto';