lockstep_rails 0.3.77 → 0.3.78
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/app/concepts/lockstep/exceptions.rb +1 -0
- data/app/models/lockstep/magic_link_summary.rb +16 -0
- data/lib/lockstep_rails/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14486c21419a49912f1077b56941908125a5d7fee51a32c696eb6050c2247ffe
|
4
|
+
data.tar.gz: d93da0bc1de0bff829a1e61e7d71c2120295754139c90c7a650b3bda6a3272ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18e7493b2530aba59359f35577bc21a3c5bedd52b1be87d50fc1b99457dacc2b35a8acfd430a5ede4e9a1d67f36f6569425cf90d2c9a78d0d159a678e1ac178d
|
7
|
+
data.tar.gz: 22e7181e9f1477676c7e6eae5cc8b1152cd4dd0f2cf9ea7a4769a161b5774ee31c671e88ea4179095c93dd509452d06b3a9bbd5c2d2341b66fcfff1af243d5af
|
data/README.md
CHANGED
@@ -61,6 +61,7 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
61
61
|
- Lockstep::InvoiceAtRiskSummary
|
62
62
|
- Lockstep::InvoiceSummary
|
63
63
|
- Lockstep::MagicLink
|
64
|
+
- Lockstep::MagicLinkSummary
|
64
65
|
- Lockstep::Note
|
65
66
|
- Lockstep::Payments
|
66
67
|
- Lockstep::PaymentApplied
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class Lockstep::MagicLinkSummary < Lockstep::ApiRecord
|
2
|
+
self.model_name_uri = "v1/useraccounts/magic-links/summary"
|
3
|
+
self.id_ref = "group_key"
|
4
|
+
self.query_path = ""
|
5
|
+
load_schema(Schema::MagicLinkSummary)
|
6
|
+
|
7
|
+
def self.with_date(from_date: nil, to_date: nil)
|
8
|
+
resp = resource.get('', params: { from: from_date, to: to_date })
|
9
|
+
raise Lockstep::Exceptions::BadRequestError, 'Endpoint not found' if resp.code == '404'
|
10
|
+
raise Lockstep::Exceptions::ApiResponseError.new("#{resp.code} error while fetching: #{resp.body}") unless %w(201 200).include?(resp.code.to_s)
|
11
|
+
|
12
|
+
summary = JSON.parse(resp.body)
|
13
|
+
|
14
|
+
summary.deep_transform_keys!(&:underscore).deep_symbolize_keys!
|
15
|
+
end
|
16
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lockstep_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.78
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vivek AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -61,6 +61,7 @@ files:
|
|
61
61
|
- app/models/lockstep/invoice_summary.rb
|
62
62
|
- app/models/lockstep/invoices/address.rb
|
63
63
|
- app/models/lockstep/magic_link.rb
|
64
|
+
- app/models/lockstep/magic_link_summary.rb
|
64
65
|
- app/models/lockstep/note.rb
|
65
66
|
- app/models/lockstep/payment.rb
|
66
67
|
- app/models/lockstep/payment_applied.rb
|