@@ -164,27 +164,29 @@ public function testGetCustomerOrderWithBundleProduct()
164
164
$ this ->assertEquals (2 , count ($ bundleOptionsFromResponse ));
165
165
$ expectedBundleOptions =
166
166
[
167
- [ '__typename ' => 'SelectedBundleOptionItems ' ,
167
+ [ '__typename ' => 'ItemSelectedBundleOption ' ,
168
168
'label ' => 'Drop Down Option 1 ' ,
169
- 'items ' => [
169
+ 'values ' => [
170
170
[
171
171
'product_sku ' => 'simple1 ' ,
172
172
'product_name ' => 'Simple Product1 ' ,
173
- 'product_type ' => 'simple ' ,
174
- 'quantity_ordered ' => 1 ,
175
- 'discounts ' => null
173
+ 'quantity ' => 1 ,
174
+ 'price ' => [
175
+ 'value ' => 1
176
+ ]
176
177
]
177
178
]
178
179
],
179
- [ '__typename ' => 'SelectedBundleOptionItems ' ,
180
+ [ '__typename ' => 'ItemSelectedBundleOption ' ,
180
181
'label ' => 'Drop Down Option 2 ' ,
181
- 'items ' => [
182
+ 'values ' => [
182
183
[
183
184
'product_sku ' => 'simple2 ' ,
184
185
'product_name ' => 'Simple Product2 ' ,
185
- 'product_type ' => 'simple ' ,
186
- 'quantity_ordered ' => 2 ,
187
- 'discounts ' => null
186
+ 'quantity ' => 2 ,
187
+ 'price ' => [
188
+ 'value ' => 2
189
+ ]
188
190
]
189
191
]
190
192
],
@@ -228,8 +230,8 @@ public function testGetCustomerOrderWithBundleProductWithTaxesAndDiscounts()
228
230
$ this ->assertEquals ('Drop Down Option 1 ' , $ childItemsInTheOrder [0 ]['label ' ]);
229
231
$ this ->assertEquals ('Drop Down Option 2 ' , $ childItemsInTheOrder [1 ]['label ' ]);
230
232
231
- $ this ->assertEquals ('simple1 ' , $ childItemsInTheOrder [0 ]['items ' ][0 ]['product_sku ' ]);
232
- $ this ->assertEquals ('simple2 ' , $ childItemsInTheOrder [1 ]['items ' ][0 ]['product_sku ' ]);
233
+ $ this ->assertEquals ('simple1 ' , $ childItemsInTheOrder [0 ]['values ' ][0 ]['product_sku ' ]);
234
+ $ this ->assertEquals ('simple2 ' , $ childItemsInTheOrder [1 ]['values ' ][0 ]['product_sku ' ]);
233
235
234
236
$ this ->assertTotalsOnBundleProductWithTaxesAndDiscounts ($ customerOrderItems );
235
237
$ this ->deleteOrder ();
@@ -1415,9 +1417,15 @@ private function getCustomerOrderQueryBundleProduct($orderNumber)
1415
1417
bundle_options{
1416
1418
__typename
1417
1419
label
1418
- items{product_sku product_name product_type quantity_ordered discounts{amount{value}}
1420
+ values {
1421
+ product_sku
1422
+ product_name
1423
+ quantity
1424
+ price {
1425
+ value
1426
+ }
1427
+ }
1419
1428
}
1420
- }
1421
1429
}
1422
1430
}
1423
1431
total {
0 commit comments