<commit_before>module Quickbooks
  module Model
    class Bill < BaseModel
      XML_COLLECTION_NODE = "Bill"
      XML_NODE = "Bill"
      REST_RESOURCE = 'bill'

      xml_accessor :id, :from => 'Id', :as => Integer
      xml_accessor :sync_token, :from => 'SyncToken', :as => Integer
      xml_accessor :meta_data, :from => 'MetaData', :as => MetaData
      xml_accessor :doc_number, :from => 'DocNumber'
      xml_accessor :placed_on, :from => 'TxnDate', :as => Time

      xml_accessor :line_items, :from => 'Line', :as => [Model::Line]

      xml_accessor :private_note, :from => 'PrivateNote'

      xml_accessor :vendor_ref, :from => 'VendorRef'
      xml_accessor :payer_ref, :from => 'PayerRef'
      xml_accessor :sales_term_ref, :from => 'SalesTermRef'

      xml_accessor :due_date, :from => 'DueDate', :as => Date
      xml_accessor :remit_to_address, :from => 'RemitToAddr', :as => Model::PhysicalAddress
      xml_accessor :ship_address, :from => 'ShipAddr', :as => Model::PhysicalAddress

      # readonly
      xml_accessor :bill_email, :from => 'BillEmail', :as => Model::EmailAddress
      xml_accessor :reply_email, :from => 'ReplyEmail', :as => Model::EmailAddress
      xml_accessor :total, :from => 'TotalAmt', :as => BigDecimal

      validates_length_of :line_items, :minimum => 1
<commit_msg>fixed Bill#txn_date<commit_after>module Quickbooks
  module Model
    class Bill < BaseModel
      XML_COLLECTION_NODE = "Bill"
      XML_NODE = "Bill"
      REST_RESOURCE = 'bill'

      xml_accessor :id, :from => 'Id', :as => Integer
      xml_accessor :sync_token, :from => 'SyncToken', :as => Integer
      xml_accessor :meta_data, :from => 'MetaData', :as => MetaData
      xml_accessor :doc_number, :from => 'DocNumber'
      xml_accessor :txn_date, :from => 'TxnDate', :as => Date

      xml_accessor :line_items, :from => 'Line', :as => [Model::Line]

      xml_accessor :private_note, :from => 'PrivateNote'

      xml_accessor :vendor_ref, :from => 'VendorRef'
      xml_accessor :payer_ref, :from => 'PayerRef'
      xml_accessor :sales_term_ref, :from => 'SalesTermRef'

      xml_accessor :due_date, :from => 'DueDate', :as => Date
      xml_accessor :remit_to_address, :from => 'RemitToAddr', :as => Model::PhysicalAddress
      xml_accessor :ship_address, :from => 'ShipAddr', :as => Model::PhysicalAddress

      # readonly
      xml_accessor :bill_email, :from => 'BillEmail', :as => Model::EmailAddress
      xml_accessor :reply_email, :from => 'ReplyEmail', :as => Model::EmailAddress
      xml_accessor :total, :from => 'TotalAmt', :as => BigDecimal

      validates_length_of :line_items, :minimum => 1

{'fraction_non_alphanumeric': 0.14188422247446084, 'fraction_numerical': 0.0007567158531971245, 'mean_word_length': 3.7725631768953067, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 32}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4011922', 'n_tokens_mistral': 907, 'n_tokens_neox': 875, 'n_words': 209}