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
Defined Under Namespace
Classes: CreateParams, DeleteParams, ListParams
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.
-
.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
#==, #[], #[]=, 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.
58 59 60 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 58 def created @created end |
#deleted ⇒ Object (readonly)
Always true for a deleted object
68 69 70 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 68 def deleted @deleted end |
#domain_name ⇒ Object (readonly)
Attribute for field domain_name
60 61 62 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 60 def domain_name @domain_name end |
#id ⇒ Object (readonly)
Unique identifier for the object.
62 63 64 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 62 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.
64 65 66 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 64 def livemode @livemode end |
#object ⇒ Object (readonly)
String representing the object’s type. Objects of the same type share the same value.
66 67 68 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 66 def object @object end |
Class Method Details
.create(params = {}, opts = {}) ⇒ Object
Create an apple pay domain.
71 72 73 74 75 76 77 78 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 71 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.
81 82 83 84 85 86 87 88 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 81 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 |
.list(params = {}, opts = {}) ⇒ Object
List apple pay domains.
101 102 103 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 101 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
105 106 107 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 105 def self.resource_url "/v1/apple_pay/domains" end |
Instance Method Details
#delete(params = {}, opts = {}) ⇒ Object
Delete an apple pay domain.
91 92 93 94 95 96 97 98 |
# File 'lib/stripe/resources/apple_pay_domain.rb', line 91 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 |