Skip to content

Commit

Permalink
Replace the Order/orderLines type
Browse files Browse the repository at this point in the history
Turns out I missed one incorrect type, so this should hopefully fix that too

Fixes highsidelabs#13, fixes highsidelabs#17, fixes highsidelabs#19
  • Loading branch information
dpash committed Feb 27, 2024
1 parent d607b3d commit bd81ab0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/Models/MP/US/Orders/GetOrderResponseRecord.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Name | Type | Description | Notes
**mart** | **string** | Mart information | [optional]
**isGuest** | **bool** | Indicates a guest customer | [optional]
**shippingInfo** | [**\Walmart\Models\MP\US\Orders\ShippingInfoType**](ShippingInfoType.md) | |
**orderLines** | [**\Walmart\Models\MP\US\Orders\RefundLinesType**](RefundLinesType.md) | |
**orderLines** | [**\Walmart\Models\MP\US\Orders\OrderLinesType**](OrderLinesType.md) | |
**paymentTypes** | **string[]** | Payment Types | [optional]
**orderSummary** | [**\Walmart\Models\MP\US\Orders\OrderSummary**](OrderSummary.md) | | [optional]
**pickupPersons** | [**\Walmart\Models\MP\US\Orders\PickupPerson[]**](PickupPerson.md) | List of pickup persons | [optional]
Expand Down
2 changes: 1 addition & 1 deletion resources/schemas/models/us/mp/orders.json
Original file line number Diff line number Diff line change
Expand Up @@ -3149,7 +3149,7 @@
"$ref": "#\/components\/schemas\/ShippingInfoType"
},
"orderLines": {
"$ref": "#\/components\/schemas\/RefundLinesType"
"$ref": "#\/components\/schemas\/OrderLinesType"
},
"paymentTypes": {
"type": "array",
Expand Down
7 changes: 7 additions & 0 deletions resources/schemas/modifications/replacements.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@
"$ref": "#\/components\/schemas\/OrderLinesType"
}
}
},
"GetOrderResponseRecord": {
"properties": {
"orderLines": {
"$ref": "#\/components\/schemas\/OrderLinesType"
}
}
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Models/MP/US/Orders/GetOrderResponseRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class GetOrderResponseRecord extends BaseModel
'mart' => 'string',
'isGuest' => 'bool',
'shippingInfo' => '\Walmart\Models\MP\US\Orders\ShippingInfoType',
'orderLines' => '\Walmart\Models\MP\US\Orders\RefundLinesType',
'orderLines' => '\Walmart\Models\MP\US\Orders\OrderLinesType',
'paymentTypes' => 'string[]',
'orderSummary' => '\Walmart\Models\MP\US\Orders\OrderSummary',
'pickupPersons' => '\Walmart\Models\MP\US\Orders\PickupPerson[]',
Expand Down Expand Up @@ -536,7 +536,7 @@ public function setShippingInfo($shippingInfo)
/**
* Gets orderLines
*
* @return \Walmart\Models\MP\US\Orders\RefundLinesType
* @return \Walmart\Models\MP\US\Orders\OrderLinesType
*/
public function getOrderLines()
Expand All @@ -547,7 +547,7 @@ public function getOrderLines()
/**
* Sets orderLines
*
* @param \Walmart\Models\MP\US\Orders\RefundLinesType $orderLines orderLines
* @param \Walmart\Models\MP\US\Orders\OrderLinesType $orderLines orderLines
*
* @return self
Expand Down

0 comments on commit bd81ab0

Please sign in to comment.