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": {
|
"muralpay.field.bank-account-number": {
|
||||||
"message": "Account number"
|
"message": "Account number"
|
||||||
},
|
},
|
||||||
"muralpay.field.branch-code": {
|
|
||||||
"message": "Branch code"
|
|
||||||
},
|
|
||||||
"muralpay.field.clabe": {
|
"muralpay.field.clabe": {
|
||||||
"message": "CLABE"
|
"message": "CLABE"
|
||||||
},
|
},
|
||||||
@@ -1826,6 +1823,9 @@
|
|||||||
"muralpay.field.pix-phone": {
|
"muralpay.field.pix-phone": {
|
||||||
"message": "PIX phone"
|
"message": "PIX phone"
|
||||||
},
|
},
|
||||||
|
"muralpay.field.random-key": {
|
||||||
|
"message": "Random key"
|
||||||
|
},
|
||||||
"muralpay.field.routing-number": {
|
"muralpay.field.routing-number": {
|
||||||
"message": "Routing number"
|
"message": "Routing number"
|
||||||
},
|
},
|
||||||
@@ -1886,9 +1886,6 @@
|
|||||||
"muralpay.placeholder.enter-account-number": {
|
"muralpay.placeholder.enter-account-number": {
|
||||||
"message": "Enter account number"
|
"message": "Enter account number"
|
||||||
},
|
},
|
||||||
"muralpay.placeholder.enter-branch-code": {
|
|
||||||
"message": "Enter branch code"
|
|
||||||
},
|
|
||||||
"muralpay.placeholder.enter-clabe": {
|
"muralpay.placeholder.enter-clabe": {
|
||||||
"message": "Enter 18-digit CLABE"
|
"message": "Enter 18-digit CLABE"
|
||||||
},
|
},
|
||||||
@@ -1901,6 +1898,9 @@
|
|||||||
"muralpay.placeholder.enter-pix-email": {
|
"muralpay.placeholder.enter-pix-email": {
|
||||||
"message": "Enter PIX email"
|
"message": "Enter PIX email"
|
||||||
},
|
},
|
||||||
|
"muralpay.placeholder.enter-random-key": {
|
||||||
|
"message": "Enter random key"
|
||||||
|
},
|
||||||
"muralpay.placeholder.enter-routing-number": {
|
"muralpay.placeholder.enter-routing-number": {
|
||||||
"message": "Enter 9-digit routing number"
|
"message": "Enter 9-digit routing number"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -357,11 +357,14 @@ export const MURALPAY_RAILS: Record<string, RailConfig> = {
|
|||||||
{
|
{
|
||||||
name: 'branchCode',
|
name: 'branchCode',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
label: defineMessage({ id: 'muralpay.field.branch-code', defaultMessage: 'Branch code' }),
|
label: defineMessage({
|
||||||
|
id: 'muralpay.field.random-key',
|
||||||
|
defaultMessage: 'Random key',
|
||||||
|
}),
|
||||||
required: true,
|
required: true,
|
||||||
placeholder: defineMessage({
|
placeholder: defineMessage({
|
||||||
id: 'muralpay.placeholder.enter-branch-code',
|
id: 'muralpay.placeholder.enter-random-key',
|
||||||
defaultMessage: 'Enter branch code',
|
defaultMessage: 'Enter random key',
|
||||||
}),
|
}),
|
||||||
autocomplete: 'off',
|
autocomplete: 'off',
|
||||||
dependsOn: {
|
dependsOn: {
|
||||||
@@ -383,10 +386,6 @@ export const MURALPAY_RAILS: Record<string, RailConfig> = {
|
|||||||
defaultMessage: 'Brazilian tax identification number',
|
defaultMessage: 'Brazilian tax identification number',
|
||||||
}),
|
}),
|
||||||
autocomplete: 'off',
|
autocomplete: 'off',
|
||||||
dependsOn: {
|
|
||||||
field: 'pixAccountType',
|
|
||||||
value: 'DOCUMENT',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -554,9 +554,12 @@ pub enum FiatAndRailDetails {
|
|||||||
Brl {
|
Brl {
|
||||||
symbol: BrlSymbol,
|
symbol: BrlSymbol,
|
||||||
pix_account_type: PixAccountType,
|
pix_account_type: PixAccountType,
|
||||||
pix_email: String,
|
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||||
pix_phone: String,
|
pix_email: Option<String>,
|
||||||
branch_code: 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,
|
document_number: String,
|
||||||
},
|
},
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
|
|||||||
Reference in New Issue
Block a user