Class: Stripe::V2::Billing::LicenseFeeService

Inherits:
StripeService show all
Defined in:
lib/stripe/services/v2/billing/license_fee_service.rb

Defined Under Namespace

Classes: CreateParams, ListParams, RetrieveParams, UpdateParams

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from StripeService

#request, #request_stream

Constructor Details

#initialize(requestor) ⇒ LicenseFeeService

Returns a new instance of LicenseFeeService.



10
11
12
13
# File 'lib/stripe/services/v2/billing/license_fee_service.rb', line 10

def initialize(requestor)
  super
  @versions = Stripe::V2::Billing::LicenseFees::VersionService.new(@requestor)
end

Instance Attribute Details

#versionsObject (readonly)

Returns the value of attribute versions.



8
9
10
# File 'lib/stripe/services/v2/billing/license_fee_service.rb', line 8

def versions
  @versions
end

Instance Method Details

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

Create a License Fee object.



205
206
207
208
209
210
211
212
213
# File 'lib/stripe/services/v2/billing/license_fee_service.rb', line 205

def create(params = {}, opts = {})
  request(
    method: :post,
    path: "/v2/billing/license_fees",
    params: params,
    opts: opts,
    base_address: :api
  )
end

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

List all License Fee objects.



216
217
218
219
220
221
222
223
224
# File 'lib/stripe/services/v2/billing/license_fee_service.rb', line 216

def list(params = {}, opts = {})
  request(
    method: :get,
    path: "/v2/billing/license_fees",
    params: params,
    opts: opts,
    base_address: :api
  )
end

#retrieve(id, params = {}, opts = {}) ⇒ Object

Retrieve a License Fee object.



227
228
229
230
231
232
233
234
235
# File 'lib/stripe/services/v2/billing/license_fee_service.rb', line 227

def retrieve(id, params = {}, opts = {})
  request(
    method: :get,
    path: format("/v2/billing/license_fees/%<id>s", { id: CGI.escape(id) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end

#update(id, params = {}, opts = {}) ⇒ Object

Update a License Fee object.



238
239
240
241
242
243
244
245
246
# File 'lib/stripe/services/v2/billing/license_fee_service.rb', line 238

def update(id, params = {}, opts = {})
  request(
    method: :post,
    path: format("/v2/billing/license_fees/%<id>s", { id: CGI.escape(id) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end