UNPKG

@hyperse/paypal-node-sdk

Version:

NodeJS SDK for PayPal Checkout APIs

22 lines (21 loc) 882 B
import { type AccessTokenRequestHeaders } from './AccessTokenRequest.js'; import { HttpRequestBase } from './HttpRequestBase.js'; import { type PayPalEnvironment } from './PayPalEnvironment.js'; export type RefreshTokenRequestBody = { code: string; grant_type: string; }; /** * An OAuth2 refresh token request, granted from user consent. * * Documentation * * @see {@link https://github.com/hyperse-io/paypal-node-sdk/tree/main/src/core/RefreshTokenRequest.ts} */ export declare class RefreshTokenRequest extends HttpRequestBase<AccessTokenRequestHeaders, RefreshTokenRequestBody> { /** * @param {PayPalEnvironment} environment - The environment for this request (sandbox or live) * @param {string} code - The authorization code provided at the end of the user consent OAuth flow. */ constructor(environment: PayPalEnvironment, code: string); }