Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement: allow additional props #123

Open
chrisvdm opened this issue Aug 10, 2023 · 0 comments
Open

Improvement: allow additional props #123

chrisvdm opened this issue Aug 10, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@chrisvdm
Copy link
Owner

Problem: Need a way to pass Stripe additional properties like when items need to be expanded
Solution: update sdl to accept a data param that accepts the "payload" and additional properties for Stripe
example

retrieveStripeCustomer(customerID, {expand: ['subscriptions']})

translates to

variables: {
  data: {
    id: customerID,
    addProps: {expand: ['subscriptions']}
  }
}

or something like that

*This does not apply to listing functions like listStripeSubscriptions. Additional properties are passed in the "payload"

@chrisvdm chrisvdm added the enhancement New feature or request label Aug 10, 2023
@chrisvdm chrisvdm added this to To do in redwoodjs-stripe Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant