runapi-core 0.5.0 → 0.5.1
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 +4 -4
- data/lib/runapi/core/types.rb +5 -18
- data/lib/runapi/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2346cc3e1789c4eb393386b3c446e7e2b745ac4bfd64bac272a6dc7e352afe44
|
|
4
|
+
data.tar.gz: e488401b9e7161b27027ac355c60c4b071195e8084f050ca26f02e10d31ea033
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e5db3a20265fe7181ef3c6a9dee576df3e9d34d00b0fd11317b6dd7789fec8c5661d6cbe73f7214c69ebd0ad76e2a1960a1e7b851121520c998bf1aac707bc3c
|
|
7
|
+
data.tar.gz: 144b7dbd4205dbf424d57432435f5b2edac9b64e4db2f42f154ea9024e6cc963ce2dd2aea0e046f7351c572b48f7867daac9f887ae511a75c331e3cfeec15d32
|
data/lib/runapi/core/types.rb
CHANGED
|
@@ -101,23 +101,8 @@ module RunApi
|
|
|
101
101
|
end
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
-
class
|
|
105
|
-
required :
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
class TaskSettlement < BaseModel
|
|
109
|
-
required :charged_amount_cents, Numeric
|
|
110
|
-
required :amount_micro_cents, Numeric
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
class TaskRefund < BaseModel
|
|
114
|
-
required :refunded_at, String
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
class TaskBillingFacts < BaseModel
|
|
118
|
-
optional :reservation, TaskReservation
|
|
119
|
-
optional :settlement, TaskSettlement
|
|
120
|
-
optional :refund, TaskRefund
|
|
104
|
+
class TaskUsage < BaseModel
|
|
105
|
+
required :cost, Numeric
|
|
121
106
|
end
|
|
122
107
|
|
|
123
108
|
# Typed response structure for async task operations.
|
|
@@ -129,6 +114,8 @@ module RunApi
|
|
|
129
114
|
# @return [String, nil] Current task status.
|
|
130
115
|
# @!attribute [r] error
|
|
131
116
|
# @return [String, nil] Error message if task failed.
|
|
117
|
+
# @!attribute [r] usage
|
|
118
|
+
# @return [TaskUsage, nil] Settled cost in USD on completed Task envelopes.
|
|
132
119
|
class TaskResponse < BaseModel
|
|
133
120
|
module Status
|
|
134
121
|
PENDING = "pending"
|
|
@@ -142,7 +129,7 @@ module RunApi
|
|
|
142
129
|
optional :id, String
|
|
143
130
|
optional :status, String
|
|
144
131
|
optional :error, String
|
|
145
|
-
optional :
|
|
132
|
+
optional :usage, TaskUsage
|
|
146
133
|
end
|
|
147
134
|
end
|
|
148
135
|
end
|
data/lib/runapi/core/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-core
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- RunAPI
|
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
86
86
|
- !ruby/object:Gem::Version
|
|
87
87
|
version: '0'
|
|
88
88
|
requirements: []
|
|
89
|
-
rubygems_version: 4.0.
|
|
89
|
+
rubygems_version: 4.0.10
|
|
90
90
|
specification_version: 4
|
|
91
91
|
summary: RunAPI Core Ruby SDK
|
|
92
92
|
test_files: []
|