@@ -626,14 +626,26 @@ export const handlers = [
626
626
label : 'eu-linode' ,
627
627
region : 'eu-west' ,
628
628
} ) ,
629
+ linodeFactory . build ( {
630
+ backups : { enabled : false } ,
631
+ label : 'DC-Specific Pricing Linode' ,
632
+ region : 'id-cgk' ,
633
+ } ) ,
629
634
eventLinode ,
630
635
multipleIPLinode ,
631
636
] ;
632
637
return res ( ctx . json ( makeResourcePage ( linodes ) ) ) ;
633
638
} ) ,
634
639
rest . get ( '*/linode/instances/:id' , async ( req , res , ctx ) => {
635
640
const id = Number ( req . params . id ) ;
636
- return res ( ctx . json ( linodeFactory . build ( { id } ) ) ) ;
641
+ return res (
642
+ ctx . json (
643
+ linodeFactory . build ( {
644
+ backups : { enabled : false } ,
645
+ id,
646
+ } )
647
+ )
648
+ ) ;
637
649
} ) ,
638
650
rest . delete ( '*/instances/*' , async ( req , res , ctx ) => {
639
651
return res ( ctx . json ( { } ) ) ;
@@ -941,6 +953,15 @@ export const handlers = [
941
953
} ) ;
942
954
return res ( ctx . json ( makeResourcePage ( [ linodeInvoice , akamaiInvoice ] ) ) ) ;
943
955
} ) ,
956
+ rest . get ( '*/account/invoices/:invoiceId' , ( req , res , ctx ) => {
957
+ const linodeInvoice = invoiceFactory . build ( {
958
+ date : '2022-12-01T18:04:01' ,
959
+ id : 1234 ,
960
+ label : 'LinodeInvoice' ,
961
+ } ) ;
962
+ return res ( ctx . json ( linodeInvoice ) ) ;
963
+ } ) ,
964
+
944
965
rest . get ( '*/account/maintenance' , ( req , res , ctx ) => {
945
966
accountMaintenanceFactory . resetSequenceNumber ( ) ;
946
967
const page = Number ( req . url . searchParams . get ( 'page' ) || 1 ) ;
0 commit comments