@better-giving/donation 5.0.0 → 5.0.1

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,6 +1,6 @@
1
1
  import type { Environment } from "@better-giving/types/list";
2
2
  import type { IAllocation, TDonationSource, TDonorTitle, TFrequency } from "./schema.mjs";
3
- interface IReferrerCommission {
3
+ export interface IReferrerCommission {
4
4
  from_tip: number;
5
5
  from_fee: number;
6
6
  /** exist when paid */
@@ -100,6 +100,8 @@ export interface IDonationOnHoldAttr {
100
100
  /** may be empty */
101
101
  inHonorOf?: string;
102
102
  tributeNotif?: ITributeNotif;
103
+ /** e.g. crypto:tron, stripe:card */
104
+ via?: string;
103
105
  }
104
106
  export interface IDonationOnholdUpdate extends Partial<Omit<IDonationOnHoldAttr, "transactionId">> {
105
107
  }
@@ -314,4 +316,3 @@ export interface ISubscription {
314
316
  /** @link https://docs.stripe.com/billing/subscriptions/overview#payment-status */
315
317
  status: "active" | "incomplete";
316
318
  }
317
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-giving/donation",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "devDependencies": {
5
5
  "@better-giving/config": "1.1.2"
6
6
  },
@@ -6,7 +6,7 @@ import type {
6
6
  TFrequency,
7
7
  } from "./schema.mjs";
8
8
 
9
- interface IReferrerCommission {
9
+ export interface IReferrerCommission {
10
10
  from_tip: number;
11
11
  from_fee: number;
12
12
  /** exist when paid */
@@ -120,6 +120,8 @@ export interface IDonationOnHoldAttr {
120
120
  /** may be empty */
121
121
  inHonorOf?: string;
122
122
  tributeNotif?: ITributeNotif;
123
+ /** e.g. crypto:tron, stripe:card */
124
+ via?:string
123
125
  }
124
126
 
125
127
  export interface IDonationOnholdUpdate