Skip to content

Commit 91995ac

Browse files
authored
Fix billing on (#310)
* Remove usage charge from ActivateUsageCharge.php Removed deprecated field billing_on for usage charges * Remove billing_on for usagecharges in Charge.php Remove billing_on for usagecharges in Charge.php because it is deprecated * Update ActivateUsageCharge.php Remove Carbon to fix linter issues
1 parent 0ba57b5 commit 91995ac

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/Actions/ActivateUsageCharge.php

-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Osiset\ShopifyApp\Actions;
44

5-
use Illuminate\Support\Carbon;
65
use Osiset\ShopifyApp\Contracts\Commands\Charge as IChargeCommand;
76
use Osiset\ShopifyApp\Contracts\Queries\Shop as IShopQuery;
87
use Osiset\ShopifyApp\Exceptions\ChargeNotRecurringException;
@@ -94,7 +93,6 @@ public function __invoke(ShopId $shopId, UsageChargeDetailsTransfer $ucd)
9493
$uct->shopId = $shopId;
9594
$uct->planId = $shop->plan->getId();
9695
$uct->chargeReference = ChargeReference::fromNative((int) $response['id']);
97-
$uct->billingOn = new Carbon($response['billing_on']);
9896
$uct->details = $ucd;
9997

10098
// Save the usage charge

src/Storage/Commands/Charge.php

-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ public function makeUsage(UsageChargeTransfer $chargeObj): ChargeId
9999
$charge->charge_id = $chargeObj->chargeReference->toNative();
100100
$charge->type = $chargeObj->chargeType->toNative();
101101
$charge->status = $chargeObj->chargeStatus->toNative();
102-
$charge->billing_on = $chargeObj->billingOn->format('Y-m-d');
103102
$charge->price = $chargeObj->details->price;
104103
$charge->description = $chargeObj->details->description;
105104
$charge->reference_charge = $chargeObj->details->chargeReference->toNative();

0 commit comments

Comments
 (0)