// Copyright 2019-2024 BlockChyp, Inc. All rights reserved. Use of this code // is governed by a license that can be found in the LICENSE file. // // This file was generated automatically by the BlockChyp SDK Generator. // Changes to this file will be lost every time the code is regenerated. mod test_utils; use blockchyp; #[test] fn test_terms_and_conditions() { let config = test_utils::load_test_configuration(); let client = config.new_test_client(Some("")); test_utils::process_test_delay(&config, "TermsAndConditions"); // request object let mut request = blockchyp::TermsAndConditionsRequest{ test: true, terminal_name: config.default_terminal_name.clone().unwrap_or_else(|| "Test Terminal".to_string()).to_string(), tc_name: "HIPPA Disclosure".to_string(), tc_content: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ullamcorper id urna quis pulvinar. Pellentesque vestibulum justo ac nulla consectetur tristique. Suspendisse arcu arcu, viverra vel luctus non, dapibus vitae augue. Aenean ac volutpat purus. Curabitur in lacus nisi. Nam vel sagittis eros. Curabitur faucibus ut nisl in pulvinar. Nunc egestas, orci ut porttitor tempus, ante mauris pellentesque ex, nec feugiat purus arcu ac metus. Cras sodales ornare lobortis. Aenean lacinia ultricies purus quis pharetra. Cras vestibulum nulla et magna eleifend eleifend. Nunc nibh dolor, malesuada ut suscipit vitae, bibendum quis dolor. Phasellus ultricies ex vitae dolor malesuada, vel dignissim neque accumsan.".to_string(), sig_format: blockchyp::SignatureFormat::PNG, sig_width: 200, sig_required: true, ..Default::default() }; println!("Request: {:?}", request); let (response, err) = client.terms_and_conditions(&mut request); assert!(err.is_none(), "err is not none: {:?}", err); println!("Response: {:?}", response); // response assertions assert!(response.success); }