Merge pull request #163 from goteo/fix/checkout-charges-nested-documents

[fix] Checkout Charges as nested documents
This commit is contained in:
2025-09-29 17:53:03 +02:00
committed by GitHub
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ CRYPTO_SECRET=""
###< doctrineencryptbundle/doctrine-encrypt-bundle ###
###> App\Gateway\Stripe\StripeGateway ###
STRIPE_API_KEY=""
STRIPE_API_KEY="!ChangeMe!"
STRIPE_WEBHOOK_SECRET=""
###< App\Gateway\Stripe\StripeGateway ###
+1 -1
View File
@@ -111,5 +111,5 @@ bin/docker mariadb mysql -u root -pgoteo goteo
2. Grant *goteo* all privileges.
```mysql
GRANT ALL PRIVILEGES ON *.* TO 'goteo'@'%'
GRANT ALL PRIVILEGES ON *.* TO 'goteo'@'%';
```
@@ -60,7 +60,7 @@ class CheckoutApiResource
*
* @var ChargeApiResource[]
*/
#[API\ApiProperty(readableLink: true)]
#[API\ApiProperty(readableLink: true, writableLink: true)]
#[Assert\NotBlank()]
#[Assert\Count(min: 1)]
public array $charges = [];
+3 -3
View File
@@ -20,16 +20,16 @@ class EmbeddableMoney implements MoneyInterface
* Expressed as the minor unit, e.g: cents, pennies, etc.
*/
#[ORM\Column(type: 'integer', nullable: true)]
private ?int $amount;
public ?int $amount;
/**
* 3-letter ISO 4217 currency code.
*/
#[ORM\Column(type: 'string', nullable: true)]
private ?string $currency;
public ?string $currency;
#[ORM\Column(type: 'json', nullable: true)]
private ?array $conversion;
public ?array $conversion;
public function __construct(
?int $amount = null,