alula-ruby 0.59.0 → 0.60.0

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: '0319d0525b473484d4edf6bd98d868e171849bf675aa2915c4bbdd1e9a4ae641'
4
- data.tar.gz: bdaa5a675fd63d425efffb93a788401e857b649f92dac99677a38efe35eb183a
3
+ metadata.gz: e9a76cd63fcee6932ae7741e92ed420b1df70c8f1241a96fe86b6cd0fdb44062
4
+ data.tar.gz: aeb4be51fd8ea443e31893791a68528110f9b3044a95f80c0c242dca3a0df179
5
5
  SHA512:
6
- metadata.gz: f31fca437531095c65a5961fc86439d081aca664737a17fdc93962941189dfe0d4461496bc4acd824ab015ccd98c62f7f19eea559caea9fe0d5c6965d4fe2c13
7
- data.tar.gz: 395260abac1f85c7237d1094f26b3fcf342f56e057f3cfed0879f4c308829b295a1d64278f4ad0653002d1849c2138580c5eb7ba5a2fca34eec3f8790997f60f
6
+ metadata.gz: f19af99762ca90639aa4fc7a61794362bae766c9916c1b0be94535eeb6708ad8d3396a06f2693d799a3f57fd61c1518116f19087fb11b2ca73141c9751aa85a1
7
+ data.tar.gz: dda5c947375997cb8e1bc6456e67eea96f60976e83c87e83e8dbfd35e4aa0aba0d020b2ca6efec3ae3ded6b264e1fc8ef8b60c93b1e750505cfa53de1974f12f
data/VERSION.md CHANGED
@@ -91,3 +91,4 @@
91
91
  | v0.57.0 | 2022-07-19 | Add Alula Messenger to device object |
92
92
  | v0.58.0 | 2022-07-21 | Add clone method, that creates a copy of a resource |
93
93
  | v0.59.0 | 2022-08-10 | Add clone RPC method for Feature Plans |
94
+ | v0.60.0 | 2022-08-16 | Add Device Credits resource |
@@ -0,0 +1,70 @@
1
+ module Alula
2
+ class DeviceCredit < Alula::RestResource
3
+ extend Alula::ResourceAttributes
4
+ extend Alula::ApiOperations::Request
5
+ extend Alula::ApiOperations::List
6
+ extend Alula::ApiOperations::Save
7
+
8
+ resource_path 'devices/credits'
9
+ type 'devices-credit'
10
+
11
+ # Resource Fields
12
+ # Not all params are used at the moment. See Alula::ResourceAttributes for details
13
+ # on how params are parsed,
14
+ field :id,
15
+ type: :string,
16
+ sortable: true,
17
+ filterable: true,
18
+ creatable_by: [],
19
+ patchable_by: []
20
+
21
+ field :device_id,
22
+ type: :string,
23
+ sortable: true,
24
+ filterable: true,
25
+ creatable_by: [:system],
26
+ patchable_by: []
27
+
28
+ field :credit_type,
29
+ type: :string,
30
+ sortable: true,
31
+ filterable: true,
32
+ creatable_by: [:system],
33
+ patchable_by: []
34
+
35
+ field :initial_amount,
36
+ type: :number,
37
+ sortable: true,
38
+ filterable: false,
39
+ creatable_by: [:system],
40
+ patchable_by: [:system]
41
+
42
+ field :used_amount,
43
+ type: :number,
44
+ sortable: true,
45
+ filterable: false,
46
+ creatable_by: [],
47
+ patchable_by: [:system]
48
+
49
+ field :date_modified,
50
+ type: :date,
51
+ sortable: true,
52
+ filterable: false,
53
+ creatable_by: [],
54
+ patchable_by: []
55
+
56
+ field :date_created,
57
+ type: :date,
58
+ sortable: true,
59
+ filterable: false,
60
+ creatable_by: [],
61
+ patchable_by: []
62
+
63
+ field :expiration_date,
64
+ type: :date,
65
+ sortable: true,
66
+ filterable: false,
67
+ creatable_by: [:system],
68
+ patchable_by: [:system]
69
+ end
70
+ end
data/lib/alula/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Alula
4
- VERSION = '0.59.0'
4
+ VERSION = '0.60.0'
5
5
  end
data/lib/alula.rb CHANGED
@@ -32,6 +32,7 @@ require_relative 'alula/helpers/device_attribute_translations'
32
32
  require_relative 'alula/resources/billing_program'
33
33
  require_relative 'alula/resources/device'
34
34
  require_relative 'alula/resources/device_charge'
35
+ require_relative 'alula/resources/device_credit'
35
36
  require_relative 'alula/resources/device_event_log'
36
37
  require_relative 'alula/resources/device_cellular_status'
37
38
  require_relative 'alula/resources/device_program'
@@ -99,6 +100,7 @@ module Alula
99
100
  Alula::BillingProgram,
100
101
  Alula::Device,
101
102
  Alula::DeviceCharge,
103
+ Alula::DeviceCredit,
102
104
  Alula::DeviceEventLog,
103
105
  Alula::DeviceProgram,
104
106
  Alula::DealerAddress,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alula-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.59.0
4
+ version: 0.60.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Titus Johnson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-15 00:00:00.000000000 Z
11
+ date: 2022-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -246,6 +246,7 @@ files:
246
246
  - lib/alula/resources/device.rb
247
247
  - lib/alula/resources/device_cellular_status.rb
248
248
  - lib/alula/resources/device_charge.rb
249
+ - lib/alula/resources/device_credit.rb
249
250
  - lib/alula/resources/device_event_log.rb
250
251
  - lib/alula/resources/device_program.rb
251
252
  - lib/alula/resources/event_trigger.rb