Class: Recurly::Requests::SubscriptionShippingPurchase
- Inherits:
-
Recurly::Request
- Object
- Recurly::Request
- Recurly::Requests::SubscriptionShippingPurchase
- Defined in:
- lib/recurly/requests/subscription_shipping_purchase.rb
Instance Attribute Summary collapse
-
#amount ⇒ Float
Assigns the subscription's shipping cost.
-
#method_code ⇒ String
The code of the shipping method used to deliver the subscription.
-
#method_id ⇒ String
The id of the shipping method used to deliver the subscription.
Attributes inherited from Recurly::Request
Method Summary
Methods inherited from Recurly::Request
Methods included from Schema::SchemaFactory
Methods included from Schema::RequestCaster
Methods included from Schema::ResourceCaster
Methods included from Schema::SchemaValidator
#get_did_you_mean, #validate!, #validate_attribute!
Instance Attribute Details
#amount ⇒ Float
Returns Assigns the subscription's shipping cost. If this is greater than zero then a `method_id` or `method_code` is required.
11 |
# File 'lib/recurly/requests/subscription_shipping_purchase.rb', line 11 define_attribute :amount, Float |
#method_code ⇒ String
Returns The code of the shipping method used to deliver the subscription. If `method_id` and `method_code` are both present, `method_id` will be used.
15 |
# File 'lib/recurly/requests/subscription_shipping_purchase.rb', line 15 define_attribute :method_code, String |
#method_id ⇒ String
Returns The id of the shipping method used to deliver the subscription. If `method_id` and `method_code` are both present, `method_id` will be used.
19 |
# File 'lib/recurly/requests/subscription_shipping_purchase.rb', line 19 define_attribute :method_id, String |