Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
lockstep_rails (0.3.89)
lockstep_rails (0.3.90)
rails

GEM
Expand Down
12 changes: 12 additions & 0 deletions app/models/lockstep/custom_field_value.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@ class Lockstep::CustomFieldValue < Lockstep::ApiRecord
self.model_name_uri = 'v1/CustomFieldValues'
self.id_ref = 'custom_field_definition_id'
load_schema(Schema::CustomFieldValue)

def update(attributes = {})
attributes = HashWithIndifferentAccess.new(attributes)

@unsaved_attributes.merge!(attributes)
attrs = attributes_for_saving.transform_keys { |key| key.camelize(:lower) }

# Label with CustomerLocale to be updated from here
resp = resource.patch("CustomerLocale/#{attributes[:record_key]}", body: attrs)
post_result(resp)
end

end
2 changes: 1 addition & 1 deletion app/platform_api/schema/api_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def self.id_ref
# @format: uuid
field :api_key_id

# The GroupKey uniquely identifies a single ADS Platform account. All records for this
# The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
#
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
Expand Down
6 changes: 3 additions & 3 deletions app/platform_api/schema/app_enrollment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def self.id_ref
end

# The unique ID of this record, automatically assigned by ADS when this record is
# added to the ADS Platform.
# added to the Accounting Data Service.
# @type: string
# @format: uuid
field :app_enrollment_id
Expand All @@ -17,7 +17,7 @@ def self.id_ref
# @format: uuid
field :app_id

# The GroupKey uniquely identifies a single ADS Platform account. All records for this
# The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
#
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
Expand Down Expand Up @@ -58,7 +58,7 @@ def self.id_ref
# @type: boolean
field :sync_schedule_is_active

# Flag indicating if the App Enrollment is currently being deleted from the Platform.
# Flag indicating if the App Enrollment is currently being deleted from the Network.
# @type: boolean
field :is_deleted

Expand Down
2 changes: 1 addition & 1 deletion app/platform_api/schema/app_enrollment_custom_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def self.id_ref
# @type: string
field :app_type

# The GroupKey uniquely identifies a single ADS Platform account. All records for this
# The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
#
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
Expand Down
16 changes: 0 additions & 16 deletions app/platform_api/schema/app_enrollment_reconnect_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ def self.id_ref
nil
end

# The OAuth authentication code.
# @type: string
field :auth_code

# The username for the web services account with access permissions.
# @type: string
field :username
Expand All @@ -21,18 +17,6 @@ def self.id_ref
# @type: string
field :realm_id

# The access token id for the connector enrollment.
# @type: string
field :token_id

# The access token secret for the connector enrollment.
# @type: string
field :token_secret

# The OAuth redirect uri.
# @type: string
field :redirect_uri



end
2 changes: 1 addition & 1 deletion app/platform_api/schema/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def self.id_ref
# @type: boolean
field :is_active

# The GroupKey uniquely identifies a single ADS Platform account. All records for this
# The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
#
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
Expand Down
16 changes: 8 additions & 8 deletions app/platform_api/schema/attachment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,48 +6,48 @@ def self.id_ref
end

# The unique ID of this record, automatically assigned by ADS when this record is
# added to the ADS Platform.
# added to the Accounting Data Service.
# @type: string
# @format: uuid
field :attachment_id

# The GroupKey uniquely identifies a single ADS Platform account. All records for this
# The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
#
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
# @type: string
# @format: uuid
field :group_key

# An Attachment is connected to an existing item within the ADS Platform by the fields `TableKey` and
# An Attachment is connected to an existing item within the Accounting Data Service by the fields `TableKey` and
# `ObjectKey`. For example, an Attachment connected to Invoice 12345 would have a `TableKey` value of
# `Invoice` and an `ObjectKey` value of `12345`.
#
# The `TableKey` value contains the name of the table within the ADS Platform to which this Attachment
# The `TableKey` value contains the name of the table within the Accounting Data Service to which this Attachment
# is connected.
#
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
# @type: string
field :table_key

# An Attachment is connected to an existing item within the ADS Platform by the fields `TableKey` and
# An Attachment is connected to an existing item within the Accounting Data Service by the fields `TableKey` and
# `ObjectKey`. For example, an Attachment connected to Invoice 12345 would have a `TableKey` value of
# `Invoice` and an `ObjectKey` value of `12345`.
#
# The `ObjectKey` value contains the primary key of the record within the ADS Platform to which this
# The `ObjectKey` value contains the primary key of the record within the Accounting Data Service to which this
# Attachment is connected.
#
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
# @type: string
# @format: uuid
field :object_key

# An Attachment represents a file that was uploaded to the ADS Platform. This field contains the original
# An Attachment represents a file that was uploaded to the Accounting Data Service. This field contains the original
# name of the file on disk, without its extension.
# @type: string
field :file_name

# An Attachment represents a file that was uploaded to the ADS Platform. This field contains the original
# An Attachment represents a file that was uploaded to the Accounting Data Service. This field contains the original
# extension name of the file on disk.
# @type: string
field :file_ext
Expand Down
12 changes: 6 additions & 6 deletions app/platform_api/schema/attachment_link.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def self.id_ref
nil
end

# The GroupKey uniquely identifies a single ADS Platform account. All records for this
# The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
#
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
Expand All @@ -14,28 +14,28 @@ def self.id_ref
field :group_key

# The unique ID of an attachment record, automatically assigned by ADS when this record is
# added to the ADS Platform.
# added to the Accounting Data Service.
# @type: string
# @format: uuid
field :attachment_id

# An Attachment is connected to an existing item within the ADS Platform by the fields `TableKey` and
# An Attachment is connected to an existing item within the Accounting Data Service by the fields `TableKey` and
# `ObjectKey`. For example, an Attachment connected to Invoice 12345 would have a `TableKey` value of
# `Invoice` and an `ObjectKey` value of `12345`.
#
# The `ObjectKey` value contains the primary key of the record within the ADS Platform to which this
# The `ObjectKey` value contains the primary key of the record within the Accounting Data Service to which this
# Attachment is connected.
#
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
# @type: string
# @format: uuid
field :object_key

# An Attachment is connected to an existing item within the ADS Platform by the fields `TableKey` and
# An Attachment is connected to an existing item within the Accounting Data Service by the fields `TableKey` and
# `ObjectKey`. For example, an Attachment connected to Invoice 12345 would have a `TableKey` value of
# `Invoice` and an `ObjectKey` value of `12345`.
#
# The `TableKey` value contains the name of the table within the ADS Platform to which this Attachment
# The `TableKey` value contains the name of the table within the Accounting Data Service to which this Attachment
# is connected.
#
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
Expand Down
4 changes: 2 additions & 2 deletions app/platform_api/schema/code_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ def self.id_ref
end

# The unique ID of this record, automatically assigned by ADS when this record is
# added to the ADS Platform.
# added to the Accounting Data Service.
# @type: string
# @format: uuid
field :code_definition_id

# The GroupKey uniquely identifies a single ADS Platform account. All records for this
# The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
#
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
Expand Down
20 changes: 7 additions & 13 deletions app/platform_api/schema/company.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def self.id_ref
end

# The unique ID of this record, automatically assigned by ADS when this record is
# added to the ADS Platform.
# added to the Accounting Data Service.
#
# For the ID of this record in its originating financial system, see `ErpKey`.
# @type: string
Expand Down Expand Up @@ -55,7 +55,7 @@ def self.id_ref
# @format: uuid
field :enterprise_id

# The GroupKey uniquely identifies a single ADS Platform account. All records for this
# The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
#
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
Expand All @@ -82,7 +82,7 @@ def self.id_ref
# The scan status of the company's logo, if it exists
field :company_logo_status

# The ADS Platform `ContactId` of the primary contact for this company.
# The Accounting Data Service `ContactId` of the primary contact for this company. This contact must belong to this company.
# @type: string
# @format: uuid
field :primary_contact_id
Expand Down Expand Up @@ -159,16 +159,6 @@ def self.id_ref
# @type: string
field :duns_number

# AP (Accounts Payable) Email Address
# @type: string
# @format: email
field :ap_email_address

# AR (Accounts Receivable) Email Address
# @type: string
# @format: email
field :ar_email_address

# Indicates the preferred invoice delivery method. Examples include Print, Email, Fax
# @type: string
field :preferred_delivery_method
Expand Down Expand Up @@ -256,6 +246,10 @@ def self.id_ref
# @format: uuid
field :profile_reference_id

# A reference code for this company. This code is used to identify this company in external ERP systems.
# @type: string
field :reference_code

# All invoices attached to this company.
#
# To retrieve this collection, specify `Invoices` in the "Include" parameter for your query. For more information on Invoices, see [InvoiceModel](https://developer.lockstep.io/reference/get_api-v1-invoices-id).
Expand Down
2 changes: 1 addition & 1 deletion app/platform_api/schema/company_details.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def self.id_ref
nil
end

# The GroupKey uniquely identifies a single ADS Platform account. All records for this
# The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
#
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
Expand Down
2 changes: 1 addition & 1 deletion app/platform_api/schema/company_details_payment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def self.id_ref
nil
end

# The GroupKey uniquely identifies a single ADS Platform account. All records for this
# The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
#
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
Expand Down
2 changes: 1 addition & 1 deletion app/platform_api/schema/company_magic_link_summary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def self.id_ref
# @type: string
field :company_type

# The GroupKey uniquely identifies a single ADS Platform account. All records for this
# The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
#
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
Expand Down
19 changes: 5 additions & 14 deletions app/platform_api/schema/company_sync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def self.id_ref
# Indicates what action to take when an existing object has been found during the sync process.
field :on_match_action

# The unique identifier of this object in the Sage Network platform.
# The unique identifier of this object in the Accounting Data Service.
# @type: string
# @format: uuid
field :network_id
Expand All @@ -20,9 +20,6 @@ def self.id_ref
# Example: If you store your company records in a database, whatever the primary key for the company table is
# in the database should be the `ErpKey`.
#
# Example: If you use a financial system such as QuickBooks or Xero, look for the primary ID number of the
# company record within that financial system.
#
# For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
# @type: string
field :erp_key
Expand Down Expand Up @@ -145,16 +142,6 @@ def self.id_ref
# @type: string
field :duns_number

# If you know the AP (accounts payable) email address of this company, fill it in here. This is the email
# address where you would send questions to the company if the company owed you money.
# @type: string
field :ap_email_address

# If you know the AR (accounts receivable) email address of this company, fill it in here. This is the email
# address where you would send questions to the company if you owed this company money.
# @type: string
field :ar_email_address

# Indicates the preferred invoice delivery method. Examples include Print, Email, Fax
# @type: string
field :preferred_delivery_method
Expand All @@ -175,6 +162,10 @@ def self.id_ref
# @type: string
field :company_identifiers

# A reference code for the Company. This code is used to identify this company in external ERP systems.
# @type: string
field :reference_code



end
Loading