pub fn float_amount(&mut self, minimum_payout: u16, payout_value: u32, country_code: String, test: bool) -> Result<Payload, ClientError> {
        let mut vec = vec![];
        let mut minimum_vec = u16_to_vec(minimum_payout);
        vec.append(&mut minimum_vec);
        let mut payout_vec = u32_to_vec(payout_value);
        vec.append(&mut payout_vec);
        vec.extend_from_slice(country_code.as_bytes());
        vec.push(match test {
                     true => 0x19u8,
                     false => 0x58u8,
                 });

        let message = self.create_message(Payload {
                                              code: Code::CommandCode(Command::FloatAmount),
                                              data: vec,
                                              encrypted: true,
                                          });
        self.send_and_check_reply(&message)
    }
// this should not be used, because we use set_cashbox_payout_limit which is by denomination, so don't float based on sum value
this should not be used, because we use set_cashbox_payout_limit which is by denomination, so don't float based on sum value
this should not be used because we use set_cashbox_payout_limit which is by denomination so don ' t float based on sum value
pub fn float_amount(&mut self, minimum_payout: u16, payout_value: u32, country_code: String, test: bool) -> Result<Payload, ClientError> {
        let mut vec = vec![];
        let mut minimum_vec = u16_to_vec(minimum_payout);
        vec.append(&mut minimum_vec);
        let mut payout_vec = u32_to_vec(payout_value);
        vec.append(&mut payout_vec);
        vec.extend_from_slice(country_code.as_bytes());
        vec.push(match test {
                     true => 0x19u8,
                     false => 0x58u8,
                 });
        let message = self.create_message(Payload {
                                              code: Code::CommandCode(Command::FloatAmount),
                                              data: vec,
                                              encrypted: true,
                                          });
        self.send_and_check_reply(&message)
    }
pub fn float_amount ( & mut self , minimum_payout : u16 , payout_value : u32 , country_code : String , test : bool ) -> Result < Payload , ClientError > { let mut vec = vec ! [ ] ; let mut minimum_vec = u16_to_vec ( minimum_payout ) ; vec . append ( & mut minimum_vec ) ; let mut payout_vec = u32_to_vec ( payout_value ) ; vec . append ( & mut payout_vec ) ; vec . extend_from_slice ( country_code . as_bytes ( ) ) ; vec . push ( match test { true => 0x19u8 , false => 0x58u8 , } ) ; let message = self . create_message ( Payload { code : Code :: CommandCode ( Command :: FloatAmount ) , data : vec , encrypted : true , } ) ; self . send_and_check_reply ( & message ) }
this should not be used, because we use set_cashbox_payout_limit which is by denomination, so don't float based on sum value
this should not be used because we use set_cashbox_payout_limit which is by denomination so don ' t float based on sum value
&mut self
minimum_payout
u16
payout_value
u32
country_code
String
test
bool
&mut self
minimum_payout
u16
payout_value
u32
country_code
String
test
bool