UNPKG

@hyperse/paypal-node-sdk

Version:

NodeJS SDK for PayPal Checkout APIs

26 lines (25 loc) 1.23 kB
import { HttpRequestBase } from '../core/HttpRequestBase.js'; import { type BasePaymentHeaders, type Money } from '../types/type-payment.js'; type AuthorizationsReauthorizeRequestBody = { amount: Money; }; export interface AuthorizationsReauthorizeRequestHeaders extends BasePaymentHeaders { 'PayPal-Request-Id'?: string; Prefer?: string; } /** * Authorizations Reauthorize * @see {@link https://developer.paypal.com/api/payments/v2/#authorizations_reauthorize} */ export declare class AuthorizationsReauthorizeRequest extends HttpRequestBase<AuthorizationsReauthorizeRequestHeaders, AuthorizationsReauthorizeRequestBody> { constructor(authorizationId: string); payPalRequestId(payPalRequestId: string): this; /** * 1. return=minimal. The server returns a minimal response to optimize communication between the API caller and the server. A minimal response includes the id, status and HATEOAS links. * 2. return=representation. The server returns a complete resource representation, including the current state of the resource. * @default `return=minimal` */ prefer(prefer: string): this; requestBody(reauthorizeRequest: AuthorizationsReauthorizeRequestBody): this; } export {};