This repository was archived by the owner on Oct 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
src/Core/Model/ShippingMethod
integration/ShippingMethod Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 1515 * @method ShippingRate setPrice(Money $price = null)
1616 * @method Money getFreeAbove()
1717 * @method ShippingRate setFreeAbove(Money $freeAbove = null)
18+ * @method bool getIsMatching()
19+ * @method ShippingRate setIsMatching(bool $isMatching = null)
1820 */
1921class ShippingRate extends JsonObject
2022{
@@ -23,6 +25,7 @@ public function fieldDefinitions()
2325 return [
2426 'price ' => [static ::TYPE => Money::class],
2527 'freeAbove ' => [static ::TYPE => Money::class],
28+ 'isMatching ' => [static ::TYPE => 'bool ' ]
2629 ];
2730 }
2831}
Original file line number Diff line number Diff line change @@ -630,6 +630,7 @@ shippingRate:
630630 fields :
631631 - price
632632 - freeAbove
633+ - isMatching
633634
634635state :
635636 domain : state
Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ public function testByLocation()
9595 $ response = $ request ->executeWithClient ($ this ->getClient (), ['X-Vrap-Disable-Validation ' => 'response ' ]);
9696 $ result = $ request ->mapResponse ($ response );
9797
98+ $ this ->assertTrue ($ result ->current ()->getZoneRates ()->current ()->getShippingRates ()->current ()->getIsMatching ());
9899 $ this ->assertInstanceOf (ShippingMethodCollection::class, $ result );
99100 $ this ->assertSame ($ shippingMethod ->getId (), $ result ->current ()->getId ());
100101 }
You can’t perform that action at this time.
0 commit comments