lockstep_rails 0.3.84 → 0.3.86
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/lockstep/workflow_status.rb +18 -0
- data/app/platform_api/schema/accounting_profile_contact_result.rb +4 -0
- data/app/platform_api/schema/attachment.rb +17 -0
- data/app/platform_api/schema/company_sync.rb +4 -0
- data/app/platform_api/schema/contact.rb +4 -0
- data/app/platform_api/schema/contact_sync.rb +4 -0
- data/app/platform_api/schema/invoice.rb +4 -0
- data/app/platform_api/schema/invoice_line.rb +10 -0
- data/app/platform_api/schema/invoice_line_sync.rb +10 -0
- data/app/platform_api/schema/invoice_sync.rb +8 -0
- data/app/platform_api/schema/magic_link.rb +2 -0
- data/app/platform_api/swagger.json +6347 -2661
- data/lib/lockstep_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10ae3d231793433574f6d0c83685c5bfb7407ad858a97946154fd54511ccb5d2
|
4
|
+
data.tar.gz: c22a881bc7e6f1df9fc77108e98a072f28a7013023f78377072d5e836cb563e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09d4b45823c63247ad62845b0c6fc2a2229e3dfc4dab3d7dd90b0e76ae9414221b7a3e3983390c80aed4a2f8e7dbfbbc3ec0c47c36fd2ad1ca1aac37f5ce5090'
|
7
|
+
data.tar.gz: 181fdf15773e012d712263c3f8fa3766dbcdf026cf38539ba4e072d5ab494f35e772cddfae8e0e49456ddb4f3b87949578270d81b64b883918b27a17301a6546
|
@@ -5,4 +5,22 @@ class Lockstep::WorkflowStatus < Lockstep::ApiRecord
|
|
5
5
|
self.id_ref = 'id'
|
6
6
|
|
7
7
|
load_schema(Schema::WorkflowStatus)
|
8
|
+
|
9
|
+
def self.retrieve_by_id_with_children(id)
|
10
|
+
resp = resource.get("#{id}", params: { include: :children })
|
11
|
+
parsed_response = JSON.parse(resp.body)
|
12
|
+
|
13
|
+
case resp.code.to_s
|
14
|
+
when '401'
|
15
|
+
raise Lockstep::Exceptions::UnauthorizedError, parsed_response['title']
|
16
|
+
when '400'
|
17
|
+
raise Lockstep::Exceptions::BadRequestError, parsed_response['title']
|
18
|
+
when '404'
|
19
|
+
raise Lockstep::Exceptions::RecordNotFound, parsed_response['title']
|
20
|
+
when '200'
|
21
|
+
parsed_response.deep_transform_keys(&:underscore)
|
22
|
+
else
|
23
|
+
raise Lockstep::Exceptions::BadRequestError, parsed_response
|
24
|
+
end
|
25
|
+
end
|
8
26
|
end
|
@@ -89,11 +89,28 @@ end
|
|
89
89
|
# @format: uuid
|
90
90
|
field :created_user_id
|
91
91
|
|
92
|
+
# The date the attachment was modified.
|
93
|
+
# @type: string
|
94
|
+
# @format: date-time
|
95
|
+
field :modified, Types::Params::DateTime
|
96
|
+
|
97
|
+
# The unique ID of the [UserAccount](https://developer.lockstep.io/docs/useraccountmodel) of the user
|
98
|
+
# who modified this Attachment.
|
99
|
+
# @type: string
|
100
|
+
# @format: uuid
|
101
|
+
field :modified_user_id
|
102
|
+
|
92
103
|
# A text string describing the type of this Attachment.
|
93
104
|
# @type: string
|
94
105
|
field :attachment_type
|
95
106
|
|
107
|
+
# The different statuses of an attachment being scanned for viruses.
|
108
|
+
# @type: string
|
109
|
+
# @format:
|
110
|
+
field :upload_status
|
111
|
+
|
96
112
|
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
113
|
+
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
97
114
|
|
98
115
|
|
99
116
|
end
|
@@ -266,6 +266,10 @@ end
|
|
266
266
|
# To retrieve this item, specify `Customer` in the "Include" parameter for your query.
|
267
267
|
field :customer_primary_contact
|
268
268
|
|
269
|
+
# Optional field to indicate if the invoice has a PDF attached to it.
|
270
|
+
# @type: boolean
|
271
|
+
field :has_pdf
|
272
|
+
|
269
273
|
# Indicates if the invoice an E-Invoice or not
|
270
274
|
# @type: boolean
|
271
275
|
field :is_e_invoice
|
@@ -84,6 +84,16 @@ end
|
|
84
84
|
# @format: double
|
85
85
|
field :total_amount
|
86
86
|
|
87
|
+
# The amount of sales tax for this line in the transaction's currency.
|
88
|
+
# @type: number
|
89
|
+
# @format: double
|
90
|
+
field :sales_tax_amount
|
91
|
+
|
92
|
+
# The amount of sales tax for this line in the base currency.
|
93
|
+
# @type: number
|
94
|
+
# @format: double
|
95
|
+
field :base_currency_sales_tax_amount
|
96
|
+
|
87
97
|
# If this line is tax exempt, this code indicates the reason for the exemption.
|
88
98
|
# @type: string
|
89
99
|
field :exemption_code
|
@@ -82,6 +82,16 @@ end
|
|
82
82
|
# @format: double
|
83
83
|
field :total_amount
|
84
84
|
|
85
|
+
# The amount of sales tax for this line in the transaction's currency.
|
86
|
+
# @type: number
|
87
|
+
# @format: double
|
88
|
+
field :sales_tax_amount
|
89
|
+
|
90
|
+
# The amount of sales tax for this line in the base currency.
|
91
|
+
# @type: number
|
92
|
+
# @format: double
|
93
|
+
field :base_currency_sales_tax_amount
|
94
|
+
|
85
95
|
# If this line is tax exempt, this code indicates the reason for the exemption.
|
86
96
|
# @type: string
|
87
97
|
field :exemption_code
|
@@ -344,6 +344,14 @@ end
|
|
344
344
|
# @format: uuid
|
345
345
|
field :workflow_status_id
|
346
346
|
|
347
|
+
# Notes associated to workflow status
|
348
|
+
# @type: string
|
349
|
+
field :workflow_status_notes
|
350
|
+
|
351
|
+
# Workflow status code dictated by government standards
|
352
|
+
# @type: string
|
353
|
+
field :workflow_status_code
|
354
|
+
|
347
355
|
|
348
356
|
|
349
357
|
end
|
@@ -94,5 +94,7 @@ end
|
|
94
94
|
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
95
95
|
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
96
96
|
|
97
|
+
has_many :notes, {:class_name=>"Lockstep::Note", :included=>true, :foreign_key=>:object_key, :polymorphic=>{:table_key=>"MagicLink"}}
|
98
|
+
has_many :custom_field_values, {:class_name=>"Schema::CustomFieldValue", :included=>true}
|
97
99
|
|
98
100
|
end
|