payload-api 0.3.0 → 0.3.2

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: 74d5e99e6b4b79f89e876de732d0b202c52652091467f975de5d91aedc7c1b2b
4
- data.tar.gz: beed06286c333c72bb34841414e394e2dd15b971f3dbff5bb5e12141611eac91
3
+ metadata.gz: 16701a789efbe6cd8db196282866c1fbe466062498e78b1e574cd55c49e76f86
4
+ data.tar.gz: 2feafbc3e039e0791a1949aca35c14d5f0a7b67865cf93cbd981318ddba3a2c7
5
5
  SHA512:
6
- metadata.gz: '009d5bd388d06f3ddff528ac3a7ddb46ee211d1094733bbe096ec4044706f1e1757fb2b064532fe40517e53e5f6eef694b18862b154221869d9fff868386371c'
7
- data.tar.gz: 646a54524964916d4f9f405e01db6496b33247d1f4af22f6604dc050d543bf1850c983cf01a8a88e43bf1ea250365495a1252e981ef58c3a4f3c8891a48ed085
6
+ metadata.gz: 20abdf730b82f46b8a91da28babe36ef47f5e0820dfe1547a65d17e5128f6ca16f95cc70ebf3f577b078e9b173144d54fb19c17267247c0e33cb6055bdef42cf
7
+ data.tar.gz: cdd45d5cf7eb05913138929b6b1a0b4f6e094120d11ccaba9b42ee2265957c28873d683c32c337cf0313495d68a92d24a2a425700331da6190b4c1759ab808fc
@@ -194,10 +194,10 @@ module Payload
194
194
  next
195
195
  end
196
196
 
197
- raise error.new(data['description'], data)
197
+ raise error.new(data['error_description'], data)
198
198
  end
199
199
 
200
- raise Payload::BadRequest.new(data['description'], data)
200
+ raise Payload::BadRequest.new(data['error_description'], data)
201
201
  end
202
202
  end
203
203
  end
@@ -1,6 +1,15 @@
1
1
  require "payload/arm/object"
2
2
 
3
3
  module Payload
4
+ class AccessToken < ARMObject
5
+ @spec = { 'object' => 'account' }
6
+ end
7
+
8
+ class ClientToken < ARMObject
9
+ @spec = { 'object' => 'access_token' }
10
+ @poly = { 'type' => 'client' }
11
+ end
12
+
4
13
  class Account < ARMObject
5
14
  @spec = { 'object' => 'account' }
6
15
  end
@@ -1,3 +1,3 @@
1
1
  module Payload
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.2'
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.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Payload
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-23 00:00:00.000000000 Z
11
+ date: 2023-10-12 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.