@randock/nameshift-api-client 0.0.208 → 0.0.209

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.208
1
+ ## @randock/nameshift-api-client@0.0.209
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.208 --save
39
+ npm install @randock/nameshift-api-client@0.0.209 --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
- 8b51fd69bf5defbe088ed7b8241e22099b0360884e5d14463c9e69c451b0bbfabf1e6430240763f1a1bc64ff0beca6b9
47
+ acd3d4c6c73a70ddfff1e70522cdad316435e02346d98a638539b37c914ff76191f73883c6a7dfe2f586e69a2de96f09
@@ -75,6 +75,9 @@ export interface BuyersApiPutBuyerOfferRequest {
75
75
  leadId: string;
76
76
  putBuyerLeadOfferInput: PutBuyerLeadOfferInput;
77
77
  }
78
+ export interface BuyersApiRevokeScheduledSubscriptionCancellationRequest {
79
+ subscriptionId: string;
80
+ }
78
81
  export interface BuyersApiSetLocaleRequest {
79
82
  storeBuyerLocaleInput: StoreBuyerLocaleInput;
80
83
  }
@@ -221,6 +224,14 @@ export declare class BuyersApi extends runtime.BaseAPI {
221
224
  *
222
225
  */
223
226
  putBuyerOffer(requestParameters: BuyersApiPutBuyerOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
227
+ /**
228
+ *
229
+ */
230
+ revokeScheduledSubscriptionCancellationRaw(requestParameters: BuyersApiRevokeScheduledSubscriptionCancellationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
231
+ /**
232
+ *
233
+ */
234
+ revokeScheduledSubscriptionCancellation(requestParameters: BuyersApiRevokeScheduledSubscriptionCancellationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
224
235
  /**
225
236
  *
226
237
  */
@@ -1023,6 +1023,57 @@ var BuyersApi = /** @class */ (function (_super) {
1023
1023
  });
1024
1024
  });
1025
1025
  };
1026
+ /**
1027
+ *
1028
+ */
1029
+ BuyersApi.prototype.revokeScheduledSubscriptionCancellationRaw = function (requestParameters, initOverrides) {
1030
+ return __awaiter(this, void 0, void 0, function () {
1031
+ var queryParameters, headerParameters, token, tokenString, response;
1032
+ return __generator(this, function (_a) {
1033
+ switch (_a.label) {
1034
+ case 0:
1035
+ if (requestParameters['subscriptionId'] == null) {
1036
+ throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling revokeScheduledSubscriptionCancellation().');
1037
+ }
1038
+ queryParameters = {};
1039
+ headerParameters = {};
1040
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
1041
+ token = this.configuration.accessToken;
1042
+ return [4 /*yield*/, token("bearer", [])];
1043
+ case 1:
1044
+ tokenString = _a.sent();
1045
+ if (tokenString) {
1046
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
1047
+ }
1048
+ _a.label = 2;
1049
+ case 2: return [4 /*yield*/, this.request({
1050
+ path: "/buyers/private/subscriptions/{subscriptionId}/revoke-scheduled-cancellation".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
1051
+ method: 'PATCH',
1052
+ headers: headerParameters,
1053
+ query: queryParameters,
1054
+ }, initOverrides)];
1055
+ case 3:
1056
+ response = _a.sent();
1057
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
1058
+ }
1059
+ });
1060
+ });
1061
+ };
1062
+ /**
1063
+ *
1064
+ */
1065
+ BuyersApi.prototype.revokeScheduledSubscriptionCancellation = function (requestParameters, initOverrides) {
1066
+ return __awaiter(this, void 0, void 0, function () {
1067
+ return __generator(this, function (_a) {
1068
+ switch (_a.label) {
1069
+ case 0: return [4 /*yield*/, this.revokeScheduledSubscriptionCancellationRaw(requestParameters, initOverrides)];
1070
+ case 1:
1071
+ _a.sent();
1072
+ return [2 /*return*/];
1073
+ }
1074
+ });
1075
+ });
1076
+ };
1026
1077
  /**
1027
1078
  *
1028
1079
  */
@@ -47,6 +47,12 @@ export interface BuyerSubscriptionListItemDto {
47
47
  * @memberof BuyerSubscriptionListItemDto
48
48
  */
49
49
  createdAt: Date;
50
+ /**
51
+ * The subscription schedule cancellation date
52
+ * @type {Date}
53
+ * @memberof BuyerSubscriptionListItemDto
54
+ */
55
+ scheduledCancellationAt: Date | null;
50
56
  /**
51
57
  * The subscription domain information
52
58
  * @type {BuyerSubscriptionListItemDtoDomainInformation}
@@ -52,6 +52,8 @@ function instanceOfBuyerSubscriptionListItemDto(value) {
52
52
  return false;
53
53
  if (!('createdAt' in value) || value['createdAt'] === undefined)
54
54
  return false;
55
+ if (!('scheduledCancellationAt' in value) || value['scheduledCancellationAt'] === undefined)
56
+ return false;
55
57
  if (!('domain' in value) || value['domain'] === undefined)
56
58
  return false;
57
59
  if (!('basePrice' in value) || value['basePrice'] === undefined)
@@ -71,6 +73,7 @@ function BuyerSubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
71
73
  'type': json['type'],
72
74
  'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
73
75
  'createdAt': (new Date(json['createdAt'])),
76
+ 'scheduledCancellationAt': (json['scheduledCancellationAt'] == null ? null : new Date(json['scheduledCancellationAt'])),
74
77
  'domain': (0, BuyerSubscriptionListItemDtoDomainInformation_1.BuyerSubscriptionListItemDtoDomainInformationFromJSON)(json['domain']),
75
78
  'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
76
79
  };
@@ -89,6 +92,7 @@ function BuyerSubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
89
92
  'type': value['type'],
90
93
  'startedAt': (value['startedAt'] == null ? null : value['startedAt'].toISOString()),
91
94
  'createdAt': ((value['createdAt']).toISOString()),
95
+ 'scheduledCancellationAt': (value['scheduledCancellationAt'] == null ? null : value['scheduledCancellationAt'].toISOString()),
92
96
  'domain': (0, BuyerSubscriptionListItemDtoDomainInformation_1.BuyerSubscriptionListItemDtoDomainInformationToJSON)(value['domain']),
93
97
  'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
94
98
  };
@@ -49,6 +49,12 @@ export interface SubscriptionListItemDto {
49
49
  * @memberof SubscriptionListItemDto
50
50
  */
51
51
  createdAt: Date;
52
+ /**
53
+ * The subscription schedule cancellation date
54
+ * @type {Date}
55
+ * @memberof SubscriptionListItemDto
56
+ */
57
+ scheduledCancellationAt: Date | null;
52
58
  /**
53
59
  * The subscription domain information
54
60
  * @type {SubscriptionListItemDtoDomainInformation}
@@ -54,6 +54,8 @@ function instanceOfSubscriptionListItemDto(value) {
54
54
  return false;
55
55
  if (!('createdAt' in value) || value['createdAt'] === undefined)
56
56
  return false;
57
+ if (!('scheduledCancellationAt' in value) || value['scheduledCancellationAt'] === undefined)
58
+ return false;
57
59
  if (!('domain' in value) || value['domain'] === undefined)
58
60
  return false;
59
61
  if (!('sellerAccount' in value) || value['sellerAccount'] === undefined)
@@ -77,6 +79,7 @@ function SubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
77
79
  'type': json['type'],
78
80
  'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
79
81
  'createdAt': (new Date(json['createdAt'])),
82
+ 'scheduledCancellationAt': (json['scheduledCancellationAt'] == null ? null : new Date(json['scheduledCancellationAt'])),
80
83
  'domain': (0, SubscriptionListItemDtoDomainInformation_1.SubscriptionListItemDtoDomainInformationFromJSON)(json['domain']),
81
84
  'sellerAccount': (0, SubscriptionListItemDtoSellerAccount_1.SubscriptionListItemDtoSellerAccountFromJSON)(json['sellerAccount']),
82
85
  'buyerInformation': (0, SubscriptionListItemDtoBuyerInformation_1.SubscriptionListItemDtoBuyerInformationFromJSON)(json['buyerInformation']),
@@ -97,6 +100,7 @@ function SubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
97
100
  'type': value['type'],
98
101
  'startedAt': (value['startedAt'] == null ? null : value['startedAt'].toISOString()),
99
102
  'createdAt': ((value['createdAt']).toISOString()),
103
+ 'scheduledCancellationAt': (value['scheduledCancellationAt'] == null ? null : value['scheduledCancellationAt'].toISOString()),
100
104
  'domain': (0, SubscriptionListItemDtoDomainInformation_1.SubscriptionListItemDtoDomainInformationToJSON)(value['domain']),
101
105
  'sellerAccount': (0, SubscriptionListItemDtoSellerAccount_1.SubscriptionListItemDtoSellerAccountToJSON)(value['sellerAccount']),
102
106
  'buyerInformation': (0, SubscriptionListItemDtoBuyerInformation_1.SubscriptionListItemDtoBuyerInformationToJSON)(value['buyerInformation']),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.208",
3
+ "version": "0.0.209",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -159,6 +159,10 @@ export interface BuyersApiPutBuyerOfferRequest {
159
159
  putBuyerLeadOfferInput: PutBuyerLeadOfferInput;
160
160
  }
161
161
 
162
+ export interface BuyersApiRevokeScheduledSubscriptionCancellationRequest {
163
+ subscriptionId: string;
164
+ }
165
+
162
166
  export interface BuyersApiSetLocaleRequest {
163
167
  storeBuyerLocaleInput: StoreBuyerLocaleInput;
164
168
  }
@@ -937,6 +941,46 @@ export class BuyersApi extends runtime.BaseAPI {
937
941
  await this.putBuyerOfferRaw(requestParameters, initOverrides);
938
942
  }
939
943
 
944
+ /**
945
+ *
946
+ */
947
+ async revokeScheduledSubscriptionCancellationRaw(requestParameters: BuyersApiRevokeScheduledSubscriptionCancellationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
948
+ if (requestParameters['subscriptionId'] == null) {
949
+ throw new runtime.RequiredError(
950
+ 'subscriptionId',
951
+ 'Required parameter "subscriptionId" was null or undefined when calling revokeScheduledSubscriptionCancellation().'
952
+ );
953
+ }
954
+
955
+ const queryParameters: any = {};
956
+
957
+ const headerParameters: runtime.HTTPHeaders = {};
958
+
959
+ if (this.configuration && this.configuration.accessToken) {
960
+ const token = this.configuration.accessToken;
961
+ const tokenString = await token("bearer", []);
962
+
963
+ if (tokenString) {
964
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
965
+ }
966
+ }
967
+ const response = await this.request({
968
+ path: `/buyers/private/subscriptions/{subscriptionId}/revoke-scheduled-cancellation`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
969
+ method: 'PATCH',
970
+ headers: headerParameters,
971
+ query: queryParameters,
972
+ }, initOverrides);
973
+
974
+ return new runtime.VoidApiResponse(response);
975
+ }
976
+
977
+ /**
978
+ *
979
+ */
980
+ async revokeScheduledSubscriptionCancellation(requestParameters: BuyersApiRevokeScheduledSubscriptionCancellationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
981
+ await this.revokeScheduledSubscriptionCancellationRaw(requestParameters, initOverrides);
982
+ }
983
+
940
984
  /**
941
985
  *
942
986
  */
@@ -64,6 +64,12 @@ export interface BuyerSubscriptionListItemDto {
64
64
  * @memberof BuyerSubscriptionListItemDto
65
65
  */
66
66
  createdAt: Date;
67
+ /**
68
+ * The subscription schedule cancellation date
69
+ * @type {Date}
70
+ * @memberof BuyerSubscriptionListItemDto
71
+ */
72
+ scheduledCancellationAt: Date | null;
67
73
  /**
68
74
  * The subscription domain information
69
75
  * @type {BuyerSubscriptionListItemDtoDomainInformation}
@@ -110,6 +116,7 @@ export function instanceOfBuyerSubscriptionListItemDto(value: object): value is
110
116
  if (!('type' in value) || value['type'] === undefined) return false;
111
117
  if (!('startedAt' in value) || value['startedAt'] === undefined) return false;
112
118
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
119
+ if (!('scheduledCancellationAt' in value) || value['scheduledCancellationAt'] === undefined) return false;
113
120
  if (!('domain' in value) || value['domain'] === undefined) return false;
114
121
  if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
115
122
  return true;
@@ -130,6 +137,7 @@ export function BuyerSubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscr
130
137
  'type': json['type'],
131
138
  'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
132
139
  'createdAt': (new Date(json['createdAt'])),
140
+ 'scheduledCancellationAt': (json['scheduledCancellationAt'] == null ? null : new Date(json['scheduledCancellationAt'])),
133
141
  'domain': BuyerSubscriptionListItemDtoDomainInformationFromJSON(json['domain']),
134
142
  'basePrice': MoneyDtoFromJSON(json['basePrice']),
135
143
  };
@@ -151,6 +159,7 @@ export function BuyerSubscriptionListItemDtoToJSONTyped(value?: BuyerSubscriptio
151
159
  'type': value['type'],
152
160
  'startedAt': (value['startedAt'] == null ? null : (value['startedAt'] as any).toISOString()),
153
161
  'createdAt': ((value['createdAt']).toISOString()),
162
+ 'scheduledCancellationAt': (value['scheduledCancellationAt'] == null ? null : (value['scheduledCancellationAt'] as any).toISOString()),
154
163
  'domain': BuyerSubscriptionListItemDtoDomainInformationToJSON(value['domain']),
155
164
  'basePrice': MoneyDtoToJSON(value['basePrice']),
156
165
  };
@@ -78,6 +78,12 @@ export interface SubscriptionListItemDto {
78
78
  * @memberof SubscriptionListItemDto
79
79
  */
80
80
  createdAt: Date;
81
+ /**
82
+ * The subscription schedule cancellation date
83
+ * @type {Date}
84
+ * @memberof SubscriptionListItemDto
85
+ */
86
+ scheduledCancellationAt: Date | null;
81
87
  /**
82
88
  * The subscription domain information
83
89
  * @type {SubscriptionListItemDtoDomainInformation}
@@ -136,6 +142,7 @@ export function instanceOfSubscriptionListItemDto(value: object): value is Subsc
136
142
  if (!('type' in value) || value['type'] === undefined) return false;
137
143
  if (!('startedAt' in value) || value['startedAt'] === undefined) return false;
138
144
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
145
+ if (!('scheduledCancellationAt' in value) || value['scheduledCancellationAt'] === undefined) return false;
139
146
  if (!('domain' in value) || value['domain'] === undefined) return false;
140
147
  if (!('sellerAccount' in value) || value['sellerAccount'] === undefined) return false;
141
148
  if (!('buyerInformation' in value) || value['buyerInformation'] === undefined) return false;
@@ -158,6 +165,7 @@ export function SubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscrimina
158
165
  'type': json['type'],
159
166
  'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
160
167
  'createdAt': (new Date(json['createdAt'])),
168
+ 'scheduledCancellationAt': (json['scheduledCancellationAt'] == null ? null : new Date(json['scheduledCancellationAt'])),
161
169
  'domain': SubscriptionListItemDtoDomainInformationFromJSON(json['domain']),
162
170
  'sellerAccount': SubscriptionListItemDtoSellerAccountFromJSON(json['sellerAccount']),
163
171
  'buyerInformation': SubscriptionListItemDtoBuyerInformationFromJSON(json['buyerInformation']),
@@ -181,6 +189,7 @@ export function SubscriptionListItemDtoToJSONTyped(value?: SubscriptionListItemD
181
189
  'type': value['type'],
182
190
  'startedAt': (value['startedAt'] == null ? null : (value['startedAt'] as any).toISOString()),
183
191
  'createdAt': ((value['createdAt']).toISOString()),
192
+ 'scheduledCancellationAt': (value['scheduledCancellationAt'] == null ? null : (value['scheduledCancellationAt'] as any).toISOString()),
184
193
  'domain': SubscriptionListItemDtoDomainInformationToJSON(value['domain']),
185
194
  'sellerAccount': SubscriptionListItemDtoSellerAccountToJSON(value['sellerAccount']),
186
195
  'buyerInformation': SubscriptionListItemDtoBuyerInformationToJSON(value['buyerInformation']),