Merge pull request #30250 from olshansky/feat/payer_info-type

[@types/paypal-rest-sdk] add payer_info type
This commit is contained in:
Armando Aguirre
2018-11-08 13:37:52 -08:00
committed by GitHub

View File

@@ -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[];
}