Skip to content

Subscriber is missing emailAddress #56

@DVLP

Description

@DVLP

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions