1
0
mirror of synced 2024-11-21 21:06:07 +03:00

Add field 'sites' to delivery and payment types (#167)

Add field sites to delivery and payment types
This commit is contained in:
curse89 2023-05-23 10:50:33 +03:00 committed by GitHub
parent 847fbd0bd0
commit a42ddcc337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 40 additions and 2 deletions

View File

@ -188,4 +188,12 @@ class DeliveryType
* @JMS\SerializedName("deliveryPaymentTypes") * @JMS\SerializedName("deliveryPaymentTypes")
*/ */
public $deliveryPaymentTypes; public $deliveryPaymentTypes;
/**
* @var string[]
*
* @JMS\Type("array")
* @JMS\SerializedName("sites")
*/
public $sites;
} }

View File

@ -90,4 +90,12 @@ class PaymentType
* @JMS\SerializedName("integrationModule") * @JMS\SerializedName("integrationModule")
*/ */
public $integrationModule; public $integrationModule;
/**
* @var string[]
*
* @JMS\Type("array")
* @JMS\SerializedName("sites")
*/
public $sites;
} }

View File

@ -691,6 +691,9 @@ EOF;
"code": "p_type2", "code": "p_type2",
"cod": false "cod": false
} }
],
"sites": [
"site1"
] ]
}, },
"16": { "16": {
@ -725,6 +728,8 @@ EOF;
"code": "p_type2", "code": "p_type2",
"cod": false "cod": false
} }
],
"sites": [
] ]
}, },
"ozon-seller": { "ozon-seller": {
@ -786,6 +791,8 @@ EOF;
"code": "p_type2", "code": "p_type2",
"cod": false "cod": false
} }
],
"sites": [
] ]
}, },
"crrst-24": { "crrst-24": {
@ -808,6 +815,8 @@ EOF;
], ],
"defaultForCrm": false, "defaultForCrm": false,
"deliveryPaymentTypes": [ "deliveryPaymentTypes": [
],
"sites": [
] ]
} }
} }
@ -830,6 +839,7 @@ EOF;
$actual['deliveryTypes'][$key]['isCostDependsOnRegionAndWeightAndSum'] $actual['deliveryTypes'][$key]['isCostDependsOnRegionAndWeightAndSum']
= $deliveryType['isCostDependsOnRegionAndWeightAndSum']; = $deliveryType['isCostDependsOnRegionAndWeightAndSum'];
$actual['deliveryTypes'][$key]['isCostDependsOnDateTime'] = $deliveryType['isCostDependsOnDateTime']; $actual['deliveryTypes'][$key]['isCostDependsOnDateTime'] = $deliveryType['isCostDependsOnDateTime'];
$actual['deliveryTypes'][$key]['sites'] = $deliveryType['sites'];
} }
self::assertEquals($expected, $actual); self::assertEquals($expected, $actual);
@ -1862,7 +1872,9 @@ EOF;
"ozon-seller-6024d760b14f8" "ozon-seller-6024d760b14f8"
], ],
"paymentStatuses": [ "paymentStatuses": [
],
"sites": [
"site1"
] ]
}, },
"12": { "12": {
@ -1902,6 +1914,10 @@ EOF;
"paymentStatuses": [ "paymentStatuses": [
"not-paid", "not-paid",
"paid" "paid"
],
"sites": [
"site1",
"site2"
] ]
}, },
"14": { "14": {
@ -1922,6 +1938,8 @@ EOF;
"paymentStatuses": [ "paymentStatuses": [
"not-paid", "not-paid",
"paid" "paid"
],
"sites": [
] ]
}, },
"15": { "15": {
@ -1941,6 +1959,8 @@ EOF;
"paymentStatuses": [ "paymentStatuses": [
"not-paid", "not-paid",
"paid" "paid"
],
"sites": [
] ]
}, },
"wallete-one-payment-vog": { "wallete-one-payment-vog": {
@ -1963,7 +1983,9 @@ EOF;
"active": true, "active": true,
"name": "Wallet One", "name": "Wallet One",
"logo": "http://argo.inet-cool.ru/img/w1.svg" "logo": "http://argo.inet-cool.ru/img/w1.svg"
} },
"sites": [
]
} }
} }
} }