public void order_orderId_pay_POST ( Long orderId , OvhPayWithPaymentMethod paymentMethod ) throws IOException { String qPath = "/me/order/{orderId}/pay" ; StringBuilder sb = path ( qPath , orderId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "paymentMethod" , paymentMethod ) ; exec ( qPath , "POST" , sb . toString ( ) , o ) ; }
Pay with a payment method reference