Skip to main content

make_customer_order_ref

Function make_customer_order_ref 

Source
pub fn make_customer_order_ref(client_order_id: &str) -> String
Expand description

Truncates a client order ID to a Betfair customer_order_ref.

Takes the last 32 characters to preserve the high-entropy UUID suffix. Returns the full string if it is already 32 characters or shorter.