Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to 2.10.4 / API version 2.14 #363

Merged
merged 5 commits into from
Aug 21, 2018
Merged

Bump to 2.10.4 / API version 2.14 #363

merged 5 commits into from
Aug 21, 2018

Conversation

aaron-junot
Copy link

@aaron-junot aaron-junot commented Aug 21, 2018

This release will upgrade us to API version 2.14. There are no breaking changes.

  • Update php version info #355
  • Support updating an invoice #360
  • Fix custom field serialization #361
  • Support updating custom fields through Subscription#updateNotes #362
  • Update README #359

@aaron-junot aaron-junot requested a review from bhelx August 21, 2018 19:02
@@ -240,6 +240,11 @@ public function testUpdateNotes() {

$notes = array("customer_notes" => "New Customer Notes", "terms_and_condititions" => "New Terms", "vat_reverse_charge_notes" => "New VAT Notes");

// You can also update custom fields through this endpoint
$cf = $subscription->custom_fields->offsetGet("shasta");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit pick but I think the preferred style for this would be to just use the array operator:

$subscription->custom_fields["shasta"];

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think that's worth fixing. I'll push up a commit on top.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually didn't know that the bracket syntax worked. TIL, thanks

Copy link
Contributor

@bhelx bhelx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bhelx bhelx merged commit 2ad345b into master Aug 21, 2018
@bhelx bhelx deleted the api_version_2_14 branch August 21, 2018 20:27
@bhelx bhelx added the V2 V2 Client label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V2 V2 Client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants