lockstep_rails 0.3.77 → 0.3.79
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/app/concepts/lockstep/exceptions.rb +1 -0
- data/app/models/lockstep/magic_link_summary.rb +16 -0
- data/app/models/lockstep/sync_request.rb +6 -0
- data/lib/lockstep_rails/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0fe73a5f2c5f253cacccf071634a2b1e7ac9bed8a3dee4cff7ae2c9be272fed
|
4
|
+
data.tar.gz: b4377a0458f8a422ab3b67514ba21359309b464383c4f5fc2a7db1cb9f3f32ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d70576f4cf0602c65fe7d1ef155cd302307d0dd6db75ad7977eb0089436a1db9af2332ed0d8b655ac149b5b55b7bf553a434029e4190fdf3f1f3aafbe604f10f
|
7
|
+
data.tar.gz: 0b0dadad816724abae003b828b89ef7de57ce8f2f04d825786faf9f16f7c03911bd8a0e7100e42f89bafcf1cc79bcaa4677a7820055fdabc18fa718cdcde9a57
|
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
|
@@ -77,6 +78,7 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
77
78
|
- Lockstep::ReportRiskRate
|
78
79
|
- Lockstep::ServiceFabricPayment
|
79
80
|
- Lockstep::Status
|
81
|
+
- Lockstep::SyncRequest
|
80
82
|
- Lockstep::Transaction
|
81
83
|
- Lockstep::TranscriptionValidationRequest
|
82
84
|
- Lockstep::User
|
@@ -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.79
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vivek AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-09 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
|
@@ -77,6 +78,7 @@ files:
|
|
77
78
|
- app/models/lockstep/report_risk_rate.rb
|
78
79
|
- app/models/lockstep/service_fabric_payment.rb
|
79
80
|
- app/models/lockstep/status.rb
|
81
|
+
- app/models/lockstep/sync_request.rb
|
80
82
|
- app/models/lockstep/transaction.rb
|
81
83
|
- app/models/lockstep/transcription_validation_request.rb
|
82
84
|
- app/models/lockstep/user.rb
|