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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69111c175a9b6f74d33491d546c7827d36a0f357b0a186ebf43715b2b28ccd7f
4
- data.tar.gz: 3cbc687460559fea1684ece0f631443754a78b97c17dbeb3906a34a17517015a
3
+ metadata.gz: 10ae3d231793433574f6d0c83685c5bfb7407ad858a97946154fd54511ccb5d2
4
+ data.tar.gz: c22a881bc7e6f1df9fc77108e98a072f28a7013023f78377072d5e836cb563e1
5
5
  SHA512:
6
- metadata.gz: 02db626c78c9c801216ba146fdc0389c5dfa346efd56ab767e13430c10a3fd85cf0b3554cb78e8d84266485717618ce11f5d42f38009c9494dca9d2e2f7e8a4f
7
- data.tar.gz: f76c6938b8bfe1c2fe43e93b1530290bbbb522c487e1e2c89379f2ee7bcf0b29fe0a5ba9564e920c61bd31b43d67a0921010e3fb8c5c19d83e652a73f5d9253c
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
@@ -65,6 +65,10 @@ end
65
65
  # @type: string
66
66
  field :fax
67
67
 
68
+ # The IETF language tag for the contact's locale.
69
+ # @type: string
70
+ field :locale
71
+
68
72
  # The first line of the address.
69
73
  # @type: string
70
74
  field :address1
@@ -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
@@ -171,6 +171,10 @@ end
171
171
  # @type: string
172
172
  field :company_registration_number
173
173
 
174
+ # The set of identifiers for the Company.
175
+ # @type: string
176
+ field :company_identifiers
177
+
174
178
 
175
179
 
176
180
  end
@@ -65,6 +65,10 @@ end
65
65
  # @type: string
66
66
  field :fax
67
67
 
68
+ # The IETF language tag for the contact's locale.
69
+ # @type: string
70
+ field :locale
71
+
68
72
  # The first line of the address.
69
73
  # @type: string
70
74
  field :address1
@@ -69,6 +69,10 @@ end
69
69
  # @type: string
70
70
  field :fax
71
71
 
72
+ # The IETF language tag for the contact's locale.
73
+ # @type: string
74
+ field :locale
75
+
72
76
  # The mailing address information for this contact.
73
77
  # @type: string
74
78
  field :address1
@@ -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