diff --git a/types/paypal-rest-sdk/index.d.ts b/types/paypal-rest-sdk/index.d.ts index d6457fc981..0d2eea80a9 100644 --- a/types/paypal-rest-sdk/index.d.ts +++ b/types/paypal-rest-sdk/index.d.ts @@ -258,6 +258,22 @@ export interface Item { url?: string; } +export interface PayerInfo { + email?: string; + readonly salutation?: string; + readonly first_name?: string; + readonly middle_name?: string; + readonly last_name?: string; + readonly suffix?: string; + readonly payer_id?: string; + birth_date?: string; + tax_id?: string; + tax_id_type?: string; + country_code?: string; + billing_address?: Address; + readonly shipping_address?: Address; +} + export interface RefundRequest { amount?: Amount; description?: string; @@ -266,8 +282,7 @@ export interface RefundRequest { invoice_number?: string; refund_advice?: boolean; items?: Item[]; - // TODO: Type this https://developer.paypal.com/docs/api/payments/#definition-payer_info - payer_info?: any; + payer_info?: PayerInfo; supplementary_data?: any[]; }