mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Merge pull request #30250 from olshansky/feat/payer_info-type
[@types/paypal-rest-sdk] add payer_info type
This commit is contained in:
19
types/paypal-rest-sdk/index.d.ts
vendored
19
types/paypal-rest-sdk/index.d.ts
vendored
@@ -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[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user