Merge pull request #163 from goteo/fix/checkout-charges-nested-documents
[fix] Checkout Charges as nested documents
This commit is contained in:
@@ -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 ###
|
||||
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user