square/connect-php-sdk

Confusing property naming for catalog "object"

tristansokol opened this issue · 1 comments

If you are upserting a catalog object, you would need to create (either implicitly or explicitly) a UpsertCatalogObjectRequeest. One of those properties is named object. That is a tricky because what you actually need to create in PHP world in an associative array, not an object. If it was named "data" or even "body" it might be less confusing. See: referenced question

Closing for issue cleanup