Skip to content

Commit c0c5c9c

Browse files
committed
feat(api): updates (#40)
1 parent c6543a4 commit c0c5c9c

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

tests/api-resources/subscriptions.test.ts

+30-30
Original file line numberDiff line numberDiff line change
@@ -340,12 +340,12 @@ describe('resource subscriptions', () => {
340340
unit_config: { unit_amount: 'string', scaling_factor: 0 },
341341
currency: 'string',
342342
},
343-
start_date: '2023-05-01',
344-
end_date: '2023-07-10',
343+
start_date: '2019-12-27T18:11:19.117Z',
344+
end_date: '2019-12-27T18:11:19.117Z',
345345
fixed_fee_quantity_transitions: [
346-
{ quantity: 5, effective_date: '2023-05-01' },
347-
{ quantity: 5, effective_date: '2023-05-01' },
348-
{ quantity: 5, effective_date: '2023-05-01' },
346+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
347+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
348+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
349349
],
350350
discounts: [
351351
{ discount_type: 'amount', amount_discount: 0 },
@@ -371,12 +371,12 @@ describe('resource subscriptions', () => {
371371
unit_config: { unit_amount: 'string', scaling_factor: 0 },
372372
currency: 'string',
373373
},
374-
start_date: '2023-05-01',
375-
end_date: '2023-07-10',
374+
start_date: '2019-12-27T18:11:19.117Z',
375+
end_date: '2019-12-27T18:11:19.117Z',
376376
fixed_fee_quantity_transitions: [
377-
{ quantity: 5, effective_date: '2023-05-01' },
378-
{ quantity: 5, effective_date: '2023-05-01' },
379-
{ quantity: 5, effective_date: '2023-05-01' },
377+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
378+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
379+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
380380
],
381381
discounts: [
382382
{ discount_type: 'amount', amount_discount: 0 },
@@ -402,12 +402,12 @@ describe('resource subscriptions', () => {
402402
unit_config: { unit_amount: 'string', scaling_factor: 0 },
403403
currency: 'string',
404404
},
405-
start_date: '2023-05-01',
406-
end_date: '2023-07-10',
405+
start_date: '2019-12-27T18:11:19.117Z',
406+
end_date: '2019-12-27T18:11:19.117Z',
407407
fixed_fee_quantity_transitions: [
408-
{ quantity: 5, effective_date: '2023-05-01' },
409-
{ quantity: 5, effective_date: '2023-05-01' },
410-
{ quantity: 5, effective_date: '2023-05-01' },
408+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
409+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
410+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
411411
],
412412
discounts: [
413413
{ discount_type: 'amount', amount_discount: 0 },
@@ -421,34 +421,34 @@ describe('resource subscriptions', () => {
421421
edit: [
422422
{
423423
price_interval_id: 'sdfs6wdjvn7ujokd',
424-
start_date: '2023-05-01',
425-
end_date: '2023-07-10',
424+
start_date: '2019-12-27T18:11:19.117Z',
425+
end_date: '2019-12-27T18:11:19.117Z',
426426
fixed_fee_quantity_transitions: [
427-
{ quantity: 5, effective_date: '2023-05-01' },
428-
{ quantity: 5, effective_date: '2023-05-01' },
429-
{ quantity: 5, effective_date: '2023-05-01' },
427+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
428+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
429+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
430430
],
431431
billing_cycle_day: 0,
432432
},
433433
{
434434
price_interval_id: 'sdfs6wdjvn7ujokd',
435-
start_date: '2023-05-01',
436-
end_date: '2023-07-10',
435+
start_date: '2019-12-27T18:11:19.117Z',
436+
end_date: '2019-12-27T18:11:19.117Z',
437437
fixed_fee_quantity_transitions: [
438-
{ quantity: 5, effective_date: '2023-05-01' },
439-
{ quantity: 5, effective_date: '2023-05-01' },
440-
{ quantity: 5, effective_date: '2023-05-01' },
438+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
439+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
440+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
441441
],
442442
billing_cycle_day: 0,
443443
},
444444
{
445445
price_interval_id: 'sdfs6wdjvn7ujokd',
446-
start_date: '2023-05-01',
447-
end_date: '2023-07-10',
446+
start_date: '2019-12-27T18:11:19.117Z',
447+
end_date: '2019-12-27T18:11:19.117Z',
448448
fixed_fee_quantity_transitions: [
449-
{ quantity: 5, effective_date: '2023-05-01' },
450-
{ quantity: 5, effective_date: '2023-05-01' },
451-
{ quantity: 5, effective_date: '2023-05-01' },
449+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
450+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
451+
{ quantity: 5, effective_date: '2019-12-27T18:11:19.117Z' },
452452
],
453453
billing_cycle_day: 0,
454454
},

0 commit comments

Comments
 (0)