lockstep_sdk 2023.11.28.0 → 2023.13.37.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lockstep_sdk/clients/transcriptions_client.rb +11 -0
- data/lib/lockstep_sdk/lockstep_api.rb +3 -3
- data/lib/lockstep_sdk/models/credit_memo_applied_model.rb +18 -0
- data/lib/lockstep_sdk/models/email_reply_generator_request.rb +59 -0
- data/lib/lockstep_sdk/models/email_reply_generator_response.rb +53 -0
- data/lib/lockstep_sdk/models/email_reply_generator_suggestions.rb +53 -0
- data/lib/lockstep_sdk/models/financial_account_balance_history_model.rb +12 -0
- data/lib/lockstep_sdk/models/financial_account_balance_history_sync_model.rb +6 -0
- data/lib/lockstep_sdk/models/payment_applied_model.rb +18 -0
- data/lib/lockstep_sdk/models/payment_detail_model.rb +12 -0
- data/lib/lockstep_sdk/models/payment_model.rb +18 -0
- data/lib/lockstep_sdk/models/sync_entity_result_model.rb +6 -0
- data/lib/lockstep_sdk/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94c3d82bb006438d2d6083a2a1f777ec72d8e3e53a8e9f9d15f97c739c5c7fa3
|
4
|
+
data.tar.gz: f4a97901a63f1ff48303b5439c197a013255e160aea87e32e5e4da928381a147
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15a56c02466b9db83340d47aaca8d230fbd44be948d30c034c302a203ebb1309a3286522d15195fe59704676e4dcdef012b7d50f303a37929df5dd69b7e12a91
|
7
|
+
data.tar.gz: c92e2b1e5e991cc98029cecd28adfcd780a643bd223bc1682bdfc7e7a1d7bf68bd60fbe351b77df0ba2e0818638ac1d7b899dddbe04e7863e1f0c1bdcc929ce2
|
@@ -151,4 +151,15 @@ class TranscriptionsClient
|
|
151
151
|
params = {:filter => filter, :include => include_param, :order => order, :pageSize => page_size, :pageNumber => page_number}
|
152
152
|
@connection.request(:get, path, nil, params)
|
153
153
|
end
|
154
|
+
|
155
|
+
##
|
156
|
+
# Retrieves the Email Reply Generator Response containing a list of email reply suggestions
|
157
|
+
#
|
158
|
+
# An Email Reply Generator Request represents an email to be sent for a list of email reply suggestions.
|
159
|
+
#
|
160
|
+
# @param body [EmailReplyGeneratorRequest] The Email Reply Generator Request to be sent
|
161
|
+
def retrieve_an_emailreplygeneratorresponse(body:)
|
162
|
+
path = "/api/v1/Transcriptions/email-reply-suggestions"
|
163
|
+
@connection.request(:post, path, body, nil)
|
164
|
+
end
|
154
165
|
end
|
@@ -9,7 +9,7 @@
|
|
9
9
|
# @author Lockstep Network <support@lockstep.io>
|
10
10
|
# Manish Narayan B S <manish.n@lockstep.io>, Rishi Rajkumar Jawahar <rjawahar@lockstep.io>
|
11
11
|
# @copyright 2021-2023 Lockstep, Inc.
|
12
|
-
# @version 2023.
|
12
|
+
# @version 2023.13.37
|
13
13
|
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
14
14
|
#
|
15
15
|
|
@@ -194,7 +194,7 @@ module lockstep_sdk
|
|
194
194
|
#
|
195
195
|
# @param env [string] Either "sbx", "prd", or the URI of the server, ending in a slash (/)
|
196
196
|
def initialize(env)
|
197
|
-
@version = "2023.
|
197
|
+
@version = "2023.13.37.0"
|
198
198
|
@env = case env
|
199
199
|
when "sbx"
|
200
200
|
"https://api.sbx.lockstep.io/"
|
@@ -307,7 +307,7 @@ module lockstep_sdk
|
|
307
307
|
request["Accept"] = 'application/json'
|
308
308
|
request["Content-Type"] = 'application/*+json'
|
309
309
|
request["SdkType"] = 'Ruby'
|
310
|
-
request["SdkVersion"] = '2023.
|
310
|
+
request["SdkVersion"] = '2023.13.37.0'
|
311
311
|
request["MachineName"] = Socket.gethostname
|
312
312
|
request.body = body
|
313
313
|
|
@@ -32,6 +32,8 @@ module LockstepSdk
|
|
32
32
|
@invoice_id = params.dig(:invoice_id)
|
33
33
|
@credit_memo_invoice_id = params.dig(:credit_memo_invoice_id)
|
34
34
|
@erp_key = params.dig(:erp_key)
|
35
|
+
@erp_write_status = params.dig(:erp_write_status)
|
36
|
+
@erp_write_status_name = params.dig(:erp_write_status_name)
|
35
37
|
@entry_number = params.dig(:entry_number)
|
36
38
|
@apply_to_invoice_date = params.dig(:apply_to_invoice_date)
|
37
39
|
@credit_memo_applied_amount = params.dig(:credit_memo_applied_amount)
|
@@ -40,6 +42,7 @@ module LockstepSdk
|
|
40
42
|
@modified = params.dig(:modified)
|
41
43
|
@modified_user_id = params.dig(:modified_user_id)
|
42
44
|
@app_enrollment_id = params.dig(:app_enrollment_id)
|
45
|
+
@source_modified_date = params.dig(:source_modified_date)
|
43
46
|
@attachments = params.dig(:attachments)
|
44
47
|
@notes = params.dig(:notes)
|
45
48
|
@custom_field_definitions = params.dig(:custom_field_definitions)
|
@@ -68,6 +71,14 @@ module LockstepSdk
|
|
68
71
|
# @return [String] The unique ID of this record as it was known in its originating financial system. If this company record was imported from a financial system, it will have the value `ErpKey` set to the original primary key number of the record as it was known in the originating financial system. If this record was not imported, this value will be `null`. For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
|
69
72
|
attr_accessor :erp_key
|
70
73
|
|
74
|
+
##
|
75
|
+
# @return [ErpWriteStatuses] Possible statuses for a record that supports ERP write.
|
76
|
+
attr_accessor :erp_write_status
|
77
|
+
|
78
|
+
##
|
79
|
+
# @return [String] The name of the ErpWriteStatus for this credit memo application
|
80
|
+
attr_accessor :erp_write_status_name
|
81
|
+
|
71
82
|
##
|
72
83
|
# @return [Int32] Reference number for the applied credit memo.
|
73
84
|
attr_accessor :entry_number
|
@@ -100,6 +111,10 @@ module LockstepSdk
|
|
100
111
|
# @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.
|
101
112
|
attr_accessor :app_enrollment_id
|
102
113
|
|
114
|
+
##
|
115
|
+
# @return [Date-time] The date on which this record was last modified in source ERP.
|
116
|
+
attr_accessor :source_modified_date
|
117
|
+
|
103
118
|
##
|
104
119
|
# @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 `CreditMemoApplied` and the `ObjectKey` set to the `CreditMemoAppliedId` 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).
|
105
120
|
attr_accessor :attachments
|
@@ -133,6 +148,8 @@ module LockstepSdk
|
|
133
148
|
'invoiceId' => @invoice_id,
|
134
149
|
'creditMemoInvoiceId' => @credit_memo_invoice_id,
|
135
150
|
'erpKey' => @erp_key,
|
151
|
+
'erpWriteStatus' => @erp_write_status,
|
152
|
+
'erpWriteStatusName' => @erp_write_status_name,
|
136
153
|
'entryNumber' => @entry_number,
|
137
154
|
'applyToInvoiceDate' => @apply_to_invoice_date,
|
138
155
|
'creditMemoAppliedAmount' => @credit_memo_applied_amount,
|
@@ -141,6 +158,7 @@ module LockstepSdk
|
|
141
158
|
'modified' => @modified,
|
142
159
|
'modifiedUserId' => @modified_user_id,
|
143
160
|
'appEnrollmentId' => @app_enrollment_id,
|
161
|
+
'sourceModifiedDate' => @source_modified_date,
|
144
162
|
'attachments' => @attachments,
|
145
163
|
'notes' => @notes,
|
146
164
|
'customFieldDefinitions' => @custom_field_definitions,
|
@@ -0,0 +1,59 @@
|
|
1
|
+
#
|
2
|
+
# Lockstep Platform SDK for Ruby
|
3
|
+
#
|
4
|
+
# (c) 2021-2023 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-2023 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
|
+
# Represents the request to the SAGE GMS API
|
21
|
+
class EmailReplyGeneratorRequest
|
22
|
+
|
23
|
+
##
|
24
|
+
# Initialize the EmailReplyGeneratorRequest using the provided prototype
|
25
|
+
def initialize(params = {})
|
26
|
+
@date = params.dig(:date)
|
27
|
+
@body = params.dig(:body)
|
28
|
+
@subject = params.dig(:subject)
|
29
|
+
end
|
30
|
+
|
31
|
+
##
|
32
|
+
# @return [Date-time] The date associated with the email
|
33
|
+
attr_accessor :date
|
34
|
+
|
35
|
+
##
|
36
|
+
# @return [String] The body associated with the email
|
37
|
+
attr_accessor :body
|
38
|
+
|
39
|
+
##
|
40
|
+
# @return [String] The subject associated with the email
|
41
|
+
attr_accessor :subject
|
42
|
+
|
43
|
+
##
|
44
|
+
# @return [object] This object as a JSON key-value structure
|
45
|
+
def as_json(options={})
|
46
|
+
{
|
47
|
+
'date' => @date,
|
48
|
+
'body' => @body,
|
49
|
+
'subject' => @subject,
|
50
|
+
}
|
51
|
+
end
|
52
|
+
|
53
|
+
##
|
54
|
+
# @return [String] This object converted to a JSON string
|
55
|
+
def to_json(*options)
|
56
|
+
"[#{as_json(*options).to_json(*options)}]"
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# Lockstep Platform SDK for Ruby
|
3
|
+
#
|
4
|
+
# (c) 2021-2023 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-2023 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
|
+
# Represents the response from SAGE GMS API
|
21
|
+
class EmailReplyGeneratorResponse
|
22
|
+
|
23
|
+
##
|
24
|
+
# Initialize the EmailReplyGeneratorResponse using the provided prototype
|
25
|
+
def initialize(params = {})
|
26
|
+
@message_id = params.dig(:message_id)
|
27
|
+
@suggestions = params.dig(:suggestions)
|
28
|
+
end
|
29
|
+
|
30
|
+
##
|
31
|
+
# @return [Uuid] The id for this request in the GMS system
|
32
|
+
attr_accessor :message_id
|
33
|
+
|
34
|
+
##
|
35
|
+
# @return [EmailReplyGeneratorSuggestions] A list of suggested email reply responses
|
36
|
+
attr_accessor :suggestions
|
37
|
+
|
38
|
+
##
|
39
|
+
# @return [object] This object as a JSON key-value structure
|
40
|
+
def as_json(options={})
|
41
|
+
{
|
42
|
+
'message_id' => @message_id,
|
43
|
+
'suggestions' => @suggestions,
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# @return [String] This object converted to a JSON string
|
49
|
+
def to_json(*options)
|
50
|
+
"[#{as_json(*options).to_json(*options)}]"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
#
|
2
|
+
# Lockstep Platform SDK for Ruby
|
3
|
+
#
|
4
|
+
# (c) 2021-2023 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-2023 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
|
+
# Represents the email reply suggestion from the SAGE GMS API
|
21
|
+
class EmailReplyGeneratorSuggestions
|
22
|
+
|
23
|
+
##
|
24
|
+
# Initialize the EmailReplyGeneratorSuggestions using the provided prototype
|
25
|
+
def initialize(params = {})
|
26
|
+
@kind = params.dig(:kind)
|
27
|
+
@body = params.dig(:body)
|
28
|
+
end
|
29
|
+
|
30
|
+
##
|
31
|
+
# @return [String] The kind of reply generated by the GMS Api
|
32
|
+
attr_accessor :kind
|
33
|
+
|
34
|
+
##
|
35
|
+
# @return [String] The body of the reply generated by the GMS Api
|
36
|
+
attr_accessor :body
|
37
|
+
|
38
|
+
##
|
39
|
+
# @return [object] This object as a JSON key-value structure
|
40
|
+
def as_json(options={})
|
41
|
+
{
|
42
|
+
'kind' => @kind,
|
43
|
+
'body' => @body,
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
##
|
48
|
+
# @return [String] This object converted to a JSON string
|
49
|
+
def to_json(*options)
|
50
|
+
"[#{as_json(*options).to_json(*options)}]"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -33,6 +33,8 @@ module LockstepSdk
|
|
33
33
|
@period_end_date = params.dig(:period_end_date)
|
34
34
|
@status = params.dig(:status)
|
35
35
|
@balance = params.dig(:balance)
|
36
|
+
@balance_type = params.dig(:balance_type)
|
37
|
+
@balance_type_name = params.dig(:balance_type_name)
|
36
38
|
@created = params.dig(:created)
|
37
39
|
@created_user_id = params.dig(:created_user_id)
|
38
40
|
@modified = params.dig(:modified)
|
@@ -79,6 +81,14 @@ module LockstepSdk
|
|
79
81
|
# @return [Double] The current or end balance of this period.
|
80
82
|
attr_accessor :balance
|
81
83
|
|
84
|
+
##
|
85
|
+
# @return [FinancialAccountBalanceType] Financial Account Balance Types
|
86
|
+
attr_accessor :balance_type
|
87
|
+
|
88
|
+
##
|
89
|
+
# @return [String] The name of the BalanceType for this record.
|
90
|
+
attr_accessor :balance_type_name
|
91
|
+
|
82
92
|
##
|
83
93
|
# @return [Date-time] The date on which this financial account balance history record was created.
|
84
94
|
attr_accessor :created
|
@@ -109,6 +119,8 @@ module LockstepSdk
|
|
109
119
|
'periodEndDate' => @period_end_date,
|
110
120
|
'status' => @status,
|
111
121
|
'balance' => @balance,
|
122
|
+
'balanceType' => @balance_type,
|
123
|
+
'balanceTypeName' => @balance_type_name,
|
112
124
|
'created' => @created,
|
113
125
|
'createdUserId' => @created_user_id,
|
114
126
|
'modified' => @modified,
|
@@ -42,6 +42,7 @@ module LockstepSdk
|
|
42
42
|
@period_end_date = params.dig(:period_end_date)
|
43
43
|
@status = params.dig(:status)
|
44
44
|
@balance = params.dig(:balance)
|
45
|
+
@balance_type = params.dig(:balance_type)
|
45
46
|
end
|
46
47
|
|
47
48
|
##
|
@@ -76,6 +77,10 @@ module LockstepSdk
|
|
76
77
|
# @return [Double] The current or end balance of this period.
|
77
78
|
attr_accessor :balance
|
78
79
|
|
80
|
+
##
|
81
|
+
# @return [FinancialAccountBalanceType] The balance type of this period. If left null, the balance type will be determined by the balance.
|
82
|
+
attr_accessor :balance_type
|
83
|
+
|
79
84
|
##
|
80
85
|
# @return [object] This object as a JSON key-value structure
|
81
86
|
def as_json(options={})
|
@@ -88,6 +93,7 @@ module LockstepSdk
|
|
88
93
|
'periodEndDate' => @period_end_date,
|
89
94
|
'status' => @status,
|
90
95
|
'balance' => @balance,
|
96
|
+
'balanceType' => @balance_type,
|
91
97
|
}
|
92
98
|
end
|
93
99
|
|
@@ -31,6 +31,8 @@ module LockstepSdk
|
|
31
31
|
@invoice_id = params.dig(:invoice_id)
|
32
32
|
@payment_id = params.dig(:payment_id)
|
33
33
|
@erp_key = params.dig(:erp_key)
|
34
|
+
@erp_write_status = params.dig(:erp_write_status)
|
35
|
+
@erp_write_status_name = params.dig(:erp_write_status_name)
|
34
36
|
@entry_number = params.dig(:entry_number)
|
35
37
|
@apply_to_invoice_date = params.dig(:apply_to_invoice_date)
|
36
38
|
@payment_applied_amount = params.dig(:payment_applied_amount)
|
@@ -39,6 +41,7 @@ module LockstepSdk
|
|
39
41
|
@modified = params.dig(:modified)
|
40
42
|
@modified_user_id = params.dig(:modified_user_id)
|
41
43
|
@app_enrollment_id = params.dig(:app_enrollment_id)
|
44
|
+
@source_modified_date = params.dig(:source_modified_date)
|
42
45
|
@payment = params.dig(:payment)
|
43
46
|
@invoice = params.dig(:invoice)
|
44
47
|
end
|
@@ -63,6 +66,14 @@ module LockstepSdk
|
|
63
66
|
# @return [String] The unique ID of this record as it was known in its originating financial system. If this company record was imported from a financial system, it will have the value `ErpKey` set to the original primary key number of the record as it was known in the originating financial system. If this record was not imported, this value will be `null`. For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
|
64
67
|
attr_accessor :erp_key
|
65
68
|
|
69
|
+
##
|
70
|
+
# @return [ErpWriteStatuses] Possible statuses for a record that supports ERP write.
|
71
|
+
attr_accessor :erp_write_status
|
72
|
+
|
73
|
+
##
|
74
|
+
# @return [String] The name of the ErpWriteStatus for this payment application
|
75
|
+
attr_accessor :erp_write_status_name
|
76
|
+
|
66
77
|
##
|
67
78
|
# @return [Int32] The entry number of this payment application. This is often a journal entry number, confirmation code, or other identifying field for this payment application.
|
68
79
|
attr_accessor :entry_number
|
@@ -95,6 +106,10 @@ module LockstepSdk
|
|
95
106
|
# @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.
|
96
107
|
attr_accessor :app_enrollment_id
|
97
108
|
|
109
|
+
##
|
110
|
+
# @return [Date-time] The date on which this record was last modified in source ERP.
|
111
|
+
attr_accessor :source_modified_date
|
112
|
+
|
98
113
|
##
|
99
114
|
# @return [PaymentModel] The payment associated with this applied payment
|
100
115
|
attr_accessor :payment
|
@@ -112,6 +127,8 @@ module LockstepSdk
|
|
112
127
|
'invoiceId' => @invoice_id,
|
113
128
|
'paymentId' => @payment_id,
|
114
129
|
'erpKey' => @erp_key,
|
130
|
+
'erpWriteStatus' => @erp_write_status,
|
131
|
+
'erpWriteStatusName' => @erp_write_status_name,
|
115
132
|
'entryNumber' => @entry_number,
|
116
133
|
'applyToInvoiceDate' => @apply_to_invoice_date,
|
117
134
|
'paymentAppliedAmount' => @payment_applied_amount,
|
@@ -120,6 +137,7 @@ module LockstepSdk
|
|
120
137
|
'modified' => @modified,
|
121
138
|
'modifiedUserId' => @modified_user_id,
|
122
139
|
'appEnrollmentId' => @app_enrollment_id,
|
140
|
+
'sourceModifiedDate' => @source_modified_date,
|
123
141
|
'payment' => @payment,
|
124
142
|
'invoice' => @invoice,
|
125
143
|
}
|
@@ -31,6 +31,8 @@ module LockstepSdk
|
|
31
31
|
@reference_code = params.dig(:reference_code)
|
32
32
|
@primary_contact = params.dig(:primary_contact)
|
33
33
|
@email = params.dig(:email)
|
34
|
+
@erp_write_status = params.dig(:erp_write_status)
|
35
|
+
@erp_write_status_name = params.dig(:erp_write_status_name)
|
34
36
|
@currency_code = params.dig(:currency_code)
|
35
37
|
@payment_amount = params.dig(:payment_amount)
|
36
38
|
@unapplied_amount = params.dig(:unapplied_amount)
|
@@ -84,6 +86,14 @@ module LockstepSdk
|
|
84
86
|
# @return [String] The Email address of the Customer.
|
85
87
|
attr_accessor :email
|
86
88
|
|
89
|
+
##
|
90
|
+
# @return [ErpWriteStatuses] Possible statuses for a record that supports ERP write.
|
91
|
+
attr_accessor :erp_write_status
|
92
|
+
|
93
|
+
##
|
94
|
+
# @return [String] The name of the ErpWriteStatus for this payment
|
95
|
+
attr_accessor :erp_write_status_name
|
96
|
+
|
87
97
|
##
|
88
98
|
# @return [String] The currency code of the payment.
|
89
99
|
attr_accessor :currency_code
|
@@ -172,6 +182,8 @@ module LockstepSdk
|
|
172
182
|
'referenceCode' => @reference_code,
|
173
183
|
'primaryContact' => @primary_contact,
|
174
184
|
'email' => @email,
|
185
|
+
'erpWriteStatus' => @erp_write_status,
|
186
|
+
'erpWriteStatusName' => @erp_write_status_name,
|
175
187
|
'currencyCode' => @currency_code,
|
176
188
|
'paymentAmount' => @payment_amount,
|
177
189
|
'unappliedAmount' => @unapplied_amount,
|
@@ -33,6 +33,8 @@ module LockstepSdk
|
|
33
33
|
@payment_id = params.dig(:payment_id)
|
34
34
|
@company_id = params.dig(:company_id)
|
35
35
|
@erp_key = params.dig(:erp_key)
|
36
|
+
@erp_write_status = params.dig(:erp_write_status)
|
37
|
+
@erp_write_status_name = params.dig(:erp_write_status_name)
|
36
38
|
@payment_type = params.dig(:payment_type)
|
37
39
|
@tender_type = params.dig(:tender_type)
|
38
40
|
@is_open = params.dig(:is_open)
|
@@ -54,6 +56,7 @@ module LockstepSdk
|
|
54
56
|
@base_currency_payment_amount = params.dig(:base_currency_payment_amount)
|
55
57
|
@base_currency_unapplied_amount = params.dig(:base_currency_unapplied_amount)
|
56
58
|
@service_fabric_status = params.dig(:service_fabric_status)
|
59
|
+
@source_modified_date = params.dig(:source_modified_date)
|
57
60
|
@applications = params.dig(:applications)
|
58
61
|
@notes = params.dig(:notes)
|
59
62
|
@attachments = params.dig(:attachments)
|
@@ -77,6 +80,14 @@ module LockstepSdk
|
|
77
80
|
# @return [String] The unique ID of this record as it was known in its originating financial system. If this company record was imported from a financial system, it will have the value `ErpKey` set to the original primary key number of the record as it was known in the originating financial system. If this record was not imported, this value will be `null`. For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
|
78
81
|
attr_accessor :erp_key
|
79
82
|
|
83
|
+
##
|
84
|
+
# @return [ErpWriteStatuses] Possible statuses for a record that supports ERP write.
|
85
|
+
attr_accessor :erp_write_status
|
86
|
+
|
87
|
+
##
|
88
|
+
# @return [String] The name of the ErpWriteStatus for this Payment
|
89
|
+
attr_accessor :erp_write_status_name
|
90
|
+
|
80
91
|
##
|
81
92
|
# @return [String] The type of payment, AR Payment or AP Payment. Recognized PaymentType values are: * `AR Payment` - A payment made by a Customer to the Company * `AP Payment` - A payment made by the Company to a Vendor
|
82
93
|
attr_accessor :payment_type
|
@@ -161,6 +172,10 @@ module LockstepSdk
|
|
161
172
|
# @return [String] The status of this payment within Service Fabric. "UNAUTHORISED" "PENDING" "PAID" "PAID_OFFLINE" "FAILED" "CANCELLED" "REJECTED" "REFUNDED" "PARTIALLY" "PARTIALLY_REFUNDED"
|
162
173
|
attr_accessor :service_fabric_status
|
163
174
|
|
175
|
+
##
|
176
|
+
# @return [Date-time] The date on which this record was last modified in source ERP.
|
177
|
+
attr_accessor :source_modified_date
|
178
|
+
|
164
179
|
##
|
165
180
|
# @return [PaymentAppliedModel] All applications this payment is associated with. To retrieve this collection, specify `Applications` in the "Include" parameter for your query.
|
166
181
|
attr_accessor :applications
|
@@ -189,6 +204,8 @@ module LockstepSdk
|
|
189
204
|
'paymentId' => @payment_id,
|
190
205
|
'companyId' => @company_id,
|
191
206
|
'erpKey' => @erp_key,
|
207
|
+
'erpWriteStatus' => @erp_write_status,
|
208
|
+
'erpWriteStatusName' => @erp_write_status_name,
|
192
209
|
'paymentType' => @payment_type,
|
193
210
|
'tenderType' => @tender_type,
|
194
211
|
'isOpen' => @is_open,
|
@@ -210,6 +227,7 @@ module LockstepSdk
|
|
210
227
|
'baseCurrencyPaymentAmount' => @base_currency_payment_amount,
|
211
228
|
'baseCurrencyUnappliedAmount' => @base_currency_unapplied_amount,
|
212
229
|
'serviceFabricStatus' => @service_fabric_status,
|
230
|
+
'sourceModifiedDate' => @source_modified_date,
|
213
231
|
'applications' => @applications,
|
214
232
|
'notes' => @notes,
|
215
233
|
'attachments' => @attachments,
|
@@ -29,6 +29,7 @@ module LockstepSdk
|
|
29
29
|
@skip_count = params.dig(:skip_count)
|
30
30
|
@error_count = params.dig(:error_count)
|
31
31
|
@errors = params.dig(:errors)
|
32
|
+
@skips = params.dig(:skips)
|
32
33
|
end
|
33
34
|
|
34
35
|
##
|
@@ -55,6 +56,10 @@ module LockstepSdk
|
|
55
56
|
# @return [Object] The errors encountered during sync keyed by ERP key
|
56
57
|
attr_accessor :errors
|
57
58
|
|
59
|
+
##
|
60
|
+
# @return [Object] The records that were skipped during sync keyed by ERP key
|
61
|
+
attr_accessor :skips
|
62
|
+
|
58
63
|
##
|
59
64
|
# @return [object] This object as a JSON key-value structure
|
60
65
|
def as_json(options={})
|
@@ -65,6 +70,7 @@ module LockstepSdk
|
|
65
70
|
'skipCount' => @skip_count,
|
66
71
|
'errorCount' => @error_count,
|
67
72
|
'errors' => @errors,
|
73
|
+
'skips' => @skips,
|
68
74
|
}
|
69
75
|
end
|
70
76
|
|
data/lib/lockstep_sdk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lockstep_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2023.
|
4
|
+
version: 2023.13.37.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lockstep
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awrence
|
@@ -120,6 +120,9 @@ files:
|
|
120
120
|
- lib/lockstep_sdk/models/developer_account_submit_model.rb
|
121
121
|
- lib/lockstep_sdk/models/dpo_summary_group_total_model.rb
|
122
122
|
- lib/lockstep_sdk/models/dpo_summary_model.rb
|
123
|
+
- lib/lockstep_sdk/models/email_reply_generator_request.rb
|
124
|
+
- lib/lockstep_sdk/models/email_reply_generator_response.rb
|
125
|
+
- lib/lockstep_sdk/models/email_reply_generator_suggestions.rb
|
123
126
|
- lib/lockstep_sdk/models/erp_model.rb
|
124
127
|
- lib/lockstep_sdk/models/error_result.rb
|
125
128
|
- lib/lockstep_sdk/models/feature_flags_request_model.rb
|