updatePurchaseOrders method
Allows acceptors to associate purchase orders with agreement charges after an agreement is created.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter purchaseOrders :
Contains information about purchase order associations.
Implementation
Future<void> updatePurchaseOrders({
required List<PurchaseOrder> purchaseOrders,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AWSMPCommerceService_v20200301.UpdatePurchaseOrders'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'purchaseOrders': purchaseOrders,
},
);
}