Sha256: e2eee871b62995f44ac8555f98d4eab42a3588728e9a4417f502920cb7d1615e
Contents?: true
Size: 1.15 KB
Versions: 2
Compression:
Stored size: 1.15 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe # Shipping rates describe the price of shipping presented to your customers and # applied to a purchase. For more information, see [Charge for shipping](https://stripe.com/docs/payments/during-payment/charge-shipping). class ShippingRate < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List include Stripe::APIOperations::Save OBJECT_NAME = "shipping_rate" # Creates a new shipping rate object. def self.create(params = {}, opts = {}) request_stripe_object(method: :post, path: "/v1/shipping_rates", params: params, opts: opts) end # Returns a list of your shipping rates. def self.list(filters = {}, opts = {}) request_stripe_object(method: :get, path: "/v1/shipping_rates", params: filters, opts: opts) end # Updates an existing shipping rate object. def self.update(id, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/shipping_rates/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stripe-10.9.0.pre.beta.1 | lib/stripe/resources/shipping_rate.rb |
stripe-10.8.0 | lib/stripe/resources/shipping_rate.rb |