v1.5.18
π Release Notes
π Summary of Changes
This release introduces important updates and enhancements to our gRPC proto definitions, including new methods, improved data structures, field renaming, and deprecations.
β οΈ Important:
The provided source code diff is the authoritative reference for accuracy.
Always refer to the provided diff (inventory.proto,order.proto,pay.proto) for implementation details and exact changes.
π Proto File Updates
πΉ inventory.proto
Field Renames:
InventoryItem:item_idβmerchant_item_idAddOnItem:item_idβmerchant_item_id
πΉ order.proto
π© New RPC Methods
RefundItemβ Allows refunding specific items in an order.RefundOrderβ Allows refunding an entire order.
π Updates to Existing Messages
GetOrdersRequest:page_tokenandpage_sizefields are now marked asoptional.
OrderItemWithAddOns:- Added fields:
integration_id(optional)unit_pricemerchant_item_id
- Added fields:
OrderCombo:- Added fields:
unit_priceintegration_id(optional)merchant_item_id
- Added fields:
OrderAddOnItem:- Updated fields:
- Added
unit_price - Added
integration_id(optional) - Added
merchant_item_id - Adjusted field numbering and ordering for consistency
- Added
- Updated fields:
π¦ New Messages
RefundItemRequest&RefundItemResponseβ For handling item-specific refunds.RefundOrderRequest&RefundOrderResponseβ For refunding entire orders.
β New OrderStatus Values
- Added new status:
PICKED
πΉ pay.proto
π© New RPC Method
Voidβ Enables voiding/canceling a payment.
π Updates to Existing Messages
PaymentMethod:payment_method_typefield is nowoptional.
PayResponse:- Renamed:
idempotency_uuidβpayment_id - Deprecated:
psp_reference(usepayment_data.psp_reference) - Added:
is_payment_declined(to distinguish declined from cancelled payments)
- Renamed:
CancelRequest:- Renamed:
order_idβpayment_id
- Renamed:
RefundRequest:- Renamed:
order_idβpayment_id - Renamed:
idempotency_keyβidempotency_uuid - Added optional field:
terminal_id
- Renamed:
π¦ New Messages
VoidPaymentRequest&VoidPaymentResponseβ For voiding payments.
π Enhanced PaymentData
- Added detailed
PaymentCardinformation:card_last_4_digitscard_expiry_datepos_entry_modepayment_tokenauth_code
- Added fields:
payment_method_variantrefund_amount
β New PaymentStatus Enum Values
DECLINEDREFUND_PENDINGREFUND_REQUESTED
β οΈ Deprecations
The following fields are deprecated and replaced with new implementations:
| Deprecated Field | Replacement Field |
|---|---|
PayResponse.receipt_json |
payment_data.receipt_json |
PayResponse.psp_reference |
payment_data.psp_reference |
PayResponse.date_paid |
payment_data.date_paid |
PayResponse.total_amount |
payment_data.total_amount |
PayResponse.sale_amount |
payment_data.sale_amount |