=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::AccountsApi # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate describe 'AccountsApi' do before do # run before each test @instance = SubskribeDevClient::AccountsApi.new end after do # run after each test end describe 'test an instance of AccountsApi' do it 'should create an instance of AccountsApi' do expect(@instance).to be_instance_of(SubskribeDevClient::AccountsApi) end end # unit tests for add_account # Add a new account # Create an account with the specified parameters. On success, the id of the newly created account is returned # @param [Hash] opts the optional parameters # @option opts [AccountJson] :body # @return [AccountJson] describe 'add_account 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 add_account_contact # Add a contact for an account # Creates and adds a new contact for the specified account and returns the new contact ID # @param account_id # @param [Hash] opts the optional parameters # @option opts [AccountContactJson] :body # @option opts [BOOLEAN] :skip_address_validation value = perform basic address validation # @option opts [BOOLEAN] :strict_validation value = require the address to match a canonical address, if it exists # @return [AccountContactJson] describe 'add_account_contact 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 add_account_payment_method # Add a payment method to an account # Add a payment method to the specified account and return its ID # @param account_id # @param [Hash] opts the optional parameters # @option opts [AccountPaymentMethodJson] :body # @return [AccountPaymentMethodJson] describe 'add_account_payment_method 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 delete_account # Delete an account # Deletes the account associated with the passed ID # @param id # @param [Hash] opts the optional parameters # @return [nil] describe 'delete_account 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 delete_account_contact # Delete a contact # Deletes the contact specified by the account id and contact id # @param contact_id # @param account_id # @param [Hash] opts the optional parameters # @return [nil] describe 'delete_account_contact 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_account # Get an account by id # Returns the details of the account specified by the passed id # @param id # @param [Hash] opts the optional parameters # @option opts [String] :id_type # @return [AccountJson] describe 'get_account 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_account_contact # Gets contact details # Returns the details of the specified contact # @param account_id # @param contact_id # @param [Hash] opts the optional parameters # @return [AccountContactJson] describe 'get_account_contact 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_account_contacts # Get contacts for an account # Returns a list of contacts associated with the specified account id # @param account_id # @param [Hash] opts the optional parameters # @option opts [BOOLEAN] :expand # @return [Array] describe 'get_account_contacts 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_account_metrics # Returns metrics for the specified account # Fetches metrics such as ARR, TCV, etc for the specified account as of the specified target date # @param id # @param [Hash] opts the optional parameters # @option opts [Integer] :target_date # @return [MetricsJson] describe 'get_account_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_account_payment_methods # Get the payment methods for an account # Returns a list of payment methods for the specified account id # @param account_id # @param [Hash] opts the optional parameters # @return [Array] describe 'get_account_payment_methods 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_accounts # Get all accounts # Returns a paginated list of accounts # @param [Hash] opts the optional parameters # @option opts [String] :cursor # @option opts [Integer] :limit # @option opts [String] :type # @return [Array] describe 'get_accounts 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_payment_method # Get the details of a payment method # Returns the details of the payment method for the specified account id and payment method id # @param account_id # @param id # @param [Hash] opts the optional parameters # @return [AccountPaymentMethodJson] describe 'get_payment_method 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 import_crm_account # Import an account from a CRM # Ensures an account exists which matches the passed details.If an account exists that has a matching CRM Id, it will be updated, if not, it will be created # @param [Hash] opts the optional parameters # @option opts [AccountJson] :body # @return [CrmAccountImportResponse] describe 'import_crm_account 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_account # Update an account # Updates an existing account with the specified parameters # @param id # @param [Hash] opts the optional parameters # @option opts [AccountJson] :body # @return [nil] describe 'update_account 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_account_contact # Update a contact # Updates the contact specified by the account id and contact id with the passed information # @param account_id # @param contact_id # @param [Hash] opts the optional parameters # @option opts [AccountContactJson] :body # @option opts [BOOLEAN] :skip_address_validation # @option opts [BOOLEAN] :strict_validation # @return [nil] describe 'update_account_contact test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end