Class: Stripe::V2::Billing::LicenseFeeService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::V2::Billing::LicenseFeeService
- Defined in:
- lib/stripe/services/v2/billing/license_fee_service.rb
Instance Attribute Summary collapse
-
#versions ⇒ Object
readonly
Returns the value of attribute versions.
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Object
Create a License Fee object.
-
#initialize(requestor) ⇒ LicenseFeeService
constructor
A new instance of LicenseFeeService.
-
#list(params = {}, opts = {}) ⇒ Object
List all License Fee objects.
-
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieve a License Fee object.
-
#update(id, params = {}, opts = {}) ⇒ Object
Update a License Fee object.
Methods inherited from StripeService
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
#versions ⇒ Object (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.
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/stripe/services/v2/billing/license_fee_service.rb', line 16 def create(params = {}, opts = {}) params = V2::Billing::LicenseFeeCreateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams) 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.
29 30 31 32 33 34 35 36 37 |
# File 'lib/stripe/services/v2/billing/license_fee_service.rb', line 29 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.
40 41 42 43 44 45 46 47 48 |
# File 'lib/stripe/services/v2/billing/license_fee_service.rb', line 40 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.
51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/stripe/services/v2/billing/license_fee_service.rb', line 51 def update(id, params = {}, opts = {}) params = V2::Billing::LicenseFeeUpdateParams.coerce_params(params) unless params.is_a?(Stripe::RequestParams) request( method: :post, path: format("/v2/billing/license_fees/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |