lib/youcanbookme/models/transaction.rb in youcanbookme-0.0.3.alpha vs lib/youcanbookme/models/transaction.rb in youcanbookme-0.0.4.alpha
- old
+ new
@@ -1,20 +1,22 @@
# frozen_string_literal: true
module YouCanBookMe
- # YouCanBookMe's Transaction model.
class Transaction
include ModelUtils
ASSOCIATION = {
+ account: Account,
linked: Transaction,
- purchase: Purchase,
+ purchase: Purchase
}.freeze
- # @return [String]
+ # @return [YouCanBookMe::Account]
attr_accessor :account
# @return [String]
+ attr_accessor :accountId
+ # @return [String]
attr_accessor :createdAt
# @return [String]
attr_accessor :description
# @return [Integer]
attr_accessor :gross
@@ -33,9 +35,10 @@
# @return [String]
attr_accessor :remoteId
# @return [Integer]
attr_accessor :tax
# @return [String]
+ # ['INVOICE', 'CREDIT_NOTE', 'FAILED_PAYMENT', 'PAYMENT', 'REFUND', 'CREDIT', 'USE_OF_CREDIT']
attr_accessor :type
# @return [String]
attr_accessor :updatedAt
end
end