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

Update generated SDKs #250

Merged
merged 11 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
176 changes: 20 additions & 156 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,179 +1,43 @@
**Api changes**

<details>
<summary>Removed Resource(s)</summary>

- :warning: removed resource `/{projectKey}/me/payments/key={key}`
</details>


<details>
<summary>Added Resource(s)</summary>

- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-rules`
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-flows`
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-rules/{ID}`
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-rules/key={key}`
- added resource `/{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-flows/{ID}`
</details>


<details>
<summary>Added Enum(s)</summary>

- added enum `CreateApprovalRules` to type `Permission`
- added enum `UpdateApprovalRules` to type `Permission`
- added enum `UpdateApprovalFlows` to type `Permission`
</details>


<details>
<summary>Added Method(s)</summary>
<summary>Added Property(s)</summary>

- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().approvalRules().post()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().approvalRules().get()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().approvalFlows().get()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().approvalRules().withId().get()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().approvalRules().withId().post()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().approvalRules().withKey().get()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().approvalRules().withKey().post()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().approvalFlows().withId().get()`
- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().approvalFlows().withId().post()`
- added property `discountOnTotalPrice` to type `Cart`
- added property `discountOnTotalPrice` to type `StagedOrder`
- added property `custom` to type `StagedOrderAddParcelToDeliveryAction`
- added property `discountOnTotalPrice` to type `Order`
- added property `custom` to type `OrderAddParcelToDeliveryAction`
</details>


<details>
<summary>Removed Method(s)</summary>
<summary>Changed MethodResponseBody(s)</summary>

- :warning: removed method `apiRoot.withProjectKey().me().payments().withKey().get()`
- :warning: removed method `apiRoot.withProjectKey().me().payments().withKey().post()`
- :warning: removed method `apiRoot.withProjectKey().me().payments().withKey().delete()`
- :warning: changed response body for `200: application/json` of method `get /{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-rules` from type `<<resourceQueryType>>` to `ApprovalRulePagedQueryResponse`
- :warning: changed response body for `200: application/json` of method `get /{projectKey}/as-associate/{associateId}/in-business-unit/key={businessUnitKey}/approval-flows` from type `<<resourceQueryType>>` to `ApprovalFlowPagedQueryResponse`
</details>


<details>
<summary>Added Type(s)</summary>

- added type `ApprovalFlow`
- added type `ApprovalFlowApproval`
- added type `ApprovalFlowApproveAction`
- added type `ApprovalFlowRejectAction`
- added type `ApprovalFlowRejection`
- added type `ApprovalFlowStatus`
- added type `ApprovalFlowUpdate`
- added type `ApprovalFlowUpdateAction`
- added type `ApprovalRule`
- added type `ApprovalRuleDraft`
- added type `ApprovalRuleSetApproversAction`
- added type `ApprovalRuleSetDescriptionAction`
- added type `ApprovalRuleSetKeyAction`
- added type `ApprovalRuleSetNameAction`
- added type `ApprovalRuleSetPredicateAction`
- added type `ApprovalRuleSetRequestersAction`
- added type `ApprovalRuleSetStatusAction`
- added type `ApprovalRuleStatus`
- added type `ApprovalRuleUpdate`
- added type `ApprovalRuleUpdateAction`
- added type `ApproverConjunction`
- added type `ApproverConjunctionDraft`
- added type `ApproverDisjunction`
- added type `ApproverDisjunctionDraft`
- added type `ApproverHierarchy`
- added type `ApproverHierarchyDraft`
- added type `RuleApprover`
- added type `RuleApproverDraft`
- added type `RuleRequester`
- added type `RuleRequesterDraft`
- added type `ApprovalFlowApprovedMessage`
- added type `ApprovalFlowCompletedMessage`
- added type `ApprovalFlowCreatedMessage`
- added type `ApprovalFlowRejectedMessage`
- added type `ApprovalRuleApproversSetMessage`
- added type `ApprovalRuleCreatedMessage`
- added type `ApprovalRuleDescriptionSetMessage`
- added type `ApprovalRuleKeySetMessage`
- added type `ApprovalRuleNameSetMessage`
- added type `ApprovalRulePredicateSetMessage`
- added type `ApprovalRuleRequestersSetMessage`
- added type `ApprovalRuleStatusSetMessage`
- added type `BusinessUnitAddressCustomFieldAddedMessage`
- added type `BusinessUnitAddressCustomFieldChangedMessage`
- added type `BusinessUnitAddressCustomFieldRemovedMessage`
- added type `BusinessUnitAddressCustomTypeRemovedMessage`
- added type `BusinessUnitAddressCustomTypeSetMessage`
- added type `BusinessUnitCustomFieldAddedMessage`
- added type `BusinessUnitCustomFieldChangedMessage`
- added type `BusinessUnitCustomFieldRemovedMessage`
- added type `BusinessUnitCustomTypeRemovedMessage`
- added type `BusinessUnitCustomTypeSetMessage`
- added type `CustomerAddressCustomFieldAddedMessage`
- added type `CustomerAddressCustomFieldChangedMessage`
- added type `CustomerAddressCustomFieldRemovedMessage`
- added type `CustomerAddressCustomTypeRemovedMessage`
- added type `CustomerAddressCustomTypeSetMessage`
- added type `CustomerCustomFieldAddedMessage`
- added type `CustomerCustomFieldChangedMessage`
- added type `CustomerCustomFieldRemovedMessage`
- added type `CustomerCustomTypeRemovedMessage`
- added type `CustomerCustomTypeSetMessage`
- added type `CustomerGroupCustomFieldAddedMessage`
- added type `CustomerGroupCustomFieldChangedMessage`
- added type `CustomerGroupCustomFieldRemovedMessage`
- added type `CustomerGroupCustomTypeRemovedMessage`
- added type `CustomerGroupCustomTypeSetMessage`
- added type `ApprovalFlowApprovedMessagePayload`
- added type `ApprovalFlowCompletedMessagePayload`
- added type `ApprovalFlowCreatedMessagePayload`
- added type `ApprovalFlowRejectedMessagePayload`
- added type `ApprovalRuleApproversSetMessagePayload`
- added type `ApprovalRuleCreatedMessagePayload`
- added type `ApprovalRuleDescriptionSetMessagePayload`
- added type `ApprovalRuleKeySetMessagePayload`
- added type `ApprovalRuleNameSetMessagePayload`
- added type `ApprovalRulePredicateSetMessagePayload`
- added type `ApprovalRuleRequestersSetMessagePayload`
- added type `ApprovalRuleStatusSetMessagePayload`
- added type `BusinessUnitAddressCustomFieldAddedMessagePayload`
- added type `BusinessUnitAddressCustomFieldChangedMessagePayload`
- added type `BusinessUnitAddressCustomFieldRemovedMessagePayload`
- added type `BusinessUnitAddressCustomTypeRemovedMessagePayload`
- added type `BusinessUnitAddressCustomTypeSetMessagePayload`
- added type `BusinessUnitCustomFieldAddedMessagePayload`
- added type `BusinessUnitCustomFieldChangedMessagePayload`
- added type `BusinessUnitCustomFieldRemovedMessagePayload`
- added type `BusinessUnitCustomTypeRemovedMessagePayload`
- added type `BusinessUnitCustomTypeSetMessagePayload`
- added type `CustomerAddressCustomFieldAddedMessagePayload`
- added type `CustomerAddressCustomFieldChangedMessagePayload`
- added type `CustomerAddressCustomFieldRemovedMessagePayload`
- added type `CustomerAddressCustomTypeRemovedMessagePayload`
- added type `CustomerAddressCustomTypeSetMessagePayload`
- added type `CustomerCustomFieldAddedMessagePayload`
- added type `CustomerCustomFieldChangedMessagePayload`
- added type `CustomerCustomFieldRemovedMessagePayload`
- added type `CustomerCustomTypeRemovedMessagePayload`
- added type `CustomerCustomTypeSetMessagePayload`
- added type `CustomerGroupCustomFieldAddedMessagePayload`
- added type `CustomerGroupCustomFieldChangedMessagePayload`
- added type `CustomerGroupCustomFieldRemovedMessagePayload`
- added type `CustomerGroupCustomTypeRemovedMessagePayload`
- added type `CustomerGroupCustomTypeSetMessagePayload`
- added type `ApprovalFlowPagedQueryResponse`
- added type `ApprovalRulePagedQueryResponse`
- added type `CartDiscountTotalPriceTarget`
- added type `DiscountOnTotalPrice`
- added type `DiscountedTotalPricePortion`
- added type `CustomerEmailTokenCreatedMessage`
- added type `CustomerPasswordTokenCreatedMessage`
- added type `CustomerEmailTokenCreatedMessagePayload`
- added type `CustomerPasswordTokenCreatedMessagePayload`
</details>

**History changes**
**Import changes**

<details>
<summary>Added Property(s)</summary>

- added property `businessUnit` to type `Record`
</details>


<details>
<summary>Added QueryParameter(s)</summary>

- added query parameter `businessUnit` to method `get /{projectKey}`
- added query parameter `businessUnit` to method `get /{projectKey}/{resourceType}`
- added query parameter `businessUnit` to method `get /{projectKey}/{resourceType}/{ID}`
- added property `product` to type `ProductVariantPatch`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ public static IEnumerable<object[]> GetData()
.WithAssociateIdValue("test_associateId")
.InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey")
.ApprovalRules()
.Post(null)
.Get()
.WithExpand("expand")
.Build(),
"Post",
"Get",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?expand=expand",
},
new Object[] {
Expand All @@ -39,10 +39,11 @@ public static IEnumerable<object[]> GetData()
.WithAssociateIdValue("test_associateId")
.InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey")
.ApprovalRules()
.Post(null)
.Get()
.WithSort("sort")
.Build(),
"Post",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules",
"Get",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?sort=sort",
},
new Object[] {
ApiRoot
Expand All @@ -52,10 +53,10 @@ public static IEnumerable<object[]> GetData()
.InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey")
.ApprovalRules()
.Get()
.WithExpand("expand")
.WithLimit(7)
.Build(),
"Get",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?expand=expand",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?limit=7",
},
new Object[] {
ApiRoot
Expand All @@ -65,10 +66,10 @@ public static IEnumerable<object[]> GetData()
.InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey")
.ApprovalRules()
.Get()
.WithSort("sort")
.WithOffset(3)
.Build(),
"Get",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?sort=sort",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?offset=3",
},
new Object[] {
ApiRoot
Expand All @@ -78,10 +79,10 @@ public static IEnumerable<object[]> GetData()
.InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey")
.ApprovalRules()
.Get()
.WithLimit(7)
.WithWithTotal(true)
.Build(),
"Get",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?limit=7",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?withTotal=true",
},
new Object[] {
ApiRoot
Expand All @@ -91,10 +92,10 @@ public static IEnumerable<object[]> GetData()
.InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey")
.ApprovalRules()
.Get()
.WithOffset(3)
.WithWhere("where")
.Build(),
"Get",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?offset=3",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?where=where",
},
new Object[] {
ApiRoot
Expand All @@ -104,10 +105,10 @@ public static IEnumerable<object[]> GetData()
.InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey")
.ApprovalRules()
.Get()
.WithWithTotal(true)
.WithPredicateVar("varName", "var.varName")
.Build(),
"Get",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?withTotal=true",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?var.varName=var.varName",
},
new Object[] {
ApiRoot
Expand All @@ -117,10 +118,9 @@ public static IEnumerable<object[]> GetData()
.InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey")
.ApprovalRules()
.Get()
.WithWhere("where")
.Build(),
"Get",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?where=where",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules",
},
new Object[] {
ApiRoot
Expand All @@ -129,11 +129,11 @@ public static IEnumerable<object[]> GetData()
.WithAssociateIdValue("test_associateId")
.InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey")
.ApprovalRules()
.Get()
.WithPredicateVar("varName", "var.varName")
.Post(null)
.WithExpand("expand")
.Build(),
"Get",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?var.varName=var.varName",
"Post",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules?expand=expand",
},
new Object[] {
ApiRoot
Expand All @@ -142,9 +142,9 @@ public static IEnumerable<object[]> GetData()
.WithAssociateIdValue("test_associateId")
.InBusinessUnitKeyWithBusinessUnitKeyValue("test_businessUnitKey")
.ApprovalRules()
.Get()
.Post(null)
.Build(),
"Get",
"Post",
"/test_projectKey/as-associate/test_associateId/in-business-unit/key=test_businessUnitKey/approval-rules",
}
};
Expand Down
Loading
Loading