Class: Stripe::V2::Billing::ProfileService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::V2::Billing::ProfileService
- Defined in:
- lib/stripe/services/v2/billing/profile_service.rb
Defined Under Namespace
Classes: CreateParams, ListParams, RetrieveParams, UpdateParams
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Object
Create a BillingProfile object.
-
#list(params = {}, opts = {}) ⇒ Object
List Billing Profiles.
-
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieve a BillingProfile object.
-
#update(id, params = {}, opts = {}) ⇒ Object
Update a BillingProfile object.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#create(params = {}, opts = {}) ⇒ Object
Create a BillingProfile object.
99 100 101 102 103 104 105 106 107 |
# File 'lib/stripe/services/v2/billing/profile_service.rb', line 99 def create(params = {}, opts = {}) request( method: :post, path: "/v2/billing/profiles", params: params, opts: opts, base_address: :api ) end |
#list(params = {}, opts = {}) ⇒ Object
List Billing Profiles.
110 111 112 113 114 115 116 117 118 |
# File 'lib/stripe/services/v2/billing/profile_service.rb', line 110 def list(params = {}, opts = {}) request( method: :get, path: "/v2/billing/profiles", params: params, opts: opts, base_address: :api ) end |
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieve a BillingProfile object.
121 122 123 124 125 126 127 128 129 |
# File 'lib/stripe/services/v2/billing/profile_service.rb', line 121 def retrieve(id, params = {}, opts = {}) request( method: :get, path: format("/v2/billing/profiles/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |
#update(id, params = {}, opts = {}) ⇒ Object
Update a BillingProfile object.
132 133 134 135 136 137 138 139 140 |
# File 'lib/stripe/services/v2/billing/profile_service.rb', line 132 def update(id, params = {}, opts = {}) request( method: :post, path: format("/v2/billing/profiles/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |