payload-api 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be2e57632ee3fa5d30ef2e145e0f7790347e476709cd9b33bc8bd7a67ca0d019
4
- data.tar.gz: 1f31bf674145aee86d0d5bc240ca97eea17a5a0f6f9af7a70a7afde50af66acc
3
+ metadata.gz: 7622a6cdd2bb9272244defec0d7270ac8ea332ac300c7b897797ec9b9311e4f6
4
+ data.tar.gz: 2e640cddf0eb931313b4f4cdaa080a2a8e24471cc7330ed8ef6cc44f1c465f55
5
5
  SHA512:
6
- metadata.gz: cdcb2e2232eea58b56e92c9cf4902f2d932773de9fb43156013be2fb67f04718e48d385e3e360ce32145d8a7da03460f73a8646f220d4a4f8bac1a0071c75d56
7
- data.tar.gz: e9686e84c4227d0cfebf9de483673c64684e1d0a45c1f9d80b1cff6ef54a7fa0fd64597f715544793f30b22125ba17da2dd593830d5bd30cde3e2c347b6342ef
6
+ metadata.gz: c77e7856968f9efa3cadd8c6625b401a2266f9725407c91a04fbc4b477a768a13d7a6e967c1175d53b627481ff47f2fb24a517d8d23e4276928b23e9259a9fde
7
+ data.tar.gz: e4502563befa374e315924adc109c7e72bfdd8a29ce9d84c82c2ead3b55d619c9c89df54317644760d78a5b1bd68d1b6142b9faf27ffd9bf2e013e29f6e79841
data/README.md CHANGED
@@ -7,7 +7,7 @@ A RubyGem for integrating [Payload](https://payload.co).
7
7
  To install using [Bundler](https://bundler.io):
8
8
 
9
9
  ```ruby
10
- gem 'payload-api', '~> 0.1.0'
10
+ gem 'payload-api', '~> 0.2.3'
11
11
  ```
12
12
 
13
13
  To install using gem:
@@ -78,4 +78,8 @@ module Payload
78
78
  class PaymentActivation < ARMObject
79
79
  @spec = { 'object' => 'payment_activation' }
80
80
  end
81
+
82
+ class Webhook < ARMObject
83
+ @spec = { 'object' => 'webhook' }
84
+ end
81
85
  end
data/lib/payload/utils.rb CHANGED
@@ -7,7 +7,7 @@ module Payload
7
7
  def self.get_cls(data)
8
8
  match = nil
9
9
  for cls in subclasses(Payload::ARMObject)
10
- if cls.spec['object'] != data['object']
10
+ if cls.spec&.fetch('object') != data['object']
11
11
  next
12
12
  end
13
13
 
@@ -1,3 +1,3 @@
1
1
  module Payload
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payload-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Payload
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-03 00:00:00.000000000 Z
11
+ date: 2023-02-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple library to interface with the Payload API. See https://docs.payload.co
14
14
  for details.
@@ -31,7 +31,7 @@ homepage: https://docs.payload.co
31
31
  licenses:
32
32
  - MIT
33
33
  metadata: {}
34
- post_install_message:
34
+ post_install_message:
35
35
  rdoc_options: []
36
36
  require_paths:
37
37
  - lib
@@ -46,8 +46,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  requirements: []
49
- rubygems_version: 3.2.5
50
- signing_key:
49
+ rubygems_version: 3.3.15
50
+ signing_key:
51
51
  specification_version: 4
52
52
  summary: Payload ruby library
53
53
  test_files: []