Breaking changes
This is a major release that makes customers the canonical resource and removes the deprecated receivers surface (mirrors blindpay-node #55). Code still using the receiver APIs from v2.x must migrate.
Removed
ReceiversServiceand all receiver methods/accessors on theBlindPayclient andInstancesService(createReceiver,listReceivers,getReceiver,updateReceiver,deleteReceiver,getReceiverLimits,requestLimitIncrease,listLimitIncreaseRequests, andreceivers(receiverId:)).
Renamed (Receiver* → Customer*)
- Model types:
Receiver→Customer,ReceiverOwner→CustomerOwner,ReceiverType→CustomerType,Create/Update/DeleteReceiver*→Create/Update/DeleteCustomer*,ReceiverLimits*→CustomerLimits*,ListReceiversResponse→ListCustomersResponse. - Files:
Receiver.swift→Customer.swift,ReceiverLimits.swift→CustomerLimits.swift. The transitionalCustomer*alias file is dropped. - Sub-resource FK fields
receiver_id→customer_idonBlockchainWallet,OfframpWallet,CustomerOwner, andLimitIncreaseRequest. Payins/payouts keepreceiver_id(the API accepts both there).
Migration notes
- Use
blindpay.customers(customerId:)and thecreateCustomer/listCustomers/getCustomer/updateCustomer/deleteCustomermethods in place of the removed receiver equivalents. listCustomersmaps the cleancustomerId/customerNameparams to thereceiver_id/receiver_namewire keys the API filter schema still expects, so the wire format is unchanged.
Full changelog: v2.10.0...v3.0.0