Class: FaithTeams::API::V2::Entity::ContributionRecord
- Inherits:
-
Base
- Object
- Base
- FaithTeams::API::V2::Entity::ContributionRecord
show all
- Defined in:
- lib/faithteams/api/v2/entity/contribution_record.rb
Overview
Wraps a faithteams contribution_record object.
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #saved?, #to_h
Instance Method Details
#amount ⇒ Float?
10
11
12
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 10
def amount
read_attribute(:amount)
end
|
#batch_id ⇒ Integer?
15
16
17
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 15
def batch_id
read_attribute(:batchId)
end
|
#check_number ⇒ String?
20
21
22
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 20
def check_number
read_attribute(:checkNumber).presence
end
|
#contribution_id ⇒ Integer?
25
26
27
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 25
def contribution_id
read_attribute(:contributionId)
end
|
#contribution_type_id ⇒ Integer?
30
31
32
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 30
def contribution_type_id
read_attribute(:contributionTypeId)
end
|
#contribution_type_name ⇒ String?
35
36
37
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 35
def contribution_type_name
read_attribute(:contributionTypeName).presence
end
|
#created_datetime ⇒ String?
40
41
42
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 40
def created_datetime
read_attribute(:createdDtm).presence
end
|
#created_user_id ⇒ Integer?
45
46
47
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 45
def created_user_id
read_attribute(:createdUser)
end
|
#detail? ⇒ Boolean
130
131
132
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 130
def detail?
record_type&.upcase == "D"
end
|
#fee ⇒ Float?
50
51
52
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 50
def fee
read_attribute(:fee)
end
|
#fund_id ⇒ Integer?
55
56
57
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 55
def fund_id
read_attribute(:fundId)
end
|
#fund_name ⇒ String?
60
61
62
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 60
def fund_name
read_attribute(:fundName).presence
end
|
#give_datetime ⇒ String?
65
66
67
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 65
def give_datetime
read_attribute(:giveDtm).presence
end
|
125
126
127
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 125
def
record_type&.upcase == "H"
end
|
#net_amount ⇒ Float?
70
71
72
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 70
def net_amount
read_attribute(:netAmount)
end
|
#note ⇒ String?
75
76
77
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 75
def note
read_attribute(:note).presence
end
|
#org_id ⇒ Integer?
80
81
82
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 80
def org_id
read_attribute(:orgId)
end
|
#parent_id ⇒ Integer?
85
86
87
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 85
def parent_id
read_attribute(:parentId)
end
|
#person_id ⇒ Integer?
90
91
92
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 90
def person_id
read_attribute(:personId)
end
|
#person_id_2 ⇒ Integer?
95
96
97
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 95
def person_id_2
read_attribute(:personId2)
end
|
#record_type ⇒ String?
Returns "H" for header, "D" for detail.
100
101
102
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 100
def record_type
read_attribute(:recordType).presence
end
|
#status ⇒ String?
105
106
107
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 105
def status
read_attribute(:status).presence
end
|
#total_amount ⇒ Float?
110
111
112
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 110
def total_amount
read_attribute(:totalAmount)
end
|
#updated_datetime ⇒ String?
115
116
117
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 115
def updated_datetime
read_attribute(:updatedDtm).presence
end
|
#updated_user_id ⇒ Integer?
120
121
122
|
# File 'lib/faithteams/api/v2/entity/contribution_record.rb', line 120
def updated_user_id
read_attribute(:updatedUser)
end
|