lockstep_rails 0.3.53 → 0.3.55

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: c36b591ef6e4686383783a92bbaa7894b201f2957d2cc93fec9145499bcbb408
4
- data.tar.gz: 29fc7598a1372a6b57e33310cb5cccb405da0a74fd5de4c1a29de408c8416352
3
+ metadata.gz: 4300a420b24f44e242a2216a752c818981f1693996a9147138f90304aea3fbf6
4
+ data.tar.gz: 9221a99ef7d3c2f96c39b563a975095a357dd024c3168a2bdf154e2547ca3d66
5
5
  SHA512:
6
- metadata.gz: c3becb217340a5bf55b71bb3e85f92abd253a8f25169b11c9197aa4df828cd2b5e45a26848b0c22a74ade17b621544a12c5aef3189aacc7638e31c9f01fa473f
7
- data.tar.gz: ddb3d4bce85b4676d275a2551eea571310eda6f70021c81acec87506f190e4e1af688f9d90ee18ad288bede8fec4354615acb691601256db972e55cfad52e445
6
+ metadata.gz: 0b975efb8ff66593f6796ea67c2272b521fc90b9f9509c8a6ed983afd248494457574c86d896a3ad645e4828bed50f648bac44241a0e74ed759f8ed6267067a1
7
+ data.tar.gz: f64a573c6b0fff3f49029caf82954c4b50a137ea66b703ad0091ea74a9363c43b18ba84f412fc8b58bc517179d133467ffe59777a5a222d17115ede0cf096560
data/README.md CHANGED
@@ -52,6 +52,7 @@ The gem is available as open source under the terms of the [MIT License](https:/
52
52
  * Lockstep::MagicLink
53
53
  * Lockstep::Note
54
54
  * Lockstep::Payments
55
+ * Lockstep::PaymentApplied
55
56
  * Lockstep::PaymentSummary
56
57
  * Lockstep::ReportApAgingHeader
57
58
  * Lockstep::ReportArAgingHeader
@@ -729,7 +729,6 @@ module Lockstep
729
729
  put_attrs = @unsaved_attributes
730
730
 
731
731
  put_attrs = relations_for_saving(put_attrs)
732
-
733
732
  put_attrs.delete(id_ref)
734
733
  put_attrs.delete('created')
735
734
  put_attrs.delete('modified')
@@ -0,0 +1,16 @@
1
+ class Lockstep::PaymentApplied < Lockstep::ApiRecord
2
+ self.model_name_uri = "v1/payments-applied"
3
+ self.id_ref = "payment_applied_id"
4
+ self.query_path = ""
5
+ load_schema(Schema::PaymentApplied)
6
+
7
+ def self.merge_all_attributes(objects, response)
8
+ objects.each_with_index do |item, index|
9
+ next unless response[index]
10
+
11
+ new_attributes = response[index].transform_keys { |key| key.underscore }
12
+ end
13
+
14
+ true
15
+ end
16
+ end
@@ -0,0 +1,28 @@
1
+ class Lockstep::ServiceFabricPayment < Lockstep::ApiRecord
2
+ self.model_name_uri = "v1/payments-acceptance/payments/"
3
+ self.id_ref = ""
4
+ self.query_path=""
5
+ load_schema(Schema::SfPaymentRequest)
6
+
7
+ # Preventing deletion of id_ref from puts_attrs because
8
+ # id_ref column is required to send in body in case of
9
+ # create ServiceFabricPayment
10
+ # TODO: Make it generic
11
+ def attributes_for_saving
12
+ @unsaved_attributes = pointerize(@unsaved_attributes)
13
+ put_attrs = @unsaved_attributes
14
+
15
+ put_attrs = relations_for_saving(put_attrs)
16
+ put_attrs.delete('created')
17
+ put_attrs.delete('modified')
18
+ put_attrs
19
+ end
20
+
21
+ # Overriding This method to not send body inside an Array
22
+ def create
23
+ attrs = attributes_for_saving.transform_keys { |key| key.camelize(:lower) }
24
+ resp = resource.post('', body: attrs)
25
+ result = post_result(resp)
26
+ end
27
+
28
+ end
@@ -1,3 +1,3 @@
1
1
  module LockstepRails
2
- VERSION = '0.3.53'
2
+ VERSION = '0.3.55'
3
3
  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.53
4
+ version: 0.3.55
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-03-16 00:00:00.000000000 Z
11
+ date: 2023-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -60,6 +60,7 @@ files:
60
60
  - app/models/lockstep/magic_link.rb
61
61
  - app/models/lockstep/note.rb
62
62
  - app/models/lockstep/payment.rb
63
+ - app/models/lockstep/payment_applied.rb
63
64
  - app/models/lockstep/payment_summary.rb
64
65
  - app/models/lockstep/report_ap_aging_header.rb
65
66
  - app/models/lockstep/report_ar_aging_header.rb
@@ -71,7 +72,7 @@ files:
71
72
  - app/models/lockstep/report_payable_coming_due_summary.rb
72
73
  - app/models/lockstep/report_payable_summary.rb
73
74
  - app/models/lockstep/report_risk_rate.rb
74
- - app/models/lockstep/sf_payment_request.rb
75
+ - app/models/lockstep/service_fabric_payment.rb
75
76
  - app/models/lockstep/status.rb
76
77
  - app/models/lockstep/transcription_validation_request.rb
77
78
  - app/models/lockstep/user.rb
@@ -1,7 +0,0 @@
1
- class Lockstep::ServiceFabricPayment < Lockstep::ApiRecord
2
- self.model_name_uri = "v1/payments-acceptance/payments/"
3
- self.id_ref = "end_to_end_identifier"
4
- self.query_path=""
5
- load_schema(Schema::SfPaymentRequest)
6
-
7
- end