- Fixed applied taxes and applied discounts on
OrderLineItem
- Added customer group and customer segment endpoints!
- Hot fixed issue with modifier location overrides
- Hot fixed issue in
OrderFulfillmentUpdatedEvent
- Hot fixed and export error for
OrderFulfillmentUpdatedEvent
New Direction for Package
- Null safety support!
- All the objects still support
.toJson
and.fromJson
; however, now all json methods are generated using json_serializable. - In addition to objects, now has
SquareApiClient
. This allows you make requests to Square APIs.
- Removed Flutter from the dependencies. This will allow to use the package as a pure Dart library (i.e. backend or AngularDart).
- Removing Android and iOS folder as they aren't needed for this package.
- Big Changes in Direction on Package, so I'm designating 1.0.0.
- I suggest you read the updated readme, but TL;DR
- There were some serious security concerns from Square on previous package implementation around storing your API key on the device. It belongs on a server you control.
- There is now no support for calling API functions directly from this package
- This also means no support for creating an instance of the API.
- It's primary purpose is a library of native Dart objects that mirror the conceptual objects used in the Square API.
- You can create these objects by specifying
ObjectName.fromJson(response)
- If you have feedback on these changes, feel free to create an issue on https://github.com/mtwichel/square-connect-flutter-library/issues, or send them to [email protected]
- Fixed some bugs in Payments API
- Removed InApp payments (and all related converter methods) from this project as it was causing configuration problems.
- Fixed bug in CatalogItem
- Fixed bug in UpdateOrder - changed from POST request to PUT
- Fixed bug in UpdateOrder
- Fixed bug in UpdateOrder
- Added Refunds API and Payments API
- Initial implementation. Still needs documentation and tests.
- Added changes to Orders API from 8/14 update
- Added
payOrder()
andupdateOrder()
methods, as well as shipment fulfillment type.
- Added
- BREAKING CHANGE: Deprecated
FulfillmentRequest
and renamed input increateOrder()
tofulfillmentRequest
.fulfillment
property now refers to aOrderFulfillment
object. - Added a
Card
factory method from In App PaymentsCard
.
- Added toJson() methods to every data object so they can easily be saved in formats that require simple maps, such as Cloud Firestore. Can be converted back with fromJson().
- Added autoCompleteDuration, prepTimeDuration, and pickupWindowDuration to FulfillmentRequest.
- Fixed bug in hasErrors method in new response superclass
- Fixed bug in BatchRetrieveCatalogObjectsResponse
- Added full implementation of the Inventory API
- Still needs documentation and testing
- Refactored how response objects work behind the scenes
- Not code related, but added a bunch more to the github projects, including some issues for direction on helping.
- Added auth methods to help with OAuth and Reader SDK methods:
- Use
SquareConnect().getAuthEndpoint(clientId, permissions, locale, session, state)
to get the url for requesting permissions for OAuth. - Use
SquareConnect().createMobileAuthorizationCode(locationId)
to get Mobile Auth Code.
- Use
- Added option for using refresh tokens instead of auth token - consider this beta at this point.
- To use, call SquareConnect.getInstanceWithRefreshToken(refreshToken, clientId, clientSecret)
- Make Sure You Secure Your Client Secret!
- Removed cursor from Request Obj helper function. Won't change any API, just makes things simpler to maintain.
- Adding full implementation for Labor API.
- Still need tests and documentation.
- Finished out CatalogApi methods.
- Added timerange and durations where appropriate.
- Adding full implementation for Employees API.
- Still needs tests.
- Added documentation to Transactions API.
- Adding full implementation for Transactions API.
- Still needs documentation and tests.
- Adding more documentation.
- Fixing scope issues for some enums.
- Initial work behind the scenes for Transactions API.
- WooHoo first major release!!!
- This doesn't mean the package is anywhere near complete, but the direction seems clear and now it's time to plug and chug.
- Still missing many API endpoints, documentation on a few items, and testing on lots of items.
- Added a bunch of documentation
- Refactored enums
- Converter methods are now out of public facing API scope
- Now only the enums themselves will be accessible through the API
- Added shared enums and shared objects
- This shouldn't affect public facing API, just internally making general things easier to find
- Moved Api Objects into documentation scope
- There should now be documentation of API methods in the docs
- Also made tokens and clients private so they cannot be accessed once set
- Added and optional SquareConnect constructor that allows you to input token when you get your instance
- The method is
SquareConnect.getInstanceWithToken(String token)
- The method is
- Added
periodsAsMap
to [BusinessHours] object in [LocationsApi] to easily get periods grouped into days of the week. - Various minor improvements throughout
- Adding on by default and ordinal to modifier
- small fixes to Catalog Object parsing
- initial implementing Create Orders API
- Added initial work on implementing Orders API
- Added .hasErrors to Response objects for easier error handling
- Added
searchCatalogObjects()
method- Still needs tests and documentation
- Minor changes to Locations API
- Added full support for Locations API
- Missing test suite
- Full functionality for all functions
- Missing full documentation
- Added full support for Customer API!
- Full test suite
- Full functionality for all functions
- Missing full documentation
- Added some formatting on multiple files
- Fixed return type on lots of methods
- Added android and ios folders
- Initial Release
- Initial framework decisions and implementation of most of the Catalog API