export class PaymentBaseRequestDto extends PaymentBase {
@IsObject()
@IsOptional()
@ApiProperty({
required: false,
type: MerchantDataDtoUserPaymentDetails,
description: "PaymentUser's payment additional information",
})
public merchantDatauserPaymentDetails?: MerchantDataDtoUserPaymentDetails;
}
export class MerchantDataDtoUserPaymentDetails {
@IsObject()
@IsOptional()
@ApiProperty({
required: false,
type: BillingDataDtoUserPaymentDetails,
description: "User's billingmobile informationphone",
})
public billingmobilePhone?: BillingDataDtostring;
@IsObject()
@IsOptional()
@ApiProperty({
required: false,
type: BillingDataDtoUserPaymentDetails,
description: "User's additional informationemail",
})
public customer?: CustomerDataDto;
}
export class BillingDataDto {
//Include the decorators following the pattern
public billAddrCity;
public billAddrCountry;
public billAddrLine1;
public billAddrPostCode;
public billAddrState;
}
export class CustomerDataDto {
//Include the decorators following the pattern
public mobilePhone?: string;
public email?: string;
} |