Skip to navigation

v1.0.29

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.DepositDate is now *DepositDate instead of DepositDate, and its Get and Set methods change to match. While Payabli holds a payment, its deposit date is null.

// Before
var depositDate payabli.DepositDate = record.GetDepositDate()
// After
var depositDate *payabli.DepositDate = record.GetDepositDate()
if depositDate != nil {
fmt.Println(*depositDate)
}

Device ordering

client.DeviceOrder is a new client with GetDeviceOrderingEnabled, GetDeviceOrderCatalog, GetDeviceOrderRecipients, SubmitDeviceOrder, PayDeviceOrder, GetDeviceOrder, and CancelDeviceOrder. SubmitDeviceOrderRequest.IdempotencyKey is sent as the Idempotency-Key header.

client.Query adds ListDeviceOrders and ListDeviceOrdersOrg, which return *payabli.QueryDeviceOrderResponse.

// client.DeviceOrder
func (c *Client) GetDeviceOrderingEnabled(
ctx context.Context,
entry payabli.Entry,
opts ...option.RequestOption,
) (*payabli.DeviceOrderEnabledResponse, error)
func (c *Client) GetDeviceOrderCatalog(
ctx context.Context,
opts ...option.RequestOption,
) (*payabli.DeviceOrderCatalogResponse, error)
func (c *Client) GetDeviceOrderRecipients(
ctx context.Context,
opts ...option.RequestOption,
) (*payabli.DeviceOrderRecipientsResponse, error)
func (c *Client) SubmitDeviceOrder(
ctx context.Context,
request *payabli.SubmitDeviceOrderRequest,
opts ...option.RequestOption,
) (*payabli.DeviceOrderResponse, error)
func (c *Client) PayDeviceOrder(
ctx context.Context,
orderNumber string,
request *payabli.PayDeviceOrderRequest,
opts ...option.RequestOption,
) (*payabli.DeviceOrderResponse, error)
func (c *Client) GetDeviceOrder(
ctx context.Context,
orderNumber string,
opts ...option.RequestOption,
) (*payabli.DeviceOrderResponse, error)
func (c *Client) CancelDeviceOrder(
ctx context.Context,
orderNumber string,
request *payabli.CancelDeviceOrderRequest,
opts ...option.RequestOption,
) (*payabli.DeviceOrderResponse, error)
// client.Query
func (c *Client) ListDeviceOrders(
ctx context.Context,
entry payabli.Entry,
request *payabli.ListDeviceOrdersRequest,
opts ...option.RequestOption,
) (*payabli.QueryDeviceOrderResponse, error)
func (c *Client) ListDeviceOrdersOrg(
ctx context.Context,
orgId int,
request *payabli.ListDeviceOrdersOrgRequest,
opts ...option.RequestOption,
) (*payabli.QueryDeviceOrderResponse, error)

Device lifecycle

client.Device adds UpdateStatus, Unregister, and ForceUnregister, which return *payabli.DeviceLifecycleResponse.

// client.Device
func (c *Client) UpdateStatus(
ctx context.Context,
entry string,
deviceId string,
request *payabli.DeviceStatusRequest,
opts ...option.RequestOption,
) (*payabli.DeviceLifecycleResponse, error)
func (c *Client) Unregister(
ctx context.Context,
entry string,
deviceId string,
opts ...option.RequestOption,
) (*payabli.DeviceLifecycleResponse, error)
func (c *Client) ForceUnregister(
ctx context.Context,
entry string,
deviceId string,
opts ...option.RequestOption,
) (*payabli.DeviceLifecycleResponse, error)

Webhook event types

NotificationStandardRequestContentEventType adds NotificationStandardRequestContentEventTypeDeviceorderplaced, NotificationStandardRequestContentEventTypeDeviceorderpaid, and NotificationStandardRequestContentEventTypeDeviceorderstatuschanged.