lockstep_rails 0.3.51 → 0.3.53
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/app/concepts/lockstep/query.rb +2 -0
- data/app/models/lockstep/sf_payment_request.rb +7 -0
- data/app/platform_api/schema/account_authorisation.rb +14 -0
- data/app/platform_api/schema/accounting_profile.rb +6 -11
- data/app/platform_api/schema/accounting_profile_contact.rb +4 -0
- data/app/platform_api/schema/accounting_profile_contact_result.rb +166 -0
- data/app/platform_api/schema/accounting_profile_contact_result_fetch_result.rb +26 -0
- data/app/platform_api/schema/accounting_profile_request.rb +108 -0
- data/app/platform_api/schema/address.rb +38 -0
- data/app/platform_api/schema/amount.rb +20 -0
- data/app/platform_api/schema/ap_header_info.rb +4 -0
- data/app/platform_api/schema/app_enrollment.rb +4 -0
- data/app/platform_api/schema/app_enrollment_reconnect_info.rb +5 -1
- data/app/platform_api/schema/application.rb +0 -11
- data/app/platform_api/schema/ar_header_info.rb +4 -0
- data/app/platform_api/schema/at_risk_invoice_summary.rb +18 -0
- data/app/platform_api/schema/attachment.rb +0 -18
- data/app/platform_api/schema/attachment_link.rb +59 -0
- data/app/platform_api/schema/attachment_link_fetch_result.rb +26 -0
- data/app/platform_api/schema/base_currency_sync.rb +16 -0
- data/app/platform_api/schema/batch_sync.rb +10 -0
- data/app/platform_api/schema/company.rb +35 -0
- data/app/platform_api/schema/company_details.rb +6 -2
- data/app/platform_api/schema/company_details_payment.rb +8 -0
- data/app/platform_api/schema/company_sync.rb +5 -1
- data/app/platform_api/schema/contact_sync.rb +3 -0
- data/app/platform_api/schema/credit_memo_applied_sync.rb +3 -0
- data/app/platform_api/schema/credit_memo_invoice.rb +23 -0
- data/app/platform_api/schema/creditor_account.rb +32 -0
- data/app/platform_api/schema/custom_field_sync.rb +3 -0
- data/app/platform_api/schema/debtor_account.rb +33 -0
- data/app/platform_api/schema/debtor_agent_account.rb +26 -0
- data/app/platform_api/schema/developer_account_submit.rb +0 -4
- data/app/platform_api/schema/dpo_summary.rb +5 -1
- data/app/platform_api/schema/dpo_summary_group_total.rb +5 -1
- data/app/platform_api/schema/financial_account_sync.rb +3 -0
- data/app/platform_api/schema/group_account.rb +4 -0
- data/app/platform_api/schema/instructed_amount.rb +19 -0
- data/app/platform_api/schema/invoice.rb +41 -41
- data/app/platform_api/schema/invoice_line_sync.rb +3 -0
- data/app/platform_api/schema/invoice_payment_detail.rb +23 -0
- data/app/platform_api/schema/invoice_summary.rb +24 -24
- data/app/platform_api/schema/invoice_sync.rb +27 -4
- data/app/platform_api/schema/magic_link.rb +5 -5
- data/app/platform_api/schema/magic_link_status.rb +10 -0
- data/app/platform_api/schema/metadata.rb +14 -0
- data/app/platform_api/schema/payables_coming_due.rb +18 -14
- data/app/platform_api/schema/payables_coming_due_header.rb +5 -1
- data/app/platform_api/schema/payables_coming_due_widget.rb +5 -1
- data/app/platform_api/schema/payables_summary_report.rb +6 -2
- data/app/platform_api/schema/payment.rb +41 -37
- data/app/platform_api/schema/payment_applied_sync.rb +3 -0
- data/app/platform_api/schema/payment_detail.rb +18 -0
- data/app/platform_api/schema/payment_detail_header.rb +6 -2
- data/app/platform_api/schema/payment_instrument.rb +37 -0
- data/app/platform_api/schema/payment_response.rb +118 -0
- data/app/platform_api/schema/payment_summary.rb +23 -23
- data/app/platform_api/schema/payment_sync.rb +15 -2
- data/app/platform_api/schema/remittance_information.rb +18 -0
- data/app/platform_api/schema/reporting_amount.rb +30 -0
- data/app/platform_api/schema/risk_information.rb +22 -0
- data/app/platform_api/schema/risk_rate.rb +6 -2
- data/app/platform_api/schema/settlement_discount.rb +25 -0
- data/app/platform_api/schema/settlement_discounts_info.rb +21 -0
- data/app/platform_api/schema/sf_account_response.rb +66 -0
- data/app/platform_api/schema/sf_company_request.rb +38 -0
- data/app/platform_api/schema/sf_company_response.rb +51 -0
- data/app/platform_api/schema/sf_customer_request.rb +52 -0
- data/app/platform_api/schema/sf_customer_response.rb +84 -0
- data/app/platform_api/schema/sf_enroll_request.rb +16 -0
- data/app/platform_api/schema/sf_enroll_response.rb +16 -0
- data/app/platform_api/schema/sf_organisation_request.rb +38 -0
- data/app/platform_api/schema/sf_organisation_response.rb +44 -0
- data/app/platform_api/schema/sf_payment_query_response.rb +31 -0
- data/app/platform_api/schema/sf_payment_request.rb +67 -0
- data/app/platform_api/schema/sf_payment_response.rb +132 -0
- data/app/platform_api/schema/sf_servicer_response.rb +58 -0
- data/app/platform_api/schema/sf_servicers_auth_request.rb +32 -0
- data/app/platform_api/schema/sf_servicers_auth_response.rb +14 -0
- data/app/platform_api/schema/sf_submit_payment_info.rb +55 -0
- data/app/platform_api/schema/status.rb +15 -4
- data/app/platform_api/schema/support_access.rb +19 -0
- data/app/platform_api/schema/support_access_request.rb +15 -0
- data/app/platform_api/schema/sync_request.rb +7 -4
- data/app/platform_api/schema/transaction.rb +18 -0
- data/app/platform_api/schema/transaction_detail.rb +18 -0
- data/app/platform_api/schema/transcription_request_submit.rb +6 -1
- data/app/platform_api/schema/transcription_validation_request_item_fetch_result.rb +26 -0
- data/app/platform_api/schema/webhook.rb +1 -2
- data/app/platform_api/swagger.json +12909 -7941
- data/lib/lockstep_rails/version.rb +1 -1
- metadata +43 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c36b591ef6e4686383783a92bbaa7894b201f2957d2cc93fec9145499bcbb408
|
4
|
+
data.tar.gz: 29fc7598a1372a6b57e33310cb5cccb405da0a74fd5de4c1a29de408c8416352
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3becb217340a5bf55b71bb3e85f92abd253a8f25169b11c9197aa4df828cd2b5e45a26848b0c22a74ade17b621544a12c5aef3189aacc7638e31c9f01fa473f
|
7
|
+
data.tar.gz: ddb3d4bce85b4676d275a2551eea571310eda6f70021c81acec87506f190e4e1af688f9d90ee18ad288bede8fec4354615acb691601256db972e55cfad52e445
|
data/README.md
CHANGED
@@ -63,6 +63,7 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
63
63
|
* Lockstep::ReportPayablesComingDueSummary
|
64
64
|
* Lockstep::ReportPayableSummary
|
65
65
|
* Lockstep::ReportRiskRate
|
66
|
+
* Lockstep::ServiceFabricPayment
|
66
67
|
* Lockstep::Status
|
67
68
|
* Lockstep::TranscriptionValidationRequest
|
68
69
|
* Lockstep::User
|
@@ -241,6 +241,8 @@ class Lockstep::Query
|
|
241
241
|
return results.to_i
|
242
242
|
else
|
243
243
|
results = parsed_response.is_a?(Array) ? parsed_response : parsed_response["records"]
|
244
|
+
return [] if results.blank?
|
245
|
+
|
244
246
|
results = results[0..(criteria[:limit] - 1)] if criteria[:limit]
|
245
247
|
get_relation_objects results.map { |r|
|
246
248
|
# Convert camelcase to snake-case
|
@@ -0,0 +1,14 @@
|
|
1
|
+
class Schema::AccountAuthorisation < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# A URL that can be used to complete account activation at the servicer.
|
9
|
+
# @type: string
|
10
|
+
field :activation_link
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
end
|
@@ -5,7 +5,7 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The unique ID of this record, automatically assigned by Lockstep when this record is
|
8
|
+
# The unique ID of this record, automatically assigned by Lockstep when this record is
|
9
9
|
# added to the Lockstep platform.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
@@ -16,9 +16,9 @@ end
|
|
16
16
|
# @format: uuid
|
17
17
|
field :company_id
|
18
18
|
|
19
|
-
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
20
|
-
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
21
|
-
#
|
19
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
20
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
21
|
+
#
|
22
22
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
23
23
|
# @type: string
|
24
24
|
# @format: uuid
|
@@ -28,7 +28,7 @@ end
|
|
28
28
|
# @type: string
|
29
29
|
field :name
|
30
30
|
|
31
|
-
# The type of the accounting profile.
|
31
|
+
# The type of the accounting profile.
|
32
32
|
# Some examples include 'AR', 'AP', 'AR+AP', 'General Accounting', 'Treasury', 'Payroll', 'Finance'
|
33
33
|
# @type: string
|
34
34
|
field :type
|
@@ -70,11 +70,6 @@ end
|
|
70
70
|
# @type: string
|
71
71
|
field :country
|
72
72
|
|
73
|
-
# The ID of the primary contact with which this accounting profile is associated.
|
74
|
-
# @type: string
|
75
|
-
# @format: uuid
|
76
|
-
field :primary_contact_id
|
77
|
-
|
78
73
|
# The date on which this record was created.
|
79
74
|
# @type: string
|
80
75
|
# @format: date-time
|
@@ -95,7 +90,7 @@ end
|
|
95
90
|
# @format: uuid
|
96
91
|
field :modified_user_id
|
97
92
|
|
98
|
-
belongs_to :company, {:class_name=>"Lockstep::
|
93
|
+
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
99
94
|
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
100
95
|
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
101
96
|
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
@@ -21,6 +21,10 @@ end
|
|
21
21
|
# @format: uuid
|
22
22
|
field :contact_id
|
23
23
|
|
24
|
+
# Determines whether the contact is primary or secondary.
|
25
|
+
# @type: boolean
|
26
|
+
field :is_primary
|
27
|
+
|
24
28
|
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
25
29
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
26
30
|
#
|
@@ -0,0 +1,166 @@
|
|
1
|
+
class Schema::AccountingProfileContactResult < 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 :contact_id
|
15
|
+
|
16
|
+
# The ID of the company to which this contact belongs.
|
17
|
+
# @type: string
|
18
|
+
# @format: uuid
|
19
|
+
field :company_id
|
20
|
+
|
21
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
22
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
23
|
+
#
|
24
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
25
|
+
# @type: string
|
26
|
+
# @format: uuid
|
27
|
+
field :group_key
|
28
|
+
|
29
|
+
# The unique ID of this record as it was known in its originating financial system.
|
30
|
+
#
|
31
|
+
# If this contact record was imported from a financial system, it will have the value `ErpKey`
|
32
|
+
# set to the original primary key number of the record as it was known in the originating financial
|
33
|
+
# system. If this record was not imported, this value will be `null`.
|
34
|
+
#
|
35
|
+
# For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
|
36
|
+
# @type: string
|
37
|
+
field :erp_key
|
38
|
+
|
39
|
+
# The name of the contact.
|
40
|
+
# @type: string
|
41
|
+
field :contact_name
|
42
|
+
|
43
|
+
# A friendly human-readable code that describes this Contact.
|
44
|
+
# @type: string
|
45
|
+
field :contact_code
|
46
|
+
|
47
|
+
# The title of the contact.
|
48
|
+
# @type: string
|
49
|
+
field :title
|
50
|
+
|
51
|
+
# The role code for the contact.
|
52
|
+
# @type: string
|
53
|
+
field :role_code
|
54
|
+
|
55
|
+
# The email address of the contact.
|
56
|
+
# @type: string
|
57
|
+
# @format: email
|
58
|
+
field :email_address
|
59
|
+
|
60
|
+
# The phone number of the contact.
|
61
|
+
# @type: string
|
62
|
+
field :phone
|
63
|
+
|
64
|
+
# The fax number of the contact.
|
65
|
+
# @type: string
|
66
|
+
field :fax
|
67
|
+
|
68
|
+
# The first line of the address.
|
69
|
+
# @type: string
|
70
|
+
field :address1
|
71
|
+
|
72
|
+
# The second line of the address.
|
73
|
+
# @type: string
|
74
|
+
field :address2
|
75
|
+
|
76
|
+
# The third line of the address.
|
77
|
+
# @type: string
|
78
|
+
field :address3
|
79
|
+
|
80
|
+
# The city of the address.
|
81
|
+
# @type: string
|
82
|
+
field :city
|
83
|
+
|
84
|
+
# The state/region of the address.
|
85
|
+
# @type: string
|
86
|
+
field :state_region
|
87
|
+
|
88
|
+
# The postal/zip code of the address.
|
89
|
+
# @type: string
|
90
|
+
field :postal_code
|
91
|
+
|
92
|
+
# The two character country code of the address. This will be validated by the /api/v1/definitions/countries data set
|
93
|
+
# @type: string
|
94
|
+
field :country_code
|
95
|
+
|
96
|
+
# Flag indicating if the contact is active.
|
97
|
+
# @type: boolean
|
98
|
+
field :is_active
|
99
|
+
|
100
|
+
# The webpage url of the contact.
|
101
|
+
# @type: string
|
102
|
+
# @format: uri
|
103
|
+
field :webpage_url
|
104
|
+
|
105
|
+
# The picture/avatar url of the contact.
|
106
|
+
# @type: string
|
107
|
+
# @format: uri
|
108
|
+
field :picture_url
|
109
|
+
|
110
|
+
# The date on which this record was created.
|
111
|
+
# @type: string
|
112
|
+
# @format: date-time
|
113
|
+
field :created, Types::Params::DateTime
|
114
|
+
|
115
|
+
# The ID of the user who created this contact.
|
116
|
+
# @type: string
|
117
|
+
# @format: uuid
|
118
|
+
field :created_user_id
|
119
|
+
|
120
|
+
# The date on which this record was last modified.
|
121
|
+
# @type: string
|
122
|
+
# @format: date-time
|
123
|
+
field :modified, Types::Params::DateTime
|
124
|
+
|
125
|
+
# The ID of the user who last modified this contact.
|
126
|
+
# @type: string
|
127
|
+
# @format: uuid
|
128
|
+
field :modified_user_id
|
129
|
+
|
130
|
+
# The AppEnrollmentId of the application that imported this record. For accounts
|
131
|
+
# with more than one financial system connected, this field identifies the originating
|
132
|
+
# financial system that produced this record. This value is null if this record
|
133
|
+
# was not loaded from an external ERP or financial system.
|
134
|
+
# @type: string
|
135
|
+
# @format: uuid
|
136
|
+
field :app_enrollment_id
|
137
|
+
|
138
|
+
# Determines whether the contact is primary or secondary.
|
139
|
+
# @type: boolean
|
140
|
+
field :is_primary
|
141
|
+
|
142
|
+
# The ID of the profile this contact belongs to.
|
143
|
+
# @type: string
|
144
|
+
# @format: uuid
|
145
|
+
field :accounting_profile_id
|
146
|
+
|
147
|
+
# The ID of the accounting profile contact this contact matches.
|
148
|
+
# @type: string
|
149
|
+
# @format: uuid
|
150
|
+
field :accounting_profile_contact_id
|
151
|
+
|
152
|
+
# The Name of the profile this contact belongs to.
|
153
|
+
# @type: string
|
154
|
+
field :name
|
155
|
+
|
156
|
+
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
157
|
+
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
158
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
159
|
+
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
160
|
+
|
161
|
+
has_many :notes, {:class_name=>"Lockstep::Note", :included=>true, :foreign_key=>:object_key, :polymorphic=>{:table_key=>"AccountingProfileContactResult"}}
|
162
|
+
has_many :attachments, {:class_name=>"Schema::Attachment", :included=>true}
|
163
|
+
has_many :custom_field_definitions, {:class_name=>"Schema::CustomFieldDefinition", :included=>true}
|
164
|
+
has_many :custom_field_values, {:class_name=>"Schema::CustomFieldValue", :included=>true}
|
165
|
+
|
166
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::AccountingProfileContactResultFetchResult < 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::AccountingProfileContactResult", :included=>true}
|
25
|
+
|
26
|
+
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
class Schema::AccountingProfileRequest < 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
|
+
# @type: string
|
11
|
+
# @format: uuid
|
12
|
+
field :accounting_profile_id
|
13
|
+
|
14
|
+
# The ID of the company profile to which this accounting profile belongs.
|
15
|
+
# @type: string
|
16
|
+
# @format: uuid
|
17
|
+
field :company_id
|
18
|
+
|
19
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
20
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
21
|
+
#
|
22
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
23
|
+
# @type: string
|
24
|
+
# @format: uuid
|
25
|
+
field :group_key
|
26
|
+
|
27
|
+
# The name of the accounting profile.
|
28
|
+
# @type: string
|
29
|
+
field :name
|
30
|
+
|
31
|
+
# The type of the accounting profile.
|
32
|
+
# Some examples include 'AR', 'AP', 'AR+AP', 'General Accounting', 'Treasury', 'Payroll', 'Finance'
|
33
|
+
# @type: string
|
34
|
+
field :type
|
35
|
+
|
36
|
+
# The email address associated with the accounting profile.
|
37
|
+
# @type: string
|
38
|
+
# @format: email
|
39
|
+
field :email_address
|
40
|
+
|
41
|
+
# The phone number associated with the accounting profile.
|
42
|
+
# @type: string
|
43
|
+
field :phone
|
44
|
+
|
45
|
+
# The first line of the address.
|
46
|
+
# @type: string
|
47
|
+
field :address1
|
48
|
+
|
49
|
+
# The second line of the address.
|
50
|
+
# @type: string
|
51
|
+
field :address2
|
52
|
+
|
53
|
+
# The third line of the address.
|
54
|
+
# @type: string
|
55
|
+
field :address3
|
56
|
+
|
57
|
+
# The city of the address.
|
58
|
+
# @type: string
|
59
|
+
field :city
|
60
|
+
|
61
|
+
# The state/region of the address.
|
62
|
+
# @type: string
|
63
|
+
field :region
|
64
|
+
|
65
|
+
# The postal/zip code of the address.
|
66
|
+
# @type: string
|
67
|
+
field :postal_code
|
68
|
+
|
69
|
+
# The two character country code of the address.
|
70
|
+
# @type: string
|
71
|
+
field :country
|
72
|
+
|
73
|
+
# The date on which this record was created.
|
74
|
+
# @type: string
|
75
|
+
# @format: date-time
|
76
|
+
field :created, Types::Params::DateTime
|
77
|
+
|
78
|
+
# The ID of the user who created this accounting profile.
|
79
|
+
# @type: string
|
80
|
+
# @format: uuid
|
81
|
+
field :created_user_id
|
82
|
+
|
83
|
+
# The date on which this record was last modified.
|
84
|
+
# @type: string
|
85
|
+
# @format: date-time
|
86
|
+
field :modified, Types::Params::DateTime
|
87
|
+
|
88
|
+
# The ID of the user who last modified this accounting profile.
|
89
|
+
# @type: string
|
90
|
+
# @format: uuid
|
91
|
+
field :modified_user_id
|
92
|
+
|
93
|
+
# The ID of the primary contact that is linked to this profile.
|
94
|
+
# @type: string
|
95
|
+
# @format: uuid
|
96
|
+
field :primary_contact_id
|
97
|
+
|
98
|
+
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
99
|
+
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
100
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
101
|
+
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
102
|
+
|
103
|
+
has_many :notes, {:class_name=>"Lockstep::Note", :included=>true, :foreign_key=>:object_key, :polymorphic=>{:table_key=>"AccountingProfileRequest"}}
|
104
|
+
has_many :attachments, {:class_name=>"Schema::Attachment", :included=>true}
|
105
|
+
has_many :custom_field_definitions, {:class_name=>"Schema::CustomFieldDefinition", :included=>true}
|
106
|
+
has_many :custom_field_values, {:class_name=>"Schema::CustomFieldValue", :included=>true}
|
107
|
+
|
108
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
class Schema::Address < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Address line 1.
|
9
|
+
# @type: string
|
10
|
+
field :address_line1
|
11
|
+
|
12
|
+
# Address line 2.
|
13
|
+
# @type: string
|
14
|
+
field :address_line2
|
15
|
+
|
16
|
+
# Address line 3.
|
17
|
+
# @type: string
|
18
|
+
field :address_line3
|
19
|
+
|
20
|
+
# Address line 4.
|
21
|
+
# @type: string
|
22
|
+
field :address_line4
|
23
|
+
|
24
|
+
# Subdivision of a country. For example, state, county, or region.
|
25
|
+
# @type: string
|
26
|
+
field :country_subdivision
|
27
|
+
|
28
|
+
# Postal/zip code.
|
29
|
+
# @type: string
|
30
|
+
field :postal_code
|
31
|
+
|
32
|
+
# Country in the ISO 3166-1 Alpha-3 format.
|
33
|
+
# @type: string
|
34
|
+
field :country
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class Schema::Amount < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Net amount of the payment after fees have been deducted by the servicer(s) involved.
|
9
|
+
# @type: number
|
10
|
+
# @format: double
|
11
|
+
field :net_amount
|
12
|
+
|
13
|
+
# Total fee amount applied to this payment by the servicer(s) involved.
|
14
|
+
# @type: number
|
15
|
+
# @format: double
|
16
|
+
field :fee
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
end
|
@@ -58,6 +58,10 @@ end
|
|
58
58
|
# @type: boolean
|
59
59
|
field :sync_schedule_is_active
|
60
60
|
|
61
|
+
# Flag indicating if the App Enrollment is currently being deleted from the Platform.
|
62
|
+
# @type: boolean
|
63
|
+
field :is_deleted
|
64
|
+
|
61
65
|
# The Application to which this AppEnrollment belongs. Contains general name, description,
|
62
66
|
# logo, and other metadata about this application.
|
63
67
|
#
|
@@ -9,7 +9,7 @@ end
|
|
9
9
|
# @type: string
|
10
10
|
field :auth_code
|
11
11
|
|
12
|
-
# The
|
12
|
+
# The username for the web services account with access permissions.
|
13
13
|
# @type: string
|
14
14
|
field :username
|
15
15
|
|
@@ -29,6 +29,10 @@ end
|
|
29
29
|
# @type: string
|
30
30
|
field :token_secret
|
31
31
|
|
32
|
+
# The OAuth redirect uri.
|
33
|
+
# @type: string
|
34
|
+
field :redirect_uri
|
35
|
+
|
32
36
|
|
33
37
|
|
34
38
|
end
|
@@ -29,18 +29,12 @@ end
|
|
29
29
|
|
30
30
|
# The URL to visit for more information about this application
|
31
31
|
# @type: string
|
32
|
-
# @format: uri
|
33
32
|
field :project_url
|
34
33
|
|
35
34
|
# The URL for the icon for this application
|
36
35
|
# @type: string
|
37
|
-
# @format: uri
|
38
36
|
field :icon_url
|
39
37
|
|
40
|
-
# The description of the price for this application
|
41
|
-
# @type: string
|
42
|
-
field :price_terms
|
43
|
-
|
44
38
|
# The ID of the user who created this application
|
45
39
|
# @type: string
|
46
40
|
# @format: uuid
|
@@ -65,11 +59,6 @@ end
|
|
65
59
|
# @type: boolean
|
66
60
|
field :is_active
|
67
61
|
|
68
|
-
# URL to the Wiki for the Application
|
69
|
-
# @type: string
|
70
|
-
# @format: uri
|
71
|
-
field :wiki_url
|
72
|
-
|
73
62
|
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
74
63
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
75
64
|
#
|
@@ -51,6 +51,10 @@ end
|
|
51
51
|
# @format: date
|
52
52
|
field :payment_due_date
|
53
53
|
|
54
|
+
# The currency code of the invoice
|
55
|
+
# @type: string
|
56
|
+
field :currency_code
|
57
|
+
|
54
58
|
# The total amount of the Invoice.
|
55
59
|
# @type: number
|
56
60
|
# @format: double
|
@@ -61,6 +65,20 @@ end
|
|
61
65
|
# @format: double
|
62
66
|
field :outstanding_balance
|
63
67
|
|
68
|
+
# The currency code of the group.
|
69
|
+
# @type: string
|
70
|
+
field :base_currency_code
|
71
|
+
|
72
|
+
# The total amount of the Invoice in the group's currency.
|
73
|
+
# @type: number
|
74
|
+
# @format: double
|
75
|
+
field :base_currency_invoice_amount
|
76
|
+
|
77
|
+
# The remaining balance value of this invoice in the group's currency.
|
78
|
+
# @type: number
|
79
|
+
# @format: double
|
80
|
+
field :base_currency_outstanding_balance
|
81
|
+
|
64
82
|
# A code identifying the type of this Invoice.
|
65
83
|
# @type: string
|
66
84
|
field :invoice_type_code
|
@@ -52,11 +52,6 @@ end
|
|
52
52
|
# @type: string
|
53
53
|
field :file_ext
|
54
54
|
|
55
|
-
# DEPRECATED: This field is replaced by `AttachmentType`.
|
56
|
-
# @type: string
|
57
|
-
# @format: uuid
|
58
|
-
field :attachment_type_id
|
59
|
-
|
60
55
|
# A flag indicating whether this Attachment is archived (also known as hidden or deleted). When you call
|
61
56
|
# [ArchiveAttachment](https://developer.lockstep.io/reference/delete_api-v1-attachments-id) this field will
|
62
57
|
# be set to true.
|
@@ -65,19 +60,6 @@ end
|
|
65
60
|
# @type: boolean
|
66
61
|
field :is_archived
|
67
62
|
|
68
|
-
# DEPRECATED - Do not use
|
69
|
-
# @type: string
|
70
|
-
# @format: uuid
|
71
|
-
field :origin_attachment_id
|
72
|
-
|
73
|
-
# Flag for if LS clients can see this file
|
74
|
-
# @type: boolean
|
75
|
-
field :view_internal
|
76
|
-
|
77
|
-
# Flag for if Vendors and customers can see this file
|
78
|
-
# @type: boolean
|
79
|
-
field :view_external
|
80
|
-
|
81
63
|
# The unique ID of this record as it was known in its originating financial system.
|
82
64
|
#
|
83
65
|
# If this company record was imported from a financial system, it will have the value `ErpKey`
|