Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Create organization request required field address #333

Merged

Conversation

ocobles
Copy link
Contributor

@ocobles ocobles commented May 9, 2022

Added support to field Address in OrganizationCreateRequest and OrganizationUpdateRequest.

Acceptance tests updated to validate address

image

fixes #332

Signed-off-by: Oscar Cobles <[email protected]>
@ocobles ocobles requested a review from displague May 9, 2022 12:08
Website *string `json:"website,omitempty"`
Twitter *string `json:"twitter,omitempty"`
Logo *string `json:"logo,omitempty"`
Address *Address `json:"address,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

We could potentially send an AddressUpdateRequest object if the API supports updates to individual fields.

https://github.com/packethost/packngo/blob/38eb9a9d3ae9c27ee1bbd7bb720d3fa362873eca/facilities.go#L35-L45

I think it's ok to treat the whole address object as a single entity in this, as is done here.

@displague displague merged commit c64c7f8 into master May 9, 2022
@displague displague deleted the create_organization_request_required_field_address branch May 9, 2022 17:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add required field address for OrganizationCreateRequest
2 participants