mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-07 01:39:07 +00:00
15
types/paypal-rest-sdk/index.d.ts
vendored
15
types/paypal-rest-sdk/index.d.ts
vendored
@@ -132,6 +132,7 @@ export interface QueryParameters {
|
||||
webhook_id?: string;
|
||||
page?: number;
|
||||
total_count_required?: boolean;
|
||||
status?: string[];
|
||||
}
|
||||
|
||||
export interface Link {
|
||||
@@ -447,7 +448,7 @@ export namespace invoice {
|
||||
}
|
||||
interface Invoice {
|
||||
allow_tip?: boolean;
|
||||
billing_info?: BillingInfo;
|
||||
billing_info?: [BillingInfo];
|
||||
discount?: Cost;
|
||||
shipping_cost?: ShippingCost;
|
||||
readonly id?: string;
|
||||
@@ -455,7 +456,16 @@ export namespace invoice {
|
||||
items?: InvoiceItem[];
|
||||
merchant_info?: Merchant;
|
||||
readonly metadata?: {
|
||||
created_date: string;
|
||||
created_date?: string;
|
||||
created_by?: string;
|
||||
cancelled_date?: string;
|
||||
cancelled_by?: string;
|
||||
last_updated_date?: string;
|
||||
last_updated_by?: string;
|
||||
first_sent_date?: string;
|
||||
last_sent_date?: string;
|
||||
last_sent_by?: string;
|
||||
payer_view_url?: string;
|
||||
};
|
||||
note?: string;
|
||||
number?: string;
|
||||
@@ -507,6 +517,7 @@ export namespace invoice {
|
||||
email?: string;
|
||||
language?: string;
|
||||
notification_channel?: string;
|
||||
additional_info?: string;
|
||||
}
|
||||
interface InvoiceItem {
|
||||
name: string;
|
||||
|
||||
@@ -434,11 +434,12 @@ const minInvoice: paypal.invoice.Invoice = {};
|
||||
// Max Invoice
|
||||
const maxInvoice: paypal.invoice.Invoice = {
|
||||
allow_tip: true,
|
||||
billing_info: {
|
||||
billing_info: [{
|
||||
email: 'asfd',
|
||||
language: 'string',
|
||||
notification_channel: 'string',
|
||||
},
|
||||
additional_info: 'string',
|
||||
}],
|
||||
discount: {
|
||||
percent: 2,
|
||||
amount: {
|
||||
|
||||
Reference in New Issue
Block a user