@lorenstuff/paypal-api
Advanced tools
@@ -0,1 +1,8 @@ | ||
## 0.1.4 | ||
* **[BREAKING CHANGE]** Renamed `PayPalPayPalPaymentObject` to `PayPalWalletResponse`. | ||
* This is a better name that I did not notice on PayPal's confusing, badly laid out documentation. | ||
* Also fixed a mistake where the properties of this object were not optional. | ||
* Fixed a mistake where the properties of a `PayPalWallet` were not optional. | ||
## 0.1.3 | ||
@@ -2,0 +9,0 @@ |
@@ -424,12 +424,12 @@ import { PayPalHATEOASLink } from "./Shared.js"; | ||
/** The PayPal Wallet response. */ | ||
paypal?: PayPalPayPalPaymentObject | PayPalWallet; | ||
paypal?: PayPalWalletResponse | PayPalWallet; | ||
} | ||
/** The PayPal wallet response. */ | ||
export interface PayPalPayPalPaymentObject { | ||
export interface PayPalWalletResponse { | ||
/** The phone type. */ | ||
phone_type: PayPalPhoneType; | ||
phone_type?: PayPalPhoneType; | ||
/** The email address of the PayPal account holder. */ | ||
email_address: string; | ||
email_address?: string; | ||
/** The PayPal-assigned ID for the PayPal account holder. */ | ||
account_id: string; | ||
account_id?: string; | ||
/** | ||
@@ -440,3 +440,3 @@ * The name of the PayPal account holder. | ||
*/ | ||
name: PayPalName; | ||
name?: PayPalName; | ||
/** | ||
@@ -449,5 +449,5 @@ * The phone number, in its canonical international E.164 numbering plan format. | ||
*/ | ||
phone_number: PayPalPhone; | ||
phone_number?: PayPalPhone; | ||
/** The birth date of the PayPal account holder in YYYY-MM-DD format. */ | ||
birth_date: string; | ||
birth_date?: string; | ||
/** | ||
@@ -460,3 +460,3 @@ * The tax information of the PayPal account holder. | ||
*/ | ||
tax_info: PayPalTaxInformation; | ||
tax_info?: PayPalTaxInformation; | ||
/** | ||
@@ -469,3 +469,3 @@ * The address of the PayPal account holder. | ||
*/ | ||
address: PayPalPortablePostalAddress; | ||
address?: PayPalPortablePostalAddress; | ||
} | ||
@@ -681,3 +681,3 @@ /** The phone number in its canonical international E.164 numbering plan format. */ | ||
*/ | ||
experience_context: PayPalWalletExperienceContext; | ||
experience_context?: PayPalWalletExperienceContext; | ||
/** | ||
@@ -688,3 +688,3 @@ * The email address of the PayPal account holder. | ||
*/ | ||
email_address: string; | ||
email_address?: string; | ||
/** | ||
@@ -695,5 +695,5 @@ * The name of the PayPal account holder. | ||
*/ | ||
name: PayPalName; | ||
name?: PayPalName; | ||
/** The birth date of the PayPal account holder in YYYY-MM-DD format. */ | ||
birth_date: string; | ||
birth_date?: string; | ||
/** | ||
@@ -706,3 +706,3 @@ * The tax information of the PayPal account holder. | ||
*/ | ||
tax_info: PayPalTaxInformation; | ||
tax_info?: PayPalTaxInformation; | ||
/** | ||
@@ -715,3 +715,3 @@ * The address of the PayPal account holder. | ||
*/ | ||
address: PayPalPortablePostalAddress; | ||
address?: PayPalPortablePostalAddress; | ||
} | ||
@@ -718,0 +718,0 @@ /** Customizes the payer experience during the approval process for payment with PayPal. */ |
{ | ||
"name": "@lorenstuff/paypal-api", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "A library for interacting with PayPal's API.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
77335
0.48%