@randock/nameshift-api-client 0.0.284 → 0.0.285

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.284
1
+ ## @randock/nameshift-api-client@0.0.285
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.284 --save
39
+ npm install @randock/nameshift-api-client@0.0.285 --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
- e0a6e116ba98df25dec5ebde612fb7c38bb5fc62fc70ac8e4fa3c9e8deb50e909fd9bd719ea082fe833c6aa36056ca96
47
+ b95778f118d0e659eb68244a0b8cfb52b0dfc5285521b31f96413fff838611241450befb02adb28da9827717fcd93f45
@@ -41,6 +41,7 @@ export interface DomainTransferDetailSellerPayoutInvoiceDto {
41
41
  export declare const DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum: {
42
42
  readonly OPEN: "open";
43
43
  readonly PAID: "paid";
44
+ readonly PENDING: "pending";
44
45
  readonly ERROR: "error";
45
46
  readonly CANCELLED: "cancelled";
46
47
  readonly REFUNDED: "refunded";
@@ -26,6 +26,7 @@ var MoneyDto_1 = require("./MoneyDto");
26
26
  exports.DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum = {
27
27
  OPEN: 'open',
28
28
  PAID: 'paid',
29
+ PENDING: 'pending',
29
30
  ERROR: 'error',
30
31
  CANCELLED: 'cancelled',
31
32
  REFUNDED: 'refunded'
@@ -33,6 +33,12 @@ export interface InvoiceTransactionDto {
33
33
  * @memberof InvoiceTransactionDto
34
34
  */
35
35
  gatewayTransferToken: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof InvoiceTransactionDto
40
+ */
41
+ status: InvoiceTransactionDtoStatusEnum;
36
42
  }
37
43
  /**
38
44
  * @export
@@ -41,6 +47,18 @@ export declare const InvoiceTransactionDtoGatewayEnum: {
41
47
  readonly STRIPE: "stripe";
42
48
  };
43
49
  export type InvoiceTransactionDtoGatewayEnum = typeof InvoiceTransactionDtoGatewayEnum[keyof typeof InvoiceTransactionDtoGatewayEnum];
50
+ /**
51
+ * @export
52
+ */
53
+ export declare const InvoiceTransactionDtoStatusEnum: {
54
+ readonly OPEN: "open";
55
+ readonly PAID: "paid";
56
+ readonly PENDING: "pending";
57
+ readonly ERROR: "error";
58
+ readonly CANCELLED: "cancelled";
59
+ readonly REFUNDED: "refunded";
60
+ };
61
+ export type InvoiceTransactionDtoStatusEnum = typeof InvoiceTransactionDtoStatusEnum[keyof typeof InvoiceTransactionDtoStatusEnum];
44
62
  /**
45
63
  * Check if a given object implements the InvoiceTransactionDto interface.
46
64
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.InvoiceTransactionDtoGatewayEnum = void 0;
16
+ exports.InvoiceTransactionDtoStatusEnum = exports.InvoiceTransactionDtoGatewayEnum = void 0;
17
17
  exports.instanceOfInvoiceTransactionDto = instanceOfInvoiceTransactionDto;
18
18
  exports.InvoiceTransactionDtoFromJSON = InvoiceTransactionDtoFromJSON;
19
19
  exports.InvoiceTransactionDtoFromJSONTyped = InvoiceTransactionDtoFromJSONTyped;
@@ -25,6 +25,17 @@ exports.InvoiceTransactionDtoToJSONTyped = InvoiceTransactionDtoToJSONTyped;
25
25
  exports.InvoiceTransactionDtoGatewayEnum = {
26
26
  STRIPE: 'stripe'
27
27
  };
28
+ /**
29
+ * @export
30
+ */
31
+ exports.InvoiceTransactionDtoStatusEnum = {
32
+ OPEN: 'open',
33
+ PAID: 'paid',
34
+ PENDING: 'pending',
35
+ ERROR: 'error',
36
+ CANCELLED: 'cancelled',
37
+ REFUNDED: 'refunded'
38
+ };
28
39
  /**
29
40
  * Check if a given object implements the InvoiceTransactionDto interface.
30
41
  */
@@ -35,6 +46,8 @@ function instanceOfInvoiceTransactionDto(value) {
35
46
  return false;
36
47
  if (!('gatewayTransferToken' in value) || value['gatewayTransferToken'] === undefined)
37
48
  return false;
49
+ if (!('status' in value) || value['status'] === undefined)
50
+ return false;
38
51
  return true;
39
52
  }
40
53
  function InvoiceTransactionDtoFromJSON(json) {
@@ -48,6 +61,7 @@ function InvoiceTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
48
61
  'id': json['id'],
49
62
  'gateway': json['gateway'],
50
63
  'gatewayTransferToken': json['gatewayTransferToken'],
64
+ 'status': json['status'],
51
65
  };
52
66
  }
53
67
  function InvoiceTransactionDtoToJSON(json) {
@@ -62,5 +76,6 @@ function InvoiceTransactionDtoToJSONTyped(value, ignoreDiscriminator) {
62
76
  'id': value['id'],
63
77
  'gateway': value['gateway'],
64
78
  'gatewayTransferToken': value['gatewayTransferToken'],
79
+ 'status': value['status'],
65
80
  };
66
81
  }
@@ -104,6 +104,12 @@ export interface OrderDto {
104
104
  * @memberof OrderDto
105
105
  */
106
106
  transaction: InvoiceTransactionDto;
107
+ /**
108
+ *
109
+ * @type {boolean}
110
+ * @memberof OrderDto
111
+ */
112
+ hasPendingTransaction: boolean;
107
113
  }
108
114
  /**
109
115
  * @export
@@ -65,6 +65,8 @@ function instanceOfOrderDto(value) {
65
65
  return false;
66
66
  if (!('transaction' in value) || value['transaction'] === undefined)
67
67
  return false;
68
+ if (!('hasPendingTransaction' in value) || value['hasPendingTransaction'] === undefined)
69
+ return false;
68
70
  return true;
69
71
  }
70
72
  function OrderDtoFromJSON(json) {
@@ -89,6 +91,7 @@ function OrderDtoFromJSONTyped(json, ignoreDiscriminator) {
89
91
  'locale': json['locale'],
90
92
  'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
91
93
  'transaction': (0, InvoiceTransactionDto_1.InvoiceTransactionDtoFromJSON)(json['transaction']),
94
+ 'hasPendingTransaction': json['hasPendingTransaction'],
92
95
  };
93
96
  }
94
97
  function OrderDtoToJSON(json) {
@@ -114,5 +117,6 @@ function OrderDtoToJSONTyped(value, ignoreDiscriminator) {
114
117
  'locale': value['locale'],
115
118
  'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
116
119
  'transaction': (0, InvoiceTransactionDto_1.InvoiceTransactionDtoToJSON)(value['transaction']),
120
+ 'hasPendingTransaction': value['hasPendingTransaction'],
117
121
  };
118
122
  }
@@ -29,6 +29,12 @@ export interface SubscriptionDto {
29
29
  * @memberof SubscriptionDto
30
30
  */
31
31
  id: string;
32
+ /**
33
+ * The uuid for this subscription invoice.
34
+ * @type {string}
35
+ * @memberof SubscriptionDto
36
+ */
37
+ invoiceId: string;
32
38
  /**
33
39
  *
34
40
  * @type {string}
@@ -107,6 +113,12 @@ export interface SubscriptionDto {
107
113
  * @memberof SubscriptionDto
108
114
  */
109
115
  transaction: InvoiceTransactionDto;
116
+ /**
117
+ *
118
+ * @type {boolean}
119
+ * @memberof SubscriptionDto
120
+ */
121
+ hasPendingTransaction: boolean;
110
122
  /**
111
123
  *
112
124
  * @type {SubscriptionDomainDto}
@@ -60,6 +60,8 @@ exports.SubscriptionDtoLeadStatusEnum = {
60
60
  function instanceOfSubscriptionDto(value) {
61
61
  if (!('id' in value) || value['id'] === undefined)
62
62
  return false;
63
+ if (!('invoiceId' in value) || value['invoiceId'] === undefined)
64
+ return false;
63
65
  if (!('status' in value) || value['status'] === undefined)
64
66
  return false;
65
67
  if (!('basePrice' in value) || value['basePrice'] === undefined)
@@ -86,6 +88,8 @@ function instanceOfSubscriptionDto(value) {
86
88
  return false;
87
89
  if (!('transaction' in value) || value['transaction'] === undefined)
88
90
  return false;
91
+ if (!('hasPendingTransaction' in value) || value['hasPendingTransaction'] === undefined)
92
+ return false;
89
93
  if (!('domain' in value) || value['domain'] === undefined)
90
94
  return false;
91
95
  if (!('type' in value) || value['type'] === undefined)
@@ -115,6 +119,7 @@ function SubscriptionDtoFromJSONTyped(json, ignoreDiscriminator) {
115
119
  }
116
120
  return {
117
121
  'id': json['id'],
122
+ 'invoiceId': json['invoiceId'],
118
123
  'status': json['status'],
119
124
  'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
120
125
  'recurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['recurringPrice']),
@@ -128,6 +133,7 @@ function SubscriptionDtoFromJSONTyped(json, ignoreDiscriminator) {
128
133
  'locale': json['locale'],
129
134
  'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
130
135
  'transaction': (0, InvoiceTransactionDto_1.InvoiceTransactionDtoFromJSON)(json['transaction']),
136
+ 'hasPendingTransaction': json['hasPendingTransaction'],
131
137
  'domain': (0, SubscriptionDomainDto_1.SubscriptionDomainDtoFromJSON)(json['domain']),
132
138
  'type': json['type'],
133
139
  'installments': json['installments'],
@@ -149,6 +155,7 @@ function SubscriptionDtoToJSONTyped(value, ignoreDiscriminator) {
149
155
  }
150
156
  return {
151
157
  'id': value['id'],
158
+ 'invoiceId': value['invoiceId'],
152
159
  'status': value['status'],
153
160
  'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
154
161
  'recurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['recurringPrice']),
@@ -162,6 +169,7 @@ function SubscriptionDtoToJSONTyped(value, ignoreDiscriminator) {
162
169
  'locale': value['locale'],
163
170
  'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
164
171
  'transaction': (0, InvoiceTransactionDto_1.InvoiceTransactionDtoToJSON)(value['transaction']),
172
+ 'hasPendingTransaction': value['hasPendingTransaction'],
165
173
  'domain': (0, SubscriptionDomainDto_1.SubscriptionDomainDtoToJSON)(value['domain']),
166
174
  'type': value['type'],
167
175
  'installments': value['installments'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.284",
3
+ "version": "0.0.285",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -54,6 +54,7 @@ export interface DomainTransferDetailSellerPayoutInvoiceDto {
54
54
  export const DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum = {
55
55
  OPEN: 'open',
56
56
  PAID: 'paid',
57
+ PENDING: 'pending',
57
58
  ERROR: 'error',
58
59
  CANCELLED: 'cancelled',
59
60
  REFUNDED: 'refunded'
@@ -37,6 +37,12 @@ export interface InvoiceTransactionDto {
37
37
  * @memberof InvoiceTransactionDto
38
38
  */
39
39
  gatewayTransferToken: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof InvoiceTransactionDto
44
+ */
45
+ status: InvoiceTransactionDtoStatusEnum;
40
46
  }
41
47
 
42
48
 
@@ -48,6 +54,19 @@ export const InvoiceTransactionDtoGatewayEnum = {
48
54
  } as const;
49
55
  export type InvoiceTransactionDtoGatewayEnum = typeof InvoiceTransactionDtoGatewayEnum[keyof typeof InvoiceTransactionDtoGatewayEnum];
50
56
 
57
+ /**
58
+ * @export
59
+ */
60
+ export const InvoiceTransactionDtoStatusEnum = {
61
+ OPEN: 'open',
62
+ PAID: 'paid',
63
+ PENDING: 'pending',
64
+ ERROR: 'error',
65
+ CANCELLED: 'cancelled',
66
+ REFUNDED: 'refunded'
67
+ } as const;
68
+ export type InvoiceTransactionDtoStatusEnum = typeof InvoiceTransactionDtoStatusEnum[keyof typeof InvoiceTransactionDtoStatusEnum];
69
+
51
70
 
52
71
  /**
53
72
  * Check if a given object implements the InvoiceTransactionDto interface.
@@ -56,6 +75,7 @@ export function instanceOfInvoiceTransactionDto(value: object): value is Invoice
56
75
  if (!('id' in value) || value['id'] === undefined) return false;
57
76
  if (!('gateway' in value) || value['gateway'] === undefined) return false;
58
77
  if (!('gatewayTransferToken' in value) || value['gatewayTransferToken'] === undefined) return false;
78
+ if (!('status' in value) || value['status'] === undefined) return false;
59
79
  return true;
60
80
  }
61
81
 
@@ -72,6 +92,7 @@ export function InvoiceTransactionDtoFromJSONTyped(json: any, ignoreDiscriminato
72
92
  'id': json['id'],
73
93
  'gateway': json['gateway'],
74
94
  'gatewayTransferToken': json['gatewayTransferToken'],
95
+ 'status': json['status'],
75
96
  };
76
97
  }
77
98
 
@@ -89,6 +110,7 @@ export function InvoiceTransactionDtoToJSONTyped(value?: InvoiceTransactionDto |
89
110
  'id': value['id'],
90
111
  'gateway': value['gateway'],
91
112
  'gatewayTransferToken': value['gatewayTransferToken'],
113
+ 'status': value['status'],
92
114
  };
93
115
  }
94
116
 
@@ -139,6 +139,12 @@ export interface OrderDto {
139
139
  * @memberof OrderDto
140
140
  */
141
141
  transaction: InvoiceTransactionDto;
142
+ /**
143
+ *
144
+ * @type {boolean}
145
+ * @memberof OrderDto
146
+ */
147
+ hasPendingTransaction: boolean;
142
148
  }
143
149
 
144
150
 
@@ -172,6 +178,7 @@ export function instanceOfOrderDto(value: object): value is OrderDto {
172
178
  if (!('locale' in value) || value['locale'] === undefined) return false;
173
179
  if (!('companyInfo' in value) || value['companyInfo'] === undefined) return false;
174
180
  if (!('transaction' in value) || value['transaction'] === undefined) return false;
181
+ if (!('hasPendingTransaction' in value) || value['hasPendingTransaction'] === undefined) return false;
175
182
  return true;
176
183
  }
177
184
 
@@ -199,6 +206,7 @@ export function OrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
199
206
  'locale': json['locale'],
200
207
  'companyInfo': OrderCompanyInfoDtoFromJSON(json['companyInfo']),
201
208
  'transaction': InvoiceTransactionDtoFromJSON(json['transaction']),
209
+ 'hasPendingTransaction': json['hasPendingTransaction'],
202
210
  };
203
211
  }
204
212
 
@@ -227,6 +235,7 @@ export function OrderDtoToJSONTyped(value?: OrderDto | null, ignoreDiscriminator
227
235
  'locale': value['locale'],
228
236
  'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
229
237
  'transaction': InvoiceTransactionDtoToJSON(value['transaction']),
238
+ 'hasPendingTransaction': value['hasPendingTransaction'],
230
239
  };
231
240
  }
232
241
 
@@ -82,6 +82,12 @@ export interface SubscriptionDto {
82
82
  * @memberof SubscriptionDto
83
83
  */
84
84
  id: string;
85
+ /**
86
+ * The uuid for this subscription invoice.
87
+ * @type {string}
88
+ * @memberof SubscriptionDto
89
+ */
90
+ invoiceId: string;
85
91
  /**
86
92
  *
87
93
  * @type {string}
@@ -160,6 +166,12 @@ export interface SubscriptionDto {
160
166
  * @memberof SubscriptionDto
161
167
  */
162
168
  transaction: InvoiceTransactionDto;
169
+ /**
170
+ *
171
+ * @type {boolean}
172
+ * @memberof SubscriptionDto
173
+ */
174
+ hasPendingTransaction: boolean;
163
175
  /**
164
176
  *
165
177
  * @type {SubscriptionDomainDto}
@@ -256,6 +268,7 @@ export type SubscriptionDtoLeadStatusEnum = typeof SubscriptionDtoLeadStatusEnum
256
268
  */
257
269
  export function instanceOfSubscriptionDto(value: object): value is SubscriptionDto {
258
270
  if (!('id' in value) || value['id'] === undefined) return false;
271
+ if (!('invoiceId' in value) || value['invoiceId'] === undefined) return false;
259
272
  if (!('status' in value) || value['status'] === undefined) return false;
260
273
  if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
261
274
  if (!('recurringPrice' in value) || value['recurringPrice'] === undefined) return false;
@@ -269,6 +282,7 @@ export function instanceOfSubscriptionDto(value: object): value is SubscriptionD
269
282
  if (!('locale' in value) || value['locale'] === undefined) return false;
270
283
  if (!('companyInfo' in value) || value['companyInfo'] === undefined) return false;
271
284
  if (!('transaction' in value) || value['transaction'] === undefined) return false;
285
+ if (!('hasPendingTransaction' in value) || value['hasPendingTransaction'] === undefined) return false;
272
286
  if (!('domain' in value) || value['domain'] === undefined) return false;
273
287
  if (!('type' in value) || value['type'] === undefined) return false;
274
288
  if (!('installments' in value) || value['installments'] === undefined) return false;
@@ -292,6 +306,7 @@ export function SubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
292
306
  return {
293
307
 
294
308
  'id': json['id'],
309
+ 'invoiceId': json['invoiceId'],
295
310
  'status': json['status'],
296
311
  'basePrice': MoneyDtoFromJSON(json['basePrice']),
297
312
  'recurringPrice': MoneyDtoFromJSON(json['recurringPrice']),
@@ -305,6 +320,7 @@ export function SubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
305
320
  'locale': json['locale'],
306
321
  'companyInfo': SubscriptionCompanyInfoDtoFromJSON(json['companyInfo']),
307
322
  'transaction': InvoiceTransactionDtoFromJSON(json['transaction']),
323
+ 'hasPendingTransaction': json['hasPendingTransaction'],
308
324
  'domain': SubscriptionDomainDtoFromJSON(json['domain']),
309
325
  'type': json['type'],
310
326
  'installments': json['installments'],
@@ -329,6 +345,7 @@ export function SubscriptionDtoToJSONTyped(value?: SubscriptionDto | null, ignor
329
345
  return {
330
346
 
331
347
  'id': value['id'],
348
+ 'invoiceId': value['invoiceId'],
332
349
  'status': value['status'],
333
350
  'basePrice': MoneyDtoToJSON(value['basePrice']),
334
351
  'recurringPrice': MoneyDtoToJSON(value['recurringPrice']),
@@ -342,6 +359,7 @@ export function SubscriptionDtoToJSONTyped(value?: SubscriptionDto | null, ignor
342
359
  'locale': value['locale'],
343
360
  'companyInfo': SubscriptionCompanyInfoDtoToJSON(value['companyInfo']),
344
361
  'transaction': InvoiceTransactionDtoToJSON(value['transaction']),
362
+ 'hasPendingTransaction': value['hasPendingTransaction'],
345
363
  'domain': SubscriptionDomainDtoToJSON(value['domain']),
346
364
  'type': value['type'],
347
365
  'installments': value['installments'],