@randock/nameshift-api-client 0.0.132 → 0.0.133
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 +3 -3
- package/dist/apis/StripePublicApi.d.ts +11 -0
- package/dist/apis/StripePublicApi.js +45 -0
- package/package.json +1 -1
- package/src/apis/StripePublicApi.ts +40 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.133
|
|
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.133 --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
|
+
3441b5c5e55c940f9b029196ac7deb2616382fea8ec77907d74ad91fb627fa1d8b39e85350ae93793d648dde139c403a
|
|
@@ -13,6 +13,9 @@ import * as runtime from '../runtime';
|
|
|
13
13
|
export interface StripePublicApiPostStripeWebhookRequest {
|
|
14
14
|
stripeSignature: string;
|
|
15
15
|
}
|
|
16
|
+
export interface StripePublicApiPostStripeWebhookConnectedAccountsRequest {
|
|
17
|
+
stripeSignature: string;
|
|
18
|
+
}
|
|
16
19
|
/**
|
|
17
20
|
*
|
|
18
21
|
*/
|
|
@@ -25,4 +28,12 @@ export declare class StripePublicApi extends runtime.BaseAPI {
|
|
|
25
28
|
*
|
|
26
29
|
*/
|
|
27
30
|
postStripeWebhook(requestParameters: StripePublicApiPostStripeWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
postStripeWebhookConnectedAccountsRaw(requestParameters: StripePublicApiPostStripeWebhookConnectedAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
postStripeWebhookConnectedAccounts(requestParameters: StripePublicApiPostStripeWebhookConnectedAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
28
39
|
}
|
|
@@ -119,6 +119,51 @@ var StripePublicApi = /** @class */ (function (_super) {
|
|
|
119
119
|
});
|
|
120
120
|
});
|
|
121
121
|
};
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
*/
|
|
125
|
+
StripePublicApi.prototype.postStripeWebhookConnectedAccountsRaw = function (requestParameters, initOverrides) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
127
|
+
var queryParameters, headerParameters, response;
|
|
128
|
+
return __generator(this, function (_a) {
|
|
129
|
+
switch (_a.label) {
|
|
130
|
+
case 0:
|
|
131
|
+
if (requestParameters['stripeSignature'] == null) {
|
|
132
|
+
throw new runtime.RequiredError('stripeSignature', 'Required parameter "stripeSignature" was null or undefined when calling postStripeWebhookConnectedAccounts().');
|
|
133
|
+
}
|
|
134
|
+
queryParameters = {};
|
|
135
|
+
headerParameters = {};
|
|
136
|
+
if (requestParameters['stripeSignature'] != null) {
|
|
137
|
+
headerParameters['stripe-signature'] = String(requestParameters['stripeSignature']);
|
|
138
|
+
}
|
|
139
|
+
return [4 /*yield*/, this.request({
|
|
140
|
+
path: "/stripe/webhook/connected-accounts",
|
|
141
|
+
method: 'POST',
|
|
142
|
+
headers: headerParameters,
|
|
143
|
+
query: queryParameters,
|
|
144
|
+
}, initOverrides)];
|
|
145
|
+
case 1:
|
|
146
|
+
response = _a.sent();
|
|
147
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
*/
|
|
155
|
+
StripePublicApi.prototype.postStripeWebhookConnectedAccounts = function (requestParameters, initOverrides) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
157
|
+
return __generator(this, function (_a) {
|
|
158
|
+
switch (_a.label) {
|
|
159
|
+
case 0: return [4 /*yield*/, this.postStripeWebhookConnectedAccountsRaw(requestParameters, initOverrides)];
|
|
160
|
+
case 1:
|
|
161
|
+
_a.sent();
|
|
162
|
+
return [2 /*return*/];
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
};
|
|
122
167
|
return StripePublicApi;
|
|
123
168
|
}(runtime.BaseAPI));
|
|
124
169
|
exports.StripePublicApi = StripePublicApi;
|
package/package.json
CHANGED
|
@@ -29,6 +29,10 @@ export interface StripePublicApiPostStripeWebhookRequest {
|
|
|
29
29
|
stripeSignature: string;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
export interface StripePublicApiPostStripeWebhookConnectedAccountsRequest {
|
|
33
|
+
stripeSignature: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
32
36
|
/**
|
|
33
37
|
*
|
|
34
38
|
*/
|
|
@@ -70,4 +74,40 @@ export class StripePublicApi extends runtime.BaseAPI {
|
|
|
70
74
|
await this.postStripeWebhookRaw(requestParameters, initOverrides);
|
|
71
75
|
}
|
|
72
76
|
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
async postStripeWebhookConnectedAccountsRaw(requestParameters: StripePublicApiPostStripeWebhookConnectedAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
81
|
+
if (requestParameters['stripeSignature'] == null) {
|
|
82
|
+
throw new runtime.RequiredError(
|
|
83
|
+
'stripeSignature',
|
|
84
|
+
'Required parameter "stripeSignature" was null or undefined when calling postStripeWebhookConnectedAccounts().'
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const queryParameters: any = {};
|
|
89
|
+
|
|
90
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
91
|
+
|
|
92
|
+
if (requestParameters['stripeSignature'] != null) {
|
|
93
|
+
headerParameters['stripe-signature'] = String(requestParameters['stripeSignature']);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const response = await this.request({
|
|
97
|
+
path: `/stripe/webhook/connected-accounts`,
|
|
98
|
+
method: 'POST',
|
|
99
|
+
headers: headerParameters,
|
|
100
|
+
query: queryParameters,
|
|
101
|
+
}, initOverrides);
|
|
102
|
+
|
|
103
|
+
return new runtime.VoidApiResponse(response);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
109
|
+
async postStripeWebhookConnectedAccounts(requestParameters: StripePublicApiPostStripeWebhookConnectedAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
110
|
+
await this.postStripeWebhookConnectedAccountsRaw(requestParameters, initOverrides);
|
|
111
|
+
}
|
|
112
|
+
|
|
73
113
|
}
|