Skip to content

Commit

Permalink
Add SyncCustomerDetails job (#1498)
Browse files Browse the repository at this point in the history
* Add SyncCustomerDetails job

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <[email protected]>
  • Loading branch information
driesvints and StyleCIBot authored Feb 9, 2023
1 parent af83a5a commit da22b26
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions src/Jobs/SyncCustomerDetails.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php

namespace Laravel\Cashier\Jobs;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;

class SyncCustomerDetails implements ShouldQueue
{
use Dispatchable;
use InteractsWithQueue;
use Queueable;
use SerializesModels;

/**
* The billable model instance.
*
* @var \Laravel\Cashier\Billable
*/
public $billable;

/**
* Create a new job instance.
*
* @param \Laravel\Cashier\Billable $billable
* @return void
*/
public function __construct($billable)
{
$this->billable = $billable;
}

/**
* Execute the job.
*
* @return void
*/
public function handle()
{
$this->billable->syncStripeCustomerDetails();
}
}

0 comments on commit da22b26

Please sign in to comment.