Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Feb 7, 2024
1 parent 13f24cc commit 862e40e
Show file tree
Hide file tree
Showing 68 changed files with 6,323 additions and 13 deletions.
32 changes: 32 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,41 @@
**Api changes**

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

- added method `apiRoot.withProjectKey().discountCodes().withKey().get()`
- added method `apiRoot.withProjectKey().discountCodes().withKey().head()`
- added method `apiRoot.withProjectKey().discountCodes().withKey().post()`
- added method `apiRoot.withProjectKey().discountCodes().withKey().delete()`
</details>


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

- added property `perMethodExternalTaxRate` to type `CartAddLineItemAction`
- added property `key` to type `DiscountCode`
- added property `key` to type `DiscountCodeDraft`
- added property `shippingMode` to type `MyCartDraft`
</details>


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

- added resource `/{projectKey}/discount-codes/key={key}`
</details>


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

- added type `DiscountCodeSetKeyAction`
- added type `DiscountCodeCreatedMessage`
- added type `DiscountCodeDeletedMessage`
- added type `DiscountCodeKeySetMessage`
- added type `DiscountCodeCreatedMessagePayload`
- added type `DiscountCodeDeletedMessagePayload`
- added type `DiscountCodeKeySetMessagePayload`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -3880,6 +3880,7 @@ type DirectDiscountDraftOutput {
"With discount codes it is possible to give specific cart discounts to an eligible amount of users. They are defined by a string value which can be added to a cart so that specific cart discounts can be applied to the cart."
type DiscountCode implements Versioned & ReferenceExpandable {
code: String!
key: String
isActive: Boolean!
maxApplications: Long
maxApplicationsPerCustomer: Long
Expand Down Expand Up @@ -3917,9 +3918,19 @@ type DiscountCode implements Versioned & ReferenceExpandable {
lastModifiedBy: Initiator
}

type DiscountCodeCreated implements MessagePayload {
discountCode: DiscountCode!
type: String!
}

type DiscountCodeDeleted implements MessagePayload {
type: String!
}

input DiscountCodeDraft {
code: String!
name: [LocalizedStringItemInputType!]
key: String
description: [LocalizedStringItemInputType!]
cartDiscounts: [ReferenceInput!]!
isActive: Boolean = true
Expand All @@ -3938,6 +3949,12 @@ type DiscountCodeInfo {
discountCode: DiscountCode
}

type DiscountCodeKeySet implements MessagePayload {
key: String
oldKey: String
type: String!
}

type DiscountCodeQueryResult {
offset: Int!
count: Int!
Expand Down Expand Up @@ -3974,6 +3991,7 @@ input DiscountCodeUpdateAction {
setCustomField: SetDiscountCodeCustomField
setCustomType: SetDiscountCodeCustomType
setDescription: SetDiscountCodeDescription
setKey: SetDiscountCodeKey
setMaxApplications: SetDiscountCodeMaxApplications
setMaxApplicationsPerCustomer: SetDiscountCodeMaxApplicationsPerCustomer
setName: SetDiscountCodeName
Expand Down Expand Up @@ -5425,8 +5443,20 @@ type Mutation {
"Queries with specified key"
key: String): TaxCategory
createDiscountCode(draft: DiscountCodeDraft!): DiscountCode
updateDiscountCode(id: String!, version: Long!, actions: [DiscountCodeUpdateAction!]!): DiscountCode
deleteDiscountCode(id: String!, version: Long!): DiscountCode
updateDiscountCode(version: Long!, actions: [DiscountCodeUpdateAction!]!,

"Queries with specified ID"
id: String,

"Queries with specified key"
key: String): DiscountCode
deleteDiscountCode(version: Long!,

"Queries with specified ID"
id: String,

"Queries with specified key"
key: String): DiscountCode
createCartDiscount(draft: CartDiscountDraft!,

"The mutation is only performed if the resource is part of the store. Can be used with store-specific OAuth permissions."
Expand Down Expand Up @@ -8471,7 +8501,12 @@ type Query {
"Queries with specified key"
key: String): CartDiscount
cartDiscounts(where: String, sort: [String!], limit: Int, offset: Int): CartDiscountQueryResult!
discountCode(id: String!): DiscountCode
discountCode(
"Queries with specified ID"
id: String,

"Queries with specified key"
key: String): DiscountCode
discountCodes(where: String, sort: [String!], limit: Int, offset: Int): DiscountCodeQueryResult!
productDiscount(
"Queries with specified ID"
Expand Down Expand Up @@ -10451,6 +10486,10 @@ input SetDiscountCodeDescription {
description: [LocalizedStringItemInputType!]
}

input SetDiscountCodeKey {
key: String
}

input SetDiscountCodeMaxApplications {
maxApplications: Long
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Deleting a Discount Code produces the DiscountCodeDeleted Message.</p>
* <p>Deprecated scope: <code>manage_orders:{projectKey}</code></p>
*
* <hr>
Expand Down
Loading

0 comments on commit 862e40e

Please sign in to comment.