Sha256: e92459fea6f193f33d81273939c8eb35b6156a7c6a4d132e6834387face8af14

Contents?: true

Size: 467 Bytes

Versions: 9

Compression:

Stored size: 467 Bytes

Contents

module Octobat
  class CreditNoteNumberingSequence < APIResource
    extend Octobat::APIOperations::List
    include Octobat::APIOperations::Create
    include Octobat::APIOperations::Update

    def set_to_default(params = {}, opts = {})
      response, api_key = Octobat.request(:patch, set_to_default_url, @api_key, params, opts)
      refresh_from(response, api_key)
    end

    private

      def set_to_default_url
        url + '/default'
      end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
octobat-2.0.27 lib/octobat/credit_note_numbering_sequence.rb
octobat-2.0.26 lib/octobat/credit_note_numbering_sequence.rb
octobat-2.0.25 lib/octobat/credit_note_numbering_sequence.rb
octobat-2.0.24 lib/octobat/credit_note_numbering_sequence.rb
octobat-2.0.23 lib/octobat/credit_note_numbering_sequence.rb
octobat-2.0.22 lib/octobat/credit_note_numbering_sequence.rb
octobat-2.0.21 lib/octobat/credit_note_numbering_sequence.rb
octobat-2.0.20 lib/octobat/credit_note_numbering_sequence.rb
octobat-2.0.19 lib/octobat/credit_note_numbering_sequence.rb