Skip to content

Commit 8f9e5a8

Browse files
authored
fix: OrderProposal Customer Rejection (#180)
1 parent 9e00a11 commit 8f9e5a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OpenActive.Server.NET/CustomBookingEngine/CustomBookingEngine.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,9 +581,9 @@ public async Task<ResponseContent> ProcessOrderProposalUpdate(string clientId, U
581581
SimpleIdComponents sellerIdComponents = GetSimpleIdComponentsFromApiKey(sellerId);
582582
SimpleIdComponents customerAccountIdComponents = GetCustomerAccountIdComponentsFromApiKey(customerAccountId);
583583

584-
if (orderProposal == null || orderProposal.GetType() != typeof(Order))
584+
if (orderProposal == null || orderProposal.GetType() != typeof(OrderProposal))
585585
{
586-
throw new OpenBookingException(new UnexpectedOrderTypeError(), "OrderProposal is required for Order Cancellation");
586+
throw new OpenBookingException(new UnexpectedOrderTypeError(), "OrderProposal type is required for OrderProposal Customer Rejection");
587587
}
588588

589589
// Check for PatchContainsExcessiveProperties

0 commit comments

Comments
 (0)