diff --git a/.changeset/changes_checkout.md b/.changeset/changes_checkout.md new file mode 100644 index 000000000..b8d161d4d --- /dev/null +++ b/.changeset/changes_checkout.md @@ -0,0 +1,13 @@ +--- +'@commercetools/checkout-sdk': minor +--- + +**Checkout changes** + +
+Added Type(s) + +- added type `CountryCode` +- added type `CurrencyCode` +- added type `Locale` +
diff --git a/changes.md b/changes.md index b273945cd..83298a787 100644 --- a/changes.md +++ b/changes.md @@ -1,10 +1,9 @@ -**Api changes** +**Checkout changes**
Added Type(s) -- added type `ExactLockConflictError` -- added type `ValidityLockConflictError` -- added type `GraphQLExactLockConflictError` -- added type `GraphQLValidityLockConflictError` +- added type `CountryCode` +- added type `CurrencyCode` +- added type `Locale`
diff --git a/packages/checkout-sdk/src/generated/index.ts b/packages/checkout-sdk/src/generated/index.ts index 8d9241d44..6a06c163c 100644 --- a/packages/checkout-sdk/src/generated/index.ts +++ b/packages/checkout-sdk/src/generated/index.ts @@ -30,6 +30,7 @@ export * from './models/payment-integration' export * from './models/payment-integration-draft' export * from './models/payment-intents' export * from './models/responses' +export * from './models/scalar-types' export * from './models/transaction' //Common package export * from './shared/utils/common-types' diff --git a/packages/checkout-sdk/src/generated/models/common.ts b/packages/checkout-sdk/src/generated/models/common.ts index 5e4e17d20..a528e4f3c 100644 --- a/packages/checkout-sdk/src/generated/models/common.ts +++ b/packages/checkout-sdk/src/generated/models/common.ts @@ -115,7 +115,7 @@ export interface Amount { readonly currencyCode: string } /** - * JSON object where the keys are of type [Locale](ctp:api:type:Locale), and the values are the strings used for the corresponding language. + * JSON object where the keys are of type [Locale](ctp:checkout:type:Locale), and the values are the strings used for the corresponding language. * */ export interface LocalizedString { diff --git a/packages/checkout-sdk/src/generated/models/scalar-types.ts b/packages/checkout-sdk/src/generated/models/scalar-types.ts new file mode 100644 index 000000000..e96b2916a --- /dev/null +++ b/packages/checkout-sdk/src/generated/models/scalar-types.ts @@ -0,0 +1,7 @@ +/** + * Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT. + * Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it. + * For more information about the commercetools platform APIs, visit https://docs.commercetools.com/. + */ + +export type Locale = string diff --git a/references.txt b/references.txt index f7b5053be..52fcd6328 100644 --- a/references.txt +++ b/references.txt @@ -520,3 +520,4 @@ d3b8e01b6233c9a25fa53d3a8a50a8e1721e664c d71139f421f6ec0343438bef335b6826feaa86e7 4880d2d5a0865d3d80661dbedabf8a400d35e04c 1c132d4f4baa5b0c2972dfa0340a2ed5d5e781e8 +f2c34069b067b892f11f451fccc4b0b7886874c6