lockstep_sdk 2022.37.24.0 → 2023.1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/lockstep_sdk/clients/api_keys_client.rb +3 -3
- data/lib/lockstep_sdk/clients/app_enrollments_client.rb +5 -5
- data/lib/lockstep_sdk/clients/applications_client.rb +3 -3
- data/lib/lockstep_sdk/clients/attachments_client.rb +3 -3
- data/lib/lockstep_sdk/clients/code_definitions_client.rb +3 -3
- data/lib/lockstep_sdk/clients/companies_client.rb +40 -10
- data/lib/lockstep_sdk/clients/contacts_client.rb +17 -6
- data/lib/lockstep_sdk/clients/{credit_memo_applied_client.rb → credit_memos_applied_client.rb} +30 -30
- data/lib/lockstep_sdk/clients/currencies_client.rb +2 -2
- data/lib/lockstep_sdk/clients/custom_field_definitions_client.rb +3 -3
- data/lib/lockstep_sdk/clients/custom_field_values_client.rb +3 -3
- data/lib/lockstep_sdk/clients/definitions_client.rb +6 -6
- data/lib/lockstep_sdk/clients/feature_flags_client.rb +35 -0
- data/lib/lockstep_sdk/clients/financial_account_balance_history_client.rb +3 -3
- data/lib/lockstep_sdk/clients/financial_account_client.rb +3 -3
- data/lib/lockstep_sdk/clients/financial_year_settings_client.rb +3 -3
- data/lib/lockstep_sdk/clients/group_accounts_client.rb +2 -2
- data/lib/lockstep_sdk/clients/invoice_addresses_client.rb +91 -0
- data/lib/lockstep_sdk/clients/invoice_history_client.rb +3 -3
- data/lib/lockstep_sdk/clients/invoice_lines_client.rb +88 -0
- data/lib/lockstep_sdk/clients/invoices_client.rb +17 -6
- data/lib/lockstep_sdk/clients/leads_client.rb +2 -2
- data/lib/lockstep_sdk/clients/magic_links_client.rb +62 -0
- data/lib/lockstep_sdk/clients/notes_client.rb +3 -3
- data/lib/lockstep_sdk/clients/payments_applied_client.rb +93 -0
- data/lib/lockstep_sdk/clients/payments_client.rb +6 -6
- data/lib/lockstep_sdk/clients/profiles_accounting_client.rb +104 -0
- data/lib/lockstep_sdk/clients/profiles_accounting_contacts_client.rb +91 -0
- data/lib/lockstep_sdk/clients/{profiles_client.rb → profiles_companies_client.rb} +7 -7
- data/lib/lockstep_sdk/clients/provisioning_client.rb +2 -2
- data/lib/lockstep_sdk/clients/reports_client.rb +4 -4
- data/lib/lockstep_sdk/clients/status_client.rb +2 -2
- data/lib/lockstep_sdk/clients/sync_client.rb +3 -3
- data/lib/lockstep_sdk/clients/transactions_client.rb +54 -0
- data/lib/lockstep_sdk/clients/transcriptions_client.rb +91 -0
- data/lib/lockstep_sdk/clients/user_accounts_client.rb +13 -15
- data/lib/lockstep_sdk/clients/user_roles_client.rb +3 -3
- data/lib/lockstep_sdk/clients/webhook_rules_client.rb +3 -3
- data/lib/lockstep_sdk/clients/webhooks_client.rb +4 -4
- data/lib/lockstep_sdk/lockstep_api.rb +54 -24
- data/lib/lockstep_sdk/models/accounting_profile_contact_model.rb +90 -0
- data/lib/lockstep_sdk/models/accounting_profile_model.rb +183 -0
- data/lib/lockstep_sdk/models/action_result_model.rb +2 -2
- data/lib/lockstep_sdk/models/aging_model.rb +2 -2
- data/lib/lockstep_sdk/models/ap_aging_header_info_model.rb +2 -2
- data/lib/lockstep_sdk/models/ap_header_info_model.rb +8 -2
- data/lib/lockstep_sdk/models/api_key_model.rb +2 -2
- data/lib/lockstep_sdk/models/app_enrollment_custom_field_model.rb +2 -2
- data/lib/lockstep_sdk/models/app_enrollment_model.rb +8 -2
- data/lib/lockstep_sdk/models/{app_enrollment_reconnect_request.rb → app_enrollment_reconnect_info.rb} +10 -4
- data/lib/lockstep_sdk/models/application_model.rb +2 -2
- data/lib/lockstep_sdk/models/ar_aging_header_info_model.rb +2 -2
- data/lib/lockstep_sdk/models/ar_header_info_model.rb +8 -2
- data/lib/lockstep_sdk/models/at_risk_invoice_summary_model.rb +26 -2
- data/lib/lockstep_sdk/models/attachment_header_info_model.rb +2 -2
- data/lib/lockstep_sdk/models/attachment_model.rb +2 -2
- data/lib/lockstep_sdk/models/batch_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/bulk_currency_conversion_model.rb +2 -2
- data/lib/lockstep_sdk/models/bulk_delete_request_model.rb +47 -0
- data/lib/lockstep_sdk/models/cashflow_report_model.rb +2 -2
- data/lib/lockstep_sdk/models/code_definition_model.rb +2 -2
- data/lib/lockstep_sdk/models/company_details_model.rb +2 -2
- data/lib/lockstep_sdk/models/company_details_payment_model.rb +2 -2
- data/lib/lockstep_sdk/models/company_model.rb +8 -8
- data/lib/lockstep_sdk/models/company_sync_model.rb +2 -8
- data/lib/lockstep_sdk/models/connector_info_model.rb +2 -2
- data/lib/lockstep_sdk/models/contact_model.rb +2 -2
- data/lib/lockstep_sdk/models/contact_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/country_model.rb +2 -2
- data/lib/lockstep_sdk/models/credit_memo_applied_model.rb +2 -2
- data/lib/lockstep_sdk/models/credit_memo_applied_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/credit_memo_invoice_model.rb +32 -2
- data/lib/lockstep_sdk/models/currency_model.rb +2 -2
- data/lib/lockstep_sdk/models/currency_rate_model.rb +2 -2
- data/lib/lockstep_sdk/models/custom_field_definition_model.rb +2 -2
- data/lib/lockstep_sdk/models/custom_field_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/custom_field_value_model.rb +20 -2
- data/lib/lockstep_sdk/models/customer_summary_model.rb +8 -2
- data/lib/lockstep_sdk/models/daily_payable_outstanding_report_model.rb +2 -2
- data/lib/lockstep_sdk/models/daily_sales_outstanding_report_model.rb +2 -2
- data/lib/lockstep_sdk/models/delete_result.rb +47 -0
- data/lib/lockstep_sdk/models/developer_account_submit_model.rb +2 -2
- data/lib/lockstep_sdk/models/dpo_summary_group_total_model.rb +2 -2
- data/lib/lockstep_sdk/models/dpo_summary_model.rb +2 -2
- data/lib/lockstep_sdk/models/erp_model.rb +2 -2
- data/lib/lockstep_sdk/models/error_result.rb +2 -2
- data/lib/lockstep_sdk/models/feature_flags_request_model.rb +47 -0
- data/lib/lockstep_sdk/models/feature_flags_response_model.rb +47 -0
- data/lib/lockstep_sdk/models/financial_account_balance_history_model.rb +2 -2
- data/lib/lockstep_sdk/models/financial_account_balance_history_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/financial_account_model.rb +2 -2
- data/lib/lockstep_sdk/models/financial_account_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/financial_report_cell_model.rb +2 -2
- data/lib/lockstep_sdk/models/financial_report_model.rb +2 -2
- data/lib/lockstep_sdk/models/financial_report_row_model.rb +2 -2
- data/lib/lockstep_sdk/models/financial_year_setting_model.rb +2 -2
- data/lib/lockstep_sdk/models/financial_year_setting_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/group_account_model.rb +8 -2
- data/lib/lockstep_sdk/models/invite_data_model.rb +2 -2
- data/lib/lockstep_sdk/models/invite_model.rb +2 -2
- data/lib/lockstep_sdk/models/invite_submit_model.rb +2 -2
- data/lib/lockstep_sdk/models/invoice_address_model.rb +2 -2
- data/lib/lockstep_sdk/models/invoice_history_model.rb +8 -2
- data/lib/lockstep_sdk/models/invoice_line_model.rb +2 -2
- data/lib/lockstep_sdk/models/invoice_line_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/invoice_model.rb +8 -2
- data/lib/lockstep_sdk/models/invoice_payment_detail_model.rb +32 -2
- data/lib/lockstep_sdk/models/invoice_summary_model.rb +44 -2
- data/lib/lockstep_sdk/models/invoice_summary_model_invoice_summary_totals_model_summary_fetch_result.rb +75 -0
- data/lib/lockstep_sdk/models/invoice_summary_totals_model.rb +53 -0
- data/lib/lockstep_sdk/models/invoice_sync_model.rb +8 -2
- data/lib/lockstep_sdk/models/lead_model.rb +3 -3
- data/lib/lockstep_sdk/models/magic_link_model.rb +131 -0
- data/lib/lockstep_sdk/models/magic_link_status_model.rb +71 -0
- data/lib/lockstep_sdk/models/note_model.rb +2 -2
- data/lib/lockstep_sdk/models/payables_coming_due_header_model.rb +2 -2
- data/lib/lockstep_sdk/models/payables_coming_due_model.rb +2 -2
- data/lib/lockstep_sdk/models/payables_coming_due_widget_model.rb +2 -2
- data/lib/lockstep_sdk/models/payables_summary_report_model.rb +2 -2
- data/lib/lockstep_sdk/models/payment_applied_model.rb +2 -2
- data/lib/lockstep_sdk/models/payment_applied_sync_model.rb +2 -2
- data/lib/lockstep_sdk/models/payment_detail_header_model.rb +10 -4
- data/lib/lockstep_sdk/models/payment_detail_model.rb +26 -2
- data/lib/lockstep_sdk/models/payment_model.rb +8 -2
- data/lib/lockstep_sdk/models/payment_summary_model.rb +38 -2
- data/lib/lockstep_sdk/models/payment_summary_model_payment_summary_totals_model_summary_fetch_result.rb +75 -0
- data/lib/lockstep_sdk/models/payment_summary_totals_model.rb +53 -0
- data/lib/lockstep_sdk/models/payment_sync_model.rb +8 -2
- data/lib/lockstep_sdk/models/public_company_profile_model.rb +2 -2
- data/lib/lockstep_sdk/models/risk_rate_model.rb +10 -4
- data/lib/lockstep_sdk/models/state_model.rb +2 -2
- data/lib/lockstep_sdk/models/status_model.rb +32 -2
- data/lib/lockstep_sdk/models/summary_aging_totals_model.rb +53 -0
- data/lib/lockstep_sdk/models/sync_entity_result_model.rb +2 -2
- data/lib/lockstep_sdk/models/sync_request_model.rb +14 -2
- data/lib/lockstep_sdk/models/sync_submit_model.rb +2 -2
- data/lib/lockstep_sdk/models/transaction_detail_model.rb +138 -0
- data/lib/lockstep_sdk/models/transaction_model.rb +144 -0
- data/lib/lockstep_sdk/models/transaction_model_transaction_summary_total_model_summary_fetch_result.rb +75 -0
- data/lib/lockstep_sdk/models/transaction_summary_total_model.rb +71 -0
- data/lib/lockstep_sdk/models/transcription_request_submit.rb +71 -0
- data/lib/lockstep_sdk/models/transcription_validation_request.rb +89 -0
- data/lib/lockstep_sdk/models/transcription_validation_request_item.rb +149 -0
- data/lib/lockstep_sdk/models/transfer_owner_model.rb +2 -2
- data/lib/lockstep_sdk/models/transfer_owner_submit_model.rb +2 -2
- data/lib/lockstep_sdk/models/uri_model.rb +2 -2
- data/lib/lockstep_sdk/models/user_account_model.rb +2 -2
- data/lib/lockstep_sdk/models/user_data_response_model.rb +53 -0
- data/lib/lockstep_sdk/models/user_group_model.rb +2 -2
- data/lib/lockstep_sdk/models/user_role_model.rb +2 -2
- data/lib/lockstep_sdk/models/vendor_summary_model.rb +44 -2
- data/lib/lockstep_sdk/models/view_box_settings_model.rb +65 -0
- data/lib/lockstep_sdk/models/webhook_history_table_storage_model.rb +2 -2
- data/lib/lockstep_sdk/models/webhook_model.rb +2 -2
- data/lib/lockstep_sdk/models/webhook_rule_model.rb +2 -2
- data/lib/lockstep_sdk/version.rb +1 -1
- metadata +36 -12
- data/lib/lockstep_sdk/clients/activities_client.rb +0 -116
- data/lib/lockstep_sdk/clients/emails_client.rb +0 -105
- data/lib/lockstep_sdk/clients/payment_applications_client.rb +0 -93
- data/lib/lockstep_sdk/models/activity_model.rb +0 -218
- data/lib/lockstep_sdk/models/activity_stream_item_model.rb +0 -101
- data/lib/lockstep_sdk/models/activity_xref_model.rb +0 -71
- data/lib/lockstep_sdk/models/email_model.rb +0 -242
@@ -1,242 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# Lockstep Platform SDK for Ruby
|
3
|
-
#
|
4
|
-
# (c) 2021-2022 Lockstep, Inc.
|
5
|
-
#
|
6
|
-
# For the full copyright and license information, please view the LICENSE
|
7
|
-
# file that was distributed with this source code.
|
8
|
-
#
|
9
|
-
# @author Lockstep Network <support@lockstep.io>
|
10
|
-
# @copyright 2021-2022 Lockstep, Inc.
|
11
|
-
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
12
|
-
#
|
13
|
-
|
14
|
-
|
15
|
-
require 'json'
|
16
|
-
|
17
|
-
module LockstepSdk
|
18
|
-
|
19
|
-
##
|
20
|
-
# An Email represents a communication sent from one company to another. The creator of the email is identified
|
21
|
-
# by the `CompanyId` field, recipient(s) by the `EmailTo` field, and cc recipient(s) by the 'EmailCC' field.
|
22
|
-
# The Email Model represents an email and a number of different metadata attributes related to the creation,
|
23
|
-
# storage, and ownership of the email.
|
24
|
-
class EmailModel
|
25
|
-
|
26
|
-
##
|
27
|
-
# Initialize the EmailModel using the provided prototype
|
28
|
-
def initialize(params = {})
|
29
|
-
@email_id = params.dig(:email_id)
|
30
|
-
@thread_id = params.dig(:thread_id)
|
31
|
-
@group_key = params.dig(:group_key)
|
32
|
-
@company_id = params.dig(:company_id)
|
33
|
-
@email_from = params.dig(:email_from)
|
34
|
-
@email_to = params.dig(:email_to)
|
35
|
-
@email_cc = params.dig(:email_cc)
|
36
|
-
@email_subject = params.dig(:email_subject)
|
37
|
-
@email_body = params.dig(:email_body)
|
38
|
-
@sent_date = params.dig(:sent_date)
|
39
|
-
@is_unread = params.dig(:is_unread)
|
40
|
-
@is_priority = params.dig(:is_priority)
|
41
|
-
@is_spam = params.dig(:is_spam)
|
42
|
-
@created = params.dig(:created)
|
43
|
-
@created_user_id = params.dig(:created_user_id)
|
44
|
-
@to_be_sent = params.dig(:to_be_sent)
|
45
|
-
@customer_id = params.dig(:customer_id)
|
46
|
-
@received_time_stamp = params.dig(:received_time_stamp)
|
47
|
-
@opened_timestamp = params.dig(:opened_timestamp)
|
48
|
-
@view_count = params.dig(:view_count)
|
49
|
-
@app_enrollment_id = params.dig(:app_enrollment_id)
|
50
|
-
@external_email_id = params.dig(:external_email_id)
|
51
|
-
@external_thread_id = params.dig(:external_thread_id)
|
52
|
-
@email_bcc = params.dig(:email_bcc)
|
53
|
-
@send_type = params.dig(:send_type)
|
54
|
-
@modified = params.dig(:modified)
|
55
|
-
@modified_user_id = params.dig(:modified_user_id)
|
56
|
-
@response_origin_id = params.dig(:response_origin_id)
|
57
|
-
@response_origin = params.dig(:response_origin)
|
58
|
-
@notes = params.dig(:notes)
|
59
|
-
@attachments = params.dig(:attachments)
|
60
|
-
@custom_field_definitions = params.dig(:custom_field_definitions)
|
61
|
-
@custom_field_values = params.dig(:custom_field_values)
|
62
|
-
end
|
63
|
-
|
64
|
-
##
|
65
|
-
# @return [Uuid] The unique ID of this record, automatically assigned by Lockstep when this record is added to the Lockstep platform.
|
66
|
-
attr_accessor :email_id
|
67
|
-
|
68
|
-
##
|
69
|
-
# @return [Uuid] The unique ID number of this email's conversation thread.
|
70
|
-
attr_accessor :thread_id
|
71
|
-
|
72
|
-
##
|
73
|
-
# @return [Uuid] The GroupKey uniquely identifies a single Lockstep Platform 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).
|
74
|
-
attr_accessor :group_key
|
75
|
-
|
76
|
-
##
|
77
|
-
# @return [Uuid] The ID number of the company that created this email.
|
78
|
-
attr_accessor :company_id
|
79
|
-
|
80
|
-
##
|
81
|
-
# @return [String] The email address for the sender of this email.
|
82
|
-
attr_accessor :email_from
|
83
|
-
|
84
|
-
##
|
85
|
-
# @return [String] The email address for the recipient(s) of this email.
|
86
|
-
attr_accessor :email_to
|
87
|
-
|
88
|
-
##
|
89
|
-
# @return [String] The email address for the CC recipient(s) of this email
|
90
|
-
attr_accessor :email_cc
|
91
|
-
|
92
|
-
##
|
93
|
-
# @return [String] The subject line of this email.
|
94
|
-
attr_accessor :email_subject
|
95
|
-
|
96
|
-
##
|
97
|
-
# @return [String] The body content of this email.
|
98
|
-
attr_accessor :email_body
|
99
|
-
|
100
|
-
##
|
101
|
-
# @return [Date-time] The date on which this email was sent.
|
102
|
-
attr_accessor :sent_date
|
103
|
-
|
104
|
-
##
|
105
|
-
# @return [Boolean] A status flag indicating if this email is unread.
|
106
|
-
attr_accessor :is_unread
|
107
|
-
|
108
|
-
##
|
109
|
-
# @return [Boolean] A status flag indicating if this email is priority status.
|
110
|
-
attr_accessor :is_priority
|
111
|
-
|
112
|
-
##
|
113
|
-
# @return [Boolean] A status flag indicating if this email is marked as spam.
|
114
|
-
attr_accessor :is_spam
|
115
|
-
|
116
|
-
##
|
117
|
-
# @return [Date-time] The date on which this email was created.
|
118
|
-
attr_accessor :created
|
119
|
-
|
120
|
-
##
|
121
|
-
# @return [Uuid] The ID number of the user who created this email.
|
122
|
-
attr_accessor :created_user_id
|
123
|
-
|
124
|
-
##
|
125
|
-
# @return [Boolean] A status flag indicating if this email is to be sent.
|
126
|
-
attr_accessor :to_be_sent
|
127
|
-
|
128
|
-
##
|
129
|
-
# @return [Uuid] The ID number of the customer that sent this email.
|
130
|
-
attr_accessor :customer_id
|
131
|
-
|
132
|
-
##
|
133
|
-
# @return [Date-time] The date on which this email was received.
|
134
|
-
attr_accessor :received_time_stamp
|
135
|
-
|
136
|
-
##
|
137
|
-
# @return [Date-time] The date on which this email was opened.
|
138
|
-
attr_accessor :opened_timestamp
|
139
|
-
|
140
|
-
##
|
141
|
-
# @return [Int32] The number of times this email was viewed.
|
142
|
-
attr_accessor :view_count
|
143
|
-
|
144
|
-
##
|
145
|
-
# @return [Uuid] The AppEnrollmentId of the application that imported this record. For accounts with more than one financial system connected, this field identifies the originating financial system that produced this record. This value is null if this record was not loaded from an external ERP or financial system.
|
146
|
-
attr_accessor :app_enrollment_id
|
147
|
-
|
148
|
-
##
|
149
|
-
# @return [String] The id of the email in an external system if imported.
|
150
|
-
attr_accessor :external_email_id
|
151
|
-
|
152
|
-
##
|
153
|
-
# @return [String] The id of the email thread in an external system if imported.
|
154
|
-
attr_accessor :external_thread_id
|
155
|
-
|
156
|
-
##
|
157
|
-
# @return [String] The email address(es) for the BCC recipient(s) of this email
|
158
|
-
attr_accessor :email_bcc
|
159
|
-
|
160
|
-
##
|
161
|
-
# @return [String] The type message being sent (New, Reply, Forward) or null for messages not being sent.
|
162
|
-
attr_accessor :send_type
|
163
|
-
|
164
|
-
##
|
165
|
-
# @return [Date-time] The date on which this email was modified. Email modification should only be done by internal services.
|
166
|
-
attr_accessor :modified
|
167
|
-
|
168
|
-
##
|
169
|
-
# @return [Uuid] The ID of the user who modified this email. Email modification should only be done by internal services.
|
170
|
-
attr_accessor :modified_user_id
|
171
|
-
|
172
|
-
##
|
173
|
-
# @return [Uuid] If the message being sent is a reply or a forward, the id of the the email being replied to or forwarded. Otherwise null.
|
174
|
-
attr_accessor :response_origin_id
|
175
|
-
|
176
|
-
##
|
177
|
-
# @return [EmailModel] The email object associated with the response origin id.
|
178
|
-
attr_accessor :response_origin
|
179
|
-
|
180
|
-
##
|
181
|
-
# @return [NoteModel] A collection of notes linked to this record. To retrieve this collection, specify `Notes` in the `include` parameter when retrieving data. To create a note, use the [Create Note](https://developer.lockstep.io/reference/post_api-v1-notes) endpoint with the `TableKey` to `Email` and the `ObjectKey` set to the `EmailId` for this record. For more information on extensibility, see [linking extensible metadata to objects](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
182
|
-
attr_accessor :notes
|
183
|
-
|
184
|
-
##
|
185
|
-
# @return [AttachmentModel] A collection of attachments linked to this record. To retrieve this collection, specify `Attachments` in the `include` parameter when retrieving data. To create an attachment, use the [Upload Attachment](https://developer.lockstep.io/reference/post_api-v1-attachments) endpoint with the `TableKey` to `Email` and the `ObjectKey` set to the `EmailId` for this record. For more information on extensibility, see [linking extensible metadata to objects](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
186
|
-
attr_accessor :attachments
|
187
|
-
|
188
|
-
##
|
189
|
-
# @return [CustomFieldDefinitionModel] A collection of custom fields linked to this record. To retrieve this collection, specify `CustomFieldDefinitions` in the `include` parameter when retrieving data. To create a custom field, use the [Create Custom Field](https://developer.lockstep.io/reference/post_api-v1-customfieldvalues) endpoint with the `TableKey` to `Email` and the `ObjectKey` set to the `EmailId` for this record. For more information on extensibility, see [linking extensible metadata to objects](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
190
|
-
attr_accessor :custom_field_definitions
|
191
|
-
|
192
|
-
##
|
193
|
-
# @return [CustomFieldValueModel] A collection of custom fields linked to this record. To retrieve this collection, specify `CustomFieldValues` in the `include` parameter when retrieving data. To create a custom field, use the [Create Custom Field](https://developer.lockstep.io/reference/post_api-v1-customfieldvalues) endpoint with the `TableKey` to `Email` and the `ObjectKey` set to the `EmailId` for this record. For more information on extensibility, see [linking extensible metadata to objects](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
194
|
-
attr_accessor :custom_field_values
|
195
|
-
|
196
|
-
##
|
197
|
-
# @return [object] This object as a JSON key-value structure
|
198
|
-
def as_json(options={})
|
199
|
-
{
|
200
|
-
'emailId' => @email_id,
|
201
|
-
'threadId' => @thread_id,
|
202
|
-
'groupKey' => @group_key,
|
203
|
-
'companyId' => @company_id,
|
204
|
-
'emailFrom' => @email_from,
|
205
|
-
'emailTo' => @email_to,
|
206
|
-
'emailCC' => @email_cc,
|
207
|
-
'emailSubject' => @email_subject,
|
208
|
-
'emailBody' => @email_body,
|
209
|
-
'sentDate' => @sent_date,
|
210
|
-
'isUnread' => @is_unread,
|
211
|
-
'isPriority' => @is_priority,
|
212
|
-
'isSpam' => @is_spam,
|
213
|
-
'created' => @created,
|
214
|
-
'createdUserId' => @created_user_id,
|
215
|
-
'toBeSent' => @to_be_sent,
|
216
|
-
'customerId' => @customer_id,
|
217
|
-
'receivedTimeStamp' => @received_time_stamp,
|
218
|
-
'openedTimestamp' => @opened_timestamp,
|
219
|
-
'viewCount' => @view_count,
|
220
|
-
'appEnrollmentId' => @app_enrollment_id,
|
221
|
-
'externalEmailId' => @external_email_id,
|
222
|
-
'externalThreadId' => @external_thread_id,
|
223
|
-
'emailBcc' => @email_bcc,
|
224
|
-
'sendType' => @send_type,
|
225
|
-
'modified' => @modified,
|
226
|
-
'modifiedUserId' => @modified_user_id,
|
227
|
-
'responseOriginId' => @response_origin_id,
|
228
|
-
'responseOrigin' => @response_origin,
|
229
|
-
'notes' => @notes,
|
230
|
-
'attachments' => @attachments,
|
231
|
-
'customFieldDefinitions' => @custom_field_definitions,
|
232
|
-
'customFieldValues' => @custom_field_values,
|
233
|
-
}
|
234
|
-
end
|
235
|
-
|
236
|
-
##
|
237
|
-
# @return [String] This object converted to a JSON string
|
238
|
-
def to_json(*options)
|
239
|
-
"[#{as_json(*options).to_json(*options)}]"
|
240
|
-
end
|
241
|
-
end
|
242
|
-
end
|