@better-giving/donation 1.0.3 → 1.0.8
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.
- package/dist/donation.d.mts +4 -0
- package/dist/final-recorder.d.mts +1 -1
- package/package.json +2 -2
- package/src/donation.mts +17 -0
- package/src/final-recorder.mts +1 -0
package/dist/donation.d.mts
CHANGED
|
@@ -102,6 +102,7 @@ export declare namespace Donation {
|
|
|
102
102
|
splitLiq: string;
|
|
103
103
|
charityName: string;
|
|
104
104
|
nonProfitMsg?: string;
|
|
105
|
+
claimed: boolean;
|
|
105
106
|
fiscalSponsored: boolean;
|
|
106
107
|
client: Client;
|
|
107
108
|
network: Environment;
|
|
@@ -272,6 +273,7 @@ export declare namespace OnHoldDonation {
|
|
|
272
273
|
/** program donation: may be empty `""`*/
|
|
273
274
|
programId?: string;
|
|
274
275
|
programName?: string;
|
|
276
|
+
claimed: boolean;
|
|
275
277
|
fiscalSponsored: boolean;
|
|
276
278
|
hideBgTip?: boolean;
|
|
277
279
|
network: Environment;
|
|
@@ -397,4 +399,6 @@ export declare namespace StripeDonation {
|
|
|
397
399
|
productId: string;
|
|
398
400
|
subsQuantity: string;
|
|
399
401
|
};
|
|
402
|
+
/** BG accepted payment methods */
|
|
403
|
+
type PaymentMethods = "acss_debit" | "amazon_pay" | "bancontact" | "card" | "cashapp" | "eps" | "ideal" | "link" | "p24" | "sepa_debit" | "sofort" | "us_bank_account";
|
|
400
404
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Donation } from "./donation.mjs";
|
|
2
|
-
type FinalRecord = Pick<Donation.V2DBRecord, "amount" | "appUsed" | "chainName" | "charityName" | "denomination" | "email" | "endowmentId" | "feeAllowance" | "fiatRamp" | "fiscalSponsored" | "inHonorOf" | "isRecurring" | "network" | "nonProfitMsg" | "paymentMethod" | "programId" | "programName" | "splitLiq" | "tipAmount" | "transactionDate" | "transactionId" | "usdValue">;
|
|
2
|
+
type FinalRecord = Pick<Donation.V2DBRecord, "amount" | "appUsed" | "chainName" | "charityName" | "claimed" | "denomination" | "email" | "endowmentId" | "feeAllowance" | "fiatRamp" | "fiscalSponsored" | "inHonorOf" | "isRecurring" | "network" | "nonProfitMsg" | "paymentMethod" | "programId" | "programName" | "splitLiq" | "tipAmount" | "transactionDate" | "transactionId" | "usdValue">;
|
|
3
3
|
interface SettledAmounts {
|
|
4
4
|
settledFee: number;
|
|
5
5
|
settledNet: number;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-giving/donation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@better-giving/config": "workspace:*"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@better-giving/types": "1.0.
|
|
8
|
+
"@better-giving/types": "1.0.3",
|
|
9
9
|
"valibot": "0.42.0"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
package/src/donation.mts
CHANGED
|
@@ -142,6 +142,7 @@ export declare namespace Donation {
|
|
|
142
142
|
|
|
143
143
|
charityName: string;
|
|
144
144
|
nonProfitMsg?: string;
|
|
145
|
+
claimed: boolean;
|
|
145
146
|
fiscalSponsored: boolean;
|
|
146
147
|
client: Client;
|
|
147
148
|
network: Environment;
|
|
@@ -376,6 +377,7 @@ export declare namespace OnHoldDonation {
|
|
|
376
377
|
/** program donation: may be empty `""`*/
|
|
377
378
|
programId?: string;
|
|
378
379
|
programName?: string;
|
|
380
|
+
claimed: boolean;
|
|
379
381
|
fiscalSponsored: boolean;
|
|
380
382
|
hideBgTip?: boolean;
|
|
381
383
|
network: Environment;
|
|
@@ -532,4 +534,19 @@ export declare namespace StripeDonation {
|
|
|
532
534
|
productId: string;
|
|
533
535
|
subsQuantity: string;
|
|
534
536
|
};
|
|
537
|
+
|
|
538
|
+
/** BG accepted payment methods */
|
|
539
|
+
type PaymentMethods =
|
|
540
|
+
| "acss_debit"
|
|
541
|
+
| "amazon_pay"
|
|
542
|
+
| "bancontact"
|
|
543
|
+
| "card"
|
|
544
|
+
| "cashapp"
|
|
545
|
+
| "eps"
|
|
546
|
+
| "ideal"
|
|
547
|
+
| "link"
|
|
548
|
+
| "p24"
|
|
549
|
+
| "sepa_debit"
|
|
550
|
+
| "sofort"
|
|
551
|
+
| "us_bank_account";
|
|
535
552
|
}
|