The endpoint /v1/billing/subscriptions/${subscriptionId} provides email_address, and it works fine in the old paypal-rest-sdk package, but after porting to @paypal/paypal-server-sdk the field emailAddress is missing from the subscriber model
https://github.com/paypal/PayPal-TypeScript-Server-SDK/blob/main/src/models/subscriber.ts
To reproduce
const { result: subscription } = await subscriptionsController.getSubscription({
id: subscriptionId
})
// now emailAddress is empty
let emailAddress = subscription.subscriber.emailAddress
The endpoint
/v1/billing/subscriptions/${subscriptionId}provides email_address, and it works fine in the oldpaypal-rest-sdkpackage, but after porting to@paypal/paypal-server-sdkthe field emailAddress is missing from the subscriber modelhttps://github.com/paypal/PayPal-TypeScript-Server-SDK/blob/main/src/models/subscriber.ts
To reproduce