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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b11735a0987825c57902116838b940c6608f445cf95dacc7ff6de87d4275451
4
- data.tar.gz: 7f3f535488efead415353fa0130ddf0e930818ef88dfd58b34a16d070c323e29
3
+ metadata.gz: c0fe73a5f2c5f253cacccf071634a2b1e7ac9bed8a3dee4cff7ae2c9be272fed
4
+ data.tar.gz: b4377a0458f8a422ab3b67514ba21359309b464383c4f5fc2a7db1cb9f3f32ba
5
5
  SHA512:
6
- metadata.gz: 4644b5e562d8513f231c567026a2154a7b0c0916ae37c9142300369bcceb595cdcc3d9566527de8a00de4b99dfc5d25f354ac07ae98633f3edf0beda4c58d4ee
7
- data.tar.gz: 2e118cc92126576c690fedb783b1e939bc24c1f40647ad3849d752744295b611c211a0fdee6405c52d5a074f645e2bc59f4c97fcaaf8c1cecec858d058e90e2d
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
@@ -2,4 +2,5 @@ module Lockstep::Exceptions
2
2
  class UnauthorizedError < StandardError; end
3
3
  class BadRequestError < StandardError; end
4
4
  class RecordNotFound < StandardError; end
5
+ class ApiResponseError < StandardError; end
5
6
  end
@@ -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
@@ -0,0 +1,6 @@
1
+ class Lockstep::SyncRequest < Lockstep::ApiRecord
2
+ self.model_name_uri = 'v1/Sync'
3
+ self.id_ref = 'sync_request_id'
4
+
5
+ load_schema(Schema::SyncRequest)
6
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LockstepRails
4
- VERSION = '0.3.77'
4
+ VERSION = '0.3.79'
5
5
  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.77
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: 2023-12-26 00:00:00.000000000 Z
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