Skip to content

Commit

Permalink
Merge branch 'bal-1950' of https://github.com/ballerine-io/ballerine
Browse files Browse the repository at this point in the history
…into bal-1950
  • Loading branch information
tomer-shvadron committed May 1, 2024
2 parents c755543 + 65b597f commit 1a48cc9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export const AltPaymentBrandNames = {
SCB_PAYNOW: 'scb_paynow',
['China UnionPay']: 'china unionpay',
['American Express']: 'american express',

['ALIPAYHOST']: 'alipayhost',
['WECHAT']: 'wechathost',
['GRABPAY']: 'grabpay',
...PaymentBrandName,
} as const;

Expand Down Expand Up @@ -165,9 +167,9 @@ export class TransactionCreateAltDto {

@ApiProperty({ required: true })
@Transform(({ value }) => value.toLowerCase())
@IsEnum(AltPaymentBrandNames)
@IsString()
@IsNotEmpty()
tx_product!: AltPaymentBrandNames;
tx_product!: string;

@ApiProperty({ required: false })
@IsString()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@ export class TransactionEntityMapper {
return 'china_union_pay';
case 'american express':
return 'american_express';
case 'alipayhost':
return 'alipay_host';
case 'wechathost':
return 'wechat_host';
case 'grabpay':
return 'grab_pay';
default:
return undefined;
}
Expand Down

0 comments on commit 1a48cc9

Please sign in to comment.