UNPKG

paypal-rest-api

Version:

A typescript module for integrating with PayPal REST APIs.

40 lines (39 loc) 884 B
import { RequestOptions } from "../client"; export interface IConfigureOptions { client_id: string; client_secret: string; mode: string; requestOptions?: Partial<RequestOptions>; } export interface IAddress { line1: string; line2?: string; city: string; country_code: string; postal_code: string; state: string; phone?: IPhone; readonly normalization_status?: string; type?: string; recipient_name?: string; } export interface IPhone { country_code: string; national_number: string; } export interface IResponse { readonly httpStatusCode: number; readonly create_time?: string; readonly count?: number; readonly total_count?: number; } export interface IUpdateRequest { op: string; path: string; value: any; } export interface ILink { href: string; method: string; rel: string; }