@randock/nameshift-api-client 0.0.185 → 0.0.187

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.
Files changed (52) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AccountsApi.d.ts +12 -0
  4. package/dist/apis/AccountsApi.js +69 -0
  5. package/dist/apis/DomainsPublicApi.d.ts +1 -1
  6. package/dist/apis/DomainsPublicApi.js +2 -2
  7. package/dist/models/AccountSettingsInput.d.ts +3 -8
  8. package/dist/models/AccountSettingsInput.js +3 -4
  9. package/dist/models/AccountSettingsLandingDto.d.ts +12 -0
  10. package/dist/models/AccountSettingsLandingDto.js +8 -0
  11. package/dist/models/ChangeSubscriptionStatusInput.d.ts +1 -0
  12. package/dist/models/ChangeSubscriptionStatusInput.js +2 -1
  13. package/dist/models/CreateSubscriptionBillingPeriodicityInput.d.ts +46 -0
  14. package/dist/models/CreateSubscriptionBillingPeriodicityInput.js +63 -0
  15. package/dist/models/CreateSubscriptionInput.d.ts +4 -10
  16. package/dist/models/CreateSubscriptionInput.js +8 -13
  17. package/dist/models/DomainSellerDto.d.ts +12 -0
  18. package/dist/models/DomainSellerDto.js +8 -0
  19. package/dist/models/DomainTransferDetailSellerPayoutInvoiceDto.d.ts +1 -0
  20. package/dist/models/DomainTransferDetailSellerPayoutInvoiceDto.js +1 -0
  21. package/dist/models/LandingPageInput.d.ts +44 -0
  22. package/dist/models/LandingPageInput.js +53 -0
  23. package/dist/models/SubscriptionBillingPeriodicityDto.d.ts +46 -0
  24. package/dist/models/SubscriptionBillingPeriodicityDto.js +63 -0
  25. package/dist/models/SubscriptionDto.d.ts +5 -10
  26. package/dist/models/SubscriptionDto.js +10 -14
  27. package/dist/models/SubscriptionListItemDto.d.ts +1 -0
  28. package/dist/models/SubscriptionListItemDto.js +2 -1
  29. package/dist/models/UpdateSubscriptionBillingPeriodicityInput.d.ts +46 -0
  30. package/dist/models/UpdateSubscriptionBillingPeriodicityInput.js +59 -0
  31. package/dist/models/UpdateSubscriptionInput.d.ts +4 -10
  32. package/dist/models/UpdateSubscriptionInput.js +5 -11
  33. package/dist/models/index.d.ts +4 -0
  34. package/dist/models/index.js +4 -0
  35. package/package.json +1 -1
  36. package/src/apis/AccountsApi.ts +66 -0
  37. package/src/apis/DomainsPublicApi.ts +3 -3
  38. package/src/apis/SubscriptionsPublicApi.ts +0 -3
  39. package/src/models/AccountSettingsInput.ts +11 -12
  40. package/src/models/AccountSettingsLandingDto.ts +18 -0
  41. package/src/models/ChangeSubscriptionStatusInput.ts +2 -1
  42. package/src/models/CreateSubscriptionBillingPeriodicityInput.ts +86 -0
  43. package/src/models/CreateSubscriptionInput.ts +16 -17
  44. package/src/models/DomainSellerDto.ts +18 -0
  45. package/src/models/DomainTransferDetailSellerPayoutInvoiceDto.ts +1 -0
  46. package/src/models/LandingPageInput.ts +81 -0
  47. package/src/models/SubscriptionBillingPeriodicityDto.ts +86 -0
  48. package/src/models/SubscriptionDto.ts +18 -18
  49. package/src/models/SubscriptionListItemDto.ts +2 -1
  50. package/src/models/UpdateSubscriptionBillingPeriodicityInput.ts +84 -0
  51. package/src/models/UpdateSubscriptionInput.ts +14 -17
  52. package/src/models/index.ts +4 -0
@@ -22,7 +22,6 @@ import type {
22
22
  SubscriptionDto,
23
23
  ThrottlerException,
24
24
  UpdateSubscriptionInput,
25
- ValidationException,
26
25
  } from '../models/index';
27
26
  import {
28
27
  BadRequestExceptionFromJSON,
@@ -39,8 +38,6 @@ import {
39
38
  ThrottlerExceptionToJSON,
40
39
  UpdateSubscriptionInputFromJSON,
41
40
  UpdateSubscriptionInputToJSON,
42
- ValidationExceptionFromJSON,
43
- ValidationExceptionToJSON,
44
41
  } from '../models/index';
45
42
 
46
43
  export interface SubscriptionsPublicApiCreateSubscriptionRequest {
@@ -20,6 +20,13 @@ import {
20
20
  MoneyDtoToJSON,
21
21
  MoneyDtoToJSONTyped,
22
22
  } from './MoneyDto';
23
+ import type { LandingPageInput } from './LandingPageInput';
24
+ import {
25
+ LandingPageInputFromJSON,
26
+ LandingPageInputFromJSONTyped,
27
+ LandingPageInputToJSON,
28
+ LandingPageInputToJSONTyped,
29
+ } from './LandingPageInput';
23
30
  import type { LeaseToOwnConfigurationInput } from './LeaseToOwnConfigurationInput';
24
31
  import {
25
32
  LeaseToOwnConfigurationInputFromJSON,
@@ -54,16 +61,10 @@ export interface AccountSettingsInput {
54
61
  sidnIdcode?: string | null;
55
62
  /**
56
63
  *
57
- * @type {boolean}
58
- * @memberof AccountSettingsInput
59
- */
60
- anonymous?: boolean;
61
- /**
62
- *
63
- * @type {boolean}
64
+ * @type {LandingPageInput}
64
65
  * @memberof AccountSettingsInput
65
66
  */
66
- showRelatedDomains?: boolean;
67
+ landingPage?: LandingPageInput;
67
68
  /**
68
69
  *
69
70
  * @type {LeaseToOwnConfigurationInput}
@@ -92,8 +93,7 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
92
93
  'defaultStartingOffer': json['defaultStartingOffer'] == null ? undefined : MoneyDtoFromJSON(json['defaultStartingOffer']),
93
94
  'defaultCurrencyCode': json['defaultCurrencyCode'] == null ? undefined : json['defaultCurrencyCode'],
94
95
  'sidnIdcode': json['sidnIdcode'] == null ? undefined : json['sidnIdcode'],
95
- 'anonymous': json['anonymous'] == null ? undefined : json['anonymous'],
96
- 'showRelatedDomains': json['showRelatedDomains'] == null ? undefined : json['showRelatedDomains'],
96
+ 'landingPage': json['landingPage'] == null ? undefined : LandingPageInputFromJSON(json['landingPage']),
97
97
  'leaseToOwn': json['leaseToOwn'] == null ? undefined : LeaseToOwnConfigurationInputFromJSON(json['leaseToOwn']),
98
98
  };
99
99
  }
@@ -112,8 +112,7 @@ export function AccountSettingsInputToJSONTyped(value?: AccountSettingsInput | n
112
112
  'defaultStartingOffer': MoneyDtoToJSON(value['defaultStartingOffer']),
113
113
  'defaultCurrencyCode': value['defaultCurrencyCode'],
114
114
  'sidnIdcode': value['sidnIdcode'],
115
- 'anonymous': value['anonymous'],
116
- 'showRelatedDomains': value['showRelatedDomains'],
115
+ 'landingPage': LandingPageInputToJSON(value['landingPage']),
117
116
  'leaseToOwn': LeaseToOwnConfigurationInputToJSON(value['leaseToOwn']),
118
117
  };
119
118
  }
@@ -31,6 +31,18 @@ export interface AccountSettingsLandingDto {
31
31
  * @memberof AccountSettingsLandingDto
32
32
  */
33
33
  showRelatedDomains: boolean;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof AccountSettingsLandingDto
38
+ */
39
+ description: string | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof AccountSettingsLandingDto
44
+ */
45
+ avatar: string | null;
34
46
  }
35
47
 
36
48
  /**
@@ -39,6 +51,8 @@ export interface AccountSettingsLandingDto {
39
51
  export function instanceOfAccountSettingsLandingDto(value: object): value is AccountSettingsLandingDto {
40
52
  if (!('anonymous' in value) || value['anonymous'] === undefined) return false;
41
53
  if (!('showRelatedDomains' in value) || value['showRelatedDomains'] === undefined) return false;
54
+ if (!('description' in value) || value['description'] === undefined) return false;
55
+ if (!('avatar' in value) || value['avatar'] === undefined) return false;
42
56
  return true;
43
57
  }
44
58
 
@@ -54,6 +68,8 @@ export function AccountSettingsLandingDtoFromJSONTyped(json: any, ignoreDiscrimi
54
68
 
55
69
  'anonymous': json['anonymous'],
56
70
  'showRelatedDomains': json['showRelatedDomains'],
71
+ 'description': json['description'],
72
+ 'avatar': json['avatar'],
57
73
  };
58
74
  }
59
75
 
@@ -70,6 +86,8 @@ export function AccountSettingsLandingDtoToJSONTyped(value?: AccountSettingsLand
70
86
 
71
87
  'anonymous': value['anonymous'],
72
88
  'showRelatedDomains': value['showRelatedDomains'],
89
+ 'description': value['description'],
90
+ 'avatar': value['avatar'],
73
91
  };
74
92
  }
75
93
 
@@ -35,7 +35,8 @@ export const ChangeSubscriptionStatusInputStatusEnum = {
35
35
  DRAFT: 'draft',
36
36
  ACTIVE: 'active',
37
37
  PAUSED: 'paused',
38
- CANCELLED: 'cancelled'
38
+ CANCELLED: 'cancelled',
39
+ FINISHED: 'finished'
39
40
  } as const;
40
41
  export type ChangeSubscriptionStatusInputStatusEnum = typeof ChangeSubscriptionStatusInputStatusEnum[keyof typeof ChangeSubscriptionStatusInputStatusEnum];
41
42
 
@@ -0,0 +1,86 @@
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 CreateSubscriptionBillingPeriodicityInput
20
+ */
21
+ export interface CreateSubscriptionBillingPeriodicityInput {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof CreateSubscriptionBillingPeriodicityInput
26
+ */
27
+ amount: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof CreateSubscriptionBillingPeriodicityInput
32
+ */
33
+ unit: CreateSubscriptionBillingPeriodicityInputUnitEnum;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const CreateSubscriptionBillingPeriodicityInputUnitEnum = {
41
+ WEEK: 'week',
42
+ MONTH: 'month'
43
+ } as const;
44
+ export type CreateSubscriptionBillingPeriodicityInputUnitEnum = typeof CreateSubscriptionBillingPeriodicityInputUnitEnum[keyof typeof CreateSubscriptionBillingPeriodicityInputUnitEnum];
45
+
46
+
47
+ /**
48
+ * Check if a given object implements the CreateSubscriptionBillingPeriodicityInput interface.
49
+ */
50
+ export function instanceOfCreateSubscriptionBillingPeriodicityInput(value: object): value is CreateSubscriptionBillingPeriodicityInput {
51
+ if (!('amount' in value) || value['amount'] === undefined) return false;
52
+ if (!('unit' in value) || value['unit'] === undefined) return false;
53
+ return true;
54
+ }
55
+
56
+ export function CreateSubscriptionBillingPeriodicityInputFromJSON(json: any): CreateSubscriptionBillingPeriodicityInput {
57
+ return CreateSubscriptionBillingPeriodicityInputFromJSONTyped(json, false);
58
+ }
59
+
60
+ export function CreateSubscriptionBillingPeriodicityInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubscriptionBillingPeriodicityInput {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+
66
+ 'amount': json['amount'],
67
+ 'unit': json['unit'],
68
+ };
69
+ }
70
+
71
+ export function CreateSubscriptionBillingPeriodicityInputToJSON(json: any): CreateSubscriptionBillingPeriodicityInput {
72
+ return CreateSubscriptionBillingPeriodicityInputToJSONTyped(json, false);
73
+ }
74
+
75
+ export function CreateSubscriptionBillingPeriodicityInputToJSONTyped(value?: CreateSubscriptionBillingPeriodicityInput | null, ignoreDiscriminator: boolean = false): any {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+
80
+ return {
81
+
82
+ 'amount': value['amount'],
83
+ 'unit': value['unit'],
84
+ };
85
+ }
86
+
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { CreateSubscriptionBillingPeriodicityInput } from './CreateSubscriptionBillingPeriodicityInput';
17
+ import {
18
+ CreateSubscriptionBillingPeriodicityInputFromJSON,
19
+ CreateSubscriptionBillingPeriodicityInputFromJSONTyped,
20
+ CreateSubscriptionBillingPeriodicityInputToJSON,
21
+ CreateSubscriptionBillingPeriodicityInputToJSONTyped,
22
+ } from './CreateSubscriptionBillingPeriodicityInput';
16
23
  import type { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
17
24
  import {
18
25
  SubscriptionCompanyInfoDtoFromJSON,
@@ -38,13 +45,13 @@ export interface CreateSubscriptionInput {
38
45
  * @type {number}
39
46
  * @memberof CreateSubscriptionInput
40
47
  */
41
- periodicity: number;
48
+ installments: number;
42
49
  /**
43
50
  *
44
- * @type {string}
51
+ * @type {CreateSubscriptionBillingPeriodicityInput}
45
52
  * @memberof CreateSubscriptionInput
46
53
  */
47
- periodicityUnit: CreateSubscriptionInputPeriodicityUnitEnum;
54
+ billingPeriodicity: CreateSubscriptionBillingPeriodicityInput;
48
55
  /**
49
56
  *
50
57
  * @type {string}
@@ -120,14 +127,6 @@ export interface CreateSubscriptionInput {
120
127
  }
121
128
 
122
129
 
123
- /**
124
- * @export
125
- */
126
- export const CreateSubscriptionInputPeriodicityUnitEnum = {
127
- MONTH: 'month'
128
- } as const;
129
- export type CreateSubscriptionInputPeriodicityUnitEnum = typeof CreateSubscriptionInputPeriodicityUnitEnum[keyof typeof CreateSubscriptionInputPeriodicityUnitEnum];
130
-
131
130
  /**
132
131
  * @export
133
132
  */
@@ -143,8 +142,8 @@ export type CreateSubscriptionInputSubscriptionTypeEnum = typeof CreateSubscript
143
142
  */
144
143
  export function instanceOfCreateSubscriptionInput(value: object): value is CreateSubscriptionInput {
145
144
  if (!('locale' in value) || value['locale'] === undefined) return false;
146
- if (!('periodicity' in value) || value['periodicity'] === undefined) return false;
147
- if (!('periodicityUnit' in value) || value['periodicityUnit'] === undefined) return false;
145
+ if (!('installments' in value) || value['installments'] === undefined) return false;
146
+ if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined) return false;
148
147
  if (!('domainName' in value) || value['domainName'] === undefined) return false;
149
148
  if (!('subscriptionType' in value) || value['subscriptionType'] === undefined) return false;
150
149
  return true;
@@ -161,8 +160,8 @@ export function CreateSubscriptionInputFromJSONTyped(json: any, ignoreDiscrimina
161
160
  return {
162
161
 
163
162
  'locale': json['locale'],
164
- 'periodicity': json['periodicity'],
165
- 'periodicityUnit': json['periodicityUnit'],
163
+ 'installments': json['installments'],
164
+ 'billingPeriodicity': CreateSubscriptionBillingPeriodicityInputFromJSON(json['billingPeriodicity']),
166
165
  'domainName': json['domainName'],
167
166
  'subscriptionType': json['subscriptionType'],
168
167
  'email': json['email'] == null ? undefined : json['email'],
@@ -190,8 +189,8 @@ export function CreateSubscriptionInputToJSONTyped(value?: CreateSubscriptionInp
190
189
  return {
191
190
 
192
191
  'locale': value['locale'],
193
- 'periodicity': value['periodicity'],
194
- 'periodicityUnit': value['periodicityUnit'],
192
+ 'installments': value['installments'],
193
+ 'billingPeriodicity': CreateSubscriptionBillingPeriodicityInputToJSON(value['billingPeriodicity']),
195
194
  'domainName': value['domainName'],
196
195
  'subscriptionType': value['subscriptionType'],
197
196
  'email': value['email'],
@@ -57,6 +57,18 @@ export interface DomainSellerDto {
57
57
  * @memberof DomainSellerDto
58
58
  */
59
59
  name: string | null;
60
+ /**
61
+ * The seller avatar
62
+ * @type {string}
63
+ * @memberof DomainSellerDto
64
+ */
65
+ avatar: string | null;
66
+ /**
67
+ * The seller avatar
68
+ * @type {string}
69
+ * @memberof DomainSellerDto
70
+ */
71
+ description: string | null;
60
72
  /**
61
73
  * The domain seller related domains
62
74
  * @type {Array<RelatedSellerDomain>}
@@ -74,6 +86,8 @@ export function instanceOfDomainSellerDto(value: object): value is DomainSellerD
74
86
  if (!('lastOnline' in value) || value['lastOnline'] === undefined) return false;
75
87
  if (!('deliversIn' in value) || value['deliversIn'] === undefined) return false;
76
88
  if (!('name' in value) || value['name'] === undefined) return false;
89
+ if (!('avatar' in value) || value['avatar'] === undefined) return false;
90
+ if (!('description' in value) || value['description'] === undefined) return false;
77
91
  if (!('relatedDomains' in value) || value['relatedDomains'] === undefined) return false;
78
92
  return true;
79
93
  }
@@ -93,6 +107,8 @@ export function DomainSellerDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
93
107
  'lastOnline': (new Date(json['lastOnline'])),
94
108
  'deliversIn': json['deliversIn'],
95
109
  'name': json['name'],
110
+ 'avatar': json['avatar'],
111
+ 'description': json['description'],
96
112
  'relatedDomains': (json['relatedDomains'] == null ? null : (json['relatedDomains'] as Array<any>).map(RelatedSellerDomainFromJSON)),
97
113
  };
98
114
  }
@@ -113,6 +129,8 @@ export function DomainSellerDtoToJSONTyped(value?: DomainSellerDto | null, ignor
113
129
  'lastOnline': ((value['lastOnline']).toISOString()),
114
130
  'deliversIn': value['deliversIn'],
115
131
  'name': value['name'],
132
+ 'avatar': value['avatar'],
133
+ 'description': value['description'],
116
134
  'relatedDomains': (value['relatedDomains'] == null ? null : (value['relatedDomains'] as Array<any>).map(RelatedSellerDomainToJSON)),
117
135
  };
118
136
  }
@@ -54,6 +54,7 @@ export interface DomainTransferDetailSellerPayoutInvoiceDto {
54
54
  export const DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum = {
55
55
  OPEN: 'open',
56
56
  PAID: 'paid',
57
+ ERROR: 'error',
57
58
  CANCELLED: 'cancelled',
58
59
  REFUNDED: 'refunded'
59
60
  } as const;
@@ -0,0 +1,81 @@
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 LandingPageInput
20
+ */
21
+ export interface LandingPageInput {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof LandingPageInput
26
+ */
27
+ anonymous?: boolean;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof LandingPageInput
32
+ */
33
+ showRelatedDomains?: boolean;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof LandingPageInput
38
+ */
39
+ description?: string | null;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the LandingPageInput interface.
44
+ */
45
+ export function instanceOfLandingPageInput(value: object): value is LandingPageInput {
46
+ return true;
47
+ }
48
+
49
+ export function LandingPageInputFromJSON(json: any): LandingPageInput {
50
+ return LandingPageInputFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function LandingPageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LandingPageInput {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'anonymous': json['anonymous'] == null ? undefined : json['anonymous'],
60
+ 'showRelatedDomains': json['showRelatedDomains'] == null ? undefined : json['showRelatedDomains'],
61
+ 'description': json['description'] == null ? undefined : json['description'],
62
+ };
63
+ }
64
+
65
+ export function LandingPageInputToJSON(json: any): LandingPageInput {
66
+ return LandingPageInputToJSONTyped(json, false);
67
+ }
68
+
69
+ export function LandingPageInputToJSONTyped(value?: LandingPageInput | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'anonymous': value['anonymous'],
77
+ 'showRelatedDomains': value['showRelatedDomains'],
78
+ 'description': value['description'],
79
+ };
80
+ }
81
+
@@ -0,0 +1,86 @@
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 SubscriptionBillingPeriodicityDto
20
+ */
21
+ export interface SubscriptionBillingPeriodicityDto {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof SubscriptionBillingPeriodicityDto
26
+ */
27
+ amount: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SubscriptionBillingPeriodicityDto
32
+ */
33
+ unit: SubscriptionBillingPeriodicityDtoUnitEnum;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const SubscriptionBillingPeriodicityDtoUnitEnum = {
41
+ WEEK: 'week',
42
+ MONTH: 'month'
43
+ } as const;
44
+ export type SubscriptionBillingPeriodicityDtoUnitEnum = typeof SubscriptionBillingPeriodicityDtoUnitEnum[keyof typeof SubscriptionBillingPeriodicityDtoUnitEnum];
45
+
46
+
47
+ /**
48
+ * Check if a given object implements the SubscriptionBillingPeriodicityDto interface.
49
+ */
50
+ export function instanceOfSubscriptionBillingPeriodicityDto(value: object): value is SubscriptionBillingPeriodicityDto {
51
+ if (!('amount' in value) || value['amount'] === undefined) return false;
52
+ if (!('unit' in value) || value['unit'] === undefined) return false;
53
+ return true;
54
+ }
55
+
56
+ export function SubscriptionBillingPeriodicityDtoFromJSON(json: any): SubscriptionBillingPeriodicityDto {
57
+ return SubscriptionBillingPeriodicityDtoFromJSONTyped(json, false);
58
+ }
59
+
60
+ export function SubscriptionBillingPeriodicityDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionBillingPeriodicityDto {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+
66
+ 'amount': json['amount'],
67
+ 'unit': json['unit'],
68
+ };
69
+ }
70
+
71
+ export function SubscriptionBillingPeriodicityDtoToJSON(json: any): SubscriptionBillingPeriodicityDto {
72
+ return SubscriptionBillingPeriodicityDtoToJSONTyped(json, false);
73
+ }
74
+
75
+ export function SubscriptionBillingPeriodicityDtoToJSONTyped(value?: SubscriptionBillingPeriodicityDto | null, ignoreDiscriminator: boolean = false): any {
76
+ if (value == null) {
77
+ return value;
78
+ }
79
+
80
+ return {
81
+
82
+ 'amount': value['amount'],
83
+ 'unit': value['unit'],
84
+ };
85
+ }
86
+
@@ -41,6 +41,13 @@ import {
41
41
  SubscriptionDomainDtoToJSON,
42
42
  SubscriptionDomainDtoToJSONTyped,
43
43
  } from './SubscriptionDomainDto';
44
+ import type { SubscriptionBillingPeriodicityDto } from './SubscriptionBillingPeriodicityDto';
45
+ import {
46
+ SubscriptionBillingPeriodicityDtoFromJSON,
47
+ SubscriptionBillingPeriodicityDtoFromJSONTyped,
48
+ SubscriptionBillingPeriodicityDtoToJSON,
49
+ SubscriptionBillingPeriodicityDtoToJSONTyped,
50
+ } from './SubscriptionBillingPeriodicityDto';
44
51
  import type { SubscriptionCompanyInfoDto } from './SubscriptionCompanyInfoDto';
45
52
  import {
46
53
  SubscriptionCompanyInfoDtoFromJSON,
@@ -163,13 +170,13 @@ export interface SubscriptionDto {
163
170
  * @type {number}
164
171
  * @memberof SubscriptionDto
165
172
  */
166
- periodicity: number;
173
+ installments: number;
167
174
  /**
168
175
  *
169
- * @type {string}
176
+ * @type {SubscriptionBillingPeriodicityDto}
170
177
  * @memberof SubscriptionDto
171
178
  */
172
- periodicityUnit: SubscriptionDtoPeriodicityUnitEnum;
179
+ billingPeriodicity: SubscriptionBillingPeriodicityDto;
173
180
  }
174
181
 
175
182
 
@@ -180,7 +187,8 @@ export const SubscriptionDtoStatusEnum = {
180
187
  DRAFT: 'draft',
181
188
  ACTIVE: 'active',
182
189
  PAUSED: 'paused',
183
- CANCELLED: 'cancelled'
190
+ CANCELLED: 'cancelled',
191
+ FINISHED: 'finished'
184
192
  } as const;
185
193
  export type SubscriptionDtoStatusEnum = typeof SubscriptionDtoStatusEnum[keyof typeof SubscriptionDtoStatusEnum];
186
194
 
@@ -193,14 +201,6 @@ export const SubscriptionDtoTypeEnum = {
193
201
  } as const;
194
202
  export type SubscriptionDtoTypeEnum = typeof SubscriptionDtoTypeEnum[keyof typeof SubscriptionDtoTypeEnum];
195
203
 
196
- /**
197
- * @export
198
- */
199
- export const SubscriptionDtoPeriodicityUnitEnum = {
200
- MONTH: 'month'
201
- } as const;
202
- export type SubscriptionDtoPeriodicityUnitEnum = typeof SubscriptionDtoPeriodicityUnitEnum[keyof typeof SubscriptionDtoPeriodicityUnitEnum];
203
-
204
204
 
205
205
  /**
206
206
  * Check if a given object implements the SubscriptionDto interface.
@@ -222,8 +222,8 @@ export function instanceOfSubscriptionDto(value: object): value is SubscriptionD
222
222
  if (!('transaction' in value) || value['transaction'] === undefined) return false;
223
223
  if (!('domain' in value) || value['domain'] === undefined) return false;
224
224
  if (!('type' in value) || value['type'] === undefined) return false;
225
- if (!('periodicity' in value) || value['periodicity'] === undefined) return false;
226
- if (!('periodicityUnit' in value) || value['periodicityUnit'] === undefined) return false;
225
+ if (!('installments' in value) || value['installments'] === undefined) return false;
226
+ if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined) return false;
227
227
  return true;
228
228
  }
229
229
 
@@ -253,8 +253,8 @@ export function SubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
253
253
  'transaction': InvoiceTransactionDtoFromJSON(json['transaction']),
254
254
  'domain': SubscriptionDomainDtoFromJSON(json['domain']),
255
255
  'type': json['type'],
256
- 'periodicity': json['periodicity'],
257
- 'periodicityUnit': json['periodicityUnit'],
256
+ 'installments': json['installments'],
257
+ 'billingPeriodicity': SubscriptionBillingPeriodicityDtoFromJSON(json['billingPeriodicity']),
258
258
  };
259
259
  }
260
260
 
@@ -285,8 +285,8 @@ export function SubscriptionDtoToJSONTyped(value?: SubscriptionDto | null, ignor
285
285
  'transaction': InvoiceTransactionDtoToJSON(value['transaction']),
286
286
  'domain': SubscriptionDomainDtoToJSON(value['domain']),
287
287
  'type': value['type'],
288
- 'periodicity': value['periodicity'],
289
- 'periodicityUnit': value['periodicityUnit'],
288
+ 'installments': value['installments'],
289
+ 'billingPeriodicity': SubscriptionBillingPeriodicityDtoToJSON(value['billingPeriodicity']),
290
290
  };
291
291
  }
292
292
 
@@ -112,7 +112,8 @@ export const SubscriptionListItemDtoStatusEnum = {
112
112
  DRAFT: 'draft',
113
113
  ACTIVE: 'active',
114
114
  PAUSED: 'paused',
115
- CANCELLED: 'cancelled'
115
+ CANCELLED: 'cancelled',
116
+ FINISHED: 'finished'
116
117
  } as const;
117
118
  export type SubscriptionListItemDtoStatusEnum = typeof SubscriptionListItemDtoStatusEnum[keyof typeof SubscriptionListItemDtoStatusEnum];
118
119