//! # Delivery
//!
//!
use crate::{Created, EmptyResponse, MailDelivery, Request, RequestBuilder, SmsDelivery};
///Sends the posted PDF file (and appendixes [optional]) with mail
///delivery. One file (and appendixes [optional]) is one post delivery/
///envelope. The PDF's needs to be in A4 format, main file needs to have
///sender and receiver information according to our standard on the first
///page and total file after merge with appendixes [optional] can not
///excced 10 MB.
pub fn send_a_mail(body: &MailDelivery) -> Request<EmptyResponse> {
RequestBuilder::new(http::Method::POST, "/v1/delivery/mail")
.body(body)
.build()
}
///Sends a SMS to the specified phone number. Sender will be your company
///name. Line breaks are added by typing \n\r in the message.
pub fn send_a_sms_text(body: &SmsDelivery) -> Request<Created> {
RequestBuilder::new(http::Method::POST, "/v1/delivery/sms")
.body(body)
.build()
}