/** * Selling Partner API for Authorization * The Selling Partner API for Authorization helps developers manage authorizations and check the specific permissions associated with a given authorization. * * The version of the OpenAPI document: v1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { Configuration } from './configuration'; import { AxiosPromise, AxiosInstance } from 'axios'; import { RequestArgs, BaseAPI } from './base'; /** * A Login with Amazon (LWA) authorization code. * @export * @interface AuthorizationCode */ export interface AuthorizationCode { /** * A Login with Amazon (LWA) authorization code that can be exchanged for a refresh token and access token that authorize you to make calls to a Selling Partner API. * @type {string} * @memberof AuthorizationCode */ authorizationCode?: string; } /** * The response schema for the GetAuthorizationCode operation. * @export * @interface GetAuthorizationCodeResponse */ export interface GetAuthorizationCodeResponse { /** * * @type {AuthorizationCode} * @memberof GetAuthorizationCodeResponse */ payload?: AuthorizationCode; /** * A list of error responses returned when a request is unsuccessful. * @type {Array} * @memberof GetAuthorizationCodeResponse */ errors?: Array; } /** * Error response returned when the request is unsuccessful. * @export * @interface ModelError */ export interface ModelError { /** * An error code that identifies the type of error that occurred. * @type {string} * @memberof ModelError */ code: string; /** * A message that describes the error condition in a human-readable form. * @type {string} * @memberof ModelError */ message: string; /** * Additional details that can help the caller understand or fix the issue. * @type {string} * @memberof ModelError */ details?: string; } /** * AuthorizationApi - axios parameter creator * @export */ export declare const AuthorizationApiAxiosParamCreator: (configuration?: Configuration) => { /** * With the getAuthorizationCode operation, you can request a Login With Amazon (LWA) authorization code that will allow you to call a Selling Partner API on behalf of a seller who has already authorized you to call Amazon Marketplace Web Service (Amazon MWS). You specify a developer ID, an MWS auth token, and a seller ID. Taken together, these represent the Amazon MWS authorization that the seller previously granted you. The operation returns an LWA authorization code that can be exchanged for a refresh token and access token representing authorization to call the Selling Partner API on the seller\'s behalf. By using this API, sellers who have already authorized you for Amazon MWS do not need to re-authorize you for the Selling Partner API. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. * @summary Returns the Login with Amazon (LWA) authorization code for an existing Amazon MWS authorization. * @param {string} sellingPartnerId The seller ID of the seller for whom you are requesting Selling Partner API authorization. This must be the seller ID of the seller who authorized your application on the Marketplace Appstore. * @param {string} developerId Your developer ID. This must be one of the developer ID values that you provided when you registered your application in Developer Central. * @param {string} mwsAuthToken The MWS Auth Token that was generated when the seller authorized your application on the Marketplace Appstore. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAuthorizationCode: (sellingPartnerId: string, developerId: string, mwsAuthToken: string, options?: any) => Promise; }; /** * AuthorizationApi - functional programming interface * @export */ export declare const AuthorizationApiFp: (configuration?: Configuration) => { /** * With the getAuthorizationCode operation, you can request a Login With Amazon (LWA) authorization code that will allow you to call a Selling Partner API on behalf of a seller who has already authorized you to call Amazon Marketplace Web Service (Amazon MWS). You specify a developer ID, an MWS auth token, and a seller ID. Taken together, these represent the Amazon MWS authorization that the seller previously granted you. The operation returns an LWA authorization code that can be exchanged for a refresh token and access token representing authorization to call the Selling Partner API on the seller\'s behalf. By using this API, sellers who have already authorized you for Amazon MWS do not need to re-authorize you for the Selling Partner API. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. * @summary Returns the Login with Amazon (LWA) authorization code for an existing Amazon MWS authorization. * @param {string} sellingPartnerId The seller ID of the seller for whom you are requesting Selling Partner API authorization. This must be the seller ID of the seller who authorized your application on the Marketplace Appstore. * @param {string} developerId Your developer ID. This must be one of the developer ID values that you provided when you registered your application in Developer Central. * @param {string} mwsAuthToken The MWS Auth Token that was generated when the seller authorized your application on the Marketplace Appstore. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAuthorizationCode(sellingPartnerId: string, developerId: string, mwsAuthToken: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * AuthorizationApi - factory interface * @export */ export declare const AuthorizationApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * With the getAuthorizationCode operation, you can request a Login With Amazon (LWA) authorization code that will allow you to call a Selling Partner API on behalf of a seller who has already authorized you to call Amazon Marketplace Web Service (Amazon MWS). You specify a developer ID, an MWS auth token, and a seller ID. Taken together, these represent the Amazon MWS authorization that the seller previously granted you. The operation returns an LWA authorization code that can be exchanged for a refresh token and access token representing authorization to call the Selling Partner API on the seller\'s behalf. By using this API, sellers who have already authorized you for Amazon MWS do not need to re-authorize you for the Selling Partner API. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. * @summary Returns the Login with Amazon (LWA) authorization code for an existing Amazon MWS authorization. * @param {string} sellingPartnerId The seller ID of the seller for whom you are requesting Selling Partner API authorization. This must be the seller ID of the seller who authorized your application on the Marketplace Appstore. * @param {string} developerId Your developer ID. This must be one of the developer ID values that you provided when you registered your application in Developer Central. * @param {string} mwsAuthToken The MWS Auth Token that was generated when the seller authorized your application on the Marketplace Appstore. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAuthorizationCode(sellingPartnerId: string, developerId: string, mwsAuthToken: string, options?: any): AxiosPromise; }; /** * Request parameters for getAuthorizationCode operation in AuthorizationApi. * @export * @interface AuthorizationApiGetAuthorizationCodeRequest */ export interface AuthorizationApiGetAuthorizationCodeRequest { /** * The seller ID of the seller for whom you are requesting Selling Partner API authorization. This must be the seller ID of the seller who authorized your application on the Marketplace Appstore. * @type {string} * @memberof AuthorizationApiGetAuthorizationCode */ readonly sellingPartnerId: string; /** * Your developer ID. This must be one of the developer ID values that you provided when you registered your application in Developer Central. * @type {string} * @memberof AuthorizationApiGetAuthorizationCode */ readonly developerId: string; /** * The MWS Auth Token that was generated when the seller authorized your application on the Marketplace Appstore. * @type {string} * @memberof AuthorizationApiGetAuthorizationCode */ readonly mwsAuthToken: string; } /** * AuthorizationApi - object-oriented interface * @export * @class AuthorizationApi * @extends {BaseAPI} */ export declare class AuthorizationApi extends BaseAPI { /** * With the getAuthorizationCode operation, you can request a Login With Amazon (LWA) authorization code that will allow you to call a Selling Partner API on behalf of a seller who has already authorized you to call Amazon Marketplace Web Service (Amazon MWS). You specify a developer ID, an MWS auth token, and a seller ID. Taken together, these represent the Amazon MWS authorization that the seller previously granted you. The operation returns an LWA authorization code that can be exchanged for a refresh token and access token representing authorization to call the Selling Partner API on the seller\'s behalf. By using this API, sellers who have already authorized you for Amazon MWS do not need to re-authorize you for the Selling Partner API. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 5 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation. * @summary Returns the Login with Amazon (LWA) authorization code for an existing Amazon MWS authorization. * @param {AuthorizationApiGetAuthorizationCodeRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AuthorizationApi */ getAuthorizationCode(requestParameters: AuthorizationApiGetAuthorizationCodeRequest, options?: any): Promise>; }