Class: Stripe::ApplePayDomain
- Inherits:
-
APIResource
- Object
- StripeObject
- APIResource
- Stripe::ApplePayDomain
- Extended by:
- Stripe::APIOperations::Create, Stripe::APIOperations::List
- Includes:
- Stripe::APIOperations::Delete
- Defined in:
- lib/stripe/resources/apple_pay_domain.rb
Overview
Domains registered for Apple Pay on the Web
Constant Summary collapse
- OBJECT_NAME =
"apple_pay_domain"
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#created ⇒ Object
readonly
Time at which the object was created.
-
#deleted ⇒ Object
readonly
Always true for a deleted object.
-
#domain_name ⇒ Object
readonly
Attribute for field domain_name.
-
#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.
-
#object ⇒ Object
readonly
String representing the object’s type.
Attributes inherited from APIResource
Attributes inherited from StripeObject
Class Method Summary collapse
-
.create(params = {}, opts = {}) ⇒ Object
Create an apple pay domain.
-
.delete(domain, params = {}, opts = {}) ⇒ Object
Delete an apple pay domain.
- .field_remappings ⇒ Object
- .inner_class_types ⇒ Object
-
.list(params = {}, opts = {}) ⇒ Object
List apple pay domains.
- .object_name ⇒ Object
- .resource_url ⇒ Object
Instance Method Summary collapse
-
#delete(params = {}, opts = {}) ⇒ Object
Delete an apple pay domain.
Methods included from Stripe::APIOperations::Create
Methods included from Stripe::APIOperations::List
Methods included from Stripe::APIOperations::Delete
Methods inherited from APIResource
class_name, custom_method, #refresh, #request_stripe_object, #resource_url, retrieve, save_nested_resource
Methods included from Stripe::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
#created ⇒ Object (readonly)
Time at which the object was created. Measured in seconds since the Unix epoch.
17 18 19 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 17 def created @created end |
#deleted ⇒ Object (readonly)
Always true for a deleted object
27 28 29 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 27 def deleted @deleted end |
#domain_name ⇒ Object (readonly)
Attribute for field domain_name
19 20 21 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 19 def domain_name @domain_name end |
#id ⇒ Object (readonly)
Unique identifier for the object.
21 22 23 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 21 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.
23 24 25 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 23 def livemode @livemode end |
#object ⇒ Object (readonly)
String representing the object’s type. Objects of the same type share the same value.
25 26 27 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 25 def object @object end |
Class Method Details
.create(params = {}, opts = {}) ⇒ Object
Create an apple pay domain.
30 31 32 33 34 35 36 37 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 30 def self.create(params = {}, opts = {}) request_stripe_object( method: :post, path: "/v1/apple_pay/domains", params: params, opts: opts ) end |
.delete(domain, params = {}, opts = {}) ⇒ Object
Delete an apple pay domain.
40 41 42 43 44 45 46 47 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 40 def self.delete(domain, params = {}, opts = {}) request_stripe_object( method: :delete, path: format("/v1/apple_pay/domains/%<domain>s", { domain: CGI.escape(domain) }), params: params, opts: opts ) end |
.field_remappings ⇒ Object
72 73 74 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 72 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
68 69 70 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 68 def self.inner_class_types @inner_class_types = {} end |
.list(params = {}, opts = {}) ⇒ Object
List apple pay domains.
60 61 62 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 60 def self.list(params = {}, opts = {}) request_stripe_object(method: :get, path: "/v1/apple_pay/domains", params: params, opts: opts) end |
.object_name ⇒ Object
12 13 14 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 12 def self.object_name "apple_pay_domain" end |
.resource_url ⇒ Object
64 65 66 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 64 def self.resource_url "/v1/apple_pay/domains" end |
Instance Method Details
#delete(params = {}, opts = {}) ⇒ Object
Delete an apple pay domain.
50 51 52 53 54 55 56 57 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 50 def delete(params = {}, opts = {}) request_stripe_object( method: :delete, path: format("/v1/apple_pay/domains/%<domain>s", { domain: CGI.escape(self["id"]) }), params: params, opts: opts ) end |