question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

<Resource>.update method as alternative to retrieve -> update

See original GitHub issue

It would be great to have an update method on resource classes directly. This would save one unnecessary request.

Example:

CustomerUpdateParams params = ...;
Customer.update(id, params);

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
remi-stripecommented, Jun 3, 2020

@soutchay I would not recommend doing it this way because we could make change to the infrastructure that would break your integration. You could, but you’d need to make sure that whenever you upgrade your version of stripe-java, even with a minor version, you triple check that we are not causing a regression for your code.

We are definitely aware of this limitation. We just shipped client/services in stripe-php 2 weeks ago and we do hope to revamp the stripe-java library in the future to make this easier too.

0reactions
soutchaycommented, Jun 3, 2020

Thank you for the quick response and recommendation! I look forward to the stripe-java library revamp

Read more comments on GitHub >

github_iconTop Results From Across the Web

Laravel Resource Controller update method not firing
It seems the update function is not firing at all, which I think means there is something wrong with the action attribute in...
Read more >
Update behaviors of stack resources - AWS CloudFormation
When you submit an update, AWS CloudFormation updates resources based on differences between what you submit and the stack's current template.
Read more >
Using HTTP Methods for RESTful Services - REST API Tutorial
HTTP methods tutorial on how to use them for RESTful API or Web Service. ... These correspond to create, read, update, and delete...
Read more >
15. Resource - update() method in Laravel - YouTube
Editing the HTML form for put/ patch method. done Step 3. Deciding the route in HTML Form so as to submit it and...
Read more >
Implement Resource Update | Terraform - HashiCorp Developer
Implement resource update. This update method uses the HashiCups client library to invoke a PUT request to the /orders/{orderId} endpoint with the updated...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found