diff options
Diffstat (limited to 'packages/taler-util/src/taler-types.ts')
-rw-r--r-- | packages/taler-util/src/taler-types.ts | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/taler-util/src/taler-types.ts b/packages/taler-util/src/taler-types.ts index bad9186dc..419aeb159 100644 --- a/packages/taler-util/src/taler-types.ts +++ b/packages/taler-util/src/taler-types.ts @@ -564,6 +564,13 @@ export interface MerchantContractTerms { // contract without storing it separately in their database. // Must really be an Object (not a string, integer, float or array). extra?: any; + + // Minimum age the buyer must have (in years). Default is 0. + // This value is at least as large as the maximum over all + // mimimum age requirements of the products in this contract. + // It might also be set independent of any product, due to + // legal requirements. + minimum_age?: Integer; } /** @@ -617,7 +624,6 @@ export interface MerchantAbortPayRefundDetails { exchange_http_status: number; } - /** * Planchet detail sent to the merchant. */ @@ -1394,11 +1400,9 @@ export const codecForMerchantInfo = (): Codec<MerchantInfo> => .property("jurisdiction", codecOptional(codecForLocation())) .build("MerchantInfo"); - export const codecForInternationalizedString = (): Codec<InternationalizedString> => codecForMap(codecForString()); - export const codecForMerchantContractTerms = (): Codec<MerchantContractTerms> => buildCodecForObject<MerchantContractTerms>() .property("order_id", codecForString()) @@ -1615,7 +1619,6 @@ export const codecForMerchantOrderStatusPaid = .property("refunded", codecForBoolean()) .build("MerchantOrderStatusPaid"); - export const codecForMerchantOrderStatusUnpaid = (): Codec<MerchantOrderStatusUnpaid> => buildCodecForObject<MerchantOrderStatusUnpaid>() @@ -1653,7 +1656,6 @@ export interface AbortResponse { refunds: MerchantAbortPayRefundStatus[]; } - export type MerchantAbortPayRefundStatus = | MerchantAbortPayRefundSuccessStatus | MerchantAbortPayRefundFailureStatus; |