@randock/nameshift-api-client 0.0.212 → 0.0.214

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 (27) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +3 -3
  3. package/dist/models/AccountDto.d.ts +6 -0
  4. package/dist/models/AccountDto.js +4 -0
  5. package/dist/models/AdminAccountSettingsInput.d.ts +6 -0
  6. package/dist/models/AdminAccountSettingsInput.js +2 -0
  7. package/dist/models/BuyerSubscriptionListItemDto.d.ts +24 -0
  8. package/dist/models/BuyerSubscriptionListItemDto.js +16 -0
  9. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +6 -0
  10. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +4 -0
  11. package/dist/models/SellerSubscriptionListItemDto.d.ts +19 -1
  12. package/dist/models/SellerSubscriptionListItemDto.js +12 -0
  13. package/dist/models/SubscriptionListItemBillingPeriodicityDto.d.ts +46 -0
  14. package/dist/models/SubscriptionListItemBillingPeriodicityDto.js +63 -0
  15. package/dist/models/SubscriptionListItemDto.d.ts +68 -1
  16. package/dist/models/SubscriptionListItemDto.js +45 -0
  17. package/dist/models/index.d.ts +1 -0
  18. package/dist/models/index.js +1 -0
  19. package/package.json +1 -1
  20. package/src/models/AccountDto.ts +9 -0
  21. package/src/models/AdminAccountSettingsInput.ts +8 -0
  22. package/src/models/BuyerSubscriptionListItemDto.ts +36 -0
  23. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +9 -0
  24. package/src/models/SellerSubscriptionListItemDto.ts +28 -1
  25. package/src/models/SubscriptionListItemBillingPeriodicityDto.ts +86 -0
  26. package/src/models/SubscriptionListItemDto.ts +107 -1
  27. package/src/models/index.ts +1 -0
@@ -200,6 +200,7 @@ src/models/SubscriptionDetailsDomainSellerUserDto.ts
200
200
  src/models/SubscriptionDetailsDto.ts
201
201
  src/models/SubscriptionDomainDto.ts
202
202
  src/models/SubscriptionDto.ts
203
+ src/models/SubscriptionListItemBillingPeriodicityDto.ts
203
204
  src/models/SubscriptionListItemDto.ts
204
205
  src/models/SubscriptionListItemDtoBuyerInformation.ts
205
206
  src/models/SubscriptionListItemDtoDomainInformation.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.212
1
+ ## @randock/nameshift-api-client@0.0.214
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.212 --save
39
+ npm install @randock/nameshift-api-client@0.0.214 --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
- 4c94f072c60f0194a797da504e5ba2c90a0b767a41c0ebb22c6c02379a776c07cc26ea28bcc714b7aa37728941cce962
47
+ 7b3418fbeaf246469529434be271707ce6300857ce17aa49a3453d0b70418840156642c0bc5246e2e5353d5f4dfea921
@@ -61,6 +61,12 @@ export interface AccountDto {
61
61
  * @memberof AccountDto
62
62
  */
63
63
  billingInformation: BillingInformationDto | null;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof AccountDto
68
+ */
69
+ leaseToOwnKickbackPercentage: number;
64
70
  }
65
71
  /**
66
72
  * Check if a given object implements the AccountDto interface.
@@ -40,6 +40,8 @@ function instanceOfAccountDto(value) {
40
40
  return false;
41
41
  if (!('billingInformation' in value) || value['billingInformation'] === undefined)
42
42
  return false;
43
+ if (!('leaseToOwnKickbackPercentage' in value) || value['leaseToOwnKickbackPercentage'] === undefined)
44
+ return false;
43
45
  return true;
44
46
  }
45
47
  function AccountDtoFromJSON(json) {
@@ -57,6 +59,7 @@ function AccountDtoFromJSONTyped(json, ignoreDiscriminator) {
57
59
  'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoFromJSON)(json['onboarding']),
58
60
  'payout': (0, AccountPayoutDto_1.AccountPayoutDtoFromJSON)(json['payout']),
59
61
  'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['billingInformation']),
62
+ 'leaseToOwnKickbackPercentage': json['leaseToOwnKickbackPercentage'],
60
63
  };
61
64
  }
62
65
  function AccountDtoToJSON(json) {
@@ -75,5 +78,6 @@ function AccountDtoToJSONTyped(value, ignoreDiscriminator) {
75
78
  'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoToJSON)(value['onboarding']),
76
79
  'payout': (0, AccountPayoutDto_1.AccountPayoutDtoToJSON)(value['payout']),
77
80
  'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['billingInformation']),
81
+ 'leaseToOwnKickbackPercentage': value['leaseToOwnKickbackPercentage'],
78
82
  };
79
83
  }
@@ -21,6 +21,12 @@ export interface AdminAccountSettingsInput {
21
21
  * @memberof AdminAccountSettingsInput
22
22
  */
23
23
  automaticPayouts?: boolean;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof AdminAccountSettingsInput
28
+ */
29
+ leaseToOwnKickBackPercentage?: number;
24
30
  }
25
31
  /**
26
32
  * Check if a given object implements the AdminAccountSettingsInput interface.
@@ -33,6 +33,7 @@ function AdminAccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
33
33
  }
34
34
  return {
35
35
  'automaticPayouts': json['automaticPayouts'] == null ? undefined : json['automaticPayouts'],
36
+ 'leaseToOwnKickBackPercentage': json['leaseToOwnKickBackPercentage'] == null ? undefined : json['leaseToOwnKickBackPercentage'],
36
37
  };
37
38
  }
38
39
  function AdminAccountSettingsInputToJSON(json) {
@@ -45,5 +46,6 @@ function AdminAccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
45
46
  }
46
47
  return {
47
48
  'automaticPayouts': value['automaticPayouts'],
49
+ 'leaseToOwnKickBackPercentage': value['leaseToOwnKickBackPercentage'],
48
50
  };
49
51
  }
@@ -65,6 +65,30 @@ export interface BuyerSubscriptionListItemDto {
65
65
  * @memberof BuyerSubscriptionListItemDto
66
66
  */
67
67
  basePrice: MoneyDto | null;
68
+ /**
69
+ * The subscription buyer recurring price
70
+ * @type {MoneyDto}
71
+ * @memberof BuyerSubscriptionListItemDto
72
+ */
73
+ recurringPrice: MoneyDto | null;
74
+ /**
75
+ * The subscription buyer installments number
76
+ * @type {number}
77
+ * @memberof BuyerSubscriptionListItemDto
78
+ */
79
+ installments: number;
80
+ /**
81
+ * The subscription buyer paid installments number
82
+ * @type {number}
83
+ * @memberof BuyerSubscriptionListItemDto
84
+ */
85
+ paidInstallmentsNumber: number;
86
+ /**
87
+ * The subscription renew date
88
+ * @type {Date}
89
+ * @memberof BuyerSubscriptionListItemDto
90
+ */
91
+ renewAt: Date;
68
92
  }
69
93
  /**
70
94
  * @export
@@ -58,6 +58,14 @@ function instanceOfBuyerSubscriptionListItemDto(value) {
58
58
  return false;
59
59
  if (!('basePrice' in value) || value['basePrice'] === undefined)
60
60
  return false;
61
+ if (!('recurringPrice' in value) || value['recurringPrice'] === undefined)
62
+ return false;
63
+ if (!('installments' in value) || value['installments'] === undefined)
64
+ return false;
65
+ if (!('paidInstallmentsNumber' in value) || value['paidInstallmentsNumber'] === undefined)
66
+ return false;
67
+ if (!('renewAt' in value) || value['renewAt'] === undefined)
68
+ return false;
61
69
  return true;
62
70
  }
63
71
  function BuyerSubscriptionListItemDtoFromJSON(json) {
@@ -76,6 +84,10 @@ function BuyerSubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
76
84
  'scheduledCancellationAt': (json['scheduledCancellationAt'] == null ? null : new Date(json['scheduledCancellationAt'])),
77
85
  'domain': (0, BuyerSubscriptionListItemDtoDomainInformation_1.BuyerSubscriptionListItemDtoDomainInformationFromJSON)(json['domain']),
78
86
  'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
87
+ 'recurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['recurringPrice']),
88
+ 'installments': json['installments'],
89
+ 'paidInstallmentsNumber': json['paidInstallmentsNumber'],
90
+ 'renewAt': (new Date(json['renewAt'])),
79
91
  };
80
92
  }
81
93
  function BuyerSubscriptionListItemDtoToJSON(json) {
@@ -95,5 +107,9 @@ function BuyerSubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
95
107
  'scheduledCancellationAt': (value['scheduledCancellationAt'] == null ? null : value['scheduledCancellationAt'].toISOString()),
96
108
  'domain': (0, BuyerSubscriptionListItemDtoDomainInformation_1.BuyerSubscriptionListItemDtoDomainInformationToJSON)(value['domain']),
97
109
  'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
110
+ 'recurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['recurringPrice']),
111
+ 'installments': value['installments'],
112
+ 'paidInstallmentsNumber': value['paidInstallmentsNumber'],
113
+ 'renewAt': ((value['renewAt']).toISOString()),
98
114
  };
99
115
  }
@@ -63,6 +63,12 @@ export interface IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
63
63
  * @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
64
64
  */
65
65
  billingInformation: BillingInformationDto | null;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
70
+ */
71
+ leaseToOwnKickbackPercentage: number;
66
72
  /**
67
73
  *
68
74
  * @type {WithSettingsInner}
@@ -51,6 +51,8 @@ function instanceOfIntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWith
51
51
  return false;
52
52
  if (!('billingInformation' in value) || value['billingInformation'] === undefined)
53
53
  return false;
54
+ if (!('leaseToOwnKickbackPercentage' in value) || value['leaseToOwnKickbackPercentage'] === undefined)
55
+ return false;
54
56
  if (!('settings' in value) || value['settings'] === undefined)
55
57
  return false;
56
58
  if (!('notifications' in value) || value['notifications'] === undefined)
@@ -74,6 +76,7 @@ function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFla
74
76
  'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoFromJSON)(json['onboarding']),
75
77
  'payout': (0, AccountPayoutDto_1.AccountPayoutDtoFromJSON)(json['payout']),
76
78
  'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['billingInformation']),
79
+ 'leaseToOwnKickbackPercentage': json['leaseToOwnKickbackPercentage'],
77
80
  'settings': (0, WithSettingsInner_1.WithSettingsInnerFromJSON)(json['settings']),
78
81
  'notifications': (json['notifications'].map(AccountNotificationDto_1.AccountNotificationDtoFromJSON)),
79
82
  'enabledFeatures': json['enabledFeatures'],
@@ -95,6 +98,7 @@ function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFla
95
98
  'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoToJSON)(value['onboarding']),
96
99
  'payout': (0, AccountPayoutDto_1.AccountPayoutDtoToJSON)(value['payout']),
97
100
  'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['billingInformation']),
101
+ 'leaseToOwnKickbackPercentage': value['leaseToOwnKickbackPercentage'],
98
102
  'settings': (0, WithSettingsInner_1.WithSettingsInnerToJSON)(value['settings']),
99
103
  'notifications': (value['notifications'].map(AccountNotificationDto_1.AccountNotificationDtoToJSON)),
100
104
  'enabledFeatures': value['enabledFeatures'],
@@ -58,7 +58,25 @@ export interface SellerSubscriptionListItemDto {
58
58
  * @type {MoneyDto}
59
59
  * @memberof SellerSubscriptionListItemDto
60
60
  */
61
- basePrice: MoneyDto | null;
61
+ basePrice: MoneyDto;
62
+ /**
63
+ * The subscription seller recurring price
64
+ * @type {MoneyDto}
65
+ * @memberof SellerSubscriptionListItemDto
66
+ */
67
+ recurringPrice: MoneyDto;
68
+ /**
69
+ * The subscription seller installments number
70
+ * @type {number}
71
+ * @memberof SellerSubscriptionListItemDto
72
+ */
73
+ installments: number;
74
+ /**
75
+ * The subscription seller paid installments number
76
+ * @type {number}
77
+ * @memberof SellerSubscriptionListItemDto
78
+ */
79
+ paidInstallmentsNumber: number;
62
80
  }
63
81
  /**
64
82
  * @export
@@ -56,6 +56,12 @@ function instanceOfSellerSubscriptionListItemDto(value) {
56
56
  return false;
57
57
  if (!('basePrice' in value) || value['basePrice'] === undefined)
58
58
  return false;
59
+ if (!('recurringPrice' in value) || value['recurringPrice'] === undefined)
60
+ return false;
61
+ if (!('installments' in value) || value['installments'] === undefined)
62
+ return false;
63
+ if (!('paidInstallmentsNumber' in value) || value['paidInstallmentsNumber'] === undefined)
64
+ return false;
59
65
  return true;
60
66
  }
61
67
  function SellerSubscriptionListItemDtoFromJSON(json) {
@@ -73,6 +79,9 @@ function SellerSubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
73
79
  'createdAt': (new Date(json['createdAt'])),
74
80
  'domain': (0, SellerSubscriptionListItemDtoDomainInformation_1.SellerSubscriptionListItemDtoDomainInformationFromJSON)(json['domain']),
75
81
  'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
82
+ 'recurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['recurringPrice']),
83
+ 'installments': json['installments'],
84
+ 'paidInstallmentsNumber': json['paidInstallmentsNumber'],
76
85
  };
77
86
  }
78
87
  function SellerSubscriptionListItemDtoToJSON(json) {
@@ -91,5 +100,8 @@ function SellerSubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
91
100
  'createdAt': ((value['createdAt']).toISOString()),
92
101
  'domain': (0, SellerSubscriptionListItemDtoDomainInformation_1.SellerSubscriptionListItemDtoDomainInformationToJSON)(value['domain']),
93
102
  'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
103
+ 'recurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['recurringPrice']),
104
+ 'installments': value['installments'],
105
+ 'paidInstallmentsNumber': value['paidInstallmentsNumber'],
94
106
  };
95
107
  }
@@ -0,0 +1,46 @@
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 SubscriptionListItemBillingPeriodicityDto
16
+ */
17
+ export interface SubscriptionListItemBillingPeriodicityDto {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof SubscriptionListItemBillingPeriodicityDto
22
+ */
23
+ amount: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SubscriptionListItemBillingPeriodicityDto
28
+ */
29
+ unit: SubscriptionListItemBillingPeriodicityDtoUnitEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const SubscriptionListItemBillingPeriodicityDtoUnitEnum: {
35
+ readonly WEEK: "week";
36
+ readonly MONTH: "month";
37
+ };
38
+ export type SubscriptionListItemBillingPeriodicityDtoUnitEnum = typeof SubscriptionListItemBillingPeriodicityDtoUnitEnum[keyof typeof SubscriptionListItemBillingPeriodicityDtoUnitEnum];
39
+ /**
40
+ * Check if a given object implements the SubscriptionListItemBillingPeriodicityDto interface.
41
+ */
42
+ export declare function instanceOfSubscriptionListItemBillingPeriodicityDto(value: object): value is SubscriptionListItemBillingPeriodicityDto;
43
+ export declare function SubscriptionListItemBillingPeriodicityDtoFromJSON(json: any): SubscriptionListItemBillingPeriodicityDto;
44
+ export declare function SubscriptionListItemBillingPeriodicityDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemBillingPeriodicityDto;
45
+ export declare function SubscriptionListItemBillingPeriodicityDtoToJSON(json: any): SubscriptionListItemBillingPeriodicityDto;
46
+ export declare function SubscriptionListItemBillingPeriodicityDtoToJSONTyped(value?: SubscriptionListItemBillingPeriodicityDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.SubscriptionListItemBillingPeriodicityDtoUnitEnum = void 0;
17
+ exports.instanceOfSubscriptionListItemBillingPeriodicityDto = instanceOfSubscriptionListItemBillingPeriodicityDto;
18
+ exports.SubscriptionListItemBillingPeriodicityDtoFromJSON = SubscriptionListItemBillingPeriodicityDtoFromJSON;
19
+ exports.SubscriptionListItemBillingPeriodicityDtoFromJSONTyped = SubscriptionListItemBillingPeriodicityDtoFromJSONTyped;
20
+ exports.SubscriptionListItemBillingPeriodicityDtoToJSON = SubscriptionListItemBillingPeriodicityDtoToJSON;
21
+ exports.SubscriptionListItemBillingPeriodicityDtoToJSONTyped = SubscriptionListItemBillingPeriodicityDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.SubscriptionListItemBillingPeriodicityDtoUnitEnum = {
26
+ WEEK: 'week',
27
+ MONTH: 'month'
28
+ };
29
+ /**
30
+ * Check if a given object implements the SubscriptionListItemBillingPeriodicityDto interface.
31
+ */
32
+ function instanceOfSubscriptionListItemBillingPeriodicityDto(value) {
33
+ if (!('amount' in value) || value['amount'] === undefined)
34
+ return false;
35
+ if (!('unit' in value) || value['unit'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function SubscriptionListItemBillingPeriodicityDtoFromJSON(json) {
40
+ return SubscriptionListItemBillingPeriodicityDtoFromJSONTyped(json, false);
41
+ }
42
+ function SubscriptionListItemBillingPeriodicityDtoFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'amount': json['amount'],
48
+ 'unit': json['unit'],
49
+ };
50
+ }
51
+ function SubscriptionListItemBillingPeriodicityDtoToJSON(json) {
52
+ return SubscriptionListItemBillingPeriodicityDtoToJSONTyped(json, false);
53
+ }
54
+ function SubscriptionListItemBillingPeriodicityDtoToJSONTyped(value, ignoreDiscriminator) {
55
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'amount': value['amount'],
61
+ 'unit': value['unit'],
62
+ };
63
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { SubscriptionListItemBillingPeriodicityDto } from './SubscriptionListItemBillingPeriodicityDto';
12
13
  import type { SubscriptionListItemDtoBuyerInformation } from './SubscriptionListItemDtoBuyerInformation';
13
14
  import type { SubscriptionListItemDtoSellerAccount } from './SubscriptionListItemDtoSellerAccount';
14
15
  import type { MoneyDto } from './MoneyDto';
@@ -78,7 +79,73 @@ export interface SubscriptionListItemDto {
78
79
  * @type {MoneyDto}
79
80
  * @memberof SubscriptionListItemDto
80
81
  */
81
- basePrice: MoneyDto | null;
82
+ basePrice: MoneyDto;
83
+ /**
84
+ * The subscription recurring price
85
+ * @type {MoneyDto}
86
+ * @memberof SubscriptionListItemDto
87
+ */
88
+ buyerRecurringPrice: MoneyDto;
89
+ /**
90
+ * The subscription seller recurring price
91
+ * @type {MoneyDto}
92
+ * @memberof SubscriptionListItemDto
93
+ */
94
+ sellerRecurringPrice: MoneyDto;
95
+ /**
96
+ * The subscription installments number
97
+ * @type {number}
98
+ * @memberof SubscriptionListItemDto
99
+ */
100
+ installments: number;
101
+ /**
102
+ * The subscription paid installments number
103
+ * @type {number}
104
+ * @memberof SubscriptionListItemDto
105
+ */
106
+ paidBuyerInstallmentsNumber: number;
107
+ /**
108
+ * The subscription paid seller installments number
109
+ * @type {number}
110
+ * @memberof SubscriptionListItemDto
111
+ */
112
+ paidSellerInstallmentsNumber: number;
113
+ /**
114
+ * The subscription renew date
115
+ * @type {Date}
116
+ * @memberof SubscriptionListItemDto
117
+ */
118
+ renewAt: Date;
119
+ /**
120
+ * The subscription renew retry date
121
+ * @type {Date}
122
+ * @memberof SubscriptionListItemDto
123
+ */
124
+ renewRetryAt: Date;
125
+ /**
126
+ * The subscription recurring markup percentage
127
+ * @type {number}
128
+ * @memberof SubscriptionListItemDto
129
+ */
130
+ recurringMarkupPercentage: number;
131
+ /**
132
+ * The subscription recurring markup price
133
+ * @type {MoneyDto}
134
+ * @memberof SubscriptionListItemDto
135
+ */
136
+ recurringMarkupPrice: MoneyDto;
137
+ /**
138
+ * The subscription billing periodicity
139
+ * @type {SubscriptionListItemBillingPeriodicityDto}
140
+ * @memberof SubscriptionListItemDto
141
+ */
142
+ billingPeriodicity: SubscriptionListItemBillingPeriodicityDto;
143
+ /**
144
+ * The subscription seller lease to own kickback percentage
145
+ * @type {number}
146
+ * @memberof SubscriptionListItemDto
147
+ */
148
+ sellerLeaseToOwnKickBackPercentage: number;
82
149
  }
83
150
  /**
84
151
  * @export
@@ -19,6 +19,7 @@ exports.SubscriptionListItemDtoFromJSON = SubscriptionListItemDtoFromJSON;
19
19
  exports.SubscriptionListItemDtoFromJSONTyped = SubscriptionListItemDtoFromJSONTyped;
20
20
  exports.SubscriptionListItemDtoToJSON = SubscriptionListItemDtoToJSON;
21
21
  exports.SubscriptionListItemDtoToJSONTyped = SubscriptionListItemDtoToJSONTyped;
22
+ var SubscriptionListItemBillingPeriodicityDto_1 = require("./SubscriptionListItemBillingPeriodicityDto");
22
23
  var SubscriptionListItemDtoBuyerInformation_1 = require("./SubscriptionListItemDtoBuyerInformation");
23
24
  var SubscriptionListItemDtoSellerAccount_1 = require("./SubscriptionListItemDtoSellerAccount");
24
25
  var MoneyDto_1 = require("./MoneyDto");
@@ -64,6 +65,28 @@ function instanceOfSubscriptionListItemDto(value) {
64
65
  return false;
65
66
  if (!('basePrice' in value) || value['basePrice'] === undefined)
66
67
  return false;
68
+ if (!('buyerRecurringPrice' in value) || value['buyerRecurringPrice'] === undefined)
69
+ return false;
70
+ if (!('sellerRecurringPrice' in value) || value['sellerRecurringPrice'] === undefined)
71
+ return false;
72
+ if (!('installments' in value) || value['installments'] === undefined)
73
+ return false;
74
+ if (!('paidBuyerInstallmentsNumber' in value) || value['paidBuyerInstallmentsNumber'] === undefined)
75
+ return false;
76
+ if (!('paidSellerInstallmentsNumber' in value) || value['paidSellerInstallmentsNumber'] === undefined)
77
+ return false;
78
+ if (!('renewAt' in value) || value['renewAt'] === undefined)
79
+ return false;
80
+ if (!('renewRetryAt' in value) || value['renewRetryAt'] === undefined)
81
+ return false;
82
+ if (!('recurringMarkupPercentage' in value) || value['recurringMarkupPercentage'] === undefined)
83
+ return false;
84
+ if (!('recurringMarkupPrice' in value) || value['recurringMarkupPrice'] === undefined)
85
+ return false;
86
+ if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined)
87
+ return false;
88
+ if (!('sellerLeaseToOwnKickBackPercentage' in value) || value['sellerLeaseToOwnKickBackPercentage'] === undefined)
89
+ return false;
67
90
  return true;
68
91
  }
69
92
  function SubscriptionListItemDtoFromJSON(json) {
@@ -84,6 +107,17 @@ function SubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
84
107
  'sellerAccount': (0, SubscriptionListItemDtoSellerAccount_1.SubscriptionListItemDtoSellerAccountFromJSON)(json['sellerAccount']),
85
108
  'buyerInformation': (0, SubscriptionListItemDtoBuyerInformation_1.SubscriptionListItemDtoBuyerInformationFromJSON)(json['buyerInformation']),
86
109
  'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
110
+ 'buyerRecurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['buyerRecurringPrice']),
111
+ 'sellerRecurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['sellerRecurringPrice']),
112
+ 'installments': json['installments'],
113
+ 'paidBuyerInstallmentsNumber': json['paidBuyerInstallmentsNumber'],
114
+ 'paidSellerInstallmentsNumber': json['paidSellerInstallmentsNumber'],
115
+ 'renewAt': (new Date(json['renewAt'])),
116
+ 'renewRetryAt': (new Date(json['renewRetryAt'])),
117
+ 'recurringMarkupPercentage': json['recurringMarkupPercentage'],
118
+ 'recurringMarkupPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['recurringMarkupPrice']),
119
+ 'billingPeriodicity': (0, SubscriptionListItemBillingPeriodicityDto_1.SubscriptionListItemBillingPeriodicityDtoFromJSON)(json['billingPeriodicity']),
120
+ 'sellerLeaseToOwnKickBackPercentage': json['sellerLeaseToOwnKickBackPercentage'],
87
121
  };
88
122
  }
89
123
  function SubscriptionListItemDtoToJSON(json) {
@@ -105,5 +139,16 @@ function SubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
105
139
  'sellerAccount': (0, SubscriptionListItemDtoSellerAccount_1.SubscriptionListItemDtoSellerAccountToJSON)(value['sellerAccount']),
106
140
  'buyerInformation': (0, SubscriptionListItemDtoBuyerInformation_1.SubscriptionListItemDtoBuyerInformationToJSON)(value['buyerInformation']),
107
141
  'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
142
+ 'buyerRecurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['buyerRecurringPrice']),
143
+ 'sellerRecurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['sellerRecurringPrice']),
144
+ 'installments': value['installments'],
145
+ 'paidBuyerInstallmentsNumber': value['paidBuyerInstallmentsNumber'],
146
+ 'paidSellerInstallmentsNumber': value['paidSellerInstallmentsNumber'],
147
+ 'renewAt': ((value['renewAt']).toISOString()),
148
+ 'renewRetryAt': ((value['renewRetryAt']).toISOString()),
149
+ 'recurringMarkupPercentage': value['recurringMarkupPercentage'],
150
+ 'recurringMarkupPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['recurringMarkupPrice']),
151
+ 'billingPeriodicity': (0, SubscriptionListItemBillingPeriodicityDto_1.SubscriptionListItemBillingPeriodicityDtoToJSON)(value['billingPeriodicity']),
152
+ 'sellerLeaseToOwnKickBackPercentage': value['sellerLeaseToOwnKickBackPercentage'],
108
153
  };
109
154
  }
@@ -174,6 +174,7 @@ export * from './SubscriptionDetailsDomainSellerUserDto';
174
174
  export * from './SubscriptionDetailsDto';
175
175
  export * from './SubscriptionDomainDto';
176
176
  export * from './SubscriptionDto';
177
+ export * from './SubscriptionListItemBillingPeriodicityDto';
177
178
  export * from './SubscriptionListItemDto';
178
179
  export * from './SubscriptionListItemDtoBuyerInformation';
179
180
  export * from './SubscriptionListItemDtoDomainInformation';
@@ -192,6 +192,7 @@ __exportStar(require("./SubscriptionDetailsDomainSellerUserDto"), exports);
192
192
  __exportStar(require("./SubscriptionDetailsDto"), exports);
193
193
  __exportStar(require("./SubscriptionDomainDto"), exports);
194
194
  __exportStar(require("./SubscriptionDto"), exports);
195
+ __exportStar(require("./SubscriptionListItemBillingPeriodicityDto"), exports);
195
196
  __exportStar(require("./SubscriptionListItemDto"), exports);
196
197
  __exportStar(require("./SubscriptionListItemDtoBuyerInformation"), exports);
197
198
  __exportStar(require("./SubscriptionListItemDtoDomainInformation"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.212",
3
+ "version": "0.0.214",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -90,6 +90,12 @@ export interface AccountDto {
90
90
  * @memberof AccountDto
91
91
  */
92
92
  billingInformation: BillingInformationDto | null;
93
+ /**
94
+ *
95
+ * @type {number}
96
+ * @memberof AccountDto
97
+ */
98
+ leaseToOwnKickbackPercentage: number;
93
99
  }
94
100
 
95
101
  /**
@@ -103,6 +109,7 @@ export function instanceOfAccountDto(value: object): value is AccountDto {
103
109
  if (!('onboarding' in value) || value['onboarding'] === undefined) return false;
104
110
  if (!('payout' in value) || value['payout'] === undefined) return false;
105
111
  if (!('billingInformation' in value) || value['billingInformation'] === undefined) return false;
112
+ if (!('leaseToOwnKickbackPercentage' in value) || value['leaseToOwnKickbackPercentage'] === undefined) return false;
106
113
  return true;
107
114
  }
108
115
 
@@ -123,6 +130,7 @@ export function AccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
123
130
  'onboarding': AccountOnboardingDtoFromJSON(json['onboarding']),
124
131
  'payout': AccountPayoutDtoFromJSON(json['payout']),
125
132
  'billingInformation': BillingInformationDtoFromJSON(json['billingInformation']),
133
+ 'leaseToOwnKickbackPercentage': json['leaseToOwnKickbackPercentage'],
126
134
  };
127
135
  }
128
136
 
@@ -144,6 +152,7 @@ export function AccountDtoToJSONTyped(value?: AccountDto | null, ignoreDiscrimin
144
152
  'onboarding': AccountOnboardingDtoToJSON(value['onboarding']),
145
153
  'payout': AccountPayoutDtoToJSON(value['payout']),
146
154
  'billingInformation': BillingInformationDtoToJSON(value['billingInformation']),
155
+ 'leaseToOwnKickbackPercentage': value['leaseToOwnKickbackPercentage'],
147
156
  };
148
157
  }
149
158
 
@@ -25,6 +25,12 @@ export interface AdminAccountSettingsInput {
25
25
  * @memberof AdminAccountSettingsInput
26
26
  */
27
27
  automaticPayouts?: boolean;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof AdminAccountSettingsInput
32
+ */
33
+ leaseToOwnKickBackPercentage?: number;
28
34
  }
29
35
 
30
36
  /**
@@ -45,6 +51,7 @@ export function AdminAccountSettingsInputFromJSONTyped(json: any, ignoreDiscrimi
45
51
  return {
46
52
 
47
53
  'automaticPayouts': json['automaticPayouts'] == null ? undefined : json['automaticPayouts'],
54
+ 'leaseToOwnKickBackPercentage': json['leaseToOwnKickBackPercentage'] == null ? undefined : json['leaseToOwnKickBackPercentage'],
48
55
  };
49
56
  }
50
57
 
@@ -60,6 +67,7 @@ export function AdminAccountSettingsInputToJSONTyped(value?: AdminAccountSetting
60
67
  return {
61
68
 
62
69
  'automaticPayouts': value['automaticPayouts'],
70
+ 'leaseToOwnKickBackPercentage': value['leaseToOwnKickBackPercentage'],
63
71
  };
64
72
  }
65
73
 
@@ -82,6 +82,30 @@ export interface BuyerSubscriptionListItemDto {
82
82
  * @memberof BuyerSubscriptionListItemDto
83
83
  */
84
84
  basePrice: MoneyDto | null;
85
+ /**
86
+ * The subscription buyer recurring price
87
+ * @type {MoneyDto}
88
+ * @memberof BuyerSubscriptionListItemDto
89
+ */
90
+ recurringPrice: MoneyDto | null;
91
+ /**
92
+ * The subscription buyer installments number
93
+ * @type {number}
94
+ * @memberof BuyerSubscriptionListItemDto
95
+ */
96
+ installments: number;
97
+ /**
98
+ * The subscription buyer paid installments number
99
+ * @type {number}
100
+ * @memberof BuyerSubscriptionListItemDto
101
+ */
102
+ paidInstallmentsNumber: number;
103
+ /**
104
+ * The subscription renew date
105
+ * @type {Date}
106
+ * @memberof BuyerSubscriptionListItemDto
107
+ */
108
+ renewAt: Date;
85
109
  }
86
110
 
87
111
 
@@ -119,6 +143,10 @@ export function instanceOfBuyerSubscriptionListItemDto(value: object): value is
119
143
  if (!('scheduledCancellationAt' in value) || value['scheduledCancellationAt'] === undefined) return false;
120
144
  if (!('domain' in value) || value['domain'] === undefined) return false;
121
145
  if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
146
+ if (!('recurringPrice' in value) || value['recurringPrice'] === undefined) return false;
147
+ if (!('installments' in value) || value['installments'] === undefined) return false;
148
+ if (!('paidInstallmentsNumber' in value) || value['paidInstallmentsNumber'] === undefined) return false;
149
+ if (!('renewAt' in value) || value['renewAt'] === undefined) return false;
122
150
  return true;
123
151
  }
124
152
 
@@ -140,6 +168,10 @@ export function BuyerSubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscr
140
168
  'scheduledCancellationAt': (json['scheduledCancellationAt'] == null ? null : new Date(json['scheduledCancellationAt'])),
141
169
  'domain': BuyerSubscriptionListItemDtoDomainInformationFromJSON(json['domain']),
142
170
  'basePrice': MoneyDtoFromJSON(json['basePrice']),
171
+ 'recurringPrice': MoneyDtoFromJSON(json['recurringPrice']),
172
+ 'installments': json['installments'],
173
+ 'paidInstallmentsNumber': json['paidInstallmentsNumber'],
174
+ 'renewAt': (new Date(json['renewAt'])),
143
175
  };
144
176
  }
145
177
 
@@ -162,6 +194,10 @@ export function BuyerSubscriptionListItemDtoToJSONTyped(value?: BuyerSubscriptio
162
194
  'scheduledCancellationAt': (value['scheduledCancellationAt'] == null ? null : (value['scheduledCancellationAt'] as any).toISOString()),
163
195
  'domain': BuyerSubscriptionListItemDtoDomainInformationToJSON(value['domain']),
164
196
  'basePrice': MoneyDtoToJSON(value['basePrice']),
197
+ 'recurringPrice': MoneyDtoToJSON(value['recurringPrice']),
198
+ 'installments': value['installments'],
199
+ 'paidInstallmentsNumber': value['paidInstallmentsNumber'],
200
+ 'renewAt': ((value['renewAt']).toISOString()),
165
201
  };
166
202
  }
167
203
 
@@ -104,6 +104,12 @@ export interface IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
104
104
  * @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
105
105
  */
106
106
  billingInformation: BillingInformationDto | null;
107
+ /**
108
+ *
109
+ * @type {number}
110
+ * @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
111
+ */
112
+ leaseToOwnKickbackPercentage: number;
107
113
  /**
108
114
  *
109
115
  * @type {WithSettingsInner}
@@ -147,6 +153,7 @@ export function instanceOfIntersectionAccountDtoWithSettingsDtoWithNotifications
147
153
  if (!('onboarding' in value) || value['onboarding'] === undefined) return false;
148
154
  if (!('payout' in value) || value['payout'] === undefined) return false;
149
155
  if (!('billingInformation' in value) || value['billingInformation'] === undefined) return false;
156
+ if (!('leaseToOwnKickbackPercentage' in value) || value['leaseToOwnKickbackPercentage'] === undefined) return false;
150
157
  if (!('settings' in value) || value['settings'] === undefined) return false;
151
158
  if (!('notifications' in value) || value['notifications'] === undefined) return false;
152
159
  if (!('enabledFeatures' in value) || value['enabledFeatures'] === undefined) return false;
@@ -170,6 +177,7 @@ export function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFea
170
177
  'onboarding': AccountOnboardingDtoFromJSON(json['onboarding']),
171
178
  'payout': AccountPayoutDtoFromJSON(json['payout']),
172
179
  'billingInformation': BillingInformationDtoFromJSON(json['billingInformation']),
180
+ 'leaseToOwnKickbackPercentage': json['leaseToOwnKickbackPercentage'],
173
181
  'settings': WithSettingsInnerFromJSON(json['settings']),
174
182
  'notifications': ((json['notifications'] as Array<any>).map(AccountNotificationDtoFromJSON)),
175
183
  'enabledFeatures': json['enabledFeatures'],
@@ -194,6 +202,7 @@ export function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFea
194
202
  'onboarding': AccountOnboardingDtoToJSON(value['onboarding']),
195
203
  'payout': AccountPayoutDtoToJSON(value['payout']),
196
204
  'billingInformation': BillingInformationDtoToJSON(value['billingInformation']),
205
+ 'leaseToOwnKickbackPercentage': value['leaseToOwnKickbackPercentage'],
197
206
  'settings': WithSettingsInnerToJSON(value['settings']),
198
207
  'notifications': ((value['notifications'] as Array<any>).map(AccountNotificationDtoToJSON)),
199
208
  'enabledFeatures': value['enabledFeatures'],
@@ -75,7 +75,25 @@ export interface SellerSubscriptionListItemDto {
75
75
  * @type {MoneyDto}
76
76
  * @memberof SellerSubscriptionListItemDto
77
77
  */
78
- basePrice: MoneyDto | null;
78
+ basePrice: MoneyDto;
79
+ /**
80
+ * The subscription seller recurring price
81
+ * @type {MoneyDto}
82
+ * @memberof SellerSubscriptionListItemDto
83
+ */
84
+ recurringPrice: MoneyDto;
85
+ /**
86
+ * The subscription seller installments number
87
+ * @type {number}
88
+ * @memberof SellerSubscriptionListItemDto
89
+ */
90
+ installments: number;
91
+ /**
92
+ * The subscription seller paid installments number
93
+ * @type {number}
94
+ * @memberof SellerSubscriptionListItemDto
95
+ */
96
+ paidInstallmentsNumber: number;
79
97
  }
80
98
 
81
99
 
@@ -112,6 +130,9 @@ export function instanceOfSellerSubscriptionListItemDto(value: object): value is
112
130
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
113
131
  if (!('domain' in value) || value['domain'] === undefined) return false;
114
132
  if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
133
+ if (!('recurringPrice' in value) || value['recurringPrice'] === undefined) return false;
134
+ if (!('installments' in value) || value['installments'] === undefined) return false;
135
+ if (!('paidInstallmentsNumber' in value) || value['paidInstallmentsNumber'] === undefined) return false;
115
136
  return true;
116
137
  }
117
138
 
@@ -132,6 +153,9 @@ export function SellerSubscriptionListItemDtoFromJSONTyped(json: any, ignoreDisc
132
153
  'createdAt': (new Date(json['createdAt'])),
133
154
  'domain': SellerSubscriptionListItemDtoDomainInformationFromJSON(json['domain']),
134
155
  'basePrice': MoneyDtoFromJSON(json['basePrice']),
156
+ 'recurringPrice': MoneyDtoFromJSON(json['recurringPrice']),
157
+ 'installments': json['installments'],
158
+ 'paidInstallmentsNumber': json['paidInstallmentsNumber'],
135
159
  };
136
160
  }
137
161
 
@@ -153,6 +177,9 @@ export function SellerSubscriptionListItemDtoToJSONTyped(value?: SellerSubscript
153
177
  'createdAt': ((value['createdAt']).toISOString()),
154
178
  'domain': SellerSubscriptionListItemDtoDomainInformationToJSON(value['domain']),
155
179
  'basePrice': MoneyDtoToJSON(value['basePrice']),
180
+ 'recurringPrice': MoneyDtoToJSON(value['recurringPrice']),
181
+ 'installments': value['installments'],
182
+ 'paidInstallmentsNumber': value['paidInstallmentsNumber'],
156
183
  };
157
184
  }
158
185
 
@@ -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 SubscriptionListItemBillingPeriodicityDto
20
+ */
21
+ export interface SubscriptionListItemBillingPeriodicityDto {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof SubscriptionListItemBillingPeriodicityDto
26
+ */
27
+ amount: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof SubscriptionListItemBillingPeriodicityDto
32
+ */
33
+ unit: SubscriptionListItemBillingPeriodicityDtoUnitEnum;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const SubscriptionListItemBillingPeriodicityDtoUnitEnum = {
41
+ WEEK: 'week',
42
+ MONTH: 'month'
43
+ } as const;
44
+ export type SubscriptionListItemBillingPeriodicityDtoUnitEnum = typeof SubscriptionListItemBillingPeriodicityDtoUnitEnum[keyof typeof SubscriptionListItemBillingPeriodicityDtoUnitEnum];
45
+
46
+
47
+ /**
48
+ * Check if a given object implements the SubscriptionListItemBillingPeriodicityDto interface.
49
+ */
50
+ export function instanceOfSubscriptionListItemBillingPeriodicityDto(value: object): value is SubscriptionListItemBillingPeriodicityDto {
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 SubscriptionListItemBillingPeriodicityDtoFromJSON(json: any): SubscriptionListItemBillingPeriodicityDto {
57
+ return SubscriptionListItemBillingPeriodicityDtoFromJSONTyped(json, false);
58
+ }
59
+
60
+ export function SubscriptionListItemBillingPeriodicityDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionListItemBillingPeriodicityDto {
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 SubscriptionListItemBillingPeriodicityDtoToJSON(json: any): SubscriptionListItemBillingPeriodicityDto {
72
+ return SubscriptionListItemBillingPeriodicityDtoToJSONTyped(json, false);
73
+ }
74
+
75
+ export function SubscriptionListItemBillingPeriodicityDtoToJSONTyped(value?: SubscriptionListItemBillingPeriodicityDto | 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 { SubscriptionListItemBillingPeriodicityDto } from './SubscriptionListItemBillingPeriodicityDto';
17
+ import {
18
+ SubscriptionListItemBillingPeriodicityDtoFromJSON,
19
+ SubscriptionListItemBillingPeriodicityDtoFromJSONTyped,
20
+ SubscriptionListItemBillingPeriodicityDtoToJSON,
21
+ SubscriptionListItemBillingPeriodicityDtoToJSONTyped,
22
+ } from './SubscriptionListItemBillingPeriodicityDto';
16
23
  import type { SubscriptionListItemDtoBuyerInformation } from './SubscriptionListItemDtoBuyerInformation';
17
24
  import {
18
25
  SubscriptionListItemDtoBuyerInformationFromJSON,
@@ -107,7 +114,73 @@ export interface SubscriptionListItemDto {
107
114
  * @type {MoneyDto}
108
115
  * @memberof SubscriptionListItemDto
109
116
  */
110
- basePrice: MoneyDto | null;
117
+ basePrice: MoneyDto;
118
+ /**
119
+ * The subscription recurring price
120
+ * @type {MoneyDto}
121
+ * @memberof SubscriptionListItemDto
122
+ */
123
+ buyerRecurringPrice: MoneyDto;
124
+ /**
125
+ * The subscription seller recurring price
126
+ * @type {MoneyDto}
127
+ * @memberof SubscriptionListItemDto
128
+ */
129
+ sellerRecurringPrice: MoneyDto;
130
+ /**
131
+ * The subscription installments number
132
+ * @type {number}
133
+ * @memberof SubscriptionListItemDto
134
+ */
135
+ installments: number;
136
+ /**
137
+ * The subscription paid installments number
138
+ * @type {number}
139
+ * @memberof SubscriptionListItemDto
140
+ */
141
+ paidBuyerInstallmentsNumber: number;
142
+ /**
143
+ * The subscription paid seller installments number
144
+ * @type {number}
145
+ * @memberof SubscriptionListItemDto
146
+ */
147
+ paidSellerInstallmentsNumber: number;
148
+ /**
149
+ * The subscription renew date
150
+ * @type {Date}
151
+ * @memberof SubscriptionListItemDto
152
+ */
153
+ renewAt: Date;
154
+ /**
155
+ * The subscription renew retry date
156
+ * @type {Date}
157
+ * @memberof SubscriptionListItemDto
158
+ */
159
+ renewRetryAt: Date;
160
+ /**
161
+ * The subscription recurring markup percentage
162
+ * @type {number}
163
+ * @memberof SubscriptionListItemDto
164
+ */
165
+ recurringMarkupPercentage: number;
166
+ /**
167
+ * The subscription recurring markup price
168
+ * @type {MoneyDto}
169
+ * @memberof SubscriptionListItemDto
170
+ */
171
+ recurringMarkupPrice: MoneyDto;
172
+ /**
173
+ * The subscription billing periodicity
174
+ * @type {SubscriptionListItemBillingPeriodicityDto}
175
+ * @memberof SubscriptionListItemDto
176
+ */
177
+ billingPeriodicity: SubscriptionListItemBillingPeriodicityDto;
178
+ /**
179
+ * The subscription seller lease to own kickback percentage
180
+ * @type {number}
181
+ * @memberof SubscriptionListItemDto
182
+ */
183
+ sellerLeaseToOwnKickBackPercentage: number;
111
184
  }
112
185
 
113
186
 
@@ -147,6 +220,17 @@ export function instanceOfSubscriptionListItemDto(value: object): value is Subsc
147
220
  if (!('sellerAccount' in value) || value['sellerAccount'] === undefined) return false;
148
221
  if (!('buyerInformation' in value) || value['buyerInformation'] === undefined) return false;
149
222
  if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
223
+ if (!('buyerRecurringPrice' in value) || value['buyerRecurringPrice'] === undefined) return false;
224
+ if (!('sellerRecurringPrice' in value) || value['sellerRecurringPrice'] === undefined) return false;
225
+ if (!('installments' in value) || value['installments'] === undefined) return false;
226
+ if (!('paidBuyerInstallmentsNumber' in value) || value['paidBuyerInstallmentsNumber'] === undefined) return false;
227
+ if (!('paidSellerInstallmentsNumber' in value) || value['paidSellerInstallmentsNumber'] === undefined) return false;
228
+ if (!('renewAt' in value) || value['renewAt'] === undefined) return false;
229
+ if (!('renewRetryAt' in value) || value['renewRetryAt'] === undefined) return false;
230
+ if (!('recurringMarkupPercentage' in value) || value['recurringMarkupPercentage'] === undefined) return false;
231
+ if (!('recurringMarkupPrice' in value) || value['recurringMarkupPrice'] === undefined) return false;
232
+ if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined) return false;
233
+ if (!('sellerLeaseToOwnKickBackPercentage' in value) || value['sellerLeaseToOwnKickBackPercentage'] === undefined) return false;
150
234
  return true;
151
235
  }
152
236
 
@@ -170,6 +254,17 @@ export function SubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscrimina
170
254
  'sellerAccount': SubscriptionListItemDtoSellerAccountFromJSON(json['sellerAccount']),
171
255
  'buyerInformation': SubscriptionListItemDtoBuyerInformationFromJSON(json['buyerInformation']),
172
256
  'basePrice': MoneyDtoFromJSON(json['basePrice']),
257
+ 'buyerRecurringPrice': MoneyDtoFromJSON(json['buyerRecurringPrice']),
258
+ 'sellerRecurringPrice': MoneyDtoFromJSON(json['sellerRecurringPrice']),
259
+ 'installments': json['installments'],
260
+ 'paidBuyerInstallmentsNumber': json['paidBuyerInstallmentsNumber'],
261
+ 'paidSellerInstallmentsNumber': json['paidSellerInstallmentsNumber'],
262
+ 'renewAt': (new Date(json['renewAt'])),
263
+ 'renewRetryAt': (new Date(json['renewRetryAt'])),
264
+ 'recurringMarkupPercentage': json['recurringMarkupPercentage'],
265
+ 'recurringMarkupPrice': MoneyDtoFromJSON(json['recurringMarkupPrice']),
266
+ 'billingPeriodicity': SubscriptionListItemBillingPeriodicityDtoFromJSON(json['billingPeriodicity']),
267
+ 'sellerLeaseToOwnKickBackPercentage': json['sellerLeaseToOwnKickBackPercentage'],
173
268
  };
174
269
  }
175
270
 
@@ -194,6 +289,17 @@ export function SubscriptionListItemDtoToJSONTyped(value?: SubscriptionListItemD
194
289
  'sellerAccount': SubscriptionListItemDtoSellerAccountToJSON(value['sellerAccount']),
195
290
  'buyerInformation': SubscriptionListItemDtoBuyerInformationToJSON(value['buyerInformation']),
196
291
  'basePrice': MoneyDtoToJSON(value['basePrice']),
292
+ 'buyerRecurringPrice': MoneyDtoToJSON(value['buyerRecurringPrice']),
293
+ 'sellerRecurringPrice': MoneyDtoToJSON(value['sellerRecurringPrice']),
294
+ 'installments': value['installments'],
295
+ 'paidBuyerInstallmentsNumber': value['paidBuyerInstallmentsNumber'],
296
+ 'paidSellerInstallmentsNumber': value['paidSellerInstallmentsNumber'],
297
+ 'renewAt': ((value['renewAt']).toISOString()),
298
+ 'renewRetryAt': ((value['renewRetryAt']).toISOString()),
299
+ 'recurringMarkupPercentage': value['recurringMarkupPercentage'],
300
+ 'recurringMarkupPrice': MoneyDtoToJSON(value['recurringMarkupPrice']),
301
+ 'billingPeriodicity': SubscriptionListItemBillingPeriodicityDtoToJSON(value['billingPeriodicity']),
302
+ 'sellerLeaseToOwnKickBackPercentage': value['sellerLeaseToOwnKickBackPercentage'],
197
303
  };
198
304
  }
199
305
 
@@ -176,6 +176,7 @@ export * from './SubscriptionDetailsDomainSellerUserDto';
176
176
  export * from './SubscriptionDetailsDto';
177
177
  export * from './SubscriptionDomainDto';
178
178
  export * from './SubscriptionDto';
179
+ export * from './SubscriptionListItemBillingPeriodicityDto';
179
180
  export * from './SubscriptionListItemDto';
180
181
  export * from './SubscriptionListItemDtoBuyerInformation';
181
182
  export * from './SubscriptionListItemDtoDomainInformation';