-
Notifications
You must be signed in to change notification settings - Fork 25
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
Migrate Addresses #653
base: master
Are you sure you want to change the base?
Migrate Addresses #653
Conversation
operations/addresses.md
Outdated
} | ||
``` | ||
|
||
| Property | Type | Contract | Description | | ||
| :-- | :-- | :-- | :-- | | ||
| `Addresses` | array of [Account address](#account-address) | required | Created addresses. | | ||
| `Addresses` | array of [Account address](addresses.md#account-address) | optional | The collection of Account addresses, containing address and account information. | | ||
| `Cursor` | string | optional | Unique identifier of the last and hence oldest address item returned. This can be used in [Limitation](../guidelines/pagination.md#limitation) in a subsequent request to fetch the next batch of older Account address. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's fix this, addresses/add
should not have Cursor
, because you don't iterate trough records, you are creating them 🚀.
operations/addresses.md
Outdated
| `PostalCode` | [String update value](_objects.md#string-update-value) | optional, max length 255 characters | Postal code. | | ||
| `CountryCode` | [String update value](_objects.md#string-update-value) | optional, max length 8 characters | ISO 3166-1 code of the Country. | | ||
| `CountrySubdivisionCode` | [String update value](_objects.md#string-update-value) | optional, max length 8 characters | ISO 3166-2 code of the administrative division, e.g. DE-BW. | | ||
| ~~`AccountId`~~ | ~~string~~ | ~~required~~ | **Deprecated!** The value is ignored.| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why this value was not deleted, since the usage of it was removed 🤯
I think we can just remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, or hide it with InternalImplementation for starters.
operations/addresses.md
Outdated
| `PostalCode` | [String update value](_objects.md#string-update-value) | optional, max length 255 characters | Postal code. | | ||
| `CountryCode` | [String update value](_objects.md#string-update-value) | optional, max length 8 characters | ISO 3166-1 code of the Country. | | ||
| `CountrySubdivisionCode` | [String update value](_objects.md#string-update-value) | optional, max length 8 characters | ISO 3166-2 code of the administrative division, e.g. DE-BW. | | ||
| ~~`AccountId`~~ | ~~string~~ | ~~required~~ | **Deprecated!** The value is ignored.| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, or hide it with InternalImplementation for starters.
…rameters CountryCode and CountrySubDivision, make Addressresult.Addresses required)
_generator/types.yaml
Outdated
file: _objects.md | ||
file: vouchers.md |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bug in generator, unit behaves strangely since it's a named type but doesn't have any properties, so for some reason the generator always overrides it. 🤔
Hey @RobBeck1 , this one's been sitting here awhile but I think there's enough info to resolve all the comments? |
@MikeAdamsMews - oops, I didn't realise this was still here! I'll try and get it updated today. 👍 |
Hello @MikeAdamsMews - I re-generated the documentation from our existing code, and pushed the new |
@MikeAdamsMews - should all be done now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks @RobBeck1
Consider adding a line into a changelog, something like:
|
Summary
Follow style guide
https://mews.atlassian.net/browse/CON-2195 Migrate Addresses
Check during review