Sha256: 645933a0bf3a762ed4af9203aea52e3f8020bd90fd05ca605e3b257494fa0921
Contents?: true
Size: 1.74 KB
Versions: 9
Compression:
Stored size: 1.74 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module Climate # Orders represent your intent to purchase a particular Climate product. When you create an order, the # payment is deducted from your merchant balance. class Order < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List include Stripe::APIOperations::Save OBJECT_NAME = "climate.order" # Cancels a Climate order. You can cancel an order within 30 days of creation. Stripe refunds the # reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier # might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe # provides 90 days advance notice and refunds the amount_total. def cancel(params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/climate/orders/%<order>s/cancel", { order: CGI.escape(self["id"]) }), params: params, opts: opts ) end # Cancels a Climate order. You can cancel an order within 30 days of creation. Stripe refunds the # reservation amount_subtotal, but not the amount_fees for user-triggered cancellations. Frontier # might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe # provides 90 days advance notice and refunds the amount_total. def self.cancel(order, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/climate/orders/%<order>s/cancel", { order: CGI.escape(order) }), params: params, opts: opts ) end end end end
Version data entries
9 entries across 9 versions & 1 rubygems