mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-07-26 00:00:46 -04:00
Compare commits
1 Commits
f3443fe079
...
ffd75665a1
Author | SHA1 | Date | |
---|---|---|---|
|
ffd75665a1 |
@ -1 +1 @@
|
||||
v682
|
||||
v670
|
@ -29,9 +29,6 @@ module Stripe
|
||||
CashBalance::OBJECT_NAME => CashBalance,
|
||||
Charge::OBJECT_NAME => Charge,
|
||||
Checkout::Session::OBJECT_NAME => Checkout::Session,
|
||||
Climate::Order::OBJECT_NAME => Climate::Order,
|
||||
Climate::Product::OBJECT_NAME => Climate::Product,
|
||||
Climate::Supplier::OBJECT_NAME => Climate::Supplier,
|
||||
CountrySpec::OBJECT_NAME => CountrySpec,
|
||||
Coupon::OBJECT_NAME => Coupon,
|
||||
CreditNote::OBJECT_NAME => CreditNote,
|
||||
|
@ -18,9 +18,6 @@ require "stripe/resources/card"
|
||||
require "stripe/resources/cash_balance"
|
||||
require "stripe/resources/charge"
|
||||
require "stripe/resources/checkout/session"
|
||||
require "stripe/resources/climate/order"
|
||||
require "stripe/resources/climate/product"
|
||||
require "stripe/resources/climate/supplier"
|
||||
require "stripe/resources/country_spec"
|
||||
require "stripe/resources/coupon"
|
||||
require "stripe/resources/credit_note"
|
||||
|
@ -1,34 +0,0 @@
|
||||
# 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"
|
||||
|
||||
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
|
||||
|
||||
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
|
@ -1,14 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
module Climate
|
||||
# A Climate product represents a type of carbon removal unit available for reservation.
|
||||
# You can retrieve it to see the current price and availability.
|
||||
class Product < APIResource
|
||||
extend Stripe::APIOperations::List
|
||||
|
||||
OBJECT_NAME = "climate.product"
|
||||
end
|
||||
end
|
||||
end
|
@ -1,13 +0,0 @@
|
||||
# File generated from our OpenAPI spec
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Stripe
|
||||
module Climate
|
||||
# A supplier of carbon removal.
|
||||
class Supplier < APIResource
|
||||
extend Stripe::APIOperations::List
|
||||
|
||||
OBJECT_NAME = "climate.supplier"
|
||||
end
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user