@randock/nameshift-api-client 0.0.420 → 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.
@@ -349,6 +349,7 @@ src/models/OrderListItemDto.ts
349
349
  src/models/OrderListItemDtoBuyerInformation.ts
350
350
  src/models/OrderListItemDtoDomainInformation.ts
351
351
  src/models/OrderListItemDtoSellerAccount.ts
352
+ src/models/OrderListItemDtoTransaction.ts
352
353
  src/models/OwnedDomainDto.ts
353
354
  src/models/PageBasedPageInfo.ts
354
355
  src/models/PageBasedPaginationResponse.ts
@@ -455,6 +456,7 @@ src/models/SubscriptionListItemDto.ts
455
456
  src/models/SubscriptionListItemDtoBuyerInformation.ts
456
457
  src/models/SubscriptionListItemDtoDomainInformation.ts
457
458
  src/models/SubscriptionListItemDtoSellerAccount.ts
459
+ src/models/SubscriptionListItemDtoTransaction.ts
458
460
  src/models/TaskDataChallengeRewardDto.ts
459
461
  src/models/TaskDataDomainTransferDto.ts
460
462
  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.421
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.421 --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
+ 5200047eb8d43139e42cee360dbda0e7a7bee885da98821a664b862b24c84772d604d92fb4cef6364326d978ba9bb858
@@ -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 { 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
+ }
@@ -311,6 +311,7 @@ export * from './OrderListItemDto';
311
311
  export * from './OrderListItemDtoBuyerInformation';
312
312
  export * from './OrderListItemDtoDomainInformation';
313
313
  export * from './OrderListItemDtoSellerAccount';
314
+ export * from './OrderListItemDtoTransaction';
314
315
  export * from './OwnedDomainDto';
315
316
  export * from './PageBasedPageInfo';
316
317
  export * from './PageBasedPaginationResponse';
@@ -417,6 +418,7 @@ export * from './SubscriptionListItemDto';
417
418
  export * from './SubscriptionListItemDtoBuyerInformation';
418
419
  export * from './SubscriptionListItemDtoDomainInformation';
419
420
  export * from './SubscriptionListItemDtoSellerAccount';
421
+ export * from './SubscriptionListItemDtoTransaction';
420
422
  export * from './TaskDataChallengeRewardDto';
421
423
  export * from './TaskDataDomainTransferDto';
422
424
  export * from './TaskDetailsDto';
@@ -329,6 +329,7 @@ __exportStar(require("./OrderListItemDto"), exports);
329
329
  __exportStar(require("./OrderListItemDtoBuyerInformation"), exports);
330
330
  __exportStar(require("./OrderListItemDtoDomainInformation"), exports);
331
331
  __exportStar(require("./OrderListItemDtoSellerAccount"), exports);
332
+ __exportStar(require("./OrderListItemDtoTransaction"), exports);
332
333
  __exportStar(require("./OwnedDomainDto"), exports);
333
334
  __exportStar(require("./PageBasedPageInfo"), exports);
334
335
  __exportStar(require("./PageBasedPaginationResponse"), exports);
@@ -435,6 +436,7 @@ __exportStar(require("./SubscriptionListItemDto"), exports);
435
436
  __exportStar(require("./SubscriptionListItemDtoBuyerInformation"), exports);
436
437
  __exportStar(require("./SubscriptionListItemDtoDomainInformation"), exports);
437
438
  __exportStar(require("./SubscriptionListItemDtoSellerAccount"), exports);
439
+ __exportStar(require("./SubscriptionListItemDtoTransaction"), exports);
438
440
  __exportStar(require("./TaskDataChallengeRewardDto"), exports);
439
441
  __exportStar(require("./TaskDataDomainTransferDto"), exports);
440
442
  __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.421",
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
  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
+
@@ -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';