lockstep_rails 0.3.29 → 0.3.32

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: 73453ef7839b215e49d06ec28921cec5ad5c90e1600de67627a8980b10a640ae
4
- data.tar.gz: 7c7bdb9ae73f1607eb13ec29d45d444acec6a74bde2a194bb888dafe51ec7369
3
+ metadata.gz: 94502402bd9d755992cd382ee97ed1fe0af5fe4e2b1a5737f786caffbee8b64c
4
+ data.tar.gz: 2ae8039dee7bf011e99aded9bfde1e1298ee3f0c549f757e281f363f85109766
5
5
  SHA512:
6
- metadata.gz: 6f44e6bb9b19a02f8aa9ae260e8aeb945feb3f8608a286317636ac667a81d437c781297d339f8b0aa8e5a9debb54024bb4b153995512995dde8d9e02a4bf2b48
7
- data.tar.gz: 961c08619ef273b8444a33d08cc0d8bf00dbb0adb2220620fd2b93e9633a8b201fc32c762ba7580dff4ce992d75b2c8926d486f2099330b2e5485764769cb234
6
+ metadata.gz: fe36a5929aef41627ca1ea92aff6b13a051703c2be31e1f1e3189dab88cd6ea60378ed3abe3abbada50cbd7600755d2502bac1e3f111b2ecd67e3ccabf2f7805
7
+ data.tar.gz: b42cada76579804a7a61e4b98a1603e1ce676ac680dde921cd441167c9504c84d3deca93f13ee1424cf524fe086f684faea2b419e87dc53ac1e4c2f4772bd6a0
data/README.md CHANGED
@@ -59,6 +59,7 @@ The gem is available as open source under the terms of the [MIT License](https:/
59
59
  * Lockstep::ReportPayableComingDue
60
60
  * Lockstep::ReportPayableSummary
61
61
  * Lockstep::ReportPayablesComingDueSummary
62
+ * Lockstep::ApiKey
62
63
 
63
64
  ## ActiveModel Interfaces
64
65
 
@@ -0,0 +1,14 @@
1
+ class Lockstep::ApiKey < Lockstep::ApiRecord
2
+ self.model_name_uri = "v1/ApiKeys"
3
+ self.id_ref = "api_key_id"
4
+ load_schema(Schema::ApiKey)
5
+
6
+ default_scope { where('Revoked is null') }
7
+
8
+ # Create method to override conventional create in lockstep/api_record.rb of sending attrs as an enclosed array
9
+ def create
10
+ attrs = attributes_for_saving.transform_keys { |key| key.camelize(:lower) }
11
+ resp = resource.post('', body: attrs, params: nil)
12
+ result = post_result(resp)
13
+ end
14
+ end
@@ -1,4 +1,4 @@
1
- class Schema::PayableComingDueReport < Lockstep::ApiRecord
1
+ class Schema::PayableComingDueSummaryReport < Lockstep::ApiRecord
2
2
 
3
3
  # ApiRecord will crash unless `id_ref` is defined
4
4
  def self.id_ref
@@ -5,15 +5,15 @@ def self.id_ref
5
5
  nil
6
6
  end
7
7
 
8
- # The unique ID of this record, automatically assigned by Lockstep when this record is
8
+ # The unique ID of this record, automatically assigned by Lockstep when this record is
9
9
  # added to the Lockstep platform.
10
10
  # @type: string
11
11
  # @format: uuid
12
12
  field :webhook_id
13
13
 
14
- # The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
15
- # account will share the same GroupKey value. GroupKey values cannot be changed once created.
16
- #
14
+ # The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
15
+ # account will share the same GroupKey value. GroupKey values cannot be changed once created.
16
+ #
17
17
  # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
18
18
  # @type: string
19
19
  # @format: uuid
@@ -31,7 +31,7 @@ end
31
31
  # @type: string
32
32
  field :status_message
33
33
 
34
- # An secret set during webhook creation that can be used to verify that the notification
34
+ # An secret set during webhook creation that can be used to verify that the notification
35
35
  # is coming from the Lockstep API.
36
36
  # @type: string
37
37
  field :client_secret
@@ -44,17 +44,17 @@ end
44
44
  # @type: string
45
45
  field :callback_http_method
46
46
 
47
- # The URL where the notification will be sent via the method set in CallbackHttpMethod.
48
- #
49
- # When creating a webhook, the Lockstep API will make a call to this url via the method
50
- # set in the CallbackHttpMethod property with a query parameter of "code" set to an encoded
51
- # string. To successfully create the webhook, the call must return a successful status code
47
+ # The URL where the notification will be sent via the method set in CallbackHttpMethod.
48
+ #
49
+ # When creating a webhook, the Lockstep API will make a call to this url via the method
50
+ # set in the CallbackHttpMethod property with a query parameter of "code" set to an encoded
51
+ # string. To successfully create the webhook, the call must return a successful status code
52
52
  # with the query parameter's value as the plain text content.
53
53
  # @type: string
54
54
  # @format: uri
55
55
  field :callback_url
56
56
 
57
- # The expiration date for the given webhook subscription. Once the expiration date passes,
57
+ # The expiration date for the given webhook subscription. Once the expiration date passes,
58
58
  # notifications will no longer be sent to the callback url.
59
59
  # @type: string
60
60
  # @format: date-time
@@ -1,3 +1,3 @@
1
1
  module LockstepRails
2
- VERSION = "0.3.29"
2
+ VERSION = "0.3.32"
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.29
4
+ version: 0.3.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-30 00:00:00.000000000 Z
11
+ date: 2022-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -46,6 +46,7 @@ files:
46
46
  - app/concepts/lockstep/relation_array.rb
47
47
  - app/helpers/types.rb
48
48
  - app/models/lockstep/account.rb
49
+ - app/models/lockstep/api_key.rb
49
50
  - app/models/lockstep/app_enrollment.rb
50
51
  - app/models/lockstep/connection.rb
51
52
  - app/models/lockstep/contact.rb