@otr-app/shared-backend-generated-client 2.3.181 → 2.3.182
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/dist/angular/api/stripeWebhookController.service.ts +65 -0
- package/dist/otrBackendService.js +32 -0
- package/dist/otrBackendService.min.js +7 -7
- package/dist/typescript/api/StripeWebhookControllerApi.d.ts +6 -0
- package/dist/typescript/api/StripeWebhookControllerApi.js +21 -0
- package/package.json +1 -1
|
@@ -89,6 +89,71 @@ export class StripeWebhookControllerService {
|
|
|
89
89
|
return httpParams;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
/**
|
|
93
|
+
* handleStripeWebhookForConnectedAccounts
|
|
94
|
+
* @param request request
|
|
95
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
96
|
+
* @param reportProgress flag to report request and response progress.
|
|
97
|
+
*/
|
|
98
|
+
public handleStripeWebhookForConnectedAccountsUsingPOST(request?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<string>;
|
|
99
|
+
public handleStripeWebhookForConnectedAccountsUsingPOST(request?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpResponse<string>>;
|
|
100
|
+
public handleStripeWebhookForConnectedAccountsUsingPOST(request?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<HttpEvent<string>>;
|
|
101
|
+
public handleStripeWebhookForConnectedAccountsUsingPOST(request?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: '*/*', context?: HttpContext}): Observable<any> {
|
|
102
|
+
|
|
103
|
+
let localVarHeaders = this.defaultHeaders;
|
|
104
|
+
|
|
105
|
+
let localVarHttpHeaderAcceptSelected: string | undefined = options && options.httpHeaderAccept;
|
|
106
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
107
|
+
// to determine the Accept header
|
|
108
|
+
const httpHeaderAccepts: string[] = [
|
|
109
|
+
'*/*'
|
|
110
|
+
];
|
|
111
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
112
|
+
}
|
|
113
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
114
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
let localVarHttpContext: HttpContext | undefined = options && options.context;
|
|
118
|
+
if (localVarHttpContext === undefined) {
|
|
119
|
+
localVarHttpContext = new HttpContext();
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
// to determine the Content-Type header
|
|
124
|
+
const consumes: string[] = [
|
|
125
|
+
'application/json'
|
|
126
|
+
];
|
|
127
|
+
const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);
|
|
128
|
+
if (httpContentTypeSelected !== undefined) {
|
|
129
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
133
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
134
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
135
|
+
responseType_ = 'text';
|
|
136
|
+
} else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
137
|
+
responseType_ = 'json';
|
|
138
|
+
} else {
|
|
139
|
+
responseType_ = 'blob';
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
let localVarPath = `/api/v1/stripe/acct_15jGdjA1uVHZiLuV/webhook/connected-account`;
|
|
144
|
+
return this.httpClient.request<string>('post', `${this.configuration.basePath}${localVarPath}`,
|
|
145
|
+
{
|
|
146
|
+
context: localVarHttpContext,
|
|
147
|
+
body: request,
|
|
148
|
+
responseType: <any>responseType_,
|
|
149
|
+
withCredentials: this.configuration.withCredentials,
|
|
150
|
+
headers: localVarHeaders,
|
|
151
|
+
observe: observe,
|
|
152
|
+
reportProgress: reportProgress
|
|
153
|
+
}
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
92
157
|
/**
|
|
93
158
|
* handleStripeWebhookFromLawfirmAccount
|
|
94
159
|
* @param request request
|
|
@@ -13387,6 +13387,38 @@ angular.module('otrBackendService', [])
|
|
|
13387
13387
|
|
|
13388
13388
|
return deferred.promise;
|
|
13389
13389
|
};
|
|
13390
|
+
/**
|
|
13391
|
+
* handleStripeWebhookForConnectedAccounts
|
|
13392
|
+
* @method
|
|
13393
|
+
* @name OtrService#handleStripeWebhookForConnectedAccountsUsingPOST
|
|
13394
|
+
* @param {object} parameters - method options and parameters
|
|
13395
|
+
* @param {} parameters.request - request
|
|
13396
|
+
*/
|
|
13397
|
+
OtrService.prototype.handleStripeWebhookForConnectedAccountsUsingPOST = function(parameters) {
|
|
13398
|
+
if (parameters === undefined) {
|
|
13399
|
+
parameters = {};
|
|
13400
|
+
}
|
|
13401
|
+
var deferred = $q.defer();
|
|
13402
|
+
var domain = this.domain,
|
|
13403
|
+
path = '/api/v1/stripe/acct_15jGdjA1uVHZiLuV/webhook/connected-account';
|
|
13404
|
+
var body = {},
|
|
13405
|
+
queryParameters = {},
|
|
13406
|
+
headers = {},
|
|
13407
|
+
form = {};
|
|
13408
|
+
|
|
13409
|
+
headers['Accept'] = ['*/*'];
|
|
13410
|
+
headers['Content-Type'] = ['application/json'];
|
|
13411
|
+
|
|
13412
|
+
if (parameters['request'] !== undefined) {
|
|
13413
|
+
body = parameters['request'];
|
|
13414
|
+
}
|
|
13415
|
+
|
|
13416
|
+
queryParameters = mergeQueryParams(parameters, queryParameters);
|
|
13417
|
+
|
|
13418
|
+
this.request('POST', domain + path, parameters, body, headers, queryParameters, form, deferred);
|
|
13419
|
+
|
|
13420
|
+
return deferred.promise;
|
|
13421
|
+
};
|
|
13390
13422
|
/**
|
|
13391
13423
|
* connectStripeAccount
|
|
13392
13424
|
* @method
|