Releases: square/connect-java-sdk
2.5.1
2.5.0
New features: Transaction API and Reporting API
The Transaction API now supports the following request objects:
additional_recipients
— data type representing an additional recipient
(in other words, a recipient other than the merchant or Square) receiving a
portion of a tender.
The new Reporting API includes two endpoints that let you pull information about distributions you have received as an additional recipient:
-
AdditionalRecipientReceivables
— returns a list of receivables (across
all source locations) representing monies credited to the given location ID by
another Square account using theadditional_recipients
field in a transaction. -
AdditionalRecipientReceivablesRefunds
— returns a list of refunded
transactions (across all source locations) related to monies credited to the
given location ID by another Square account using theadditional_recipients
field in a transaction.
2.4
2.3.1
2.3.0
New features: Orders API
CreateOrder
endpoint creates an itemized order which can be referenced in messages to theCharge
endpoint.BatchRetrieveOrders
retrieves order objects referenced in one or more transactions based on the providedorder_id
.
Note: at this point, BatchRetrieveOrders only
returns information on paid orders made through Square's eCommerce APIs (Transactions, Checkout).
Other Changes
order
is removed from Transactionorder_id
is added to TransactionOrderLineItemDiscountType.UNKOWN
renamed toOrderLineItemDiscountType.UNKOWN_DISCOUNT
OrderLineItemTaxType.UNKOWN
renamed toOrderLineItemDiscountType.UNKOWN_TAX
ChargeRequest.idempotency_key
is restricted to max length 192ChargeRequest.card_nonce
is restricted to max length 192ChargeRequest.customer_card_id
is restricted to max length 192ChargeRequest.reference_id
is restricted to max length 40ChargeRequest.note
is restricted to max length 60ChargeRequest.customer_id
is restricted to max length 50CreateCheckoutRequest.redirect_url
is restricted to max length 800- Added
phone_number
andbusiness_name
to Location