-
Notifications
You must be signed in to change notification settings - Fork 27
MMP-11683-orderitems-getall #765
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
Conversation
operations/orderitems.md
Outdated
| Property | Type | Contract | Description | | ||
| :-- | :-- | :-- | :-- | | ||
| `AllowanceProductOrderItemId` | string | required | Unique identifier of the allowance product [Order item](orderitems.md#order-item) which credit has been consumed by current item. | | ||
| `AllowanceProductId` | string | required | Unique identifier of the allowance [Product](products.md#product) which credit been been consumed by current item. | | ||
| `DiscountedOrderItemId` | string | required | Unique identifier of [Order item](orderitems.md#order-item) which has been discounted by current item. | | ||
| `DiscountedProductId` | string | optional | Unique identifier of the [Product](products.md#product) which has been been discounted by current item. | |
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.
From the four fields available for allowance discount, we propose to keep only DiscountedOrderItemId.
All other values are available in the relevant Orderitem record for the allowance product or discounted item.
operations/orderitems.md
Outdated
#### Allowance Breakage Data | ||
|
||
| Property | Type | Contract | Description | | ||
| :-- | :-- | :-- | :-- | | ||
| `AllowanceProductOrderItemId` | string | required | Unique identifier of the allowance product [Order item](orderitems.md#order-item) which credit has been consumed by current item. | | ||
| `AllowanceProductId` | string | required | Unique identifier of the allowance [Product](products.md#product) which credit been been consumed by current item. | | ||
| `ContraBreakageOrderItemId` | string | required | Unique identifier of [Order item](orderitems.md#order-item) which balances current item. | | ||
|
||
#### Allowance Breakage Contra Revenue Data | ||
|
||
| Property | Type | Contract | Description | | ||
| :-- | :-- | :-- | :-- | | ||
| `AllowanceProductOrderItemId` | string | required | Unique identifier of the allowance product [Order item](orderitems.md#order-item) which credit has been consumed by current item. | | ||
| `AllowanceProductId` | string | required | Unique identifier of the allowance [Product](products.md#product) which credit been been consumed by current item. | | ||
| `BreakageOrderItemId` | string | required | Unique identifier of [Order item](orderitems.md#order-item) which has been balanced by current item. | | ||
|
||
#### Allowance Loss Data | ||
|
||
| Property | Type | Contract | Description | | ||
| :-- | :-- | :-- | :-- | | ||
| `AllowanceProductOrderItemId` | string | required | Unique identifier of the allowance product [Order item](orderitems.md#order-item) which credit has been consumed by current item. | | ||
| `AllowanceProductId` | string | required | Unique identifier of the allowance [Product](products.md#product) which credit been been consumed by current item. | | ||
| `ContraLossOrderItemId` | string | required | Unique identifier of [Order item](orderitems.md#order-item) which balances current item. | | ||
|
||
#### Allowance Loss Contra Revenue Data | ||
|
||
| Property | Type | Contract | Description | | ||
| :-- | :-- | :-- | :-- | | ||
| `AllowanceProductOrderItemId` | string | required | Unique identifier of the allowance product [Order item](orderitems.md#order-item) which credit has been consumed by current item. | | ||
| `AllowanceProductId` | string | required | Unique identifier of the allowance [Product](products.md#product) which credit been been consumed by current item. | | ||
| `LossOrderItemId` | string | required | Unique identifier of [Order item](orderitems.md#order-item) which has been balanced by current item. | |
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.
We propose to avoid including those additional fields for breakage (profit) and losses.
We think the discriminator value is sufficient to identify the type of allowance related order item.
All other relevant information of the order item is already included in regular amounts fields.
| `Type` | [VoucherTypeUpdateValue](_objects.md#string-update-value) | optional | Type of the voucher e.g. 'Public', 'PartnerCompany' or 'TravelAgency' (or `null` if the type should not be updated). | | ||
| `Type` | [Voucher Type update value](_objects.md#string-update-value) | optional | Type of the voucher e.g. 'Public', 'PartnerCompany' or 'TravelAgency' (or `null` if the type should not be updated). | |
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.
Change Not related to allowances. It seems o be a change merged but not yet published by automated generation.
@@ -111,6 +112,7 @@ Returns all enterprises within scope of the `Access Token`, optionally filtered | |||
| :-- | :-- | :-- | :-- | | |||
| `Id` | string | required | Unique identifier of the enterprise. | | |||
| `ExternalIdentifier` | string | optional, max length 255 characters | Identifier of the enterprise from external system. | | |||
| `HoldingKey` | string | optional, max length 255 characters | Identifies an enterprise in the external system of a holding company. The holding company may administer multiple portfolios. | |
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.
Change Not related to allowances. It seems o be a change merged but not yet published by automated generation.
@@ -151,6 +152,7 @@ Returns the enterprise configuration. For single-enterprise Access Tokens, this | |||
| :-- | :-- | :-- | :-- | | |||
| `Id` | string | required | Unique identifier of the enterprise. | | |||
| `ExternalIdentifier` | string | optional, max length 255 characters | Identifier of the enterprise from external system. | | |||
| `HoldingKey` | string | optional, max length 255 characters | Identifies an enterprise in the external system of a holding company. The holding company may administer multiple portfolios. | |
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.
Change Not related to allowances. It seems o be a change merged but not yet published by automated generation.
| `Basic` | [CreditRatingBasicUpdateValue](_objects.md#string-update-value) | optional | Credit status of a company (or `null` if the credit status should not be updated). | | ||
| `Basic` | [Credit rating basic update value](_objects.md#string-update-value) | optional | Credit status of a company (or `null` if the credit status should not be updated). | |
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.
Change Not related to allowances. It seems o be a change merged but not yet published by automated generation.
| `AllowanceDiscount` | [Allowance Discount Data](orderitems.md#allowance-discount-data) | optional | Contains additional data in the case of allowance discount. | | ||
| `AllowanceBreakage` | [Allowance Breakage Data](orderitems.md#allowance-breakage-data) | optional | Contains additional data in the case of allowance breakage (profit). | | ||
| `AllowanceContraBreakage` | [Allowance Breakage Contra Revenue Data](orderitems.md#allowance-breakage-contra-revenue-data) | optional | Contains additional data in the case of allowance breakage contra revenue. | | ||
| `AllowanceLoss` | [Allowance Loss Data](orderitems.md#allowance-loss-data) | optional | Contains additional data in the case of allowance loss. | | ||
| `AllowanceContraLoss` | [Allowance Loss Contra Revenue Data](orderitems.md#allowance-loss-contra-revenue-data) | optional | Contains additional data in the case of allowance breakage contra revenue. | |
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.
breaking change
* `AllowanceLoss` | ||
* `AllowanceContraLoss` |
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.
breaking change
@chema-ortega-mews Looks like you have encountered changes which are not related to your intended change. Since we are regenerating docs manually, it's possible we sometimes miss those changes and we're filling up the changelog (see e.g. here: #750). Could you please remove files unrelated to the changes in orderitems from the PR? Also, @MikeAdamsMews, could you please take a look at the changelog on how to document this breaking change? 😕 |
@chema-ortega-mews Is there already a PR for the underlying API contracts that this one depends on? |
4d09033
to
251bb08
Compare
Closed this due to lack of activity. |
Summary
Added 2 new order item types for allowances (loss, contraloss)
Added 5 new values for discriminator of order item data related to allowances
Added 5 new dto's used for the new order item data discriminators
Checklist