Class: Stripe::Issuing::PhysicalBundle
- Inherits:
-
APIResource
- Object
- StripeObject
- APIResource
- Stripe::Issuing::PhysicalBundle
- Extended by:
- APIOperations::List
- Defined in:
- lib/stripe/resources/issuing/physical_bundle.rb
Overview
A Physical Bundle represents the bundle of physical items - card stock, carrier letter, and envelope - that is shipped to a cardholder when you create a physical card.
Defined Under Namespace
Classes: Features
Constant Summary collapse
- OBJECT_NAME =
"issuing.physical_bundle"
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#features ⇒ Object
readonly
Attribute for field features.
-
#id ⇒ Object
readonly
Unique identifier for the object.
-
#livemode ⇒ Object
readonly
Has the value ‘true` if the object exists in live mode or the value `false` if the object exists in test mode.
-
#name ⇒ Object
readonly
Friendly display name.
-
#object ⇒ Object
readonly
String representing the object’s type.
-
#status ⇒ Object
readonly
Whether this physical bundle can be used to create cards.
-
#type ⇒ Object
readonly
Whether this physical bundle is a standard Stripe offering or custom-made for you.
Attributes inherited from APIResource
Attributes inherited from StripeObject
Class Method Summary collapse
- .field_remappings ⇒ Object
- .inner_class_types ⇒ Object
-
.list(params = {}, opts = {}) ⇒ Object
Returns a list of physical bundle objects.
- .object_name ⇒ Object
Methods included from APIOperations::List
Methods inherited from APIResource
class_name, custom_method, #refresh, #request_stripe_object, resource_url, #resource_url, retrieve, save_nested_resource
Methods included from APIOperations::Request
Methods inherited from StripeObject
#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Instance Attribute Details
#features ⇒ Object (readonly)
Attribute for field features
32 33 34 |
# File 'lib/stripe/resources/issuing/physical_bundle.rb', line 32 def features @features end |
#id ⇒ Object (readonly)
Unique identifier for the object.
34 35 36 |
# File 'lib/stripe/resources/issuing/physical_bundle.rb', line 34 def id @id end |
#livemode ⇒ Object (readonly)
Has the value ‘true` if the object exists in live mode or the value `false` if the object exists in test mode.
36 37 38 |
# File 'lib/stripe/resources/issuing/physical_bundle.rb', line 36 def livemode @livemode end |
#name ⇒ Object (readonly)
Friendly display name.
38 39 40 |
# File 'lib/stripe/resources/issuing/physical_bundle.rb', line 38 def name @name end |
#object ⇒ Object (readonly)
String representing the object’s type. Objects of the same type share the same value.
40 41 42 |
# File 'lib/stripe/resources/issuing/physical_bundle.rb', line 40 def object @object end |
#status ⇒ Object (readonly)
Whether this physical bundle can be used to create cards.
42 43 44 |
# File 'lib/stripe/resources/issuing/physical_bundle.rb', line 42 def status @status end |
#type ⇒ Object (readonly)
Whether this physical bundle is a standard Stripe offering or custom-made for you.
44 45 46 |
# File 'lib/stripe/resources/issuing/physical_bundle.rb', line 44 def type @type end |
Class Method Details
.field_remappings ⇒ Object
60 61 62 |
# File 'lib/stripe/resources/issuing/physical_bundle.rb', line 60 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
56 57 58 |
# File 'lib/stripe/resources/issuing/physical_bundle.rb', line 56 def self.inner_class_types @inner_class_types = { features: Features } end |
.list(params = {}, opts = {}) ⇒ Object
Returns a list of physical bundle objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
47 48 49 50 51 52 53 54 |
# File 'lib/stripe/resources/issuing/physical_bundle.rb', line 47 def self.list(params = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/issuing/physical_bundles", params: params, opts: opts ) end |
.object_name ⇒ Object
11 12 13 |
# File 'lib/stripe/resources/issuing/physical_bundle.rb', line 11 def self.object_name "issuing.physical_bundle" end |