geocerts 0.0.22 → 0.0.23
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/geocerts.gemspec +1 -1
- data/lib/geo_certs/endpoints/orders.rb +1 -8
- data/lib/geo_certs/order.rb +5 -1
- data/test/fixtures/responses/order.rb +21 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.23
|
data/geocerts.gemspec
CHANGED
@@ -144,6 +144,7 @@ ORDER
|
|
144
144
|
|
145
145
|
parser Parsers::OrderParser do
|
146
146
|
element :order do
|
147
|
+
eval(ELEMENTS)
|
147
148
|
element 'total-price', :as => :total_price, :type => Float
|
148
149
|
|
149
150
|
element :csr do
|
@@ -163,14 +164,6 @@ ORDER
|
|
163
164
|
element 'geotrust-order-id',:as => :geotrust_order_id
|
164
165
|
element 'expiration-date', :as => :expires_at, :type => DateTime
|
165
166
|
end
|
166
|
-
|
167
|
-
element :warnings do
|
168
|
-
elements :warning do
|
169
|
-
element :code, :type => Float
|
170
|
-
element :message
|
171
|
-
end
|
172
|
-
end
|
173
|
-
|
174
167
|
end
|
175
168
|
end
|
176
169
|
end
|
data/lib/geo_certs/order.rb
CHANGED
@@ -267,7 +267,11 @@ module GeoCerts
|
|
267
267
|
# Sets the renewal information for the order. This method accepts either
|
268
268
|
# a GeoCerts::RenewalInformation instance or a hash of attributes.
|
269
269
|
#
|
270
|
-
|
270
|
+
# This should not need to be utilized by the end-user (API developer),
|
271
|
+
# as it is automatically populated by the server when the order is
|
272
|
+
# populated.
|
273
|
+
#
|
274
|
+
def renewal_information=(input) #:nodoc:
|
271
275
|
case input
|
272
276
|
when RenewalInformation
|
273
277
|
@renewal_information = input
|
@@ -248,12 +248,32 @@ Server: Mongrel 1.1.3
|
|
248
248
|
Status: 200 OK
|
249
249
|
Cache-Control: no-cache
|
250
250
|
Content-Type: application/xml; charset=utf-8
|
251
|
-
Content-Length:
|
251
|
+
Content-Length: 1905
|
252
252
|
Vary: Accept-Encoding
|
253
253
|
Connection: close
|
254
254
|
|
255
255
|
<?xml version="1.0" encoding="UTF-8"?>
|
256
256
|
<order>
|
257
|
+
<id type="integer"></id>
|
258
|
+
<domain></domain>
|
259
|
+
<geotrust-order-id></geotrust-order-id>
|
260
|
+
<status-major></status-major>
|
261
|
+
<status-minor></status-minor>
|
262
|
+
<years type="integer">1</years>
|
263
|
+
<licenses type="integer">1</licenses>
|
264
|
+
<created-at type="datetime"></created-at>
|
265
|
+
<completed-at type="datetime"></completed-at>
|
266
|
+
<trial type="boolean">false</trial>
|
267
|
+
<renewal type="boolean">false</renewal>
|
268
|
+
<sans></sans>
|
269
|
+
<state></state>
|
270
|
+
<flagged type="boolean"></flagged>
|
271
|
+
<product>
|
272
|
+
<sku>Q</sku>
|
273
|
+
</product>
|
274
|
+
<approver-email></approver-email>
|
275
|
+
<approver-notified-at type="datetime"></approver-notified-at>
|
276
|
+
<approver-confirmed-at type="datetime"></approver-confirmed-at>
|
257
277
|
<total-price type="float">69</total-price>
|
258
278
|
<csr>
|
259
279
|
<common-name>www.example.com</common-name>
|