=begin #Subskribe API #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.4.41 =end require 'spec_helper' require 'json' # Unit tests for SubskribeDevClient::SubscriptionsApi # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate describe 'SubscriptionsApi' do before do # run before each test @instance = SubskribeDevClient::SubscriptionsApi.new end after do # run after each test end describe 'test an instance of SubscriptionsApi' do it 'should create an instance of SubscriptionsApi' do expect(@instance).to be_instance_of(SubskribeDevClient::SubscriptionsApi) end end # unit tests for delete_subscription # Delete subscription # Deletes the subscription for given subscription Id if invoices have not been generated and revenue has not been recognized # @param id subscription id # @param version subscription version # @param [Hash] opts the optional parameters # @return [nil] describe 'delete_subscription test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_subscription_billing_periods # Get billing periods # Gets the billing periods for the specified subscription. # @param id subscription id # @param [Hash] opts the optional parameters # @return [Array] describe 'get_subscription_billing_periods test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_subscription_by_id # Get subscription details # Gets the details of the specified subscription. # @param id subscription id # @param [Hash] opts the optional parameters # @return [SubscriptionJson] describe 'get_subscription_by_id test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_subscription_metrics # Get subscription metrics # Returns the metrics associated with the specified subscription. Metrics include ACV, ARR, etc. # @param id id of the subscription # @param [Hash] opts the optional parameters # @option opts [Integer] :target_date As of date for the metrics. If omitted defaults to now. # @return [MetricsJson] describe 'get_subscription_metrics test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_subscriptions # Get paginated subscriptions # returns all Subscriptions in the system in a paginated fashion # @param [Hash] opts the optional parameters # @option opts [Integer] :limit number of items per page # @option opts [String] :page_token pass this to subsequent calls # @option opts [String] :account_id optionally pass in account Id, only subscriptions for this account will will returned # @return [PaginatedResponse] describe 'get_subscriptions test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for revert_subscription # Revert subscription # Reverts the subscription for given subscription Id and version to it's previous version. Operation is allowed only if invoices have not been generated and revenue has not been recognized # @param id subscription id # @param version subscription version # @param [Hash] opts the optional parameters # @return [nil] describe 'revert_subscription test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for subscription_modifiable # Subscription can be modified # Returns true if subscription can be deleted. # @param id subscription id # @param [Hash] opts the optional parameters # @return [nil] describe 'subscription_modifiable test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for subscription_reversible # Subscription can be reverted # Returns true if subscription can be reverted to a prior version. # @param id subscription id # @param [Hash] opts the optional parameters # @return [nil] describe 'subscription_reversible test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for update_renewal_opportunity # Link renewal opportunity to subscription # Update renewal opportunity CRM id on subscription # @param id subscription id # @param renewal_opportunity_crm_id renewal opportunity CRM id # @param [Hash] opts the optional parameters # @return [nil] describe 'update_renewal_opportunity test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for update_subscription # Update subscription details # Updates the details of the specified subscription. # @param id subscription id # @param body subscription details in json # @param [Hash] opts the optional parameters # @return [nil] describe 'update_subscription test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end