Sha256: f21fe9f4ff7e6beca088c74bbfd793452a5b9fbc3411a18600fdf25fa1be945d
Contents?: true
Size: 852 Bytes
Versions: 1
Compression:
Stored size: 852 Bytes
Contents
# frozen_string_literal: true require 'fortnox/api/types' require 'fortnox/api/models/base' module Fortnox module API module Model class TermsOfPayments < Fortnox::API::Model::Base UNIQUE_ID = :code STUB = { code: '', description: '' }.freeze # Direct URL to the record attribute :url, Types::Nullable::String.with(read_only: true) # The code of the term of payment. Sortable # TODO: Only writable during POST. # TODO: Must be alphanumeric # TODO: 30days is a valid value, but the API rewrites it as 30DAYS # and you will not find the resource with a GET with value '30days' attribute :code, Types::Required::String # The description of the term of payment attribute :description, Types::Required::String end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fortnox-api-0.6.0 | lib/fortnox/api/models/terms_of_payments.rb |