@randock/nameshift-api-client 0.0.353 → 0.0.354
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/.openapi-generator/FILES +1 -0
- package/README.md +3 -3
- package/dist/apis/SubscriptionsPublicApi.d.ts +2 -2
- package/dist/apis/SubscriptionsPublicApi.js +5 -3
- package/dist/models/CreateSubscriptionManualTransactionInput.d.ts +32 -0
- package/dist/models/CreateSubscriptionManualTransactionInput.js +49 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/SubscriptionsPublicApi.ts +11 -5
- package/src/models/CreateSubscriptionManualTransactionInput.ts +65 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -138,6 +138,7 @@ src/models/CreateManualTransactionInput.ts
|
|
|
138
138
|
src/models/CreateOrderInput.ts
|
|
139
139
|
src/models/CreateSubscriptionBillingPeriodicityInput.ts
|
|
140
140
|
src/models/CreateSubscriptionInput.ts
|
|
141
|
+
src/models/CreateSubscriptionManualTransactionInput.ts
|
|
141
142
|
src/models/CursorBasedPageInfo.ts
|
|
142
143
|
src/models/CursorBasedPaginationResponse.ts
|
|
143
144
|
src/models/DeleteDomainsInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.354
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.354 --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
|
-
|
|
47
|
+
8ce6d50fb9aa2215902128dcb6a48e461d0facba59ac9532701ea2c235abcf91adeea6a3ff77979d5a823c7d5637baf0
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateSubscriptionInput, ObjectId, SubscriptionDto, UpdateSubscriptionInput } from '../models/index';
|
|
13
|
+
import type { CreateSubscriptionInput, CreateSubscriptionManualTransactionInput, ObjectId, SubscriptionDto, UpdateSubscriptionInput } from '../models/index';
|
|
14
14
|
export interface SubscriptionsPublicApiCreateSubscriptionRequest {
|
|
15
15
|
createSubscriptionInput: CreateSubscriptionInput;
|
|
16
16
|
}
|
|
17
17
|
export interface SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest {
|
|
18
18
|
subscriptionId: string;
|
|
19
|
-
|
|
19
|
+
createSubscriptionManualTransactionInput: CreateSubscriptionManualTransactionInput;
|
|
20
20
|
}
|
|
21
21
|
export interface SubscriptionsPublicApiGetSubscriptionRequest {
|
|
22
22
|
subscriptionId: string;
|
|
@@ -134,16 +134,18 @@ var SubscriptionsPublicApi = /** @class */ (function (_super) {
|
|
|
134
134
|
if (requestParameters['subscriptionId'] == null) {
|
|
135
135
|
throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling createSubscriptionManualTransaction().');
|
|
136
136
|
}
|
|
137
|
-
if (requestParameters['
|
|
138
|
-
throw new runtime.RequiredError('
|
|
137
|
+
if (requestParameters['createSubscriptionManualTransactionInput'] == null) {
|
|
138
|
+
throw new runtime.RequiredError('createSubscriptionManualTransactionInput', 'Required parameter "createSubscriptionManualTransactionInput" was null or undefined when calling createSubscriptionManualTransaction().');
|
|
139
139
|
}
|
|
140
140
|
queryParameters = {};
|
|
141
141
|
headerParameters = {};
|
|
142
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
142
143
|
return [4 /*yield*/, this.request({
|
|
143
|
-
path: "/subscriptions/{subscriptionId}/invoices/
|
|
144
|
+
path: "/subscriptions/{subscriptionId}/invoices/transactions".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
144
145
|
method: 'POST',
|
|
145
146
|
headers: headerParameters,
|
|
146
147
|
query: queryParameters,
|
|
148
|
+
body: (0, index_1.CreateSubscriptionManualTransactionInputToJSON)(requestParameters['createSubscriptionManualTransactionInput']),
|
|
147
149
|
}, initOverrides)];
|
|
148
150
|
case 1:
|
|
149
151
|
response = _a.sent();
|
|
@@ -0,0 +1,32 @@
|
|
|
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 CreateSubscriptionManualTransactionInput
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateSubscriptionManualTransactionInput {
|
|
18
|
+
/**
|
|
19
|
+
* Optional invoice ID. If not provided, the active buyer invoice will be used.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateSubscriptionManualTransactionInput
|
|
22
|
+
*/
|
|
23
|
+
invoiceId?: string | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CreateSubscriptionManualTransactionInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCreateSubscriptionManualTransactionInput(value: object): value is CreateSubscriptionManualTransactionInput;
|
|
29
|
+
export declare function CreateSubscriptionManualTransactionInputFromJSON(json: any): CreateSubscriptionManualTransactionInput;
|
|
30
|
+
export declare function CreateSubscriptionManualTransactionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubscriptionManualTransactionInput;
|
|
31
|
+
export declare function CreateSubscriptionManualTransactionInputToJSON(json: any): CreateSubscriptionManualTransactionInput;
|
|
32
|
+
export declare function CreateSubscriptionManualTransactionInputToJSONTyped(value?: CreateSubscriptionManualTransactionInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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.instanceOfCreateSubscriptionManualTransactionInput = instanceOfCreateSubscriptionManualTransactionInput;
|
|
17
|
+
exports.CreateSubscriptionManualTransactionInputFromJSON = CreateSubscriptionManualTransactionInputFromJSON;
|
|
18
|
+
exports.CreateSubscriptionManualTransactionInputFromJSONTyped = CreateSubscriptionManualTransactionInputFromJSONTyped;
|
|
19
|
+
exports.CreateSubscriptionManualTransactionInputToJSON = CreateSubscriptionManualTransactionInputToJSON;
|
|
20
|
+
exports.CreateSubscriptionManualTransactionInputToJSONTyped = CreateSubscriptionManualTransactionInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateSubscriptionManualTransactionInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateSubscriptionManualTransactionInput(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function CreateSubscriptionManualTransactionInputFromJSON(json) {
|
|
28
|
+
return CreateSubscriptionManualTransactionInputFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function CreateSubscriptionManualTransactionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'invoiceId': json['invoiceId'] == null ? undefined : json['invoiceId'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function CreateSubscriptionManualTransactionInputToJSON(json) {
|
|
39
|
+
return CreateSubscriptionManualTransactionInputToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function CreateSubscriptionManualTransactionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'invoiceId': value['invoiceId'],
|
|
48
|
+
};
|
|
49
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -103,6 +103,7 @@ export * from './CreateManualTransactionInput';
|
|
|
103
103
|
export * from './CreateOrderInput';
|
|
104
104
|
export * from './CreateSubscriptionBillingPeriodicityInput';
|
|
105
105
|
export * from './CreateSubscriptionInput';
|
|
106
|
+
export * from './CreateSubscriptionManualTransactionInput';
|
|
106
107
|
export * from './CursorBasedPageInfo';
|
|
107
108
|
export * from './CursorBasedPaginationResponse';
|
|
108
109
|
export * from './DeleteDomainsInput';
|
package/dist/models/index.js
CHANGED
|
@@ -121,6 +121,7 @@ __exportStar(require("./CreateManualTransactionInput"), exports);
|
|
|
121
121
|
__exportStar(require("./CreateOrderInput"), exports);
|
|
122
122
|
__exportStar(require("./CreateSubscriptionBillingPeriodicityInput"), exports);
|
|
123
123
|
__exportStar(require("./CreateSubscriptionInput"), exports);
|
|
124
|
+
__exportStar(require("./CreateSubscriptionManualTransactionInput"), exports);
|
|
124
125
|
__exportStar(require("./CursorBasedPageInfo"), exports);
|
|
125
126
|
__exportStar(require("./CursorBasedPaginationResponse"), exports);
|
|
126
127
|
__exportStar(require("./DeleteDomainsInput"), exports);
|
package/package.json
CHANGED
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
BadRequestException,
|
|
19
19
|
CreateSubscriptionInput,
|
|
20
|
+
CreateSubscriptionManualTransactionInput,
|
|
20
21
|
NotFoundException,
|
|
21
22
|
ObjectId,
|
|
22
23
|
SubscriptionDto,
|
|
@@ -28,6 +29,8 @@ import {
|
|
|
28
29
|
BadRequestExceptionToJSON,
|
|
29
30
|
CreateSubscriptionInputFromJSON,
|
|
30
31
|
CreateSubscriptionInputToJSON,
|
|
32
|
+
CreateSubscriptionManualTransactionInputFromJSON,
|
|
33
|
+
CreateSubscriptionManualTransactionInputToJSON,
|
|
31
34
|
NotFoundExceptionFromJSON,
|
|
32
35
|
NotFoundExceptionToJSON,
|
|
33
36
|
ObjectIdFromJSON,
|
|
@@ -46,7 +49,7 @@ export interface SubscriptionsPublicApiCreateSubscriptionRequest {
|
|
|
46
49
|
|
|
47
50
|
export interface SubscriptionsPublicApiCreateSubscriptionManualTransactionRequest {
|
|
48
51
|
subscriptionId: string;
|
|
49
|
-
|
|
52
|
+
createSubscriptionManualTransactionInput: CreateSubscriptionManualTransactionInput;
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
export interface SubscriptionsPublicApiGetSubscriptionRequest {
|
|
@@ -116,10 +119,10 @@ export class SubscriptionsPublicApi extends runtime.BaseAPI {
|
|
|
116
119
|
);
|
|
117
120
|
}
|
|
118
121
|
|
|
119
|
-
if (requestParameters['
|
|
122
|
+
if (requestParameters['createSubscriptionManualTransactionInput'] == null) {
|
|
120
123
|
throw new runtime.RequiredError(
|
|
121
|
-
'
|
|
122
|
-
'Required parameter "
|
|
124
|
+
'createSubscriptionManualTransactionInput',
|
|
125
|
+
'Required parameter "createSubscriptionManualTransactionInput" was null or undefined when calling createSubscriptionManualTransaction().'
|
|
123
126
|
);
|
|
124
127
|
}
|
|
125
128
|
|
|
@@ -127,11 +130,14 @@ export class SubscriptionsPublicApi extends runtime.BaseAPI {
|
|
|
127
130
|
|
|
128
131
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
129
132
|
|
|
133
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
134
|
+
|
|
130
135
|
const response = await this.request({
|
|
131
|
-
path: `/subscriptions/{subscriptionId}/invoices/
|
|
136
|
+
path: `/subscriptions/{subscriptionId}/invoices/transactions`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
132
137
|
method: 'POST',
|
|
133
138
|
headers: headerParameters,
|
|
134
139
|
query: queryParameters,
|
|
140
|
+
body: CreateSubscriptionManualTransactionInputToJSON(requestParameters['createSubscriptionManualTransactionInput']),
|
|
135
141
|
}, initOverrides);
|
|
136
142
|
|
|
137
143
|
return new runtime.VoidApiResponse(response);
|
|
@@ -0,0 +1,65 @@
|
|
|
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 CreateSubscriptionManualTransactionInput
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateSubscriptionManualTransactionInput {
|
|
22
|
+
/**
|
|
23
|
+
* Optional invoice ID. If not provided, the active buyer invoice will be used.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateSubscriptionManualTransactionInput
|
|
26
|
+
*/
|
|
27
|
+
invoiceId?: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CreateSubscriptionManualTransactionInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfCreateSubscriptionManualTransactionInput(value: object): value is CreateSubscriptionManualTransactionInput {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function CreateSubscriptionManualTransactionInputFromJSON(json: any): CreateSubscriptionManualTransactionInput {
|
|
38
|
+
return CreateSubscriptionManualTransactionInputFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function CreateSubscriptionManualTransactionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSubscriptionManualTransactionInput {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
|
|
47
|
+
'invoiceId': json['invoiceId'] == null ? undefined : json['invoiceId'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function CreateSubscriptionManualTransactionInputToJSON(json: any): CreateSubscriptionManualTransactionInput {
|
|
52
|
+
return CreateSubscriptionManualTransactionInputToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function CreateSubscriptionManualTransactionInputToJSONTyped(value?: CreateSubscriptionManualTransactionInput | null, ignoreDiscriminator: boolean = false): any {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'invoiceId': value['invoiceId'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -105,6 +105,7 @@ export * from './CreateManualTransactionInput';
|
|
|
105
105
|
export * from './CreateOrderInput';
|
|
106
106
|
export * from './CreateSubscriptionBillingPeriodicityInput';
|
|
107
107
|
export * from './CreateSubscriptionInput';
|
|
108
|
+
export * from './CreateSubscriptionManualTransactionInput';
|
|
108
109
|
export * from './CursorBasedPageInfo';
|
|
109
110
|
export * from './CursorBasedPaginationResponse';
|
|
110
111
|
export * from './DeleteDomainsInput';
|