=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::CreditMemoApi # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate describe 'CreditMemoApi' do before do # run before each test @instance = SubskribeDevClient::CreditMemoApi.new end after do # run after each test end describe 'test an instance of CreditMemoApi' do it 'should create an instance of CreditMemoApi' do expect(@instance).to be_instance_of(SubskribeDevClient::CreditMemoApi) end end # unit tests for convert_negative_draft_invoice # Convert invoice to credit memo # Converts the specified invoice to a credit memo. Note the invoice must be in DRAFT status and have a negative balance. # @param invoice_number number of the invoice # @param [Hash] opts the optional parameters # @return [CreditMemoJson] describe 'convert_negative_draft_invoice 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 create_credit_memo_document # Create a credit memo document # Creates a pdf version of the credit memo # @param credit_memo_number number of the credit memo # @param [Hash] opts the optional parameters # @return [nil] describe 'create_credit_memo_document 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 create_standalone_credit_memo # Create a standalone credit memo # Creates a standalone credit memo for a specified account. On success the number of the new memo is returned # @param [Hash] opts the optional parameters # @option opts [StandaloneCreditMemoRequest] :body json representing the credit memo details # @return [String] describe 'create_standalone_credit_memo 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_credit_memo # Delete a credit memo # Deletes the specified credit memo. The credit memo must be in DRAFT status # @param credit_memo_number number of the credit memo # @param [Hash] opts the optional parameters # @return [CreditMemoJson] describe 'delete_credit_memo 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_credit_balance # Get credit memo balance # Gets the balance of the specified credit memo # @param credit_memo_number number of the credit memo # @param [Hash] opts the optional parameters # @return [CreditMemoBalanceJson] describe 'get_credit_balance 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_credit_memo # Get credit memo details # Returns the details of the specified credit memo # @param credit_memo_number number of the credit memo # @param [Hash] opts the optional parameters # @return [CreditMemoJson] describe 'get_credit_memo 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_credit_memo_configuration # Get credit memo configuration for the tenant # Returns the credit memo configuration for your tenant # @param [Hash] opts the optional parameters # @return [TenantCreditMemoConfigurationJson] describe 'get_credit_memo_configuration 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_credit_memo_document_pdf # Download credit memo pdf # Downloads the pdf version of the credit memo. Note the credit memo must already have been created. If the credit memo is still in the process of being created, HTTP 202 is returned. # @param credit_memo_number number of the credit memo # @param [Hash] opts the optional parameters # @return [nil] describe 'get_credit_memo_document_pdf 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_credit_memo_for_account # Get credit memos for an account # Returns a paginated list of credit memos for the specified account. Pass the cursor returned to subsequent calls to retrieve all data. # @param [Hash] opts the optional parameters # @option opts [String] :account_id id of the account # @option opts [String] :cursor cursor used to move the pages # @option opts [Integer] :limit number of results per page # @return [CreditMemoPaginationResponseJson] describe 'get_credit_memo_for_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 post_credit_memo # Post a credit memo # Sets the status of the specified credit memo to POSTED # @param credit_memo_number number of the credit memo # @param [Hash] opts the optional parameters # @return [CreditMemoJson] describe 'post_credit_memo 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_credit_memo_configuration # Update credit memo configuration # Updates the credit memo configuration for you tenant. # @param [Hash] opts the optional parameters # @option opts [TenantCreditMemoConfigurationJson] :body json representing the configuration # @return [TenantCreditMemoConfigurationJson] describe 'update_credit_memo_configuration 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_draft_credit_memo # Update a credit memo # Updates the details of a credit memo in DRAFT status # @param credit_memo_number credit memo number # @param [Hash] opts the optional parameters # @option opts [StandaloneCreditMemoRequest] :body json representation of the details to be updated # @return [CreditMemoJson] describe 'update_draft_credit_memo test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end