22
33namespace Backstage \Shop \Support \Contracts ;
44
5+ use Backstage \Shop \Models \Customer ;
6+ use Backstage \Shop \Models \Order ;
7+ use Backstage \Shop \Models \Product ;
58use Illuminate \Database \Eloquent \Model ;
69
710interface PaymentGateway
@@ -14,7 +17,7 @@ public function getName(): string;
1417 /**
1518 * Create a payment for an order.
1619 *
17- * @param \Backstage\Shop\Models\ Order $order
20+ * @param Order $order
1821 */
1922 public function createPayment (Model $ order , array $ options = []): PaymentResult ;
2023
@@ -31,7 +34,7 @@ public function refundPayment(string $paymentId, ?int $amount = null): PaymentRe
3134 /**
3235 * Create a customer in the payment gateway.
3336 *
34- * @param \Backstage\Shop\Models\ Customer $customer
37+ * @param Customer $customer
3538 */
3639 public function createCustomer (Model $ customer ): string ;
3740
@@ -78,7 +81,7 @@ public function getAvailablePaymentMethods(): array;
7881 /**
7982 * Create a product in the payment gateway.
8083 *
81- * @param \Backstage\Shop\Models\ Product $product
84+ * @param Product $product
8285 */
8386 public function createProduct (Model $ product ): string ;
8487
@@ -90,7 +93,7 @@ public function getProduct(string $gatewayProductId): ?array;
9093 /**
9194 * Update a product in the payment gateway.
9295 *
93- * @param \Backstage\Shop\Models\ Product $product
96+ * @param Product $product
9497 */
9598 public function updateProduct (string $ gatewayProductId , Model $ product ): bool ;
9699
@@ -102,14 +105,14 @@ public function deleteProduct(string $gatewayProductId): bool;
102105 /**
103106 * Sync a product to the payment gateway (create or update).
104107 *
105- * @param \Backstage\Shop\Models\ Product $product
108+ * @param Product $product
106109 */
107110 public function syncProduct (Model $ product ): string ;
108111
109112 /**
110113 * Create a price for a product in the payment gateway.
111114 *
112- * @param \Backstage\Shop\Models\ Product $product
115+ * @param Product $product
113116 */
114117 public function createPrice (Model $ product , int $ amount , string $ currency , array $ options = []): string ;
115118
@@ -131,7 +134,7 @@ public function archivePrice(string $gatewayPriceId): bool;
131134 /**
132135 * Sync a price to the payment gateway (create or update).
133136 *
134- * @param \Backstage\Shop\Models\ Product $product
137+ * @param Product $product
135138 */
136139 public function syncPrice (Model $ product , int $ amount , string $ currency , array $ options = []): string ;
137140
0 commit comments