import SocialMailContext from "../../model/SocialMailContext.js"; import { AppWorkflowContext } from "../../workflows/AppWorkflowContext.js"; import StorePaymentAttempt from "../../model/entities/StorePaymentAttempt.js"; /** * Syncing subscriptions can become very complicated and may require frequent manual changes into system. * * 1. Since Social Mail will serve as a full featured shopping cart, subscription should be managed within * own business logic. So subscription can be switched from one payment gateway to another gateway * without having to worry about integration logic. * 2. Payment Gateway's inbuilt subscription management logic can change in future, which might break * integration logic. So we should stick with our own subscription management. * 3. Subscription can be switched to different payment gateway that may not have any subscription management * at all. Like pay via Cash or Check. */ export default class StorePaymentGatewayService { db: SocialMailContext; context: AppWorkflowContext; checkout({ host, storeID, orderID, pgAccountID }: { host: string; storeID: number; pgAccountID?: number; orderID: number; }): Promise; refund(payment: StorePaymentAttempt): Promise; checkoutResult(payment: StorePaymentAttempt): Promise; private updatePaymentStatus; } //# sourceMappingURL=StorePaymentGatewayService.d.ts.map