@fantastic.dev/better-stripe 0.42.0 → 0.44.0
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/CHANGELOG.md +31 -0
- package/README.md +11 -4
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts +1022 -0
- package/dist/client/connect/payoutAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts +511 -0
- package/dist/client/connect/payoutExecutionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts +1054 -32
- package/dist/client/connect/payoutLargeAdoptionTestHelpers.d.ts.map +1 -1
- package/dist/client/connect/payoutSyncTestHelpers.d.ts +527 -16
- package/dist/client/connect/payoutSyncTestHelpers.d.ts.map +1 -1
- package/dist/client/costRecovery-invoices.d.ts +3 -2
- package/dist/client/costRecovery-invoices.d.ts.map +1 -1
- package/dist/client/costRecovery-invoices.js +10 -5
- package/dist/client/costRecovery-invoices.js.map +1 -1
- package/dist/client/costRecovery.d.ts +4 -2
- package/dist/client/costRecovery.d.ts.map +1 -1
- package/dist/client/costRecovery.js +2 -2
- package/dist/client/costRecovery.js.map +1 -1
- package/dist/client/processingCostReconciliation/client.d.ts +14 -0
- package/dist/client/processingCostReconciliation/client.d.ts.map +1 -0
- package/dist/client/processingCostReconciliation/client.js +35 -0
- package/dist/client/processingCostReconciliation/client.js.map +1 -0
- package/dist/client/processingCostReconciliation/contracts.d.ts +172 -0
- package/dist/client/processingCostReconciliation/contracts.d.ts.map +1 -0
- package/dist/client/processingCostReconciliation/contracts.js +55 -0
- package/dist/client/processingCostReconciliation/contracts.js.map +1 -0
- package/dist/client/processingCostReconciliation/invoiceFunding.d.ts +15 -0
- package/dist/client/processingCostReconciliation/invoiceFunding.d.ts.map +1 -0
- package/dist/client/processingCostReconciliation/invoiceFunding.js +195 -0
- package/dist/client/processingCostReconciliation/invoiceFunding.js.map +1 -0
- package/dist/client/processingCostReconciliation/provider.d.ts +9 -0
- package/dist/client/processingCostReconciliation/provider.d.ts.map +1 -0
- package/dist/client/processingCostReconciliation/provider.js +148 -0
- package/dist/client/processingCostReconciliation/provider.js.map +1 -0
- package/dist/client/settlement/processingCostHistory.d.ts +12 -0
- package/dist/client/settlement/processingCostHistory.d.ts.map +1 -0
- package/dist/client/settlement/processingCostHistory.js +20 -0
- package/dist/client/settlement/processingCostHistory.js.map +1 -0
- package/dist/client/settlement/processingCosts.d.ts +3 -0
- package/dist/client/settlement/processingCosts.d.ts.map +1 -1
- package/dist/client/settlement/processingCosts.js +27 -7
- package/dist/client/settlement/processingCosts.js.map +1 -1
- package/dist/component/_generated/api.d.ts +18 -0
- package/dist/component/_generated/api.d.ts.map +1 -1
- package/dist/component/_generated/api.js.map +1 -1
- package/dist/component/_generated/component.d.ts +515 -0
- package/dist/component/_generated/component.d.ts.map +1 -1
- package/dist/component/balanceFunding/internal/actions.d.ts +11 -11
- package/dist/component/balanceFunding/mutations.d.ts +16 -16
- package/dist/component/balanceFunding/stateHandlers.d.ts +8 -8
- package/dist/component/balanceFunding/workflowValidators.d.ts +16 -16
- package/dist/component/earnings/triggers.d.ts +318 -16
- package/dist/component/earnings/triggers.d.ts.map +1 -1
- package/dist/component/payoutRelease/queries.d.ts +2 -2
- package/dist/component/payoutRelease/queries.d.ts.map +1 -1
- package/dist/component/processingCostReconciliation/adoption.d.ts +29 -0
- package/dist/component/processingCostReconciliation/adoption.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/adoption.js +58 -0
- package/dist/component/processingCostReconciliation/adoption.js.map +1 -0
- package/dist/component/processingCostReconciliation/bridge.d.ts +45 -0
- package/dist/component/processingCostReconciliation/bridge.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/bridge.js +41 -0
- package/dist/component/processingCostReconciliation/bridge.js.map +1 -0
- package/dist/component/processingCostReconciliation/helpers.d.ts +327 -0
- package/dist/component/processingCostReconciliation/helpers.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/helpers.js +39 -0
- package/dist/component/processingCostReconciliation/helpers.js.map +1 -0
- package/dist/component/processingCostReconciliation/mutations.d.ts +303 -0
- package/dist/component/processingCostReconciliation/mutations.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/mutations.js +121 -0
- package/dist/component/processingCostReconciliation/mutations.js.map +1 -0
- package/dist/component/processingCostReconciliation/queries.d.ts +422 -0
- package/dist/component/processingCostReconciliation/queries.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/queries.js +19 -0
- package/dist/component/processingCostReconciliation/queries.js.map +1 -0
- package/dist/component/processingCostReconciliation/rollback.d.ts +21 -0
- package/dist/component/processingCostReconciliation/rollback.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/rollback.js +54 -0
- package/dist/component/processingCostReconciliation/rollback.js.map +1 -0
- package/dist/component/processingCostReconciliation/schema.d.ts +2460 -0
- package/dist/component/processingCostReconciliation/schema.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/schema.js +137 -0
- package/dist/component/processingCostReconciliation/schema.js.map +1 -0
- package/dist/component/processingCostReconciliation/steps.d.ts +306 -0
- package/dist/component/processingCostReconciliation/steps.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/steps.js +149 -0
- package/dist/component/processingCostReconciliation/steps.js.map +1 -0
- package/dist/component/processingCostReconciliation/validation.d.ts +13 -0
- package/dist/component/processingCostReconciliation/validation.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/validation.js +61 -0
- package/dist/component/processingCostReconciliation/validation.js.map +1 -0
- package/dist/component/processingCostReconciliation/workflow.d.ts +105 -0
- package/dist/component/processingCostReconciliation/workflow.d.ts.map +1 -0
- package/dist/component/processingCostReconciliation/workflow.js +33 -0
- package/dist/component/processingCostReconciliation/workflow.js.map +1 -0
- package/dist/component/schema.d.ts +511 -0
- package/dist/component/schema.js +2 -0
- package/dist/component/schema.js.map +1 -1
- package/docs/react-workflows.md +16 -8
- package/package.json +1 -1
- package/src/client/costRecovery-invoices.ts +19 -4
- package/src/client/costRecovery.ts +4 -2
- package/src/client/processingCostReconciliation/client.ts +75 -0
- package/src/client/processingCostReconciliation/contracts.ts +176 -0
- package/src/client/processingCostReconciliation/invoiceFunding.ts +270 -0
- package/src/client/processingCostReconciliation/invoiceProvider.test.ts +353 -0
- package/src/client/processingCostReconciliation/provider.test.ts +324 -0
- package/src/client/processingCostReconciliation/provider.ts +178 -0
- package/src/client/settlement/processingCostHistory.ts +31 -0
- package/src/client/settlement/processingCosts.ts +50 -15
- package/src/component/_generated/api.ts +18 -0
- package/src/component/_generated/component.ts +570 -0
- package/src/component/processingCostReconciliation/adoption.test.ts +206 -0
- package/src/component/processingCostReconciliation/adoption.ts +77 -0
- package/src/component/processingCostReconciliation/bridge.ts +50 -0
- package/src/component/processingCostReconciliation/helpers.ts +55 -0
- package/src/component/processingCostReconciliation/invoice.test.ts +152 -0
- package/src/component/processingCostReconciliation/mutations.ts +148 -0
- package/src/component/processingCostReconciliation/queries.ts +18 -0
- package/src/component/processingCostReconciliation/rollback.ts +72 -0
- package/src/component/processingCostReconciliation/schema.ts +191 -0
- package/src/component/processingCostReconciliation/state.test.ts +407 -0
- package/src/component/processingCostReconciliation/steps.ts +168 -0
- package/src/component/processingCostReconciliation/validation.ts +79 -0
- package/src/component/processingCostReconciliation/workflow.test.ts +329 -0
- package/src/component/processingCostReconciliation/workflow.ts +50 -0
- package/src/component/schema.ts +2 -0
|
@@ -6688,6 +6688,576 @@ export type ComponentApi<Name extends string | undefined = string | undefined> =
|
|
|
6688
6688
|
>;
|
|
6689
6689
|
};
|
|
6690
6690
|
};
|
|
6691
|
+
processingCostReconciliation: {
|
|
6692
|
+
mutations: {
|
|
6693
|
+
resume: FunctionReference<
|
|
6694
|
+
"mutation",
|
|
6695
|
+
"internal",
|
|
6696
|
+
{
|
|
6697
|
+
accountId: string;
|
|
6698
|
+
currency: string;
|
|
6699
|
+
operationId: string;
|
|
6700
|
+
scopeKey: string;
|
|
6701
|
+
version: number;
|
|
6702
|
+
},
|
|
6703
|
+
| {
|
|
6704
|
+
accountId: string;
|
|
6705
|
+
currency: string;
|
|
6706
|
+
operationId: string;
|
|
6707
|
+
scopeKey: string;
|
|
6708
|
+
status: "queued" | "running";
|
|
6709
|
+
version: number;
|
|
6710
|
+
}
|
|
6711
|
+
| {
|
|
6712
|
+
accountId: string;
|
|
6713
|
+
currency: string;
|
|
6714
|
+
operationId: string;
|
|
6715
|
+
result: {
|
|
6716
|
+
claim: {
|
|
6717
|
+
_creationTime: number;
|
|
6718
|
+
_id: string;
|
|
6719
|
+
accountId: string;
|
|
6720
|
+
amountDue: number;
|
|
6721
|
+
claimKey: string;
|
|
6722
|
+
collectedAmount: number;
|
|
6723
|
+
currency: string;
|
|
6724
|
+
openingCollection?: {
|
|
6725
|
+
amountDue: number;
|
|
6726
|
+
collectedAmount: number;
|
|
6727
|
+
operationKey: string;
|
|
6728
|
+
revision: number;
|
|
6729
|
+
};
|
|
6730
|
+
outstanding: number;
|
|
6731
|
+
reservedAmount: number;
|
|
6732
|
+
revision: number;
|
|
6733
|
+
scopeKey: string;
|
|
6734
|
+
sign: "positive" | "negative" | "zero";
|
|
6735
|
+
sourceChargeId: string;
|
|
6736
|
+
sourceGross: number;
|
|
6737
|
+
sourceProcessingFee: number;
|
|
6738
|
+
};
|
|
6739
|
+
deficit: {
|
|
6740
|
+
amountDue: number;
|
|
6741
|
+
currency: string;
|
|
6742
|
+
disputeLiability: number;
|
|
6743
|
+
processingLiability: number;
|
|
6744
|
+
retainedFee: number;
|
|
6745
|
+
};
|
|
6746
|
+
observation: {
|
|
6747
|
+
currency: string;
|
|
6748
|
+
disputeFees: number;
|
|
6749
|
+
gross: number;
|
|
6750
|
+
originalProcessingFee: number;
|
|
6751
|
+
paymentIntentId: string;
|
|
6752
|
+
principalReturned: number;
|
|
6753
|
+
processingFee: number;
|
|
6754
|
+
provenance: {
|
|
6755
|
+
customerAccountId: string;
|
|
6756
|
+
invoiceId: string;
|
|
6757
|
+
invoicePaymentId: string;
|
|
6758
|
+
recoveryInvoiceItemId?: string;
|
|
6759
|
+
stripePriceId?: string;
|
|
6760
|
+
stripeProductId?: string;
|
|
6761
|
+
subscriptionId?: string;
|
|
6762
|
+
};
|
|
6763
|
+
sourceChargeId: string;
|
|
6764
|
+
};
|
|
6765
|
+
rollbackClaim?: {
|
|
6766
|
+
_creationTime: number;
|
|
6767
|
+
_id: string;
|
|
6768
|
+
accountId: string;
|
|
6769
|
+
amountDue: number;
|
|
6770
|
+
claimKey: string;
|
|
6771
|
+
collectedAmount: number;
|
|
6772
|
+
currency: string;
|
|
6773
|
+
openingCollection?: {
|
|
6774
|
+
amountDue: number;
|
|
6775
|
+
collectedAmount: number;
|
|
6776
|
+
operationKey: string;
|
|
6777
|
+
revision: number;
|
|
6778
|
+
};
|
|
6779
|
+
outstanding: number;
|
|
6780
|
+
reservedAmount: number;
|
|
6781
|
+
revision: number;
|
|
6782
|
+
scopeKey: string;
|
|
6783
|
+
sign: "positive" | "negative" | "zero";
|
|
6784
|
+
sourceChargeId: string;
|
|
6785
|
+
sourceGross: number;
|
|
6786
|
+
sourceProcessingFee: number;
|
|
6787
|
+
};
|
|
6788
|
+
};
|
|
6789
|
+
scopeKey: string;
|
|
6790
|
+
status: "completed";
|
|
6791
|
+
version: number;
|
|
6792
|
+
}
|
|
6793
|
+
| {
|
|
6794
|
+
accountId: string;
|
|
6795
|
+
currency: string;
|
|
6796
|
+
operationId: string;
|
|
6797
|
+
reason: string;
|
|
6798
|
+
retryable: boolean;
|
|
6799
|
+
scopeKey: string;
|
|
6800
|
+
status: "not_ready" | "conflict" | "rejected" | "unknown";
|
|
6801
|
+
version: number;
|
|
6802
|
+
},
|
|
6803
|
+
Name
|
|
6804
|
+
>;
|
|
6805
|
+
start: FunctionReference<
|
|
6806
|
+
"mutation",
|
|
6807
|
+
"internal",
|
|
6808
|
+
{
|
|
6809
|
+
accountId: string;
|
|
6810
|
+
claimKey: string;
|
|
6811
|
+
currency: string;
|
|
6812
|
+
definitionVersion: number;
|
|
6813
|
+
expectedRevision: number;
|
|
6814
|
+
importHook?: string;
|
|
6815
|
+
maxAttempts: number;
|
|
6816
|
+
policy: {
|
|
6817
|
+
liability: {
|
|
6818
|
+
disputeCosts: "all" | "none";
|
|
6819
|
+
processingCosts: "uncovered" | "all" | "none";
|
|
6820
|
+
};
|
|
6821
|
+
rounding: "nearest" | "floor" | "ceil";
|
|
6822
|
+
sellingFee: number;
|
|
6823
|
+
};
|
|
6824
|
+
projection?: string;
|
|
6825
|
+
provider: string;
|
|
6826
|
+
providerApiVersion: string;
|
|
6827
|
+
requestKey: string;
|
|
6828
|
+
retryDelayMs: number;
|
|
6829
|
+
rollback?: { expectedRevision: number; groupKey: string };
|
|
6830
|
+
scopeKey: string;
|
|
6831
|
+
source:
|
|
6832
|
+
| {
|
|
6833
|
+
customerAccountId: string;
|
|
6834
|
+
gross: number;
|
|
6835
|
+
invoiceId?: string;
|
|
6836
|
+
kind: "sale";
|
|
6837
|
+
paymentIntentId: string;
|
|
6838
|
+
stripeAccountId?: string;
|
|
6839
|
+
stripePriceId?: string;
|
|
6840
|
+
stripeProductId?: string;
|
|
6841
|
+
subscriptionId?: string;
|
|
6842
|
+
}
|
|
6843
|
+
| {
|
|
6844
|
+
gross: number;
|
|
6845
|
+
groupKey: string;
|
|
6846
|
+
kind: "invoice_recovery";
|
|
6847
|
+
paymentIntentId: string;
|
|
6848
|
+
};
|
|
6849
|
+
},
|
|
6850
|
+
| {
|
|
6851
|
+
accountId: string;
|
|
6852
|
+
currency: string;
|
|
6853
|
+
operationId: string;
|
|
6854
|
+
scopeKey: string;
|
|
6855
|
+
status: "queued" | "running";
|
|
6856
|
+
version: number;
|
|
6857
|
+
}
|
|
6858
|
+
| {
|
|
6859
|
+
accountId: string;
|
|
6860
|
+
currency: string;
|
|
6861
|
+
operationId: string;
|
|
6862
|
+
result: {
|
|
6863
|
+
claim: {
|
|
6864
|
+
_creationTime: number;
|
|
6865
|
+
_id: string;
|
|
6866
|
+
accountId: string;
|
|
6867
|
+
amountDue: number;
|
|
6868
|
+
claimKey: string;
|
|
6869
|
+
collectedAmount: number;
|
|
6870
|
+
currency: string;
|
|
6871
|
+
openingCollection?: {
|
|
6872
|
+
amountDue: number;
|
|
6873
|
+
collectedAmount: number;
|
|
6874
|
+
operationKey: string;
|
|
6875
|
+
revision: number;
|
|
6876
|
+
};
|
|
6877
|
+
outstanding: number;
|
|
6878
|
+
reservedAmount: number;
|
|
6879
|
+
revision: number;
|
|
6880
|
+
scopeKey: string;
|
|
6881
|
+
sign: "positive" | "negative" | "zero";
|
|
6882
|
+
sourceChargeId: string;
|
|
6883
|
+
sourceGross: number;
|
|
6884
|
+
sourceProcessingFee: number;
|
|
6885
|
+
};
|
|
6886
|
+
deficit: {
|
|
6887
|
+
amountDue: number;
|
|
6888
|
+
currency: string;
|
|
6889
|
+
disputeLiability: number;
|
|
6890
|
+
processingLiability: number;
|
|
6891
|
+
retainedFee: number;
|
|
6892
|
+
};
|
|
6893
|
+
observation: {
|
|
6894
|
+
currency: string;
|
|
6895
|
+
disputeFees: number;
|
|
6896
|
+
gross: number;
|
|
6897
|
+
originalProcessingFee: number;
|
|
6898
|
+
paymentIntentId: string;
|
|
6899
|
+
principalReturned: number;
|
|
6900
|
+
processingFee: number;
|
|
6901
|
+
provenance: {
|
|
6902
|
+
customerAccountId: string;
|
|
6903
|
+
invoiceId: string;
|
|
6904
|
+
invoicePaymentId: string;
|
|
6905
|
+
recoveryInvoiceItemId?: string;
|
|
6906
|
+
stripePriceId?: string;
|
|
6907
|
+
stripeProductId?: string;
|
|
6908
|
+
subscriptionId?: string;
|
|
6909
|
+
};
|
|
6910
|
+
sourceChargeId: string;
|
|
6911
|
+
};
|
|
6912
|
+
rollbackClaim?: {
|
|
6913
|
+
_creationTime: number;
|
|
6914
|
+
_id: string;
|
|
6915
|
+
accountId: string;
|
|
6916
|
+
amountDue: number;
|
|
6917
|
+
claimKey: string;
|
|
6918
|
+
collectedAmount: number;
|
|
6919
|
+
currency: string;
|
|
6920
|
+
openingCollection?: {
|
|
6921
|
+
amountDue: number;
|
|
6922
|
+
collectedAmount: number;
|
|
6923
|
+
operationKey: string;
|
|
6924
|
+
revision: number;
|
|
6925
|
+
};
|
|
6926
|
+
outstanding: number;
|
|
6927
|
+
reservedAmount: number;
|
|
6928
|
+
revision: number;
|
|
6929
|
+
scopeKey: string;
|
|
6930
|
+
sign: "positive" | "negative" | "zero";
|
|
6931
|
+
sourceChargeId: string;
|
|
6932
|
+
sourceGross: number;
|
|
6933
|
+
sourceProcessingFee: number;
|
|
6934
|
+
};
|
|
6935
|
+
};
|
|
6936
|
+
scopeKey: string;
|
|
6937
|
+
status: "completed";
|
|
6938
|
+
version: number;
|
|
6939
|
+
}
|
|
6940
|
+
| {
|
|
6941
|
+
accountId: string;
|
|
6942
|
+
currency: string;
|
|
6943
|
+
operationId: string;
|
|
6944
|
+
reason: string;
|
|
6945
|
+
retryable: boolean;
|
|
6946
|
+
scopeKey: string;
|
|
6947
|
+
status: "not_ready" | "conflict" | "rejected" | "unknown";
|
|
6948
|
+
version: number;
|
|
6949
|
+
}
|
|
6950
|
+
| {
|
|
6951
|
+
reason: "provider_pending" | "fee_pending" | "history_incomplete";
|
|
6952
|
+
retryable: true;
|
|
6953
|
+
status: "not_ready";
|
|
6954
|
+
}
|
|
6955
|
+
| {
|
|
6956
|
+
reason: "scope_busy" | "revision_changed" | "identity_changed";
|
|
6957
|
+
retryable: false;
|
|
6958
|
+
status: "conflict";
|
|
6959
|
+
}
|
|
6960
|
+
| {
|
|
6961
|
+
reason:
|
|
6962
|
+
| "invalid_scope"
|
|
6963
|
+
| "unsupported_source"
|
|
6964
|
+
| "policy_invalid"
|
|
6965
|
+
| "payment_not_payable"
|
|
6966
|
+
| "currency_mismatch";
|
|
6967
|
+
retryable: false;
|
|
6968
|
+
status: "rejected";
|
|
6969
|
+
}
|
|
6970
|
+
| {
|
|
6971
|
+
reason: "provider_outcome_unknown" | "history_incomplete";
|
|
6972
|
+
retryable: false;
|
|
6973
|
+
status: "unknown";
|
|
6974
|
+
},
|
|
6975
|
+
Name
|
|
6976
|
+
>;
|
|
6977
|
+
};
|
|
6978
|
+
queries: {
|
|
6979
|
+
get: FunctionReference<
|
|
6980
|
+
"query",
|
|
6981
|
+
"internal",
|
|
6982
|
+
{
|
|
6983
|
+
accountId: string;
|
|
6984
|
+
currency: string;
|
|
6985
|
+
operationId: string;
|
|
6986
|
+
scopeKey: string;
|
|
6987
|
+
version: number;
|
|
6988
|
+
},
|
|
6989
|
+
| {
|
|
6990
|
+
accountId: string;
|
|
6991
|
+
currency: string;
|
|
6992
|
+
operationId: string;
|
|
6993
|
+
scopeKey: string;
|
|
6994
|
+
status: "queued" | "running";
|
|
6995
|
+
version: number;
|
|
6996
|
+
}
|
|
6997
|
+
| {
|
|
6998
|
+
accountId: string;
|
|
6999
|
+
currency: string;
|
|
7000
|
+
operationId: string;
|
|
7001
|
+
result: {
|
|
7002
|
+
claim: {
|
|
7003
|
+
_creationTime: number;
|
|
7004
|
+
_id: string;
|
|
7005
|
+
accountId: string;
|
|
7006
|
+
amountDue: number;
|
|
7007
|
+
claimKey: string;
|
|
7008
|
+
collectedAmount: number;
|
|
7009
|
+
currency: string;
|
|
7010
|
+
openingCollection?: {
|
|
7011
|
+
amountDue: number;
|
|
7012
|
+
collectedAmount: number;
|
|
7013
|
+
operationKey: string;
|
|
7014
|
+
revision: number;
|
|
7015
|
+
};
|
|
7016
|
+
outstanding: number;
|
|
7017
|
+
reservedAmount: number;
|
|
7018
|
+
revision: number;
|
|
7019
|
+
scopeKey: string;
|
|
7020
|
+
sign: "positive" | "negative" | "zero";
|
|
7021
|
+
sourceChargeId: string;
|
|
7022
|
+
sourceGross: number;
|
|
7023
|
+
sourceProcessingFee: number;
|
|
7024
|
+
};
|
|
7025
|
+
deficit: {
|
|
7026
|
+
amountDue: number;
|
|
7027
|
+
currency: string;
|
|
7028
|
+
disputeLiability: number;
|
|
7029
|
+
processingLiability: number;
|
|
7030
|
+
retainedFee: number;
|
|
7031
|
+
};
|
|
7032
|
+
observation: {
|
|
7033
|
+
currency: string;
|
|
7034
|
+
disputeFees: number;
|
|
7035
|
+
gross: number;
|
|
7036
|
+
originalProcessingFee: number;
|
|
7037
|
+
paymentIntentId: string;
|
|
7038
|
+
principalReturned: number;
|
|
7039
|
+
processingFee: number;
|
|
7040
|
+
provenance: {
|
|
7041
|
+
customerAccountId: string;
|
|
7042
|
+
invoiceId: string;
|
|
7043
|
+
invoicePaymentId: string;
|
|
7044
|
+
recoveryInvoiceItemId?: string;
|
|
7045
|
+
stripePriceId?: string;
|
|
7046
|
+
stripeProductId?: string;
|
|
7047
|
+
subscriptionId?: string;
|
|
7048
|
+
};
|
|
7049
|
+
sourceChargeId: string;
|
|
7050
|
+
};
|
|
7051
|
+
rollbackClaim?: {
|
|
7052
|
+
_creationTime: number;
|
|
7053
|
+
_id: string;
|
|
7054
|
+
accountId: string;
|
|
7055
|
+
amountDue: number;
|
|
7056
|
+
claimKey: string;
|
|
7057
|
+
collectedAmount: number;
|
|
7058
|
+
currency: string;
|
|
7059
|
+
openingCollection?: {
|
|
7060
|
+
amountDue: number;
|
|
7061
|
+
collectedAmount: number;
|
|
7062
|
+
operationKey: string;
|
|
7063
|
+
revision: number;
|
|
7064
|
+
};
|
|
7065
|
+
outstanding: number;
|
|
7066
|
+
reservedAmount: number;
|
|
7067
|
+
revision: number;
|
|
7068
|
+
scopeKey: string;
|
|
7069
|
+
sign: "positive" | "negative" | "zero";
|
|
7070
|
+
sourceChargeId: string;
|
|
7071
|
+
sourceGross: number;
|
|
7072
|
+
sourceProcessingFee: number;
|
|
7073
|
+
};
|
|
7074
|
+
};
|
|
7075
|
+
scopeKey: string;
|
|
7076
|
+
status: "completed";
|
|
7077
|
+
version: number;
|
|
7078
|
+
}
|
|
7079
|
+
| {
|
|
7080
|
+
accountId: string;
|
|
7081
|
+
currency: string;
|
|
7082
|
+
operationId: string;
|
|
7083
|
+
reason: string;
|
|
7084
|
+
retryable: boolean;
|
|
7085
|
+
scopeKey: string;
|
|
7086
|
+
status: "not_ready" | "conflict" | "rejected" | "unknown";
|
|
7087
|
+
version: number;
|
|
7088
|
+
},
|
|
7089
|
+
Name
|
|
7090
|
+
>;
|
|
7091
|
+
snapshot: FunctionReference<
|
|
7092
|
+
"query",
|
|
7093
|
+
"internal",
|
|
7094
|
+
{
|
|
7095
|
+
accountId: string;
|
|
7096
|
+
currency: string;
|
|
7097
|
+
operationId: string;
|
|
7098
|
+
scopeKey: string;
|
|
7099
|
+
version: number;
|
|
7100
|
+
},
|
|
7101
|
+
{
|
|
7102
|
+
_creationTime: number;
|
|
7103
|
+
_id: string;
|
|
7104
|
+
accountId: string;
|
|
7105
|
+
claimKey: string;
|
|
7106
|
+
currency: string;
|
|
7107
|
+
definitionVersion: number;
|
|
7108
|
+
expectedRevision: number;
|
|
7109
|
+
failure?:
|
|
7110
|
+
| {
|
|
7111
|
+
reason:
|
|
7112
|
+
"provider_pending" | "fee_pending" | "history_incomplete";
|
|
7113
|
+
retryable: true;
|
|
7114
|
+
status: "not_ready";
|
|
7115
|
+
}
|
|
7116
|
+
| {
|
|
7117
|
+
reason:
|
|
7118
|
+
"scope_busy" | "revision_changed" | "identity_changed";
|
|
7119
|
+
retryable: false;
|
|
7120
|
+
status: "conflict";
|
|
7121
|
+
}
|
|
7122
|
+
| {
|
|
7123
|
+
reason:
|
|
7124
|
+
| "invalid_scope"
|
|
7125
|
+
| "unsupported_source"
|
|
7126
|
+
| "policy_invalid"
|
|
7127
|
+
| "payment_not_payable"
|
|
7128
|
+
| "currency_mismatch";
|
|
7129
|
+
retryable: false;
|
|
7130
|
+
status: "rejected";
|
|
7131
|
+
}
|
|
7132
|
+
| {
|
|
7133
|
+
reason: "provider_outcome_unknown" | "history_incomplete";
|
|
7134
|
+
retryable: false;
|
|
7135
|
+
status: "unknown";
|
|
7136
|
+
};
|
|
7137
|
+
importHook?: string;
|
|
7138
|
+
maxAttempts: number;
|
|
7139
|
+
policy: {
|
|
7140
|
+
liability: {
|
|
7141
|
+
disputeCosts: "all" | "none";
|
|
7142
|
+
processingCosts: "uncovered" | "all" | "none";
|
|
7143
|
+
};
|
|
7144
|
+
rounding: "nearest" | "floor" | "ceil";
|
|
7145
|
+
sellingFee: number;
|
|
7146
|
+
};
|
|
7147
|
+
projection?: string;
|
|
7148
|
+
provider: string;
|
|
7149
|
+
providerApiVersion: string;
|
|
7150
|
+
requestKey: string;
|
|
7151
|
+
result?: {
|
|
7152
|
+
claim: {
|
|
7153
|
+
_creationTime: number;
|
|
7154
|
+
_id: string;
|
|
7155
|
+
accountId: string;
|
|
7156
|
+
amountDue: number;
|
|
7157
|
+
claimKey: string;
|
|
7158
|
+
collectedAmount: number;
|
|
7159
|
+
currency: string;
|
|
7160
|
+
openingCollection?: {
|
|
7161
|
+
amountDue: number;
|
|
7162
|
+
collectedAmount: number;
|
|
7163
|
+
operationKey: string;
|
|
7164
|
+
revision: number;
|
|
7165
|
+
};
|
|
7166
|
+
outstanding: number;
|
|
7167
|
+
reservedAmount: number;
|
|
7168
|
+
revision: number;
|
|
7169
|
+
scopeKey: string;
|
|
7170
|
+
sign: "positive" | "negative" | "zero";
|
|
7171
|
+
sourceChargeId: string;
|
|
7172
|
+
sourceGross: number;
|
|
7173
|
+
sourceProcessingFee: number;
|
|
7174
|
+
};
|
|
7175
|
+
deficit: {
|
|
7176
|
+
amountDue: number;
|
|
7177
|
+
currency: string;
|
|
7178
|
+
disputeLiability: number;
|
|
7179
|
+
processingLiability: number;
|
|
7180
|
+
retainedFee: number;
|
|
7181
|
+
};
|
|
7182
|
+
observation: {
|
|
7183
|
+
currency: string;
|
|
7184
|
+
disputeFees: number;
|
|
7185
|
+
gross: number;
|
|
7186
|
+
originalProcessingFee: number;
|
|
7187
|
+
paymentIntentId: string;
|
|
7188
|
+
principalReturned: number;
|
|
7189
|
+
processingFee: number;
|
|
7190
|
+
provenance: {
|
|
7191
|
+
customerAccountId: string;
|
|
7192
|
+
invoiceId: string;
|
|
7193
|
+
invoicePaymentId: string;
|
|
7194
|
+
recoveryInvoiceItemId?: string;
|
|
7195
|
+
stripePriceId?: string;
|
|
7196
|
+
stripeProductId?: string;
|
|
7197
|
+
subscriptionId?: string;
|
|
7198
|
+
};
|
|
7199
|
+
sourceChargeId: string;
|
|
7200
|
+
};
|
|
7201
|
+
rollbackClaim?: {
|
|
7202
|
+
_creationTime: number;
|
|
7203
|
+
_id: string;
|
|
7204
|
+
accountId: string;
|
|
7205
|
+
amountDue: number;
|
|
7206
|
+
claimKey: string;
|
|
7207
|
+
collectedAmount: number;
|
|
7208
|
+
currency: string;
|
|
7209
|
+
openingCollection?: {
|
|
7210
|
+
amountDue: number;
|
|
7211
|
+
collectedAmount: number;
|
|
7212
|
+
operationKey: string;
|
|
7213
|
+
revision: number;
|
|
7214
|
+
};
|
|
7215
|
+
outstanding: number;
|
|
7216
|
+
reservedAmount: number;
|
|
7217
|
+
revision: number;
|
|
7218
|
+
scopeKey: string;
|
|
7219
|
+
sign: "positive" | "negative" | "zero";
|
|
7220
|
+
sourceChargeId: string;
|
|
7221
|
+
sourceGross: number;
|
|
7222
|
+
sourceProcessingFee: number;
|
|
7223
|
+
};
|
|
7224
|
+
};
|
|
7225
|
+
retryDelayMs: number;
|
|
7226
|
+
rollback?: { expectedRevision: number; groupKey: string };
|
|
7227
|
+
scopeKey: string;
|
|
7228
|
+
source:
|
|
7229
|
+
| {
|
|
7230
|
+
customerAccountId: string;
|
|
7231
|
+
gross: number;
|
|
7232
|
+
invoiceId?: string;
|
|
7233
|
+
kind: "sale";
|
|
7234
|
+
paymentIntentId: string;
|
|
7235
|
+
stripeAccountId?: string;
|
|
7236
|
+
stripePriceId?: string;
|
|
7237
|
+
stripeProductId?: string;
|
|
7238
|
+
subscriptionId?: string;
|
|
7239
|
+
}
|
|
7240
|
+
| {
|
|
7241
|
+
gross: number;
|
|
7242
|
+
groupKey: string;
|
|
7243
|
+
kind: "invoice_recovery";
|
|
7244
|
+
paymentIntentId: string;
|
|
7245
|
+
};
|
|
7246
|
+
status:
|
|
7247
|
+
| "queued"
|
|
7248
|
+
| "running"
|
|
7249
|
+
| "waiting"
|
|
7250
|
+
| "completed"
|
|
7251
|
+
| "conflict"
|
|
7252
|
+
| "rejected"
|
|
7253
|
+
| "unknown";
|
|
7254
|
+
version: number;
|
|
7255
|
+
workflowId?: string;
|
|
7256
|
+
},
|
|
7257
|
+
Name
|
|
7258
|
+
>;
|
|
7259
|
+
};
|
|
7260
|
+
};
|
|
6691
7261
|
products: {
|
|
6692
7262
|
mutations: {
|
|
6693
7263
|
adoptProduct: FunctionReference<
|