chrisvdm / redwoodjs-stripe

A Redwood/Stripe integration made easy
MIT License
46 stars 7 forks source link

Improvement: allow additional props #123

Open chrisvdm opened 1 year ago

chrisvdm commented 1 year ago

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"