Class: Stripe::ApplePayDomain

Inherits:
APIResource show all
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

Attributes inherited from APIResource

#save_with_parent

Attributes inherited from StripeObject

#last_response

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Stripe::APIOperations::Create

create

Methods included from Stripe::APIOperations::List

list

Methods included from Stripe::APIOperations::Delete

included

Methods inherited from APIResource

class_name, custom_method, #refresh, #request_stripe_object, #resource_url, retrieve, save_nested_resource

Methods included from Stripe::APIOperations::Request

included

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

Class Method Details

.create(params = {}, opts = {}) ⇒ Object

Create an apple pay domain.



17
18
19
20
21
22
23
24
# File 'lib/stripe/resources/apple_pay_domain.rb', line 17

def self.create(params = {}, opts = {})
  request_stripe_object(
    method: :post,
    path: "/v1/apple_pay/domains",
    params: params,
    opts: opts
  )
end

.delete(id, params = {}, opts = {}) ⇒ Object

Delete an apple pay domain.



27
28
29
30
31
32
33
34
# File 'lib/stripe/resources/apple_pay_domain.rb', line 27

def self.delete(id, params = {}, opts = {})
  request_stripe_object(
    method: :delete,
    path: format("/v1/apple_pay/domains/%<id>s", { id: CGI.escape(id) }),
    params: params,
    opts: opts
  )
end

.list(filters = {}, opts = {}) ⇒ Object

List apple pay domains.



47
48
49
50
51
52
53
54
# File 'lib/stripe/resources/apple_pay_domain.rb', line 47

def self.list(filters = {}, opts = {})
  request_stripe_object(
    method: :get,
    path: "/v1/apple_pay/domains",
    params: filters,
    opts: opts
  )
end

.object_nameObject



12
13
14
# File 'lib/stripe/resources/apple_pay_domain.rb', line 12

def self.object_name
  "apple_pay_domain"
end

.resource_urlObject



56
57
58
# File 'lib/stripe/resources/apple_pay_domain.rb', line 56

def self.resource_url
  "/v1/apple_pay/domains"
end

Instance Method Details

#delete(params = {}, opts = {}) ⇒ Object

Delete an apple pay domain.



37
38
39
40
41
42
43
44
# File 'lib/stripe/resources/apple_pay_domain.rb', line 37

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