@@ -10,7 +10,11 @@ const client = new Orb({
1010
1111describe ( 'resource plans' , ( ) => {
1212 test ( 'create: only required params' , async ( ) => {
13- const responsePromise = client . plans . create ( { currency : 'currency' , name : 'name' , prices : [ { } ] } ) ;
13+ const responsePromise = client . plans . create ( {
14+ currency : 'currency' ,
15+ name : 'name' ,
16+ prices : [ { } ] ,
17+ } ) ;
1418 const rawResponse = await responsePromise . asResponse ( ) ;
1519 expect ( rawResponse ) . toBeInstanceOf ( Response ) ;
1620 const response = await responsePromise ;
@@ -32,7 +36,13 @@ describe('resource plans', () => {
3236 currency : 'USD' ,
3337 custom_expiration : { duration : 0 , duration_unit : 'day' } ,
3438 expires_at_end_of_cadence : true ,
35- filters : [ { field : 'item_id' , operator : 'includes' , values : [ 'string' ] } ] ,
39+ filters : [
40+ {
41+ field : 'item_id' ,
42+ operator : 'includes' ,
43+ values : [ 'string' ] ,
44+ } ,
45+ ] ,
3646 item_id : 'item_id' ,
3747 per_unit_cost_basis : 'per_unit_cost_basis' ,
3848 } ,
@@ -75,7 +85,13 @@ describe('resource plans', () => {
7585 applies_to_item_ids : [ 'item_1' , 'item_2' ] ,
7686 applies_to_price_ids : [ 'price_1' , 'price_2' ] ,
7787 currency : 'currency' ,
78- filters : [ { field : 'price_id' , operator : 'includes' , values : [ 'string' ] } ] ,
88+ filters : [
89+ {
90+ field : 'price_id' ,
91+ operator : 'includes' ,
92+ values : [ 'string' ] ,
93+ } ,
94+ ] ,
7995 is_invoice_level : true ,
8096 price_type : 'usage' ,
8197 } ,
@@ -87,7 +103,12 @@ describe('resource plans', () => {
87103 metadata : { foo : 'string' } ,
88104 net_terms : 0 ,
89105 plan_phases : [
90- { order : 0 , align_billing_with_phase_start_date : true , duration : 1 , duration_unit : 'daily' } ,
106+ {
107+ order : 0 ,
108+ align_billing_with_phase_start_date : true ,
109+ duration : 1 ,
110+ duration_unit : 'daily' ,
111+ } ,
91112 ] ,
92113 status : 'active' ,
93114 } ) ;
0 commit comments