Skip to content

Commit 2246010

Browse files
committed
build(codegen): updating SDK
1 parent fac2478 commit 2246010

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

packages/platform-sdk/src/generated/models/common.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,8 @@ export interface Money {
862862
* * Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as `500`).
863863
* * The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as `5`).
864864
*
865+
* `centAmount` is represented as 64-bit integers. If this limit is exceeded, a [MoneyOverflow](/errors#moneyoverflow) error will be returned.
866+
*
865867
*
866868
*/
867869
readonly centAmount: number
@@ -1461,6 +1463,8 @@ export interface ITypedMoney {
14611463
* * Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as `500`).
14621464
* * The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as `5`).
14631465
*
1466+
* `centAmount` is represented as 64-bit integers. If this limit is exceeded, a [MoneyOverflow](/errors#moneyoverflow) error will be returned.
1467+
*
14641468
*
14651469
*/
14661470
readonly centAmount: number
@@ -1497,6 +1501,8 @@ export interface CentPrecisionMoney extends ITypedMoney {
14971501
* * Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as `500`).
14981502
* * The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as `5`).
14991503
*
1504+
* `centAmount` is represented as 64-bit integers. If this limit is exceeded, a [MoneyOverflow](/errors#moneyoverflow) error will be returned.
1505+
*
15001506
*
15011507
*/
15021508
readonly centAmount: number
@@ -1524,6 +1530,8 @@ export interface HighPrecisionMoney extends ITypedMoney {
15241530
* * Cents for EUR and USD, pence for GBP, or centime for CHF (5 CHF is specified as `500`).
15251531
* * The value in the major unit for currencies without minor units, like JPY (5 JPY is specified as `5`).
15261532
*
1533+
* `centAmount` is represented as 64-bit integers. If this limit is exceeded, a [MoneyOverflow](/errors#moneyoverflow) error will be returned.
1534+
*
15271535
*
15281536
*/
15291537
readonly centAmount: number
@@ -1615,6 +1623,8 @@ export interface HighPrecisionMoneyDraft extends ITypedMoneyDraft {
16151623
*
16161624
* A Price of 1.015 USD can be rounded either to 1.01 USD or 1.02 USD. If it lies outside of this range, an error message stating that centAmount must be rounded correctly will be returned.
16171625
*
1626+
* `centAmount` is represented as 64-bit integers. If this limit is exceeded, a [MoneyOverflow](/errors#moneyoverflow) error will be returned.
1627+
*
16181628
* If `centAmount` is not provided, the API calculates the value automatically using the default rounding mode half even.
16191629
*
16201630
*
@@ -1635,6 +1645,8 @@ export interface HighPrecisionMoneyDraft extends ITypedMoneyDraft {
16351645
/**
16361646
* Amount in 1 / (10 ^ `fractionDigits`) of a currency.
16371647
*
1648+
* `preciseAmount` is represented as 64-bit integers. If this limit is exceeded, a [MoneyOverflow](/errors#moneyoverflow) error will be returned.
1649+
*
16381650
*
16391651
*/
16401652
readonly preciseAmount: number

packages/platform-sdk/src/generated/models/error.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1551,8 +1551,7 @@ export interface MissingTaxRateForCountryError extends IErrorObject {
15511551
readonly state?: string
15521552
}
15531553
/**
1554-
* Returned when a [Money](ctp:api:type:Money) operation overflows the 64-bit integer range.
1555-
* See [Money usage](/types#usage) for more information.
1554+
* Returned when a money operation overflows the 64-bit integer range.
15561555
*
15571556
*/
15581557
export interface MoneyOverflowError extends IErrorObject {
@@ -3288,8 +3287,7 @@ export interface GraphQLMissingTaxRateForCountryError
32883287
readonly state?: string
32893288
}
32903289
/**
3291-
* Returned when a [Money](ctp:api:type:Money) operation overflows the 64-bit integer range.
3292-
* See [Money usage](/types#usage) for more information.
3290+
* Returned when a money operation overflows the 64-bit integer range.
32933291
*
32943292
*/
32953293
export interface GraphQLMoneyOverflowError extends IGraphQLErrorObject {

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,3 +484,4 @@ bfb534af33764ac81a3784290b35530d926fccf1
484484
dd952279caa05a020c427ea1899d4bf0897cb802
485485
985c8f2c9814fe367cb77e11c237968db008a306
486486
a3e408093873cfed8ced6708aa90deec2e7daa44
487+
89eb52374e92eaaae7deb3c863bce47531efddc7

0 commit comments

Comments
 (0)