@brokerize/client 1.1.4 → 1.2.0
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 +1 -1
- package/dist/authorizedApiContext.d.ts +2 -2
- package/dist/client.d.ts +278 -15
- package/dist/swagger/apis/CancelOrderApi.d.ts +5 -5
- package/dist/swagger/apis/CancelOrderApi.js +6 -5
- package/dist/swagger/apis/ChangeOrderApi.d.ts +3 -3
- package/dist/swagger/apis/ChangeOrderApi.js +4 -3
- package/dist/swagger/apis/DefaultApi.d.ts +22 -0
- package/dist/swagger/apis/DefaultApi.js +79 -8
- package/dist/swagger/apis/TradeApi.d.ts +2 -2
- package/dist/swagger/apis/TradeApi.js +2 -2
- package/dist/swagger/models/AuthMethodDecoupled.d.ts +1 -2
- package/dist/swagger/models/CancelOrderDecoupled.d.ts +40 -0
- package/dist/swagger/models/CancelOrderDecoupled.js +46 -0
- package/dist/swagger/models/CancelOrderDecoupledAllOf.d.ts +34 -0
- package/dist/swagger/models/CancelOrderDecoupledAllOf.js +44 -0
- package/dist/swagger/models/CancelOrderDecoupledSpecifics.d.ts +27 -0
- package/dist/swagger/models/CancelOrderDecoupledSpecifics.js +38 -0
- package/dist/swagger/models/CancelOrderParams.d.ts +3 -0
- package/dist/swagger/models/CancelOrderParams.js +5 -0
- package/dist/swagger/models/CancelOrderParamsMode.d.ts +1 -0
- package/dist/swagger/models/CancelOrderParamsMode.js +1 -0
- package/dist/swagger/models/CancelOrderResponse.d.ts +28 -0
- package/dist/swagger/models/CancelOrderResponse.js +40 -0
- package/dist/swagger/models/ChangeOrderResponse.d.ts +28 -0
- package/dist/swagger/models/ChangeOrderResponse.js +40 -0
- package/dist/swagger/models/CreateTradeResponse.d.ts +9 -1
- package/dist/swagger/models/CreateTradeResponse.js +4 -0
- package/dist/swagger/models/DecoupledOperationStatus.d.ts +14 -0
- package/dist/swagger/models/DecoupledOperationStatus.js +4 -0
- package/dist/swagger/models/index.d.ts +5 -0
- package/dist/swagger/models/index.js +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# client-js
|
|
2
2
|
|
|
3
|
-
The official `brokerize` JavaScript client. The
|
|
3
|
+
The official `brokerize` JavaScript client. The API client comes with TypeScript types so that auto-complete for JS code as well as proper types for TypeScript clients are available. Most of the heavy lifting is in the internal generated code (we use `@openapitools/openapi-generator-cli` to generate it), but we provide a manually maintained layer around it for a more consistent developer experience.
|
|
4
4
|
|
|
5
5
|
Example usage:
|
|
6
6
|
|
|
@@ -48,9 +48,9 @@ export declare class AuthorizedApiContext {
|
|
|
48
48
|
deleteDemoAccount(del: DeleteDemoAccountRequest): Promise<openApiClient.OkResponseBody>;
|
|
49
49
|
getOrder(orderId: string): Promise<openApiClient.GetOrderResponse>;
|
|
50
50
|
createCancelOrderChallenge(req: openApiClient.CreateCancelOrderChallengeRequest): Promise<openApiClient.Challenge>;
|
|
51
|
-
cancelOrder(req: openApiClient.CancelOrderRequest, viaCryptoService?: boolean): Promise<
|
|
51
|
+
cancelOrder(req: openApiClient.CancelOrderRequest, viaCryptoService?: boolean): Promise<openApiClient.CancelOrderResponse>;
|
|
52
52
|
createChangeOrderChallenge(req: openApiClient.CreateChangeOrderChallengeRequest): Promise<openApiClient.Challenge>;
|
|
53
|
-
changeOrder(req: openApiClient.ChangeOrderRequest, viaCryptoService?: boolean): Promise<
|
|
53
|
+
changeOrder(req: openApiClient.ChangeOrderRequest, viaCryptoService?: boolean): Promise<openApiClient.ChangeOrderResponse>;
|
|
54
54
|
getPortfolios(): Promise<openApiClient.PortfoliosResponse>;
|
|
55
55
|
renamePortfolio(portfolioId: string, newPortfolioName: string): Promise<void>;
|
|
56
56
|
deletePortfolio(portfolioId: string): Promise<openApiClient.OkResponseBody>;
|
package/dist/client.d.ts
CHANGED
|
@@ -731,8 +731,7 @@ declare function AuthMethodChallengeResponseToJSONRecursive(value?: AuthMethodCh
|
|
|
731
731
|
/**
|
|
732
732
|
* With the `DECOUPLED` flow, the operation is created right away without creating a challenge first. The operation's
|
|
733
733
|
* response will include a `decoupledOperationId` which can be subscribed to using `GetDecoupledOperationStatus` and via
|
|
734
|
-
* a WebSocket subscription. Also, the operation can be cancelled by the user using `CancelDecoupledOperation`.
|
|
735
|
-
* this flow is only implemented for `EnableSessionTan`.
|
|
734
|
+
* a WebSocket subscription. Also, the operation can be cancelled by the user using `CancelDecoupledOperation`.
|
|
736
735
|
* @export
|
|
737
736
|
* @interface AuthMethodDecoupled
|
|
738
737
|
*/
|
|
@@ -1121,9 +1120,9 @@ export declare class AuthorizedApiContext {
|
|
|
1121
1120
|
deleteDemoAccount(del: DeleteDemoAccountRequest): Promise<openApiClient.OkResponseBody>;
|
|
1122
1121
|
getOrder(orderId: string): Promise<openApiClient.GetOrderResponse>;
|
|
1123
1122
|
createCancelOrderChallenge(req: openApiClient.CreateCancelOrderChallengeRequest): Promise<openApiClient.Challenge>;
|
|
1124
|
-
cancelOrder(req: openApiClient.CancelOrderRequest, viaCryptoService?: boolean): Promise<
|
|
1123
|
+
cancelOrder(req: openApiClient.CancelOrderRequest, viaCryptoService?: boolean): Promise<openApiClient.CancelOrderResponse>;
|
|
1125
1124
|
createChangeOrderChallenge(req: openApiClient.CreateChangeOrderChallengeRequest): Promise<openApiClient.Challenge>;
|
|
1126
|
-
changeOrder(req: openApiClient.ChangeOrderRequest, viaCryptoService?: boolean): Promise<
|
|
1125
|
+
changeOrder(req: openApiClient.ChangeOrderRequest, viaCryptoService?: boolean): Promise<openApiClient.ChangeOrderResponse>;
|
|
1127
1126
|
getPortfolios(): Promise<openApiClient.PortfoliosResponse>;
|
|
1128
1127
|
renamePortfolio(portfolioId: string, newPortfolioName: string): Promise<void>;
|
|
1129
1128
|
deletePortfolio(portfolioId: string): Promise<openApiClient.OkResponseBody>;
|
|
@@ -1850,23 +1849,27 @@ declare function BrokerMetaToJSONRecursive(value?: BrokerMeta | null, ignorePare
|
|
|
1850
1849
|
|
|
1851
1850
|
export declare type Callback<T = any> = (err: any, data: T) => void;
|
|
1852
1851
|
|
|
1853
|
-
declare interface
|
|
1852
|
+
declare interface CancelDecoupledOperationLegacyRequest {
|
|
1854
1853
|
sessionId: string;
|
|
1855
1854
|
decoupledOperationId: string;
|
|
1856
1855
|
}
|
|
1857
1856
|
|
|
1857
|
+
declare interface CancelDecoupledOperationRequest {
|
|
1858
|
+
decoupledOperationId: string;
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1858
1861
|
/**
|
|
1859
1862
|
*
|
|
1860
1863
|
*/
|
|
1861
1864
|
declare class CancelOrderApi extends runtime.BaseAPI {
|
|
1862
1865
|
/**
|
|
1863
|
-
*
|
|
1866
|
+
* Cancel the given order (or in the case of decoupled authMethods: send the order cancellation to the user for confirmation. In this case, a decoupledOperationId is returned).
|
|
1864
1867
|
*/
|
|
1865
|
-
cancelOrderRaw(requestParameters: CancelOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<
|
|
1868
|
+
cancelOrderRaw(requestParameters: CancelOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<CancelOrderResponse>>;
|
|
1866
1869
|
/**
|
|
1867
|
-
*
|
|
1870
|
+
* Cancel the given order (or in the case of decoupled authMethods: send the order cancellation to the user for confirmation. In this case, a decoupledOperationId is returned).
|
|
1868
1871
|
*/
|
|
1869
|
-
cancelOrder(requestParameters: CancelOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<
|
|
1872
|
+
cancelOrder(requestParameters: CancelOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<CancelOrderResponse>;
|
|
1870
1873
|
/**
|
|
1871
1874
|
* If the user chose an auth method from `GetAuthInfo` with the flow `CHALLENGE_RESPONSE`, before cancelling an order, a challenge must be requested first. If any other flow is used, a challenge *must not* be requested and `CancelOrder` is used right away.
|
|
1872
1875
|
*/
|
|
@@ -2053,6 +2056,126 @@ declare function CancelOrderChallengeResponseToJSON(value?: CancelOrderChallenge
|
|
|
2053
2056
|
|
|
2054
2057
|
declare function CancelOrderChallengeResponseToJSONRecursive(value?: CancelOrderChallengeResponse | null, ignoreParent?: boolean): any;
|
|
2055
2058
|
|
|
2059
|
+
/**
|
|
2060
|
+
* brokerize
|
|
2061
|
+
* The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
|
|
2062
|
+
*
|
|
2063
|
+
*
|
|
2064
|
+
*
|
|
2065
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2066
|
+
* https://openapi-generator.tech
|
|
2067
|
+
* Do not edit the class manually.
|
|
2068
|
+
*/
|
|
2069
|
+
/**
|
|
2070
|
+
*
|
|
2071
|
+
* @export
|
|
2072
|
+
* @interface CancelOrderDecoupled
|
|
2073
|
+
*/
|
|
2074
|
+
declare interface CancelOrderDecoupled {
|
|
2075
|
+
/**
|
|
2076
|
+
*
|
|
2077
|
+
* @type {string}
|
|
2078
|
+
* @memberof CancelOrderDecoupled
|
|
2079
|
+
*/
|
|
2080
|
+
mode: CancelOrderDecoupledModeEnum;
|
|
2081
|
+
/**
|
|
2082
|
+
*
|
|
2083
|
+
* @type {string}
|
|
2084
|
+
* @memberof CancelOrderDecoupled
|
|
2085
|
+
*/
|
|
2086
|
+
authMethod?: string;
|
|
2087
|
+
}
|
|
2088
|
+
|
|
2089
|
+
/**
|
|
2090
|
+
* brokerize
|
|
2091
|
+
* The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
|
|
2092
|
+
*
|
|
2093
|
+
*
|
|
2094
|
+
*
|
|
2095
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2096
|
+
* https://openapi-generator.tech
|
|
2097
|
+
* Do not edit the class manually.
|
|
2098
|
+
*/
|
|
2099
|
+
/**
|
|
2100
|
+
*
|
|
2101
|
+
* @export
|
|
2102
|
+
* @interface CancelOrderDecoupledAllOf
|
|
2103
|
+
*/
|
|
2104
|
+
declare interface CancelOrderDecoupledAllOf {
|
|
2105
|
+
/**
|
|
2106
|
+
*
|
|
2107
|
+
* @type {string}
|
|
2108
|
+
* @memberof CancelOrderDecoupledAllOf
|
|
2109
|
+
*/
|
|
2110
|
+
mode?: CancelOrderDecoupledAllOfModeEnum;
|
|
2111
|
+
}
|
|
2112
|
+
|
|
2113
|
+
declare function CancelOrderDecoupledAllOfFromJSON(json: any): CancelOrderDecoupledAllOf;
|
|
2114
|
+
|
|
2115
|
+
declare function CancelOrderDecoupledAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancelOrderDecoupledAllOf;
|
|
2116
|
+
|
|
2117
|
+
/**
|
|
2118
|
+
* @export
|
|
2119
|
+
*/
|
|
2120
|
+
declare const CancelOrderDecoupledAllOfModeEnum: {
|
|
2121
|
+
readonly Decoupled: "decoupled";
|
|
2122
|
+
};
|
|
2123
|
+
|
|
2124
|
+
declare type CancelOrderDecoupledAllOfModeEnum = (typeof CancelOrderDecoupledAllOfModeEnum)[keyof typeof CancelOrderDecoupledAllOfModeEnum];
|
|
2125
|
+
|
|
2126
|
+
declare function CancelOrderDecoupledAllOfToJSON(value?: CancelOrderDecoupledAllOf | null): any;
|
|
2127
|
+
|
|
2128
|
+
declare function CancelOrderDecoupledAllOfToJSONRecursive(value?: CancelOrderDecoupledAllOf | null, ignoreParent?: boolean): any;
|
|
2129
|
+
|
|
2130
|
+
declare function CancelOrderDecoupledFromJSON(json: any): CancelOrderDecoupled;
|
|
2131
|
+
|
|
2132
|
+
declare function CancelOrderDecoupledFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancelOrderDecoupled;
|
|
2133
|
+
|
|
2134
|
+
/**
|
|
2135
|
+
* @export
|
|
2136
|
+
*/
|
|
2137
|
+
declare const CancelOrderDecoupledModeEnum: {
|
|
2138
|
+
readonly Decoupled: "decoupled";
|
|
2139
|
+
};
|
|
2140
|
+
|
|
2141
|
+
declare type CancelOrderDecoupledModeEnum = (typeof CancelOrderDecoupledModeEnum)[keyof typeof CancelOrderDecoupledModeEnum];
|
|
2142
|
+
|
|
2143
|
+
/**
|
|
2144
|
+
* brokerize
|
|
2145
|
+
* The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
|
|
2146
|
+
*
|
|
2147
|
+
*
|
|
2148
|
+
*
|
|
2149
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2150
|
+
* https://openapi-generator.tech
|
|
2151
|
+
* Do not edit the class manually.
|
|
2152
|
+
*/
|
|
2153
|
+
/**
|
|
2154
|
+
*
|
|
2155
|
+
* @export
|
|
2156
|
+
* @interface CancelOrderDecoupledSpecifics
|
|
2157
|
+
*/
|
|
2158
|
+
declare interface CancelOrderDecoupledSpecifics {
|
|
2159
|
+
/**
|
|
2160
|
+
*
|
|
2161
|
+
* @type {string}
|
|
2162
|
+
* @memberof CancelOrderDecoupledSpecifics
|
|
2163
|
+
*/
|
|
2164
|
+
authMethod?: string;
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
declare function CancelOrderDecoupledSpecificsFromJSON(json: any): CancelOrderDecoupledSpecifics;
|
|
2168
|
+
|
|
2169
|
+
declare function CancelOrderDecoupledSpecificsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancelOrderDecoupledSpecifics;
|
|
2170
|
+
|
|
2171
|
+
declare function CancelOrderDecoupledSpecificsToJSON(value?: CancelOrderDecoupledSpecifics | null): any;
|
|
2172
|
+
|
|
2173
|
+
declare function CancelOrderDecoupledSpecificsToJSONRecursive(value?: CancelOrderDecoupledSpecifics | null, ignoreParent?: boolean): any;
|
|
2174
|
+
|
|
2175
|
+
declare function CancelOrderDecoupledToJSON(value?: CancelOrderDecoupled | null): any;
|
|
2176
|
+
|
|
2177
|
+
declare function CancelOrderDecoupledToJSONRecursive(value?: CancelOrderDecoupled | null, ignoreParent?: boolean): any;
|
|
2178
|
+
|
|
2056
2179
|
/**
|
|
2057
2180
|
* @type CancelOrderParams
|
|
2058
2181
|
*
|
|
@@ -2061,6 +2184,8 @@ declare function CancelOrderChallengeResponseToJSONRecursive(value?: CancelOrder
|
|
|
2061
2184
|
declare type CancelOrderParams = ({
|
|
2062
2185
|
mode: "challengeResponse";
|
|
2063
2186
|
} & CancelOrderChallengeResponse) | ({
|
|
2187
|
+
mode: "decoupled";
|
|
2188
|
+
} & CancelOrderDecoupled) | ({
|
|
2064
2189
|
mode: "sessionTan";
|
|
2065
2190
|
} & CreateModeSessionTan);
|
|
2066
2191
|
|
|
@@ -2075,6 +2200,7 @@ declare function CancelOrderParamsFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
2075
2200
|
declare const CancelOrderParamsMode: {
|
|
2076
2201
|
readonly SessionTan: "sessionTan";
|
|
2077
2202
|
readonly ChallengeResponse: "challengeResponse";
|
|
2203
|
+
readonly Decoupled: "decoupled";
|
|
2078
2204
|
};
|
|
2079
2205
|
|
|
2080
2206
|
declare type CancelOrderParamsMode = (typeof CancelOrderParamsMode)[keyof typeof CancelOrderParamsMode];
|
|
@@ -2092,6 +2218,39 @@ declare interface CancelOrderRequest {
|
|
|
2092
2218
|
cancelOrderParams: CancelOrderParams;
|
|
2093
2219
|
}
|
|
2094
2220
|
|
|
2221
|
+
/**
|
|
2222
|
+
* brokerize
|
|
2223
|
+
* The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
|
|
2224
|
+
*
|
|
2225
|
+
*
|
|
2226
|
+
*
|
|
2227
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2228
|
+
* https://openapi-generator.tech
|
|
2229
|
+
* Do not edit the class manually.
|
|
2230
|
+
*/
|
|
2231
|
+
/**
|
|
2232
|
+
*
|
|
2233
|
+
* @export
|
|
2234
|
+
* @interface CancelOrderResponse
|
|
2235
|
+
*/
|
|
2236
|
+
declare interface CancelOrderResponse {
|
|
2237
|
+
/**
|
|
2238
|
+
* If a decoupled method is used to cancel the order, the cancellation process can be observed through the
|
|
2239
|
+
* `decoupledOperationId`.
|
|
2240
|
+
* @type {string}
|
|
2241
|
+
* @memberof CancelOrderResponse
|
|
2242
|
+
*/
|
|
2243
|
+
decoupledOperationId?: string;
|
|
2244
|
+
}
|
|
2245
|
+
|
|
2246
|
+
declare function CancelOrderResponseFromJSON(json: any): CancelOrderResponse;
|
|
2247
|
+
|
|
2248
|
+
declare function CancelOrderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CancelOrderResponse;
|
|
2249
|
+
|
|
2250
|
+
declare function CancelOrderResponseToJSON(value?: CancelOrderResponse | null): any;
|
|
2251
|
+
|
|
2252
|
+
declare function CancelOrderResponseToJSONRecursive(value?: CancelOrderResponse | null, ignoreParent?: boolean): any;
|
|
2253
|
+
|
|
2095
2254
|
declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
2096
2255
|
|
|
2097
2256
|
/**
|
|
@@ -2273,11 +2432,11 @@ declare class ChangeOrderApi extends runtime.BaseAPI {
|
|
|
2273
2432
|
/**
|
|
2274
2433
|
* Perform an order change.
|
|
2275
2434
|
*/
|
|
2276
|
-
changeOrderRaw(requestParameters: ChangeOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<
|
|
2435
|
+
changeOrderRaw(requestParameters: ChangeOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<ChangeOrderResponse>>;
|
|
2277
2436
|
/**
|
|
2278
2437
|
* Perform an order change.
|
|
2279
2438
|
*/
|
|
2280
|
-
changeOrder(requestParameters: ChangeOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<
|
|
2439
|
+
changeOrder(requestParameters: ChangeOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<ChangeOrderResponse>;
|
|
2281
2440
|
/**
|
|
2282
2441
|
* If the user chose an auth method from `GetAuthInfo` with the flow `CHALLENGE_RESPONSE`, before changing an order, a challenge must be requested first. If any other flow is used, a challenge *must not* be requested and `ChangeOrder` is used right away.
|
|
2283
2442
|
*/
|
|
@@ -2369,6 +2528,39 @@ declare interface ChangeOrderRequest {
|
|
|
2369
2528
|
changeOrderParams: ChangeOrderParams;
|
|
2370
2529
|
}
|
|
2371
2530
|
|
|
2531
|
+
/**
|
|
2532
|
+
* brokerize
|
|
2533
|
+
* The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
|
|
2534
|
+
*
|
|
2535
|
+
*
|
|
2536
|
+
*
|
|
2537
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2538
|
+
* https://openapi-generator.tech
|
|
2539
|
+
* Do not edit the class manually.
|
|
2540
|
+
*/
|
|
2541
|
+
/**
|
|
2542
|
+
*
|
|
2543
|
+
* @export
|
|
2544
|
+
* @interface ChangeOrderResponse
|
|
2545
|
+
*/
|
|
2546
|
+
declare interface ChangeOrderResponse {
|
|
2547
|
+
/**
|
|
2548
|
+
* If a decoupled method is used to change the order, the cancellation process can be observed through the
|
|
2549
|
+
* `decoupledOperationId`.
|
|
2550
|
+
* @type {string}
|
|
2551
|
+
* @memberof ChangeOrderResponse
|
|
2552
|
+
*/
|
|
2553
|
+
decoupledOperationId?: string;
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
declare function ChangeOrderResponseFromJSON(json: any): ChangeOrderResponse;
|
|
2557
|
+
|
|
2558
|
+
declare function ChangeOrderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeOrderResponse;
|
|
2559
|
+
|
|
2560
|
+
declare function ChangeOrderResponseToJSON(value?: ChangeOrderResponse | null): any;
|
|
2561
|
+
|
|
2562
|
+
declare function ChangeOrderResponseToJSONRecursive(value?: ChangeOrderResponse | null, ignoreParent?: boolean): any;
|
|
2563
|
+
|
|
2372
2564
|
/**
|
|
2373
2565
|
* The client configuration as it appears in API endpoints.
|
|
2374
2566
|
* @export
|
|
@@ -3534,7 +3726,15 @@ declare interface CreateTradeRequest {
|
|
|
3534
3726
|
*/
|
|
3535
3727
|
declare interface CreateTradeResponse {
|
|
3536
3728
|
/**
|
|
3537
|
-
*
|
|
3729
|
+
* If a decoupled method is used to create the trade, the creation process can be observed through the
|
|
3730
|
+
* `decoupledOperationId`. In this case, no `orderId` is returned.
|
|
3731
|
+
* @type {string}
|
|
3732
|
+
* @memberof CreateTradeResponse
|
|
3733
|
+
*/
|
|
3734
|
+
decoupledOperationId?: string;
|
|
3735
|
+
/**
|
|
3736
|
+
* The id of the created order, if applicable. Some brokers don't return an orderId in all cases, so
|
|
3737
|
+
* frontends should be able to just show a generic "order has been created" message in this case.
|
|
3538
3738
|
* @type {string}
|
|
3539
3739
|
* @memberof CreateTradeResponse
|
|
3540
3740
|
*/
|
|
@@ -3580,6 +3780,20 @@ declare function DecoupledOperationStateToJSON(value?: DecoupledOperationState |
|
|
|
3580
3780
|
* @interface DecoupledOperationStatus
|
|
3581
3781
|
*/
|
|
3582
3782
|
declare interface DecoupledOperationStatus {
|
|
3783
|
+
/**
|
|
3784
|
+
* If:
|
|
3785
|
+
* - the decoupled operation is an order creation
|
|
3786
|
+
* - *AND* it is in the state `AUTHORIZATION_USER_ACCEPTED`
|
|
3787
|
+
* - *AND* the broker supports retrieving this information
|
|
3788
|
+
*
|
|
3789
|
+
* This is the id of the created order. Note that depending on the broker, it is possible
|
|
3790
|
+
* (as with non-decoupled order creations as well), that the broker does not return this id, but
|
|
3791
|
+
* instead will add the order to the order book asynchronously. In this case it is not possible to directly
|
|
3792
|
+
* show an order receipt, but just a message (e.g. "Order has been created successfully - check order list for updates").
|
|
3793
|
+
* @type {string}
|
|
3794
|
+
* @memberof DecoupledOperationStatus
|
|
3795
|
+
*/
|
|
3796
|
+
createdOrderId?: string;
|
|
3583
3797
|
/**
|
|
3584
3798
|
*
|
|
3585
3799
|
* @type {DecoupledOperationState}
|
|
@@ -3617,6 +3831,14 @@ declare class DefaultApi extends runtime.BaseAPI {
|
|
|
3617
3831
|
/**
|
|
3618
3832
|
*/
|
|
3619
3833
|
cancelDecoupledOperation(requestParameters: CancelDecoupledOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
|
|
3834
|
+
/**
|
|
3835
|
+
* Cancel a decoupled operation. This is deprecated, use the new `CancelDecoupledOperation` instead (which does not require the sessionId anymore).
|
|
3836
|
+
*/
|
|
3837
|
+
cancelDecoupledOperationLegacyRaw(requestParameters: CancelDecoupledOperationLegacyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
|
|
3838
|
+
/**
|
|
3839
|
+
* Cancel a decoupled operation. This is deprecated, use the new `CancelDecoupledOperation` instead (which does not require the sessionId anymore).
|
|
3840
|
+
*/
|
|
3841
|
+
cancelDecoupledOperationLegacy(requestParameters: CancelDecoupledOperationLegacyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
|
|
3620
3842
|
/**
|
|
3621
3843
|
* Create a guest user and return a token which can be used to access resources. The lifetime of the generated temporary user as well as the returned `access_token` depend on the client configuration. It is usually around 24 hours. For some clients, tokens can be expired earlier based on inactivity. If the client has configured a longer lifetime for their guest users, a `refresh_token` is included in the response. This token can be used to renew the `access_token` after it has expired. The `refresh_token` can be used to obtain a new `access_token` after the original token has expired using the `/user/token` endpoint.
|
|
3622
3844
|
*/
|
|
@@ -3675,6 +3897,14 @@ declare class DefaultApi extends runtime.BaseAPI {
|
|
|
3675
3897
|
/**
|
|
3676
3898
|
*/
|
|
3677
3899
|
getDecoupledOperationStatus(requestParameters: GetDecoupledOperationStatusRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<DecoupledOperationStatus>;
|
|
3900
|
+
/**
|
|
3901
|
+
* Get the status of a decoupled operation. This is deprecated, use the new `GetDecoupledOperation` instead, which does not require the `sessionId` any more.
|
|
3902
|
+
*/
|
|
3903
|
+
getDecoupledOperationStatusLegacyRaw(requestParameters: GetDecoupledOperationStatusLegacyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<DecoupledOperationStatus>>;
|
|
3904
|
+
/**
|
|
3905
|
+
* Get the status of a decoupled operation. This is deprecated, use the new `GetDecoupledOperation` instead, which does not require the `sessionId` any more.
|
|
3906
|
+
*/
|
|
3907
|
+
getDecoupledOperationStatusLegacy(requestParameters: GetDecoupledOperationStatusLegacyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<DecoupledOperationStatus>;
|
|
3678
3908
|
/**
|
|
3679
3909
|
*/
|
|
3680
3910
|
getOrderRaw(requestParameters: GetOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<GetOrderResponse>>;
|
|
@@ -6312,11 +6542,15 @@ declare interface GetCostEstimationRequest {
|
|
|
6312
6542
|
getCostEstimationParams: GetCostEstimationParams;
|
|
6313
6543
|
}
|
|
6314
6544
|
|
|
6315
|
-
declare interface
|
|
6545
|
+
declare interface GetDecoupledOperationStatusLegacyRequest {
|
|
6316
6546
|
sessionId: string;
|
|
6317
6547
|
decoupledOperationId: string;
|
|
6318
6548
|
}
|
|
6319
6549
|
|
|
6550
|
+
declare interface GetDecoupledOperationStatusRequest {
|
|
6551
|
+
decoupledOperationId: string;
|
|
6552
|
+
}
|
|
6553
|
+
|
|
6320
6554
|
/**
|
|
6321
6555
|
* @export
|
|
6322
6556
|
*/
|
|
@@ -7659,12 +7893,14 @@ declare namespace openApiClient {
|
|
|
7659
7893
|
GetChangeOrderCostEstimationRequest,
|
|
7660
7894
|
ChangeOrderApi,
|
|
7661
7895
|
CancelDecoupledOperationRequest,
|
|
7896
|
+
CancelDecoupledOperationLegacyRequest,
|
|
7662
7897
|
CreateSessionTanChallengeRequest,
|
|
7663
7898
|
DeletePortfolioRequest,
|
|
7664
7899
|
EnableSessionTanRequest,
|
|
7665
7900
|
EndSessionTanRequest,
|
|
7666
7901
|
GetAuthInfoRequest,
|
|
7667
7902
|
GetDecoupledOperationStatusRequest,
|
|
7903
|
+
GetDecoupledOperationStatusLegacyRequest,
|
|
7668
7904
|
GetOrderRequest,
|
|
7669
7905
|
GetPortfolioOrdersRequest,
|
|
7670
7906
|
GetPortfolioPositionsRequest,
|
|
@@ -7876,6 +8112,23 @@ declare namespace openApiClient {
|
|
|
7876
8112
|
CancelOrderChallengeResponseSpecificsToJSONRecursive,
|
|
7877
8113
|
CancelOrderChallengeResponseSpecificsToJSON,
|
|
7878
8114
|
CancelOrderChallengeResponseSpecifics,
|
|
8115
|
+
CancelOrderDecoupledFromJSON,
|
|
8116
|
+
CancelOrderDecoupledFromJSONTyped,
|
|
8117
|
+
CancelOrderDecoupledToJSONRecursive,
|
|
8118
|
+
CancelOrderDecoupledToJSON,
|
|
8119
|
+
CancelOrderDecoupled,
|
|
8120
|
+
CancelOrderDecoupledModeEnum,
|
|
8121
|
+
CancelOrderDecoupledAllOfFromJSON,
|
|
8122
|
+
CancelOrderDecoupledAllOfFromJSONTyped,
|
|
8123
|
+
CancelOrderDecoupledAllOfToJSONRecursive,
|
|
8124
|
+
CancelOrderDecoupledAllOfToJSON,
|
|
8125
|
+
CancelOrderDecoupledAllOf,
|
|
8126
|
+
CancelOrderDecoupledAllOfModeEnum,
|
|
8127
|
+
CancelOrderDecoupledSpecificsFromJSON,
|
|
8128
|
+
CancelOrderDecoupledSpecificsFromJSONTyped,
|
|
8129
|
+
CancelOrderDecoupledSpecificsToJSONRecursive,
|
|
8130
|
+
CancelOrderDecoupledSpecificsToJSON,
|
|
8131
|
+
CancelOrderDecoupledSpecifics,
|
|
7879
8132
|
CancelOrderParamsFromJSON,
|
|
7880
8133
|
CancelOrderParamsFromJSONTyped,
|
|
7881
8134
|
CancelOrderParamsToJSON,
|
|
@@ -7884,6 +8137,11 @@ declare namespace openApiClient {
|
|
|
7884
8137
|
CancelOrderParamsModeFromJSONTyped,
|
|
7885
8138
|
CancelOrderParamsModeToJSON,
|
|
7886
8139
|
CancelOrderParamsMode,
|
|
8140
|
+
CancelOrderResponseFromJSON,
|
|
8141
|
+
CancelOrderResponseFromJSONTyped,
|
|
8142
|
+
CancelOrderResponseToJSONRecursive,
|
|
8143
|
+
CancelOrderResponseToJSON,
|
|
8144
|
+
CancelOrderResponse,
|
|
7887
8145
|
CashAccountFromJSON,
|
|
7888
8146
|
CashAccountFromJSONTyped,
|
|
7889
8147
|
CashAccountToJSONRecursive,
|
|
@@ -7914,6 +8172,11 @@ declare namespace openApiClient {
|
|
|
7914
8172
|
ChangeOrderParamsToJSONRecursive,
|
|
7915
8173
|
ChangeOrderParamsToJSON,
|
|
7916
8174
|
ChangeOrderParams,
|
|
8175
|
+
ChangeOrderResponseFromJSON,
|
|
8176
|
+
ChangeOrderResponseFromJSONTyped,
|
|
8177
|
+
ChangeOrderResponseToJSONRecursive,
|
|
8178
|
+
ChangeOrderResponseToJSON,
|
|
8179
|
+
ChangeOrderResponse,
|
|
7917
8180
|
ClientConfigFromJSON,
|
|
7918
8181
|
ClientConfigFromJSONTyped,
|
|
7919
8182
|
ClientConfigToJSONRecursive,
|
|
@@ -12792,11 +13055,11 @@ export declare type TokenSet = {
|
|
|
12792
13055
|
*/
|
|
12793
13056
|
declare class TradeApi extends runtime.BaseAPI {
|
|
12794
13057
|
/**
|
|
12795
|
-
* Create a trade. It is possible that the broker rejects the order because of some extra hints that the user must accept (which can not be figured out in `prepareTrade`, e.g. because the order volume has to be determined first). In
|
|
13058
|
+
* Create a trade. It is possible that the broker rejects the order because of some extra hints that the user must accept (which can not be figured out in `prepareTrade`, e.g. because the order volume has to be determined first). In this case, the `MUST_ACCEPT_HINT` error code is returned. The user can choose to accept that hint. If that is the case, the request can be retried with the `acceptHintId` parameter.
|
|
12796
13059
|
*/
|
|
12797
13060
|
createTradeRaw(requestParameters: CreateTradeRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<CreateTradeResponse>>;
|
|
12798
13061
|
/**
|
|
12799
|
-
* Create a trade. It is possible that the broker rejects the order because of some extra hints that the user must accept (which can not be figured out in `prepareTrade`, e.g. because the order volume has to be determined first). In
|
|
13062
|
+
* Create a trade. It is possible that the broker rejects the order because of some extra hints that the user must accept (which can not be figured out in `prepareTrade`, e.g. because the order volume has to be determined first). In this case, the `MUST_ACCEPT_HINT` error code is returned. The user can choose to accept that hint. If that is the case, the request can be retried with the `acceptHintId` parameter.
|
|
12800
13063
|
*/
|
|
12801
13064
|
createTrade(requestParameters: CreateTradeRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<CreateTradeResponse>;
|
|
12802
13065
|
/**
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*/
|
|
11
11
|
import * as runtime from "../runtime";
|
|
12
|
-
import { CancelOrderChallengeParams, CancelOrderParams, Challenge } from "../models";
|
|
12
|
+
import { CancelOrderChallengeParams, CancelOrderParams, CancelOrderResponse, Challenge } from "../models";
|
|
13
13
|
export interface CancelOrderRequest {
|
|
14
14
|
id: string;
|
|
15
15
|
cancelOrderParams: CancelOrderParams;
|
|
@@ -23,13 +23,13 @@ export interface CreateCancelOrderChallengeRequest {
|
|
|
23
23
|
*/
|
|
24
24
|
export declare class CancelOrderApi extends runtime.BaseAPI {
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Cancel the given order (or in the case of decoupled authMethods: send the order cancellation to the user for confirmation. In this case, a decoupledOperationId is returned).
|
|
27
27
|
*/
|
|
28
|
-
cancelOrderRaw(requestParameters: CancelOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<
|
|
28
|
+
cancelOrderRaw(requestParameters: CancelOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<CancelOrderResponse>>;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Cancel the given order (or in the case of decoupled authMethods: send the order cancellation to the user for confirmation. In this case, a decoupledOperationId is returned).
|
|
31
31
|
*/
|
|
32
|
-
cancelOrder(requestParameters: CancelOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<
|
|
32
|
+
cancelOrder(requestParameters: CancelOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<CancelOrderResponse>;
|
|
33
33
|
/**
|
|
34
34
|
* If the user chose an auth method from `GetAuthInfo` with the flow `CHALLENGE_RESPONSE`, before cancelling an order, a challenge must be requested first. If any other flow is used, a challenge *must not* be requested and `CancelOrder` is used right away.
|
|
35
35
|
*/
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
import * as runtime from "../runtime";
|
|
14
|
-
import { CancelOrderChallengeParamsToJSON, CancelOrderParamsToJSON, ChallengeFromJSON, } from "../models";
|
|
14
|
+
import { CancelOrderChallengeParamsToJSON, CancelOrderParamsToJSON, CancelOrderResponseFromJSON, ChallengeFromJSON, } from "../models";
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
*/
|
|
18
18
|
export class CancelOrderApi extends runtime.BaseAPI {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Cancel the given order (or in the case of decoupled authMethods: send the order cancellation to the user for confirmation. In this case, a decoupledOperationId is returned).
|
|
21
21
|
*/
|
|
22
22
|
async cancelOrderRaw(requestParameters, initOverrides) {
|
|
23
23
|
if (requestParameters.id === null || requestParameters.id === undefined) {
|
|
@@ -48,13 +48,14 @@ export class CancelOrderApi extends runtime.BaseAPI {
|
|
|
48
48
|
query: queryParameters,
|
|
49
49
|
body: CancelOrderParamsToJSON(requestParameters.cancelOrderParams),
|
|
50
50
|
}, initOverrides);
|
|
51
|
-
return new runtime.
|
|
51
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => CancelOrderResponseFromJSON(jsonValue));
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Cancel the given order (or in the case of decoupled authMethods: send the order cancellation to the user for confirmation. In this case, a decoupledOperationId is returned).
|
|
55
55
|
*/
|
|
56
56
|
async cancelOrder(requestParameters, initOverrides) {
|
|
57
|
-
await this.cancelOrderRaw(requestParameters, initOverrides);
|
|
57
|
+
const response = await this.cancelOrderRaw(requestParameters, initOverrides);
|
|
58
|
+
return await response.value();
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
61
|
* If the user chose an auth method from `GetAuthInfo` with the flow `CHALLENGE_RESPONSE`, before cancelling an order, a challenge must be requested first. If any other flow is used, a challenge *must not* be requested and `CancelOrder` is used right away.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*/
|
|
11
11
|
import * as runtime from "../runtime";
|
|
12
|
-
import { Challenge, ChangeOrderChallengeParams, ChangeOrderParams, EstimateChangeOrderCostsParams, OrderCostEstimation } from "../models";
|
|
12
|
+
import { Challenge, ChangeOrderChallengeParams, ChangeOrderParams, ChangeOrderResponse, EstimateChangeOrderCostsParams, OrderCostEstimation } from "../models";
|
|
13
13
|
export interface ChangeOrderRequest {
|
|
14
14
|
id: string;
|
|
15
15
|
changeOrderParams: ChangeOrderParams;
|
|
@@ -29,11 +29,11 @@ export declare class ChangeOrderApi extends runtime.BaseAPI {
|
|
|
29
29
|
/**
|
|
30
30
|
* Perform an order change.
|
|
31
31
|
*/
|
|
32
|
-
changeOrderRaw(requestParameters: ChangeOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<
|
|
32
|
+
changeOrderRaw(requestParameters: ChangeOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<ChangeOrderResponse>>;
|
|
33
33
|
/**
|
|
34
34
|
* Perform an order change.
|
|
35
35
|
*/
|
|
36
|
-
changeOrder(requestParameters: ChangeOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<
|
|
36
|
+
changeOrder(requestParameters: ChangeOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<ChangeOrderResponse>;
|
|
37
37
|
/**
|
|
38
38
|
* If the user chose an auth method from `GetAuthInfo` with the flow `CHALLENGE_RESPONSE`, before changing an order, a challenge must be requested first. If any other flow is used, a challenge *must not* be requested and `ChangeOrder` is used right away.
|
|
39
39
|
*/
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* Do not edit the class manually.
|
|
12
12
|
*/
|
|
13
13
|
import * as runtime from "../runtime";
|
|
14
|
-
import { ChallengeFromJSON, ChangeOrderChallengeParamsToJSON, ChangeOrderParamsToJSON, EstimateChangeOrderCostsParamsToJSON, OrderCostEstimationFromJSON, } from "../models";
|
|
14
|
+
import { ChallengeFromJSON, ChangeOrderChallengeParamsToJSON, ChangeOrderParamsToJSON, ChangeOrderResponseFromJSON, EstimateChangeOrderCostsParamsToJSON, OrderCostEstimationFromJSON, } from "../models";
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
*/
|
|
@@ -48,13 +48,14 @@ export class ChangeOrderApi extends runtime.BaseAPI {
|
|
|
48
48
|
query: queryParameters,
|
|
49
49
|
body: ChangeOrderParamsToJSON(requestParameters.changeOrderParams),
|
|
50
50
|
}, initOverrides);
|
|
51
|
-
return new runtime.
|
|
51
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ChangeOrderResponseFromJSON(jsonValue));
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* Perform an order change.
|
|
55
55
|
*/
|
|
56
56
|
async changeOrder(requestParameters, initOverrides) {
|
|
57
|
-
await this.changeOrderRaw(requestParameters, initOverrides);
|
|
57
|
+
const response = await this.changeOrderRaw(requestParameters, initOverrides);
|
|
58
|
+
return await response.value();
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
61
|
* If the user chose an auth method from `GetAuthInfo` with the flow `CHALLENGE_RESPONSE`, before changing an order, a challenge must be requested first. If any other flow is used, a challenge *must not* be requested and `ChangeOrder` is used right away.
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
import * as runtime from "../runtime";
|
|
12
12
|
import { Challenge, CreateGuestUserResponse, CreateTanChallengeParams, DecoupledOperationStatus, EnableSessionTanParams, EnableSessionTanResponse, EndSessionTanResponse, GetAuthInfoResponse, GetOrderResponse, GetPortfolioOrdersResponse, GetPortfolioPositionsResponse, GetPortfolioQuotesResponse, GetPortfolioTradeStatisticsResponse, GetPortfolioTradesResponse, GetUserResponse, OkResponseBody, PortfoliosResponse, RenamePortfolioRequest, SessionResponse, TokenResponse, TradeWarning } from "../models";
|
|
13
13
|
export interface CancelDecoupledOperationRequest {
|
|
14
|
+
decoupledOperationId: string;
|
|
15
|
+
}
|
|
16
|
+
export interface CancelDecoupledOperationLegacyRequest {
|
|
14
17
|
sessionId: string;
|
|
15
18
|
decoupledOperationId: string;
|
|
16
19
|
}
|
|
@@ -32,6 +35,9 @@ export interface GetAuthInfoRequest {
|
|
|
32
35
|
portfolioId: string;
|
|
33
36
|
}
|
|
34
37
|
export interface GetDecoupledOperationStatusRequest {
|
|
38
|
+
decoupledOperationId: string;
|
|
39
|
+
}
|
|
40
|
+
export interface GetDecoupledOperationStatusLegacyRequest {
|
|
35
41
|
sessionId: string;
|
|
36
42
|
decoupledOperationId: string;
|
|
37
43
|
}
|
|
@@ -94,6 +100,14 @@ export declare class DefaultApi extends runtime.BaseAPI {
|
|
|
94
100
|
/**
|
|
95
101
|
*/
|
|
96
102
|
cancelDecoupledOperation(requestParameters: CancelDecoupledOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
|
|
103
|
+
/**
|
|
104
|
+
* Cancel a decoupled operation. This is deprecated, use the new `CancelDecoupledOperation` instead (which does not require the sessionId anymore).
|
|
105
|
+
*/
|
|
106
|
+
cancelDecoupledOperationLegacyRaw(requestParameters: CancelDecoupledOperationLegacyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
|
|
107
|
+
/**
|
|
108
|
+
* Cancel a decoupled operation. This is deprecated, use the new `CancelDecoupledOperation` instead (which does not require the sessionId anymore).
|
|
109
|
+
*/
|
|
110
|
+
cancelDecoupledOperationLegacy(requestParameters: CancelDecoupledOperationLegacyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
|
|
97
111
|
/**
|
|
98
112
|
* Create a guest user and return a token which can be used to access resources. The lifetime of the generated temporary user as well as the returned `access_token` depend on the client configuration. It is usually around 24 hours. For some clients, tokens can be expired earlier based on inactivity. If the client has configured a longer lifetime for their guest users, a `refresh_token` is included in the response. This token can be used to renew the `access_token` after it has expired. The `refresh_token` can be used to obtain a new `access_token` after the original token has expired using the `/user/token` endpoint.
|
|
99
113
|
*/
|
|
@@ -152,6 +166,14 @@ export declare class DefaultApi extends runtime.BaseAPI {
|
|
|
152
166
|
/**
|
|
153
167
|
*/
|
|
154
168
|
getDecoupledOperationStatus(requestParameters: GetDecoupledOperationStatusRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<DecoupledOperationStatus>;
|
|
169
|
+
/**
|
|
170
|
+
* Get the status of a decoupled operation. This is deprecated, use the new `GetDecoupledOperation` instead, which does not require the `sessionId` any more.
|
|
171
|
+
*/
|
|
172
|
+
getDecoupledOperationStatusLegacyRaw(requestParameters: GetDecoupledOperationStatusLegacyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<DecoupledOperationStatus>>;
|
|
173
|
+
/**
|
|
174
|
+
* Get the status of a decoupled operation. This is deprecated, use the new `GetDecoupledOperation` instead, which does not require the `sessionId` any more.
|
|
175
|
+
*/
|
|
176
|
+
getDecoupledOperationStatusLegacy(requestParameters: GetDecoupledOperationStatusLegacyRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<DecoupledOperationStatus>;
|
|
155
177
|
/**
|
|
156
178
|
*/
|
|
157
179
|
getOrderRaw(requestParameters: GetOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<GetOrderResponse>>;
|