lockstep_rails 0.3.43 → 0.3.44

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: f0c28af0759ac898b1b25238e030585d9ec73c7b4a2c7ee21ed5ea02aebaae4b
4
- data.tar.gz: f25d065b0786c2bbd878b5d0f877a9d9448918662a63623b6cbe44139ebf2653
3
+ metadata.gz: eab60f66a141c0dd8b3720267e9c19f2e857cab653f595ef0032c6b374d07ec2
4
+ data.tar.gz: e33abbe23d8f4cabf497970e7393073b8d489319ae5bdd5e94592f943ca0f878
5
5
  SHA512:
6
- metadata.gz: df28f00537fed162bff97e1b14005e78e0bf6b68a6ab706962772643b279acd5271ac85d6431608de9e76c97e4e009ea4cc1c28bda3dcc87886906cc782ac9b3
7
- data.tar.gz: 94f1747651382be71963646894baa9e318d0a6233e719fd951d62130eb6378587186c887aebe4cb23f24e7a3e3e73af3204e0309d1fe9f7d59dd6812fc2ad7c5
6
+ metadata.gz: e37ab2c9b875e119ba2e0b9780926caacca6a3c0c4e6577f82f45d2f2024cdf2696a149d671153d973e1b80086c940ed0892e1bd40078beb0270179764a7bfd6
7
+ data.tar.gz: c4a1db170ab68d503cfb085571d2f585f94833be44985d64da17875e0320a7d495cd7e33b05e0c8721b5998e5902606821c46891de21369ca8b5ac18fc729cb4
data/README.md CHANGED
@@ -39,30 +39,31 @@ The gem is available as open source under the terms of the [MIT License](https:/
39
39
  # Usage
40
40
 
41
41
  ### Available Records
42
- * Lockstep::Contact
43
- * Lockstep::Connection
44
42
  * Lockstep::Account
45
- * Lockstep::User
46
- * Lockstep::Note
43
+ * Lockstep::ApiKey
44
+ * Lockstep::AppEnrollment
45
+ * Lockstep::Connection
46
+ * Lockstep::Contact
47
+ * Lockstep::CustomerSummary
48
+ * Lockstep::FeatureFlag
47
49
  * Lockstep::Invoice
50
+ * Lockstep::InvoiceAtRiskSummary
48
51
  * Lockstep::InvoiceSummary
49
- * Lockstep::CustomerSummary
52
+ * Lockstep::MagicLink
53
+ * Lockstep::Note
50
54
  * Lockstep::Payments
51
55
  * Lockstep::PaymentSummary
52
- * Lockstep::AppEnrollment
56
+ * Lockstep::ReportApAgingHeader
53
57
  * Lockstep::ReportArAgingHeader
54
58
  * Lockstep::ReportCashflow
55
- * Lockstep::ReportDailySalesOutstanding
56
- * Lockstep::ReportRiskRate
57
- * Lockstep::ReportApAgingHeader
58
59
  * Lockstep::ReportDailyPayableOutstanding
60
+ * Lockstep::ReportDailySalesOutstanding
59
61
  * Lockstep::ReportPayableComingDue
60
- * Lockstep::ReportPayableSummary
61
62
  * Lockstep::ReportPayablesComingDueSummary
62
- * Lockstep::ApiKey
63
- * Lockstep::InvoiceAtRiskSummary
64
- * Lockstep::MagicLink
65
- * Lockstep::FeatureFlag
63
+ * Lockstep::ReportPayableSummary
64
+ * Lockstep::ReportRiskRate
65
+ * Lockstep::Status
66
+ * Lockstep::User
66
67
 
67
68
  ## ActiveModel Interfaces
68
69
 
@@ -0,0 +1,13 @@
1
+ class Lockstep::Status
2
+ Lockstep::ApiRecord.model_name_uri = 'v1/Status'
3
+
4
+ def self.ping
5
+ resp = Lockstep::ApiRecord.resource.get('')
6
+ raise Lockstep::Exceptions::BadRequestError, 'Endpoint not found' if resp.code == '404'
7
+
8
+ status = JSON.parse(resp.body)
9
+ raise Lockstep::Exceptions::UnauthorizedError, status['errorMessage'] unless status['loggedIn']
10
+
11
+ status.deep_transform_keys!(&:underscore).deep_symbolize_keys!
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module LockstepRails
2
- VERSION = '0.3.43'
2
+ VERSION = '0.3.44'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lockstep_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.43
4
+ version: 0.3.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek AG
@@ -69,6 +69,7 @@ files:
69
69
  - app/models/lockstep/report_payable_coming_due_summary.rb
70
70
  - app/models/lockstep/report_payable_summary.rb
71
71
  - app/models/lockstep/report_risk_rate.rb
72
+ - app/models/lockstep/status.rb
72
73
  - app/models/lockstep/user.rb
73
74
  - app/models/lockstep/vendor_summary.rb
74
75
  - app/models/lockstep/webhook.rb