Sha256: 98b246970ce020d9724c00902134912282a9e764be1b58c0d4f9c3fb8d1289b0

Contents?: true

Size: 719 Bytes

Versions: 1

Compression:

Stored size: 719 Bytes

Contents

module BusinessCentral
  module Object
    class PurchaseInvoiceLine < Base
      OBJECT = 'purchaseInvoiceLines'.freeze

      OBJECT_VALIDATION = {
        line_type: {
          inclusion_of: [
            'Comment',
            'Account',
            'Item',
            'Resource',
            'Fixed Asset',
            'Charge'
          ]
        }
      }.freeze

      OBJECT_METHODS = [
        :get,
        :post,
        :patch,
        :delete
      ].freeze

      def initialize(client, company_id:, purchase_invoice_id:)
        super(client, company_id: company_id)
        @parent_path << {
          path: 'purchaseInvoices',
          id: purchase_invoice_id
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
business-central-1.0.3 lib/business_central/object/purchase_invoice_line.rb