Skip to content

Commit 2f01543

Browse files
committed
subscription spec fixes -> new fields
1 parent a8a181e commit 2f01543

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

spec/v3/services/v2_subscriptions/all_spec.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,11 @@
196196
'purchase_date' => '2017-11-28T00:09:59.502Z',
197197
'valid_to' => '2017-12-28T00:09:59.502Z',
198198
'status' => 'subscribed',
199-
'active' => true
199+
'active' => true,
200+
'total_usage'=> nil,
201+
'quantity_limit_charge'=> nil,
202+
'quantity_limit_free'=> 0,
203+
'quantity_limit_type'=> nil
200204
}
201205
},
202206
{
@@ -218,7 +222,11 @@
218222
'purchase_date' => '2017-11-28T00:09:59.502Z',
219223
'valid_to' => '',
220224
'status' => 'subscribed',
221-
'active' => true
225+
'active' => true,
226+
'total_usage'=> nil,
227+
'quantity_limit_charge'=> nil,
228+
'quantity_limit_free'=> 0,
229+
'quantity_limit_type'=> nil
222230
}
223231
}
224232
],

spec/v3/services/v2_subscriptions/create_spec.rb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,11 @@
170170
'status': 'pending',
171171
'active': false,
172172
'created_at': '2017-11-28T00:09:59.502Z',
173-
'updated_at': '2017-11-28T00:09:59.502Z'
173+
'updated_at': '2017-11-28T00:09:59.502Z',
174+
'total_usage': nil,
175+
'quantity_limit_charge': nil,
176+
'quantity_limit_free': 0,
177+
'quantity_limit_type': nil,
174178
}
175179
}],
176180
'discount' => nil,
@@ -320,7 +324,11 @@
320324
'valid_to' => '2017-11-28T00:09:59.502Z',
321325
'remaining' => 40_000,
322326
'status' => 'pending',
323-
'active' => false
327+
'active' => false,
328+
'total_usage'=> nil,
329+
'quantity_limit_charge'=> nil,
330+
'quantity_limit_free'=> 0,
331+
'quantity_limit_type'=> nil,
324332
}
325333
}],
326334
'client_secret' => 'client_secret',

0 commit comments

Comments
 (0)