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
12 changes: 6 additions & 6 deletions apps/frontend/src/locales/en-US/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -1793,9 +1793,6 @@
"muralpay.field.bank-account-number": {
"message": "Account number"
},
"muralpay.field.branch-code": {
"message": "Branch code"
},
"muralpay.field.clabe": {
"message": "CLABE"
},
Expand Down Expand Up @@ -1826,6 +1823,9 @@
"muralpay.field.pix-phone": {
"message": "PIX phone"
},
"muralpay.field.random-key": {
"message": "Random key"
},
"muralpay.field.routing-number": {
"message": "Routing number"
},
Expand Down Expand Up @@ -1886,9 +1886,6 @@
"muralpay.placeholder.enter-account-number": {
"message": "Enter account number"
},
"muralpay.placeholder.enter-branch-code": {
"message": "Enter branch code"
},
"muralpay.placeholder.enter-clabe": {
"message": "Enter 18-digit CLABE"
},
Expand All @@ -1901,6 +1898,9 @@
"muralpay.placeholder.enter-pix-email": {
"message": "Enter PIX email"
},
"muralpay.placeholder.enter-random-key": {
"message": "Enter random key"
},
"muralpay.placeholder.enter-routing-number": {
"message": "Enter 9-digit routing number"
},
Expand Down
13 changes: 6 additions & 7 deletions apps/frontend/src/utils/muralpay-rails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,14 @@ export const MURALPAY_RAILS: Record<string, RailConfig> = {
{
name: 'branchCode',
type: 'text',
label: defineMessage({ id: 'muralpay.field.branch-code', defaultMessage: 'Branch code' }),
label: defineMessage({
id: 'muralpay.field.random-key',
defaultMessage: 'Random key',
}),
required: true,
placeholder: defineMessage({
id: 'muralpay.placeholder.enter-branch-code',
defaultMessage: 'Enter branch code',
id: 'muralpay.placeholder.enter-random-key',
defaultMessage: 'Enter random key',
}),
autocomplete: 'off',
dependsOn: {
Expand All @@ -383,10 +386,6 @@ export const MURALPAY_RAILS: Record<string, RailConfig> = {
defaultMessage: 'Brazilian tax identification number',
}),
autocomplete: 'off',
dependsOn: {
field: 'pixAccountType',
value: 'DOCUMENT',
},
},
],
},
Expand Down
9 changes: 6 additions & 3 deletions packages/muralpay/src/payout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,12 @@ pub enum FiatAndRailDetails {
Brl {
symbol: BrlSymbol,
pix_account_type: PixAccountType,
pix_email: String,
pix_phone: String,
branch_code: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
pix_email: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pix_phone: Option<String>,
#[serde(default, skip_serializing_if = "Option::is_none")]
branch_code: Option<String>,
document_number: String,
},
#[serde(rename_all = "camelCase")]
Expand Down
Loading