Skip to content
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
2 changes: 2 additions & 0 deletions model/CardResponseV2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export interface CardResponseV2 {
batchId?: string
merchantRestriction?: MerchantResponse
closeDate?: Date
minimumTransactionValue?: number
}

export namespace CardResponseV2 {
Expand Down Expand Up @@ -70,6 +71,7 @@ export namespace CardResponseV2 {
batchId: isly.string().optional(),
merchantRestriction: MerchantResponse.type.optional(),
closeDate: isly.fromIs("Date", Date.is).optional(),
minimumTransactionValue: isly.number().optional(),
})
export const is = type.is
}
2 changes: 2 additions & 0 deletions model/CardResponseV3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface CardResponseV3 extends SummaryCardResponseV3 {
activationDate: Date
closeDate?: Date
restrictedToMerchant?: boolean
minimumTransactionValue?: number
}

export namespace CardResponseV3 {
Expand All @@ -29,6 +30,7 @@ export namespace CardResponseV3 {
activationDate: isly.fromIs("Date", Date.is),
closeDate: isly.fromIs("Date", Date.is).optional(),
restrictedToMerchant: isly.boolean().optional(),
minimumTransactionValue: isly.number().optional(),
})
export const is = type.is
}
2 changes: 2 additions & 0 deletions model/Config/Organisation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export interface Organisation {
noticeConfigurations?: Notice[]
portalMetadataFormatOrdering?: string[]
noticeTargetConfigurations?: Notice.Target.Configuration[]
minimumTransactionValuePercentage?: number
}

export namespace Organisation {
Expand All @@ -60,6 +61,7 @@ export namespace Organisation {
noticeConfigurations: isly.array(Notice.type).optional(),
portalMetadataFormatOrdering: isly.string().array().optional(),
noticeTargetConfigurations: Notice.Target.Configuration.type.array().optional(),
minimumTransactionValuePercentage: isly.number().optional(),
})
export const is = type.is
}
1 change: 1 addition & 0 deletions model/CreateCardRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ export interface CreateCardRequest {
batchId?: string
merchantRestrictionId?: string
closeDate?: Date
minimumTransactionValue?: number
}
2 changes: 2 additions & 0 deletions model/PaymentCardCreateRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface PaymentCardCreateRequest {
usage?: CardUsage
closeDate?: isoly.Date
restrictToMerchant?: boolean
minimumTransactionValue?: number
}
export namespace PaymentCardCreateRequest {
export const type = isly.object<PaymentCardCreateRequest>({
Expand All @@ -18,6 +19,7 @@ export namespace PaymentCardCreateRequest {
usage: CardUsage.type.optional(),
closeDate: isly.fromIs("Date", isoly.Date.is).optional(),
restrictToMerchant: isly.boolean().optional(),
minimumTransactionValue: isly.number().optional(),
})
export const is = type.is
}