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

Subscription.get has too many required params #9

Open
riveramj opened this issue Jan 29, 2017 · 1 comment
Open

Subscription.get has too many required params #9

riveramj opened this issue Jan 29, 2017 · 1 comment

Comments

@riveramj
Copy link
Collaborator

Was getting a subscription w/just a subscriptionId as noted here https://stripe.com/docs/api#retrieve_subscription but I had to give the userId as well to get streifen to play nice.

Error:

[error] /Users/MJR/dev/myPetDefense/src/main/scala/com/mypetdefense/service/ParentService.scala:182: not enough arguments for method get: (parentId: String, id: String)(implicit exec: me.frmr.stripe.StripeExecutor, implicit mf: Manifest[me.frmr.stripe.Subscription])dispatch.Future[net.liftweb.common.Box[me.frmr.stripe.Subscription]].
[error] Unspecified value parameter id.
[error] Await.result(StripeSubscription.get(subscriptionId), new DurationInt(10).seconds)

solution:

def getStripeSubscription(stripeCustomerId: String, subscriptionId: String): Box[StripeSubscription] = {
Try(
Await.result(StripeSubscription.get(stripeCustomerId, subscriptionId), new DurationInt(10).seconds)

I think it should just be subscriptionId unless I'm missing something.

@farmdawgnation
Copy link
Owner

Subscriptions weren't always first class objects. It looks like in the latest API, they are.

So yeah, that needs to change. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants