title: Is it able to rollback Stripe update
body: <p>I was asked to increase the amount of all plan in Stripe. So I wrote the following script in ruby to delete old plan and create new plan with the same id with different amount:</p>
  
  <pre><code>    for stripe_plan in Stripe::Plan.list
  
        new_amount = (stripe_plan.amount*1.1).floor
  
        Stripe::Plan.delete(stripe_plan.id)
  
        new_stripe_plan = Stripe::Plan.create(
          nickname: stripe_plan.nickname,
          amount: new_amount,
          interval: stripe_plan.interval,
          currency: stripe_plan.currency,
          product: stripe_plan.product
        )
  </code></pre>
  
  <p>The problem is if one fails (most likely not), it might result in some plans are updated and others are not, which is not consistent.</p>
  
  <p>The question is: Is there any transaction method to rollback Stripe create, update, delete when it fails?</p>
  
  <p>If this is not a question for stackoverflow, please comment, I will delete this.</p>