@stacksjs/payments 0.75.629 → 0.75.632

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
+ import { asAccount, connectedCustomer, directCheckout, directCheckoutPaymentData, directCheckoutSubscriptionData, directPaymentIntentParams, directSubscriptionParams, manageDirectSubscription } from './direct';
1
2
  import { checkoutLineItemsTotal, destinationCheckoutPaymentData, destinationCheckoutSubscriptionData, destinationFeeCents, destinationFeePercent, destinationPaymentIntentParams, destinationSubscriptionParams, splitFee } from './destination';
2
3
  import { collectDirectInvoice } from './invoice-collection';
3
4
  import { completeDirectInvoicePurchase, directInvoicePurchaseMetadata } from './invoice-purchase';
4
- import { connectedCustomer, directCheckout, directCheckoutPaymentData, directCheckoutSubscriptionData, directPaymentIntentParams, directSubscriptionParams, manageDirectSubscription } from './direct';
5
5
  import { connectRefund, connectRefundParams, isDestinationCharge } from './refund';
6
6
  import { creditDirectInvoiceRefund } from './invoice-credit';
7
7
  import { directChargeFeeAmounts, directChargeFinancials } from './financials';
@@ -33,6 +33,7 @@ export declare const connect: {
33
33
  subscriptionParams: typeof destinationSubscriptionParams;
34
34
  lineItemsTotal: typeof checkoutLineItemsTotal;
35
35
  splitFee: typeof splitFee;
36
+ asAccount: typeof asAccount;
36
37
  customer: typeof connectedCustomer;
37
38
  directCheckout: typeof directCheckout;
38
39
  directChargeFinancials: typeof directChargeFinancials;
package/dist/payment.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { connect } from './connect/index';
1
2
  import { manageCoupon, managePriceExtended, manageProduct } from './billable/product';
2
3
  import { manageCustomer } from './billable/customer';
3
4
  import { manageInvoice } from './billable/invoice';
@@ -5,6 +6,7 @@ import { managePaymentMethod } from './billable/payment-method';
5
6
  import { manageSubscription } from './billable/subscription';
6
7
  import { manageWebhook, onCharge, onCheckout, onInvoice, onPaymentIntent, onSubscription, processWebhook } from './billable/webhook';
7
8
  import { paymentDriver } from './driver/index';
9
+ import { stripe } from './drivers/stripe';
8
10
  import type { ChargeOptions, CheckoutRequest, CheckoutSession, CreatePaymentOptions, Customer, Money, Payer, PaymentResult, RefundOptions, RefundResult, StoredPaymentMethod, SubscriptionSummary } from './driver/index';
9
11
  import type { UserModel } from '@stacksjs/orm';
10
12
  import type Stripe from 'stripe';
@@ -138,26 +140,35 @@ export declare const Payment: {
138
140
  * `acknowledgeWebhook`).
139
141
  */
140
142
  driver: typeof paymentDriver;
143
+ charge: typeof charge;
141
144
  createPayment: typeof createPayment;
142
145
  refund: typeof refund;
143
146
  checkout: typeof checkout;
144
147
  subscriptionCheckout: typeof subscriptionCheckout;
148
+ subscribe: typeof subscribe;
145
149
  cancelSubscription: typeof cancelSubscription;
146
150
  subscriptions: typeof subscriptions;
147
151
  hasActiveSubscription: typeof hasActiveSubscription;
148
152
  changeSubscription: typeof changeSubscription;
153
+ getOrCreateCustomer: typeof getOrCreateCustomer;
149
154
  updateCustomer: typeof updateCustomer;
150
155
  deleteCustomer: typeof deleteCustomer;
156
+ paymentMethods: typeof paymentMethods;
151
157
  addPaymentMethod: typeof addPaymentMethod;
152
158
  setDefaultPaymentMethod: typeof setDefaultPaymentMethod;
153
159
  removePaymentMethod: typeof removePaymentMethod;
154
160
  createSetupIntent: typeof createSetupIntent;
161
+ getInvoices: typeof getInvoices;
155
162
  createInvoice: typeof createInvoice;
156
163
  payInvoice: typeof payInvoice;
164
+ createProduct: typeof createProduct;
157
165
  getPrice: typeof getPrice;
158
166
  listProducts: typeof listProducts;
167
+ billingPortal: typeof billingPortal;
168
+ createCoupon: typeof createCoupon;
159
169
  createPromoCode: typeof createPromoCode;
160
170
  validatePromoCode: typeof validatePromoCode;
171
+ formatAmount: typeof formatAmount;
161
172
  minorUnitExponent: typeof minorUnitExponent;
162
173
  toCents: typeof toCents;
163
174
  toDollars: typeof toDollars;
@@ -168,6 +179,8 @@ export declare const Payment: {
168
179
  onCheckout: typeof onCheckout;
169
180
  onCharge: typeof onCharge;
170
181
  processWebhook: typeof processWebhook;
182
+ connect: typeof connect;
183
+ stripe: typeof stripe;
171
184
  customer: typeof manageCustomer;
172
185
  subscription: typeof manageSubscription;
173
186
  invoice: typeof manageInvoice;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/payments",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.629",
5
+ "version": "0.75.632",
6
6
  "description": "The Stacks payments package. Currently supporting Stripe.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -60,12 +60,12 @@
60
60
  "prepublishOnly": "bun run build"
61
61
  },
62
62
  "dependencies": {
63
- "@stacksjs/config": "0.75.629",
64
- "@stacksjs/database": "0.75.629",
65
- "@stacksjs/error-handling": "0.75.629",
66
- "@stacksjs/logging": "0.75.629",
67
- "@stacksjs/orm": "0.75.629",
68
- "@stacksjs/types": "0.75.629",
63
+ "@stacksjs/config": "0.75.632",
64
+ "@stacksjs/database": "0.75.632",
65
+ "@stacksjs/error-handling": "0.75.632",
66
+ "@stacksjs/logging": "0.75.632",
67
+ "@stacksjs/orm": "0.75.632",
68
+ "@stacksjs/types": "0.75.632",
69
69
  "stripe": "23.0.0"
70
70
  },
71
71
  "peerDependencies": {
@@ -77,7 +77,7 @@
77
77
  }
78
78
  },
79
79
  "devDependencies": {
80
- "@stacksjs/utils": "0.75.629",
80
+ "@stacksjs/utils": "0.75.632",
81
81
  "@stripe/stripe-js": "^10.0.0",
82
82
  "better-dx": "^0.2.39"
83
83
  }