Fix muralpay pix payouts in backend (#5463)
* Fix fields for pix payout * Fix muralpay pix backend --------- Co-authored-by: Creeperkatze <178587183+Creeperkatze@users.noreply.github.com>
This commit is contained in:
@@ -1793,9 +1793,6 @@
|
||||
"muralpay.field.bank-account-number": {
|
||||
"message": "Account number"
|
||||
},
|
||||
"muralpay.field.branch-code": {
|
||||
"message": "Branch code"
|
||||
},
|
||||
"muralpay.field.clabe": {
|
||||
"message": "CLABE"
|
||||
},
|
||||
@@ -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"
|
||||
},
|
||||
@@ -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"
|
||||
},
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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: {
|
||||
@@ -383,10 +386,6 @@ export const MURALPAY_RAILS: Record<string, RailConfig> = {
|
||||
defaultMessage: 'Brazilian tax identification number',
|
||||
}),
|
||||
autocomplete: 'off',
|
||||
dependsOn: {
|
||||
field: 'pixAccountType',
|
||||
value: 'DOCUMENT',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user