mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 00:34:37 -04:00
Add request_data and campaign properties to Purchase class
This commit is contained in:
parent
a5672187c4
commit
f55cfd9179
@ -24,12 +24,17 @@ class Purchase extends Component
|
|||||||
|
|
||||||
public string $db;
|
public string $db;
|
||||||
|
|
||||||
|
public array $request_data;
|
||||||
|
|
||||||
|
public ?string $campaign;
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
public int $step = 0;
|
public int $step = 0;
|
||||||
|
|
||||||
public array $steps = [
|
public array $steps = [
|
||||||
Setup::class,
|
Setup::class,
|
||||||
Authentication::class,
|
Authentication::class,
|
||||||
RFF::class,
|
|
||||||
Example::class,
|
Example::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -67,6 +72,8 @@ class Purchase extends Component
|
|||||||
|
|
||||||
$this->context = [
|
$this->context = [
|
||||||
'quantity' => 1,
|
'quantity' => 1,
|
||||||
|
'request_data' => $this->request_data,
|
||||||
|
'campaign' => $this->campaign,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user