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

Relate quote to orders #1866

Draft
wants to merge 25 commits into
base: main
Choose a base branch
from
Draft

Relate quote to orders #1866

wants to merge 25 commits into from

Conversation

lexerom
Copy link
Contributor

@lexerom lexerom commented Apr 10, 2024

Summary

Replace subscriptionId with orderId where orderId relates to Orders. Move order related changes to orderChanges property.

Preview

Checklist

  • Writing style
  • API design standards

@lexerom lexerom self-assigned this Apr 10, 2024
@lexerom lexerom marked this pull request as ready for review April 10, 2024 15:24
@lexerom lexerom requested review from a team as code owners April 10, 2024 15:24
nanobash
nanobash previously approved these changes Apr 10, 2024
@nanobash nanobash dismissed their stale review April 10, 2024 16:11

Please see the comment.

Co-authored-by: Arif Kurkchi <11618962+justnero@users.noreply.github.com>
nanobash
nanobash previously approved these changes Apr 11, 2024
i-yasko
i-yasko previously approved these changes Apr 11, 2024
@lexerom
Copy link
Contributor Author

lexerom commented Apr 11, 2024

Another idea is to add orderItemId or subscriptionId to Quote.items.

Alisa007
Alisa007 previously approved these changes Apr 17, 2024
olasunkanmi04
olasunkanmi04 previously approved these changes Apr 17, 2024
giokaxo
giokaxo previously approved these changes Apr 17, 2024
@lexerom lexerom marked this pull request as draft April 22, 2024 15:45
@lexerom lexerom requested review from a team April 25, 2024 10:00
Comment on lines 109 to 115
_embedded:
type: object
description: Embedded objects that are requested by the `expand` query parameter.
readOnly: true
properties:
product:
type: object
Copy link
Member

Choose a reason for hiding this comment

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

Why is this here? There is not even a _links.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think initially it was taken from SubscriptionOrOneTimeSaleItem.yaml

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed embedded.

required:
- plan
properties:
quoteItemId:
Copy link
Contributor

@ashkarpetin ashkarpetin Apr 25, 2024

Choose a reason for hiding this comment

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

Shouldn't id relate to quote item, and orderItemId relate to order item instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The idea is to eventually replace QuoteOrderItem with OrderSubscription.yaml and OrderOneTimeSaleItem.yaml. But yeah, not 100% sure here, it was id for quote item initially.

Co-authored-by: Tornike Nanobashvili <tnanobashvili92@gmail.com>
creocoder
creocoder previously approved these changes May 8, 2024
creocoder
creocoder previously approved these changes May 9, 2024
Co-authored-by: Tornike Nanobashvili <tnanobashvili92@gmail.com>
nanobash
nanobash previously approved these changes May 13, 2024
Copy link
Contributor

@noon-dawg noon-dawg left a comment

Choose a reason for hiding this comment

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

Looks good on the docs side

@ashkarpetin ashkarpetin marked this pull request as draft May 28, 2024 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.