Stripe::ShippingRatesApi
Constants
Constructors
Instance methods
@return Crest::Request
@return Crest::Request
@return Crest::Request
@return Crest::Request
Returns a list of your shipping rates.
@optional @param ending_before [String?] A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. @optional @param starting_after [String?] A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. @optional @param created [Stripe::GetAccountsCreatedParameter?] A filter on the list, based on the object `created` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options. @optional @param limit [Int32?] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. @optional @param currency [String?] Only return shipping rates for the given currency. @optional @param active [Bool?] Only return shipping rates that are active or inactive. @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Stripe::ShippingResourcesShippingRateList]<p>Returns a list of your shipping rates.</p>
@optional @param ending_before [String?] A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include ending_before=obj_bar in order to fetch the previous page of the list.
@optional @param starting_after [String?] A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list.
@optional @param created [Stripe::GetAccountsCreatedParameter?] A filter on the list, based on the object created field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.
@optional @param limit [Int32?] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
@optional @param currency [String?] Only return shipping rates for the given currency.
@optional @param active [Bool?] Only return shipping rates that are active or inactive.
@optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded.
@return nil
Returns the shipping rate object with the given ID.
@required @param shipping_rate_token [String?] @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Stripe::ShippingRate]<p>Returns the shipping rate object with the given ID.</p> @required @param shipping_rate_token [String?] @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return nil
<p>Returns the shipping rate object with the given ID.</p> @required @param shipping_rate_token [String?] @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Tuple(Stripe::ShippingRate, Integer, Hash)] Stripe::ShippingRate, response status code and response headers
<p>Returns a list of your shipping rates.</p>
@optional @param ending_before [String?] A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_bar, your subsequent call can include ending_before=obj_bar in order to fetch the previous page of the list.
@optional @param starting_after [String?] A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include starting_after=obj_foo in order to fetch the next page of the list.
@optional @param created [Stripe::GetAccountsCreatedParameter?] A filter on the list, based on the object created field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with a number of different query options.
@optional @param limit [Int32?] A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
@optional @param currency [String?] Only return shipping rates for the given currency.
@optional @param active [Bool?] Only return shipping rates that are active or inactive.
@optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded.
@return [Tuple(Stripe::ShippingResourcesShippingRateList, Integer, Hash)] Stripe::ShippingResourcesShippingRateList, response status code and response headers
Creates a new shipping rate object.
@required @param display_name [String?] The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions. @optional @param delivery_estimate [Stripe::DeliveryEstimate?] @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @optional @param fixed_amount [Stripe::FixedAmount?] @optional @param metadata [Hash(String, String)?] @optional @param tax_behavior [String?] Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. @optional @param tax_code [String?] A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`. @optional @param _type [String?] The type of calculation to use on the shipping rate. @return [Stripe::ShippingRate]<p>Creates a new shipping rate object.</p>
@required @param display_name [String?] The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
@optional @param delivery_estimate [Stripe::DeliveryEstimate?]
@optional @param expand [Array(String)?] Specifies which fields in the response should be expanded.
@optional @param fixed_amount [Stripe::FixedAmount?]
@optional @param metadata [Hash(String, String)?]
@optional @param tax_behavior [String?] Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified.
@optional @param tax_code [String?] A tax code ID. The Shipping tax code is txcd_92010001.
@optional @param _type [String?] The type of calculation to use on the shipping rate.
@return nil
Updates an existing shipping rate object.
@required @param shipping_rate_token [String?] @optional @param active [Bool?] Whether the shipping rate can be used for new purchases. Defaults to `true`. @optional @param expand [Array(String)?] Specifies which fields in the response should be expanded. @optional @param fixed_amount [Stripe::FixedAmountUpdate?] @optional @param metadata [Stripe::PostAccountsRequestMetadata?] @optional @param tax_behavior [String?] Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. @return [Stripe::ShippingRate]<p>Updates an existing shipping rate object.</p>
@required @param shipping_rate_token [String?]
@optional @param active [Bool?] Whether the shipping rate can be used for new purchases. Defaults to true.
@optional @param expand [Array(String)?] Specifies which fields in the response should be expanded.
@optional @param fixed_amount [Stripe::FixedAmountUpdate?]
@optional @param metadata [Stripe::PostAccountsRequestMetadata?]
@optional @param tax_behavior [String?] Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified.
@return nil
<p>Updates an existing shipping rate object.</p>
@required @param shipping_rate_token [String?]
@optional @param active [Bool?] Whether the shipping rate can be used for new purchases. Defaults to true.
@optional @param expand [Array(String)?] Specifies which fields in the response should be expanded.
@optional @param fixed_amount [Stripe::FixedAmountUpdate?]
@optional @param metadata [Stripe::PostAccountsRequestMetadata?]
@optional @param tax_behavior [String?] Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified.
@return [Tuple(Stripe::ShippingRate, Integer, Hash)] Stripe::ShippingRate, response status code and response headers
<p>Creates a new shipping rate object.</p>
@required @param display_name [String?] The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
@optional @param delivery_estimate [Stripe::DeliveryEstimate?]
@optional @param expand [Array(String)?] Specifies which fields in the response should be expanded.
@optional @param fixed_amount [Stripe::FixedAmount?]
@optional @param metadata [Hash(String, String)?]
@optional @param tax_behavior [String?] Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of inclusive, exclusive, or unspecified.
@optional @param tax_code [String?] A tax code ID. The Shipping tax code is txcd_92010001.
@optional @param _type [String?] The type of calculation to use on the shipping rate.
@return [Tuple(Stripe::ShippingRate, Integer, Hash)] Stripe::ShippingRate, response status code and response headers