lockstep_rails 0.3.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +216 -0
  4. data/Rakefile +31 -0
  5. data/app/assets/config/lockstep_rails_manifest.js +0 -0
  6. data/app/concepts/lockstep/active_records/association.rb +78 -0
  7. data/app/concepts/lockstep/api_record.rb +1118 -0
  8. data/app/concepts/lockstep/api_records/scopes.rb +20 -0
  9. data/app/concepts/lockstep/client.rb +162 -0
  10. data/app/concepts/lockstep/error.rb +50 -0
  11. data/app/concepts/lockstep/exceptions.rb +4 -0
  12. data/app/concepts/lockstep/query.rb +409 -0
  13. data/app/concepts/lockstep/query_methods.rb +75 -0
  14. data/app/concepts/lockstep/relation_array.rb +100 -0
  15. data/app/helpers/types.rb +3 -0
  16. data/app/models/lockstep/account.rb +15 -0
  17. data/app/models/lockstep/connection.rb +19 -0
  18. data/app/models/lockstep/contact.rb +9 -0
  19. data/app/models/lockstep/customer_summary.rb +6 -0
  20. data/app/models/lockstep/invoice.rb +7 -0
  21. data/app/models/lockstep/invoice_summary.rb +6 -0
  22. data/app/models/lockstep/invoices/address.rb +24 -0
  23. data/app/models/lockstep/note.rb +7 -0
  24. data/app/models/lockstep/payment.rb +7 -0
  25. data/app/models/lockstep/payment_summary.rb +6 -0
  26. data/app/models/lockstep/user.rb +10 -0
  27. data/app/platform_api/model_template.rb.erb +27 -0
  28. data/app/platform_api/schema/action_result.rb +15 -0
  29. data/app/platform_api/schema/activity.rb +141 -0
  30. data/app/platform_api/schema/activity_fetch_result.rb +26 -0
  31. data/app/platform_api/schema/activity_stream_item.rb +58 -0
  32. data/app/platform_api/schema/activity_x_ref.rb +37 -0
  33. data/app/platform_api/schema/aging.rb +24 -0
  34. data/app/platform_api/schema/api_key.rb +71 -0
  35. data/app/platform_api/schema/api_key_fetch_result.rb +26 -0
  36. data/app/platform_api/schema/app_enrollment.rb +88 -0
  37. data/app/platform_api/schema/app_enrollment_custom_field.rb +67 -0
  38. data/app/platform_api/schema/app_enrollment_custom_field_fetch_result.rb +26 -0
  39. data/app/platform_api/schema/app_enrollment_fetch_result.rb +26 -0
  40. data/app/platform_api/schema/application.rb +89 -0
  41. data/app/platform_api/schema/application_fetch_result.rb +26 -0
  42. data/app/platform_api/schema/ar_aging_header_info.rb +47 -0
  43. data/app/platform_api/schema/ar_header_info.rb +118 -0
  44. data/app/platform_api/schema/assembly.rb +68 -0
  45. data/app/platform_api/schema/at_risk_invoice_summary.rb +90 -0
  46. data/app/platform_api/schema/at_risk_invoice_summary_fetch_result.rb +26 -0
  47. data/app/platform_api/schema/attachment.rb +92 -0
  48. data/app/platform_api/schema/attachment_fetch_result.rb +26 -0
  49. data/app/platform_api/schema/attachment_header_info.rb +41 -0
  50. data/app/platform_api/schema/batch_sync.rb +18 -0
  51. data/app/platform_api/schema/bulk_currency_conversion.rb +19 -0
  52. data/app/platform_api/schema/cashflow_report.rb +35 -0
  53. data/app/platform_api/schema/code_definition.rb +58 -0
  54. data/app/platform_api/schema/code_definition_fetch_result.rb +26 -0
  55. data/app/platform_api/schema/company.rb +243 -0
  56. data/app/platform_api/schema/company_fetch_result.rb +26 -0
  57. data/app/platform_api/schema/company_sync.rb +142 -0
  58. data/app/platform_api/schema/connector_info.rb +27 -0
  59. data/app/platform_api/schema/constructor_info.rb +128 -0
  60. data/app/platform_api/schema/contact.rb +148 -0
  61. data/app/platform_api/schema/contact_fetch_result.rb +26 -0
  62. data/app/platform_api/schema/contact_sync.rb +109 -0
  63. data/app/platform_api/schema/country.rb +62 -0
  64. data/app/platform_api/schema/country_fetch_result.rb +26 -0
  65. data/app/platform_api/schema/credit_memo_applied.rb +104 -0
  66. data/app/platform_api/schema/credit_memo_applied_fetch_result.rb +26 -0
  67. data/app/platform_api/schema/credit_memo_applied_sync.rb +67 -0
  68. data/app/platform_api/schema/credit_memo_invoice.rb +77 -0
  69. data/app/platform_api/schema/currency.rb +31 -0
  70. data/app/platform_api/schema/currency_fetch_result.rb +26 -0
  71. data/app/platform_api/schema/currency_rate.rb +28 -0
  72. data/app/platform_api/schema/custom_attribute_data.rb +18 -0
  73. data/app/platform_api/schema/custom_attribute_named_argument.rb +24 -0
  74. data/app/platform_api/schema/custom_attribute_typed_argument.rb +16 -0
  75. data/app/platform_api/schema/custom_field_definition.rb +76 -0
  76. data/app/platform_api/schema/custom_field_definition_fetch_result.rb +26 -0
  77. data/app/platform_api/schema/custom_field_sync.rb +71 -0
  78. data/app/platform_api/schema/custom_field_value.rb +75 -0
  79. data/app/platform_api/schema/custom_field_value_fetch_result.rb +26 -0
  80. data/app/platform_api/schema/customer_details.rb +98 -0
  81. data/app/platform_api/schema/customer_details_payment.rb +60 -0
  82. data/app/platform_api/schema/customer_summary.rb +88 -0
  83. data/app/platform_api/schema/customer_summary_fetch_result.rb +26 -0
  84. data/app/platform_api/schema/daily_sales_outstanding_report.rb +25 -0
  85. data/app/platform_api/schema/developer_account_submit.rb +23 -0
  86. data/app/platform_api/schema/email.rb +160 -0
  87. data/app/platform_api/schema/email_fetch_result.rb +26 -0
  88. data/app/platform_api/schema/erp.rb +23 -0
  89. data/app/platform_api/schema/erp_fetch_result.rb +26 -0
  90. data/app/platform_api/schema/erp_info.rb +18 -0
  91. data/app/platform_api/schema/erp_info_data.rb +23 -0
  92. data/app/platform_api/schema/event_info.rb +59 -0
  93. data/app/platform_api/schema/exception.rb +41 -0
  94. data/app/platform_api/schema/field_info.rb +105 -0
  95. data/app/platform_api/schema/financial_account.rb +90 -0
  96. data/app/platform_api/schema/financial_account_balance_history.rb +90 -0
  97. data/app/platform_api/schema/financial_account_balance_history_fetch_result.rb +26 -0
  98. data/app/platform_api/schema/financial_account_fetch_result.rb +26 -0
  99. data/app/platform_api/schema/financial_year_setting.rb +74 -0
  100. data/app/platform_api/schema/financial_year_setting_fetch_result.rb +26 -0
  101. data/app/platform_api/schema/invite.rb +25 -0
  102. data/app/platform_api/schema/invite_data.rb +18 -0
  103. data/app/platform_api/schema/invite_submit.rb +15 -0
  104. data/app/platform_api/schema/invoice.rb +226 -0
  105. data/app/platform_api/schema/invoice_address.rb +97 -0
  106. data/app/platform_api/schema/invoice_fetch_result.rb +29 -0
  107. data/app/platform_api/schema/invoice_history.rb +188 -0
  108. data/app/platform_api/schema/invoice_history_fetch_result.rb +26 -0
  109. data/app/platform_api/schema/invoice_line.rb +142 -0
  110. data/app/platform_api/schema/invoice_line_sync.rb +208 -0
  111. data/app/platform_api/schema/invoice_payment_detail.rb +65 -0
  112. data/app/platform_api/schema/invoice_summary.rb +85 -0
  113. data/app/platform_api/schema/invoice_summary_fetch_result.rb +26 -0
  114. data/app/platform_api/schema/invoice_sync.rb +280 -0
  115. data/app/platform_api/schema/lead.rb +32 -0
  116. data/app/platform_api/schema/member_info.rb +36 -0
  117. data/app/platform_api/schema/method_base.rb +128 -0
  118. data/app/platform_api/schema/method_info.rb +137 -0
  119. data/app/platform_api/schema/module.rb +44 -0
  120. data/app/platform_api/schema/module_handle.rb +15 -0
  121. data/app/platform_api/schema/note.rb +72 -0
  122. data/app/platform_api/schema/note_fetch_result.rb +26 -0
  123. data/app/platform_api/schema/parameter_info.rb +64 -0
  124. data/app/platform_api/schema/payment.rb +147 -0
  125. data/app/platform_api/schema/payment_applied.rb +95 -0
  126. data/app/platform_api/schema/payment_applied_fetch_result.rb +26 -0
  127. data/app/platform_api/schema/payment_applied_sync.rb +74 -0
  128. data/app/platform_api/schema/payment_detail.rb +110 -0
  129. data/app/platform_api/schema/payment_detail_fetch_result.rb +26 -0
  130. data/app/platform_api/schema/payment_detail_header.rb +43 -0
  131. data/app/platform_api/schema/payment_fetch_result.rb +26 -0
  132. data/app/platform_api/schema/payment_summary.rb +79 -0
  133. data/app/platform_api/schema/payment_summary_fetch_result.rb +26 -0
  134. data/app/platform_api/schema/payment_sync.rb +112 -0
  135. data/app/platform_api/schema/problem_details.rb +31 -0
  136. data/app/platform_api/schema/property_info.rb +60 -0
  137. data/app/platform_api/schema/provisioning.rb +28 -0
  138. data/app/platform_api/schema/provisioning_finalize_request.rb +28 -0
  139. data/app/platform_api/schema/provisioning_response.rb +42 -0
  140. data/app/platform_api/schema/risk_rate.rb +57 -0
  141. data/app/platform_api/schema/runtime_field_handle.rb +13 -0
  142. data/app/platform_api/schema/runtime_method_handle.rb +13 -0
  143. data/app/platform_api/schema/runtime_type_handle.rb +13 -0
  144. data/app/platform_api/schema/state.rb +22 -0
  145. data/app/platform_api/schema/state_fetch_result.rb +26 -0
  146. data/app/platform_api/schema/status.rb +72 -0
  147. data/app/platform_api/schema/struct_layout_attribute.rb +16 -0
  148. data/app/platform_api/schema/sync_entity_result.rb +34 -0
  149. data/app/platform_api/schema/sync_request.rb +71 -0
  150. data/app/platform_api/schema/sync_request_fetch_result.rb +26 -0
  151. data/app/platform_api/schema/sync_submit.rb +15 -0
  152. data/app/platform_api/schema/test_argument_exception.rb +41 -0
  153. data/app/platform_api/schema/test_timeout_exception.rb +41 -0
  154. data/app/platform_api/schema/transfer_owner.rb +16 -0
  155. data/app/platform_api/schema/transfer_owner_submit.rb +15 -0
  156. data/app/platform_api/schema/type.rb +278 -0
  157. data/app/platform_api/schema/type_info.rb +287 -0
  158. data/app/platform_api/schema/uri.rb +15 -0
  159. data/app/platform_api/schema/user_account.rb +152 -0
  160. data/app/platform_api/schema/user_account_fetch_result.rb +26 -0
  161. data/app/platform_api/schema/user_role.rb +50 -0
  162. data/app/platform_api/schema/user_role_fetch_result.rb +26 -0
  163. data/app/platform_api/schema/webhook.rb +96 -0
  164. data/app/platform_api/schema/webhook_fetch_result.rb +26 -0
  165. data/app/platform_api/schema/webhook_history_table_storage.rb +64 -0
  166. data/app/platform_api/schema/webhook_history_table_storage_fetch_result.rb +26 -0
  167. data/app/platform_api/swagger.json +22056 -0
  168. data/config/routes.rb +2 -0
  169. data/lib/lockstep_rails/engine.rb +4 -0
  170. data/lib/lockstep_rails/version.rb +3 -0
  171. data/lib/lockstep_rails.rb +5 -0
  172. data/lib/tasks/lockstep_rails_tasks.rake +4 -0
  173. data/lib/tasks/update_api_schema.rake +159 -0
  174. metadata +230 -0
@@ -0,0 +1,142 @@
1
+ class Schema::InvoiceLine < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # The unique ID of this record, automatically assigned by Lockstep when this record is
9
+ # added to the Lockstep platform.
10
+ #
11
+ # For the ID of this record in its originating financial system, see `ErpKey`.
12
+ # @type: string
13
+ # @format: uuid
14
+ field :invoice_line_id
15
+
16
+ # The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
17
+ # account will share the same GroupKey value. GroupKey values cannot be changed once created.
18
+ #
19
+ # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
20
+ # @type: string
21
+ # @format: uuid
22
+ field :group_key
23
+
24
+ # The ID number of the invoice this line belongs to.
25
+ # @type: string
26
+ # @format: uuid
27
+ field :invoice_id
28
+
29
+ # The unique ID of this record as it was known in its originating financial system, if it was
30
+ # different from the original `LineNumber`.
31
+ #
32
+ # If this company record was imported from a financial system, it will have the value `ErpKey`
33
+ # set to the original primary key number of the record as it was known in the originating financial
34
+ # system. If this record was not imported, this value will be `null`.
35
+ #
36
+ # For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
37
+ # @type: string
38
+ field :erp_key
39
+
40
+ # The line number of this line, as defined in the originating ERP or accounting system. You can sort on this number to
41
+ # get the original view of lines within the invoice.
42
+ # @type: string
43
+ field :line_number
44
+
45
+ # A code number identifying the product or service that is specified on this line.
46
+ # @type: string
47
+ field :product_code
48
+
49
+ # Description of this invoice line.
50
+ # @type: string
51
+ field :description
52
+
53
+ # For lines measured in a unit other than "quantity", this code indicates the measurement system for the quantity field.
54
+ # If the line is measured in quantity, this field is null.
55
+ # @type: string
56
+ field :unit_measure_code
57
+
58
+ # The price of a single unit for this line.
59
+ # @type: number
60
+ # @format: double
61
+ field :unit_price
62
+
63
+ # The quantity of items for ths line.
64
+ # @type: number
65
+ # @format: double
66
+ field :quantity
67
+
68
+ # The number of items that have been shipped.
69
+ # @type: number
70
+ # @format: double
71
+ field :quantity_shipped
72
+
73
+ # The number of items that has been received.
74
+ # @type: number
75
+ # @format: double
76
+ field :quantity_received
77
+
78
+ # The total amount for this line.
79
+ # @type: number
80
+ # @format: double
81
+ field :total_amount
82
+
83
+ # If this line is tax exempt, this code indicates the reason for the exemption.
84
+ # @type: string
85
+ field :exemption_code
86
+
87
+ # If null, the products specified on this line were delivered on the same date as all other lines.
88
+ # If not null, this line was delivered or finalized on a different date than the overall invoice.
89
+ # @type: string
90
+ # @format: date
91
+ field :reporting_date
92
+
93
+ # An optional ID number for the line's origin address.
94
+ # @type: string
95
+ # @format: uuid
96
+ field :override_origin_address_id
97
+
98
+ # An optional ID number for the line's bill to address.
99
+ # @type: string
100
+ # @format: uuid
101
+ field :override_bill_to_address_id
102
+
103
+ # An optional ID number for the line's ship to address.
104
+ # @type: string
105
+ # @format: uuid
106
+ field :override_ship_to_address_id
107
+
108
+ # The date on which this line was created.
109
+ # @type: string
110
+ # @format: date-time
111
+ field :created, Types::Params::DateTime
112
+
113
+ # The ID number of the user who created this line.
114
+ # @type: string
115
+ # @format: uuid
116
+ field :created_user_id
117
+
118
+ # The date on which this line was last modified.
119
+ # @type: string
120
+ # @format: date-time
121
+ field :modified, Types::Params::DateTime
122
+
123
+ # The ID number of the user who most recently modified this line.
124
+ # @type: string
125
+ # @format: uuid
126
+ field :modified_user_id
127
+
128
+ # The AppEnrollmentId of the application that imported this record. For accounts
129
+ # with more than one financial system connected, this field identifies the originating
130
+ # financial system that produced this record. This value is null if this record
131
+ # was not loaded from an external ERP or financial system.
132
+ # @type: string
133
+ # @format: uuid
134
+ field :app_enrollment_id
135
+
136
+ belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
137
+ belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
138
+
139
+ has_many :notes, {:class_name=>"Lockstep::Note", :included=>true, :foreign_key=>:object_key, :polymorphic=>{:table_key=>"InvoiceLine"}}
140
+ has_many :attachments, {:class_name=>"Schema::Attachment", :included=>true}
141
+
142
+ end
@@ -0,0 +1,208 @@
1
+ class Schema::InvoiceLineSync < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # This is the primary key of the Invoice Line record. For this field, you should use whatever the contact's unique
9
+ # identifying number is in the originating system. Search for a unique, non-changing number within the
10
+ # originating financial system for this record.
11
+ #
12
+ # Example: If you store your invoice line records in a database, whatever the primary key for the invoice
13
+ # line table is in the database should be the "ErpKey".
14
+ #
15
+ # For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
16
+ # @type: string
17
+ field :erp_key
18
+
19
+ # The original primary key or unique ID of the invoice to which this line belongs. This value should
20
+ # match the [Invoice ErpKey](https://developer.lockstep.io/docs/importing-invoices#erpkey) field on the
21
+ # [InvoiceSyncModel](https://developer.lockstep.io/docs/importing-invoices).
22
+ # @type: string
23
+ field :invoice_erp_key
24
+
25
+ # The line number of this line, as defined in the originating ERP or accounting system. You can sort on this number to
26
+ # get the original view of lines within the invoice.
27
+ # @type: string
28
+ field :line_number
29
+
30
+ # A code number identifying the product or service that is specified on this line.
31
+ # @type: string
32
+ field :product_code
33
+
34
+ # Description of this invoice line.
35
+ # @type: string
36
+ field :description
37
+
38
+ # For lines measured in a unit other than "quantity", this code indicates the measurement system for the quantity field.
39
+ # If the line is measured in quantity, this field is null.
40
+ # @type: string
41
+ field :unit_measure_code
42
+
43
+ # The price of a single unit for this line.
44
+ # @type: number
45
+ # @format: double
46
+ field :unit_price
47
+
48
+ # The quantity of items for ths line.
49
+ # @type: number
50
+ # @format: double
51
+ field :quantity
52
+
53
+ # The number of items that have been shipped.
54
+ # @type: number
55
+ # @format: double
56
+ field :quantity_shipped
57
+
58
+ # The number of items that has been received.
59
+ # @type: number
60
+ # @format: double
61
+ field :quantity_received
62
+
63
+ # The total amount for this line.
64
+ # @type: number
65
+ # @format: double
66
+ field :total_amount
67
+
68
+ # If this line is tax exempt, this code indicates the reason for the exemption.
69
+ # @type: string
70
+ field :exemption_code
71
+
72
+ # If null, the products specified on this line were delivered on the same date as all other lines.
73
+ # If not null, this line was delivered or finalized on a different date than the overall invoice.
74
+ # @type: string
75
+ # @format: date-time
76
+ field :reporting_date, Types::Params::DateTime
77
+
78
+ # Origination address for this invoice line, if this line item was originated from a different address
79
+ # @type: string
80
+ field :origin_address_line1
81
+
82
+ # Origination address for this invoice line, if this line item was originated from a different address
83
+ # @type: string
84
+ field :origin_address_line2
85
+
86
+ # Origination address for this invoice line, if this line item was originated from a different address
87
+ # @type: string
88
+ field :origin_address_line3
89
+
90
+ # Origination address for this invoice line, if this line item was originated from a different address
91
+ # @type: string
92
+ field :origin_address_city
93
+
94
+ # Origination address for this invoice line, if this line item was originated from a different address
95
+ # @type: string
96
+ field :origin_address_region
97
+
98
+ # Origination address for this invoice line, if this line item was originated from a different address
99
+ # @type: string
100
+ field :origin_address_postal_code
101
+
102
+ # Origination address for this invoice line, if this line item was originated from a different address This will be validated by the /api/v1/countries data set
103
+ # @type: string
104
+ field :origin_address_country
105
+
106
+ # Origination address for this invoice line, if this line item was originated from a different address
107
+ # @type: number
108
+ # @format: float
109
+ field :origin_address_latitude
110
+
111
+ # Origination address for this invoice line, if this line item was originated from a different address
112
+ # @type: number
113
+ # @format: float
114
+ field :origin_address_longitude
115
+
116
+ # Billing address for this invoice line, if this line item is to be billed to a different address
117
+ # @type: string
118
+ field :bill_to_address_line1
119
+
120
+ # Billing address for this invoice line, if this line item is to be billed to a different address
121
+ # @type: string
122
+ field :bill_to_address_line2
123
+
124
+ # Billing address for this invoice line, if this line item is to be billed to a different address
125
+ # @type: string
126
+ field :bill_to_address_line3
127
+
128
+ # Billing address for this invoice line, if this line item is to be billed to a different address
129
+ # @type: string
130
+ field :bill_to_address_city
131
+
132
+ # Billing address for this invoice line, if this line item is to be billed to a different address
133
+ # @type: string
134
+ field :bill_to_address_region
135
+
136
+ # Billing address for this invoice line, if this line item is to be billed to a different address
137
+ # @type: string
138
+ field :bill_to_address_postal_code
139
+
140
+ # Billing address for this invoice line, if this line item is to be billed to a different address This will be validated by the /api/v1/countries data set
141
+ # @type: string
142
+ field :bill_to_address_country
143
+
144
+ # Billing address for this invoice line, if this line item is to be billed to a different address
145
+ # @type: number
146
+ # @format: float
147
+ field :bill_to_address_latitude
148
+
149
+ # Billing address for this invoice line, if this line item is to be billed to a different address
150
+ # @type: number
151
+ # @format: float
152
+ field :bill_to_address_longitude
153
+
154
+ # Shipping address for this invoice line, if this line item is to be shipped to a different address
155
+ # @type: string
156
+ field :ship_to_address_line1
157
+
158
+ # Shipping address for this invoice line, if this line item is to be shipped to a different address
159
+ # @type: string
160
+ field :ship_to_address_line2
161
+
162
+ # Shipping address for this invoice line, if this line item is to be shipped to a different address
163
+ # @type: string
164
+ field :ship_to_address_line3
165
+
166
+ # Shipping address for this invoice line, if this line item is to be shipped to a different address
167
+ # @type: string
168
+ field :ship_to_address_city
169
+
170
+ # Shipping address for this invoice line, if this line item is to be shipped to a different address
171
+ # @type: string
172
+ field :ship_to_address_region
173
+
174
+ # Shipping address for this invoice line, if this line item is to be shipped to a different address
175
+ # @type: string
176
+ field :ship_to_address_postal_code
177
+
178
+ # Shipping address for this invoice line, if this line item is to be shipped to a different address This will be validated by the /api/v1/countries data set
179
+ # @type: string
180
+ field :ship_to_address_country
181
+
182
+ # Shipping address for this invoice line, if this line item is to be shipped to a different address
183
+ # @type: number
184
+ # @format: float
185
+ field :ship_to_address_latitude
186
+
187
+ # Shipping address for this invoice line, if this line item is to be shipped to a different address
188
+ # @type: number
189
+ # @format: float
190
+ field :ship_to_address_longitude
191
+
192
+ # If known, the date when this record was created according to the originating financial system
193
+ # in which this record is maintained. If the originating financial system does not maintain a
194
+ # created-date, leave this field null.
195
+ # @type: string
196
+ # @format: date-time
197
+ field :created, Types::Params::DateTime
198
+
199
+ # If known, the date when this record was most recently modified according to the originating
200
+ # financial system in which this record is maintained. If the originating financial system does
201
+ # not maintain a most-recently-modified-date, leave this field null.
202
+ # @type: string
203
+ # @format: date-time
204
+ field :modified, Types::Params::DateTime
205
+
206
+
207
+
208
+ end
@@ -0,0 +1,65 @@
1
+ class Schema::InvoicePaymentDetail < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
9
+ # account will share the same GroupKey value. GroupKey values cannot be changed once created.
10
+ #
11
+ # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
12
+ # @type: string
13
+ # @format: uuid
14
+ field :group_key
15
+
16
+ # The unique identifier of this PaymentApplied record.
17
+ # @type: string
18
+ # @format: uuid
19
+ field :payment_applied_id
20
+
21
+ # The database id of the invoice
22
+ # @type: string
23
+ # @format: uuid
24
+ field :invoice_id
25
+
26
+ # The database id of the Payment.
27
+ # @type: string
28
+ # @format: uuid
29
+ field :payment_id
30
+
31
+ # Date Payment applied to Invoice.
32
+ # @type: string
33
+ # @format: date
34
+ field :apply_to_invoice_date
35
+
36
+ # Amount applied to Invoice.
37
+ # @type: number
38
+ # @format: double
39
+ field :payment_applied_amount
40
+
41
+ # An additional reference code that is sometimes used to identify this Payment.
42
+ # The meaning of this field is specific to the ERP or accounting system used by the user.
43
+ # @type: string
44
+ field :reference_code
45
+
46
+ # The ID number of the Company (CompanyType = "Customer") that created this Payment.
47
+ # @type: string
48
+ # @format: uuid
49
+ field :company_id
50
+
51
+ # The total value of this Payment.
52
+ # @type: number
53
+ # @format: double
54
+ field :payment_amount
55
+
56
+ # The remaining balance value of this Payment.
57
+ # @type: number
58
+ # @format: double
59
+ field :unapplied_amount
60
+
61
+ belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
62
+ belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
63
+
64
+
65
+ end
@@ -0,0 +1,85 @@
1
+ class Schema::InvoiceSummary < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
9
+ # account will share the same GroupKey value. GroupKey values cannot be changed once created.
10
+ #
11
+ # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
12
+ # @type: string
13
+ # @format: uuid
14
+ field :group_key
15
+
16
+ # The ID number of the counterparty for the invoice, for example, a customer or vendor.
17
+ # @type: string
18
+ # @format: uuid
19
+ field :customer_id
20
+
21
+ # The unique ID number of this invoice.
22
+ # @type: string
23
+ # @format: uuid
24
+ field :invoice_id
25
+
26
+ # A reference code that is used to identify this invoice.
27
+ # The meaning of this field is specific to the ERP or accounting system used by the user.
28
+ # @type: string
29
+ field :invoice_number
30
+
31
+ # The reporting date for this invoice.
32
+ # @type: string
33
+ # @format: date
34
+ field :invoice_date
35
+
36
+ # The name of the counterparty for the invoice, for example, a customer or vendor.
37
+ # @type: string
38
+ field :customer_name
39
+
40
+ # The status of the invoice.
41
+ # @type: string
42
+ field :status
43
+
44
+ # The due date of the invoice.
45
+ # @type: string
46
+ # @format: date
47
+ field :payment_due_date
48
+
49
+ # The total amount of the Invoice.
50
+ # @type: number
51
+ # @format: double
52
+ field :invoice_amount
53
+
54
+ # The remaining balance value of this invoice.
55
+ # @type: number
56
+ # @format: double
57
+ field :outstanding_balance
58
+
59
+ # A code identifying the type of this Invoice.
60
+ # @type: string
61
+ field :invoice_type_code
62
+
63
+ # The date stamp for the newest Activity on this Invoice.
64
+ # @type: string
65
+ # @format: date
66
+ field :newest_activity
67
+
68
+ # The number of days this Invoice is past due.
69
+ # @type: integer
70
+ # @format: int32
71
+ field :days_past_due
72
+
73
+ # The memo text of the payments associated to this invoice.
74
+ # @type: array
75
+ field :payment_numbers
76
+
77
+ # The ids of the payments associated to this invoice.
78
+ # @type: array
79
+ field :payment_ids
80
+
81
+ belongs_to :customer, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
82
+ belongs_to :connection, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
83
+
84
+
85
+ end
@@ -0,0 +1,26 @@
1
+ class Schema::InvoiceSummaryFetchResult < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+
9
+ # @type: integer
10
+ # @format: int32
11
+ field :total_count
12
+
13
+
14
+ # @type: integer
15
+ # @format: int32
16
+ field :page_size
17
+
18
+
19
+ # @type: integer
20
+ # @format: int32
21
+ field :page_number
22
+
23
+
24
+ has_many :records, {:class_name=>"Schema::InvoiceSummary", :included=>true}
25
+
26
+ end