Skip to navigation

v2.0.23

This release includes breaking changes. It makes the deposit date on batch detail records nullable, and adds methods for ordering devices and managing a device’s lifecycle. See November 17, 2026 and November 18, 2026 and November 30, 2026 for more information.

Nullable deposit date on batch details

BatchDetailResponseRecord.deposit_date is now Option<DepositDate> instead of DepositDate. While Payabli holds a payment, its deposit date is null.

// Before
let deposit_date: DepositDate = record.deposit_date;
// After
let deposit_date: Option<DepositDate> = record.deposit_date;
if let Some(date) = deposit_date {
println!("{:?}", date);
}

Device ordering

client.device_order is a new client with get_device_ordering_enabled, get_device_order_catalog, get_device_order_recipients, submit_device_order, pay_device_order, get_device_order, and cancel_device_order. SubmitDeviceOrderRequest has no idempotency key field. Send it as a header with RequestOptions::new().additional_header("Idempotency-Key", ...).

client.query adds list_device_orders and list_device_orders_org, which return QueryDeviceOrderResponse.

// client.device_order
pub async fn get_device_ordering_enabled(
&self,
entry: &Entry,
options: Option<RequestOptions>,
) -> Result<DeviceOrderEnabledResponse, ApiError>
pub async fn get_device_order_catalog(
&self,
options: Option<RequestOptions>,
) -> Result<DeviceOrderCatalogResponse, ApiError>
pub async fn get_device_order_recipients(
&self,
options: Option<RequestOptions>,
) -> Result<DeviceOrderRecipientsResponse, ApiError>
pub async fn submit_device_order(
&self,
request: &SubmitDeviceOrderRequest,
options: Option<RequestOptions>,
) -> Result<DeviceOrderResponse, ApiError>
pub async fn pay_device_order(
&self,
order_number: &str,
request: &PayDeviceOrderRequest,
options: Option<RequestOptions>,
) -> Result<DeviceOrderResponse, ApiError>
pub async fn get_device_order(
&self,
order_number: &str,
options: Option<RequestOptions>,
) -> Result<DeviceOrderResponse, ApiError>
pub async fn cancel_device_order(
&self,
order_number: &str,
request: &CancelDeviceOrderRequest,
options: Option<RequestOptions>,
) -> Result<DeviceOrderResponse, ApiError>
// client.query
pub async fn list_device_orders(
&self,
entry: &Entry,
request: &ListDeviceOrdersQueryRequest,
options: Option<RequestOptions>,
) -> Result<QueryDeviceOrderResponse, ApiError>
pub async fn list_device_orders_org(
&self,
org_id: i64,
request: &ListDeviceOrdersOrgQueryRequest,
options: Option<RequestOptions>,
) -> Result<QueryDeviceOrderResponse, ApiError>

Device lifecycle

client.device adds update_status, unregister, and force_unregister, which return DeviceLifecycleResponse.

// client.device
pub async fn update_status(
&self,
entry: &str,
device_id: &str,
request: &DeviceStatusRequest,
options: Option<RequestOptions>,
) -> Result<DeviceLifecycleResponse, ApiError>
pub async fn unregister(
&self,
entry: &str,
device_id: &str,
options: Option<RequestOptions>,
) -> Result<DeviceLifecycleResponse, ApiError>
pub async fn force_unregister(
&self,
entry: &str,
device_id: &str,
options: Option<RequestOptions>,
) -> Result<DeviceLifecycleResponse, ApiError>

Webhook event types

NotificationStandardRequestContentEventType adds Deviceorderplaced, Deviceorderpaid, and Deviceorderstatuschanged.