@sylphx/sdk 0.32.5 → 0.32.9
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/auth.d.ts +1 -1
- package/dist/broker.d.ts +61 -1
- package/dist/broker.js +33 -1
- package/dist/broker.js.map +1 -1
- package/dist/events.d.ts +738 -3
- package/dist/events.js +575 -2
- package/dist/events.js.map +1 -1
- package/dist/ids.d.ts +25 -0
- package/dist/ids.js +5 -0
- package/dist/ids.js.map +1 -1
- package/dist/methods.js +367 -2
- package/dist/methods.js.map +1 -1
- package/dist/money.d.ts +332 -2
- package/dist/money.js +284 -0
- package/dist/money.js.map +1 -1
- package/dist/notify.d.ts +94 -3
- package/dist/notify.js +53 -0
- package/dist/notify.js.map +1 -1
- package/dist/observability.d.ts +15 -2
- package/dist/observability.js +2 -0
- package/dist/observability.js.map +1 -1
- package/package.json +1 -1
package/dist/money.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import * as runtime from './runtime.js';
|
|
2
2
|
import './common.js';
|
|
3
3
|
import type * as common from './common.js';
|
|
4
|
+
/** The request of AdvanceTestClock. */
|
|
5
|
+
export interface AdvanceTestClockRequest {
|
|
6
|
+
/** The clock to advance. */
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* Target simulated time. Whole seconds; must not precede current time.
|
|
10
|
+
* Repeating an already reached target is idempotent.
|
|
11
|
+
*/
|
|
12
|
+
frozenTime: string;
|
|
13
|
+
}
|
|
4
14
|
/** AppStoreConnection is an App Store Server API key and the app's bundle ids. */
|
|
5
15
|
export interface AppStoreConnection {
|
|
6
16
|
/** The apps' bundle ids. */
|
|
@@ -33,6 +43,90 @@ export interface AppStoreConnection {
|
|
|
33
43
|
*/
|
|
34
44
|
environment?: string;
|
|
35
45
|
}
|
|
46
|
+
/** Immutable evidence of an incoming bank credit and its decisions. */
|
|
47
|
+
export interface BankReceipt {
|
|
48
|
+
/** Resource name. */
|
|
49
|
+
name?: string;
|
|
50
|
+
/** Stable resource identity. */
|
|
51
|
+
readonly uid?: string;
|
|
52
|
+
/** Resource metadata. */
|
|
53
|
+
readonly meta?: common.ResourceMeta;
|
|
54
|
+
/** The checkout this receipt was submitted against. */
|
|
55
|
+
readonly checkoutSession?: string;
|
|
56
|
+
/** The bank statement transaction identity. */
|
|
57
|
+
readonly bankTransactionId?: string;
|
|
58
|
+
/** Amount actually received in minor units. */
|
|
59
|
+
readonly amountMinor?: string;
|
|
60
|
+
/** Currency actually received. */
|
|
61
|
+
readonly currencyCode?: string;
|
|
62
|
+
/** Bank-reported receipt time. */
|
|
63
|
+
readonly receivedTime?: string;
|
|
64
|
+
/** Reference observed on the bank statement; empty is held. */
|
|
65
|
+
readonly reference?: string;
|
|
66
|
+
/** Evidence locator or statement evidence; screenshots alone are not proof. */
|
|
67
|
+
readonly payerEvidence?: string;
|
|
68
|
+
/** Authenticated principal that recorded this receipt. */
|
|
69
|
+
readonly confirmer?: string;
|
|
70
|
+
/** paid, held, rejected, refunded or reversed. */
|
|
71
|
+
readonly state?: string;
|
|
72
|
+
/** Why settlement was held. */
|
|
73
|
+
readonly holdReason?: string;
|
|
74
|
+
/** Append-only human resolution, refund and reversal history. */
|
|
75
|
+
readonly entries?: BankReceiptEntry[];
|
|
76
|
+
}
|
|
77
|
+
/** An immutable decision appended to the original bank receipt. */
|
|
78
|
+
export interface BankReceiptEntry {
|
|
79
|
+
/** accept, reject, refund or reversal. */
|
|
80
|
+
readonly kind?: string;
|
|
81
|
+
/** Operator evidence supporting this decision. */
|
|
82
|
+
readonly evidence?: string;
|
|
83
|
+
/** Authenticated decision maker. */
|
|
84
|
+
readonly confirmer?: string;
|
|
85
|
+
/** UTC decision time. */
|
|
86
|
+
readonly createTime?: string;
|
|
87
|
+
/** Bank refund/reversal reference, when applicable. */
|
|
88
|
+
readonly externalReference?: string;
|
|
89
|
+
}
|
|
90
|
+
/** Receiving bank account configuration for one environment. */
|
|
91
|
+
export interface BankTransferAccount {
|
|
92
|
+
/** Resource name. */
|
|
93
|
+
name?: string;
|
|
94
|
+
/** Stable resource identity. */
|
|
95
|
+
readonly uid?: string;
|
|
96
|
+
/** Resource metadata. */
|
|
97
|
+
readonly meta?: common.ResourceMeta;
|
|
98
|
+
/** Verified beneficiary name. */
|
|
99
|
+
accountHolder?: string;
|
|
100
|
+
/** Receiving bank name. */
|
|
101
|
+
bankName?: string;
|
|
102
|
+
/** Receiving bank routing or clearing code. */
|
|
103
|
+
bankCode?: string;
|
|
104
|
+
/** Receiving account number, including branch digits. */
|
|
105
|
+
accountNumber?: string;
|
|
106
|
+
/** Verified FPS identifier displayed to the payer. */
|
|
107
|
+
fpsId?: string;
|
|
108
|
+
/** Original bank-issued FPS Common QR payload; never an invented account template. */
|
|
109
|
+
fpsQrPayload?: string;
|
|
110
|
+
/** ISO 4217 receiving account currency. */
|
|
111
|
+
currencyCode?: string;
|
|
112
|
+
/** Whether new bank-transfer checkouts may be created. */
|
|
113
|
+
enabled?: boolean;
|
|
114
|
+
/** ISO 3166-1 alpha-2 country of the receiving bank. */
|
|
115
|
+
regionCode?: string;
|
|
116
|
+
/** Optional EMV merchant-presented QR country profile: hk_fps. */
|
|
117
|
+
qrProfile?: string;
|
|
118
|
+
}
|
|
119
|
+
/** Frozen payment instructions for one checkout. */
|
|
120
|
+
export interface BankTransferInstructions {
|
|
121
|
+
/** Beneficiary snapshot, unaffected by later configuration changes. */
|
|
122
|
+
readonly account?: BankTransferAccount;
|
|
123
|
+
/** Opaque order reference, no more than 25 characters. */
|
|
124
|
+
readonly reference?: string;
|
|
125
|
+
/** Dynamic Common QR with exact amount and reference. */
|
|
126
|
+
readonly qrPayload?: string;
|
|
127
|
+
/** QR image as standalone SVG. */
|
|
128
|
+
readonly qrSvg?: string;
|
|
129
|
+
}
|
|
36
130
|
/** The request of BatchIngestUsageEvents. */
|
|
37
131
|
export interface BatchIngestUsageEventsRequest {
|
|
38
132
|
/** The environment to record in. */
|
|
@@ -57,7 +151,7 @@ export interface BookedVolumeLine {
|
|
|
57
151
|
environment?: string;
|
|
58
152
|
/** The app/package, bundle or Stripe product reference; empty stays empty. */
|
|
59
153
|
productRef?: string;
|
|
60
|
-
/** stripe, app_store or
|
|
154
|
+
/** stripe, app_store, google_play or bank_transfer. */
|
|
61
155
|
channel?: string;
|
|
62
156
|
/** ISO 4217 currency; never sum amounts across currencies. */
|
|
63
157
|
currencyCode?: string;
|
|
@@ -393,6 +487,10 @@ export interface CheckoutSession {
|
|
|
393
487
|
readonly livemode?: boolean;
|
|
394
488
|
/** The processor payment this checkout produced; empty before settlement. */
|
|
395
489
|
readonly processorPaymentId?: string;
|
|
490
|
+
/** `stripe` (default) or `bank_transfer`. Bank transfers never contact Stripe. */
|
|
491
|
+
paymentMethod?: string;
|
|
492
|
+
/** Frozen beneficiary, amount, reference and bank-issued FPS QR instructions. */
|
|
493
|
+
readonly bankTransfer?: BankTransferInstructions;
|
|
396
494
|
}
|
|
397
495
|
/** The request of ClientVerifyStorePurchase. */
|
|
398
496
|
export interface ClientVerifyStorePurchaseRequest {
|
|
@@ -521,6 +619,15 @@ export interface CreateStoreConnectionRequest {
|
|
|
521
619
|
/** Validate and return the result without writing anything. */
|
|
522
620
|
validateOnly?: boolean;
|
|
523
621
|
}
|
|
622
|
+
/** The request of CreateTestClock. */
|
|
623
|
+
export interface CreateTestClockRequest {
|
|
624
|
+
/** The environment to create in. */
|
|
625
|
+
parent: string;
|
|
626
|
+
/** The subject and initial simulated time. */
|
|
627
|
+
testClock: TestClock;
|
|
628
|
+
/** The final name segment; defaults to a stable id derived from the subject. */
|
|
629
|
+
testClockId?: string;
|
|
630
|
+
}
|
|
524
631
|
/** The request of CreateUsageEvent. */
|
|
525
632
|
export interface CreateUsageEventRequest {
|
|
526
633
|
/** The environment to create in. */
|
|
@@ -755,6 +862,16 @@ export interface GenerateLicenceKeyRequest {
|
|
|
755
862
|
/** Shown to operators. */
|
|
756
863
|
spec?: LicenceKeySpec;
|
|
757
864
|
}
|
|
865
|
+
/** Gets one immutable bank receipt and its appended decisions. */
|
|
866
|
+
export interface GetBankReceiptRequest {
|
|
867
|
+
/** Receipt name. */
|
|
868
|
+
name: string;
|
|
869
|
+
}
|
|
870
|
+
/** Gets the environment bank account. */
|
|
871
|
+
export interface GetBankTransferAccountRequest {
|
|
872
|
+
/** BankTransferAccount name, ending in default. */
|
|
873
|
+
name: string;
|
|
874
|
+
}
|
|
758
875
|
/** The request of GetCatalog. */
|
|
759
876
|
export interface GetCatalogRequest {
|
|
760
877
|
/** The name of the catalog to get. */
|
|
@@ -844,6 +961,11 @@ export interface GetStorePurchaseRequest {
|
|
|
844
961
|
/** The name of the store purchase to get. */
|
|
845
962
|
name: string;
|
|
846
963
|
}
|
|
964
|
+
/** The request of GetTestClock. */
|
|
965
|
+
export interface GetTestClockRequest {
|
|
966
|
+
/** The test clock to read back. */
|
|
967
|
+
name: string;
|
|
968
|
+
}
|
|
847
969
|
/** The request of GetUsageInvoice. */
|
|
848
970
|
export interface GetUsageInvoiceRequest {
|
|
849
971
|
/** The name of the usage invoice to get. */
|
|
@@ -1051,6 +1173,24 @@ export interface LineItem {
|
|
|
1051
1173
|
/** How many; default 1. Seats for a per-seat or family price. */
|
|
1052
1174
|
quantity?: number;
|
|
1053
1175
|
}
|
|
1176
|
+
/** Lists bank receipts in an environment. */
|
|
1177
|
+
export interface ListBankReceiptsRequest {
|
|
1178
|
+
/** Environment resource name. */
|
|
1179
|
+
parent: string;
|
|
1180
|
+
/** Default 50, at most 1000. */
|
|
1181
|
+
pageSize?: number;
|
|
1182
|
+
/** Token from the preceding page. */
|
|
1183
|
+
pageToken?: string;
|
|
1184
|
+
/** Optional state equality: held, paid, rejected, refunded or reversed. */
|
|
1185
|
+
filter?: string;
|
|
1186
|
+
}
|
|
1187
|
+
/** Response for ListBankReceipts. */
|
|
1188
|
+
export interface ListBankReceiptsResponse {
|
|
1189
|
+
/** Receipts ordered by creation time and id. */
|
|
1190
|
+
bankReceipts?: BankReceipt[];
|
|
1191
|
+
/** Empty on the last page. */
|
|
1192
|
+
nextPageToken?: string;
|
|
1193
|
+
}
|
|
1054
1194
|
/** The request of ListCreditGrants. */
|
|
1055
1195
|
export interface ListCreditGrantsRequest {
|
|
1056
1196
|
/** The parent to list in. */
|
|
@@ -1588,6 +1728,27 @@ export interface Product {
|
|
|
1588
1728
|
*/
|
|
1589
1729
|
licence?: LicencePolicy;
|
|
1590
1730
|
}
|
|
1731
|
+
/** Records statement evidence and confirms only an exact, timely, unambiguous payment. */
|
|
1732
|
+
export interface RecordBankReceiptRequest {
|
|
1733
|
+
/** The environment recording the receipt. */
|
|
1734
|
+
parent: string;
|
|
1735
|
+
/** The checkout against which bank statement evidence is recorded. */
|
|
1736
|
+
checkoutSession: string;
|
|
1737
|
+
/** Bank statement transaction identity. */
|
|
1738
|
+
bankTransactionId: string;
|
|
1739
|
+
/** Actual received minor units. */
|
|
1740
|
+
amountMinor: string;
|
|
1741
|
+
/** Actual currency. */
|
|
1742
|
+
currencyCode: string;
|
|
1743
|
+
/** Bank receipt time. */
|
|
1744
|
+
receivedTime: string;
|
|
1745
|
+
/** Actual statement reference; absent references are held. */
|
|
1746
|
+
reference?: string;
|
|
1747
|
+
/** Bank statement evidence or secure evidence locator. */
|
|
1748
|
+
payerEvidence: string;
|
|
1749
|
+
/** Hold evidence with unresolved payer or bank ambiguity. */
|
|
1750
|
+
ambiguous?: boolean;
|
|
1751
|
+
}
|
|
1591
1752
|
/** The request of RefreshMerchantAccount. */
|
|
1592
1753
|
export interface RefreshMerchantAccountRequest {
|
|
1593
1754
|
/** The merchant account to read back. */
|
|
@@ -1636,6 +1797,15 @@ export interface ReleaseUsageReservationRequest {
|
|
|
1636
1797
|
/** The reservation to release. */
|
|
1637
1798
|
name: string;
|
|
1638
1799
|
}
|
|
1800
|
+
/** Resolves held evidence without altering its original receipt. */
|
|
1801
|
+
export interface ResolveBankReceiptRequest {
|
|
1802
|
+
/** Receipt name. */
|
|
1803
|
+
name: string;
|
|
1804
|
+
/** accept or reject; accept requires the exact amount and currency. */
|
|
1805
|
+
decision: string;
|
|
1806
|
+
/** Human resolution evidence. */
|
|
1807
|
+
evidence: string;
|
|
1808
|
+
}
|
|
1639
1809
|
/** The request of ResumeCustomerSubscription. */
|
|
1640
1810
|
export interface ResumeCustomerSubscriptionRequest {
|
|
1641
1811
|
/** The subscription to resume. */
|
|
@@ -1695,7 +1865,7 @@ export interface RevenueFact {
|
|
|
1695
1865
|
readonly granularity?: string;
|
|
1696
1866
|
/** The source's reporting day; the first of the month for a month row. */
|
|
1697
1867
|
readonly day?: string;
|
|
1698
|
-
/** `stripe`, `app_store`, `google_play`, `ad_network` or `other`. */
|
|
1868
|
+
/** `stripe`, `app_store`, `google_play`, `bank_transfer`, `ad_network` or `other`. */
|
|
1699
1869
|
readonly storeKind?: string;
|
|
1700
1870
|
/** The account the source reports for. */
|
|
1701
1871
|
readonly accountRef?: string;
|
|
@@ -1864,6 +2034,17 @@ export interface RevenueSummary {
|
|
|
1864
2034
|
*/
|
|
1865
2035
|
readonly bookedVolume?: BookedVolumeLine[];
|
|
1866
2036
|
}
|
|
2037
|
+
/** Records a completed external refund or reversal; sends no money. */
|
|
2038
|
+
export interface ReverseBankReceiptRequest {
|
|
2039
|
+
/** Receipt name. */
|
|
2040
|
+
name: string;
|
|
2041
|
+
/** refund or reversal, for the full receipt. */
|
|
2042
|
+
kind: string;
|
|
2043
|
+
/** Verified bank evidence. */
|
|
2044
|
+
evidence: string;
|
|
2045
|
+
/** Unique bank refund or reversal identity. */
|
|
2046
|
+
externalReference: string;
|
|
2047
|
+
}
|
|
1867
2048
|
/** The request of RunRevenueSource. */
|
|
1868
2049
|
export interface RunRevenueSourceRequest {
|
|
1869
2050
|
/** The source to run. */
|
|
@@ -2164,6 +2345,40 @@ export interface TaxThresholdStatus {
|
|
|
2164
2345
|
/** When the threshold row took effect. */
|
|
2165
2346
|
readonly effectiveTime?: string;
|
|
2166
2347
|
}
|
|
2348
|
+
/**
|
|
2349
|
+
* A Stripe test clock for one subject's subscription lifecycle. Create it
|
|
2350
|
+
* before the subject's first checkout; its Stripe customer inherits the clock.
|
|
2351
|
+
* Only test-mode keys and test-mode merchants can use this resource. Advancing
|
|
2352
|
+
* changes Stripe's time and emits real webhooks; it never edits entitlements.
|
|
2353
|
+
*/
|
|
2354
|
+
export interface TestClock {
|
|
2355
|
+
/** The clock's resource name. */
|
|
2356
|
+
name?: string;
|
|
2357
|
+
/** Stable identity, never reused. */
|
|
2358
|
+
readonly uid?: string;
|
|
2359
|
+
/** Resource metadata. */
|
|
2360
|
+
readonly meta?: common.ResourceMeta;
|
|
2361
|
+
/**
|
|
2362
|
+
* The subject whose new Stripe customer will use this clock. A subject
|
|
2363
|
+
* with an existing Money Stripe customer cannot acquire a clock.
|
|
2364
|
+
*/
|
|
2365
|
+
subject?: Subject;
|
|
2366
|
+
/**
|
|
2367
|
+
* Initial simulated time on create; current Stripe time on reads. Required
|
|
2368
|
+
* on create. Only whole seconds are supported.
|
|
2369
|
+
*/
|
|
2370
|
+
frozenTime?: string;
|
|
2371
|
+
/**
|
|
2372
|
+
* Stripe's status: ready, advancing, or internal_failure. Poll GetTestClock
|
|
2373
|
+
* until ready before the next simulation step. Ready does not mean Money
|
|
2374
|
+
* has applied every webhook; observe the subscription and entitlement too.
|
|
2375
|
+
*/
|
|
2376
|
+
readonly state?: string;
|
|
2377
|
+
/** Stripe clock id, for processor receipts. */
|
|
2378
|
+
readonly processorClockId?: string;
|
|
2379
|
+
/** Always false; a live processor object is refused. */
|
|
2380
|
+
readonly livemode?: boolean;
|
|
2381
|
+
}
|
|
2167
2382
|
/** An amount a summary could not convert yet. */
|
|
2168
2383
|
export interface UnconvertedAmount {
|
|
2169
2384
|
/** ISO 4217 code. */
|
|
@@ -2171,6 +2386,15 @@ export interface UnconvertedAmount {
|
|
|
2171
2386
|
/** In minor units of that currency. */
|
|
2172
2387
|
amount?: string;
|
|
2173
2388
|
}
|
|
2389
|
+
/** Configures the environment bank account. */
|
|
2390
|
+
export interface UpdateBankTransferAccountRequest {
|
|
2391
|
+
/** Account configuration. */
|
|
2392
|
+
bankTransferAccount: BankTransferAccount;
|
|
2393
|
+
/** Fields to change; empty replaces all writable fields. */
|
|
2394
|
+
updateMask?: string;
|
|
2395
|
+
/** Create the singleton if absent. */
|
|
2396
|
+
allowMissing?: boolean;
|
|
2397
|
+
}
|
|
2174
2398
|
/** The request of UpdateCatalog. */
|
|
2175
2399
|
export interface UpdateCatalogRequest {
|
|
2176
2400
|
/** The catalog to write; `name` identifies it. */
|
|
@@ -2596,6 +2820,10 @@ export type ProrationBehavior = 'create_prorations' | 'none' | 'always_invoice'
|
|
|
2596
2820
|
* Namespace of Sylphx Money on `Sylphx`.
|
|
2597
2821
|
*/
|
|
2598
2822
|
export declare class MoneyApi {
|
|
2823
|
+
/** The `bank_transfer_accounts` collection. */
|
|
2824
|
+
readonly bankTransferAccounts: BankTransferAccountsCollection;
|
|
2825
|
+
/** The `bank_receipts` collection. */
|
|
2826
|
+
readonly bankReceipts: BankReceiptsCollection;
|
|
2599
2827
|
/** The `processor_events` collection. */
|
|
2600
2828
|
readonly processorEvents: ProcessorEventsCollection;
|
|
2601
2829
|
/** The `merchant_accounts` collection. */
|
|
@@ -2612,6 +2840,8 @@ export declare class MoneyApi {
|
|
|
2612
2840
|
readonly customerSubscriptions: CustomerSubscriptionsCollection;
|
|
2613
2841
|
/** The `entitlement_grants` collection. */
|
|
2614
2842
|
readonly entitlementGrants: EntitlementGrantsCollection;
|
|
2843
|
+
/** The `test_clocks` collection. */
|
|
2844
|
+
readonly testClocks: TestClocksCollection;
|
|
2615
2845
|
/** The `checkout_sessions` collection. */
|
|
2616
2846
|
readonly checkoutSessions: CheckoutSessionsCollection;
|
|
2617
2847
|
/** The `tax_threshold_statuses` collection. */
|
|
@@ -2648,6 +2878,74 @@ export declare class MoneyApi {
|
|
|
2648
2878
|
readonly exchangeRates: ExchangeRatesCollection;
|
|
2649
2879
|
constructor(client: runtime.Client);
|
|
2650
2880
|
}
|
|
2881
|
+
/** `bank_transfer_accounts` of Sylphx Money: Resource type `money.sylphx.com/BankTransferAccount`. */
|
|
2882
|
+
export declare class BankTransferAccountsCollection {
|
|
2883
|
+
private readonly client;
|
|
2884
|
+
constructor(client: runtime.Client);
|
|
2885
|
+
/**
|
|
2886
|
+
* GetBankTransferAccount through the project-scoped bank transfer API.
|
|
2887
|
+
*
|
|
2888
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/bank_transfer_accounts/*}` · permission `billing:read` · effect `read`
|
|
2889
|
+
*
|
|
2890
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `ETAG_MISMATCH`, `UNAVAILABLE`.
|
|
2891
|
+
*/
|
|
2892
|
+
get(request: GetBankTransferAccountRequest): Promise<BankTransferAccount>;
|
|
2893
|
+
/**
|
|
2894
|
+
* UpdateBankTransferAccount through the project-scoped bank transfer API.
|
|
2895
|
+
*
|
|
2896
|
+
* `PATCH /v1/{bank_transfer_account.name=orgs/*\/projects/*\/envs/*\/bank_transfer_accounts/*}` · permission `billing:bank_accounts:write` · effect `write`
|
|
2897
|
+
*
|
|
2898
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `ETAG_MISMATCH`, `UNAVAILABLE`.
|
|
2899
|
+
*/
|
|
2900
|
+
update(request: UpdateBankTransferAccountRequest): Promise<BankTransferAccount>;
|
|
2901
|
+
}
|
|
2902
|
+
/** `bank_receipts` of Sylphx Money: Resource type `money.sylphx.com/BankReceipt`. */
|
|
2903
|
+
export declare class BankReceiptsCollection {
|
|
2904
|
+
private readonly client;
|
|
2905
|
+
constructor(client: runtime.Client);
|
|
2906
|
+
/**
|
|
2907
|
+
* GetBankReceipt through the project-scoped bank transfer API.
|
|
2908
|
+
*
|
|
2909
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/bank_receipts/*}` · permission `billing:bank_receipts:read` · effect `read`
|
|
2910
|
+
*
|
|
2911
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `ETAG_MISMATCH`, `UNAVAILABLE`.
|
|
2912
|
+
*/
|
|
2913
|
+
get(request: GetBankReceiptRequest): Promise<BankReceipt>;
|
|
2914
|
+
/**
|
|
2915
|
+
* Lists incoming bank evidence, including receipts held for review.
|
|
2916
|
+
*
|
|
2917
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/bank_receipts` · permission `billing:bank_receipts:read` · effect `read`
|
|
2918
|
+
*
|
|
2919
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
2920
|
+
*/
|
|
2921
|
+
list(request: ListBankReceiptsRequest): Promise<ListBankReceiptsResponse>;
|
|
2922
|
+
/** Every item of every page of `list`. */
|
|
2923
|
+
listAll(request: ListBankReceiptsRequest): AsyncGenerator<BankReceipt>;
|
|
2924
|
+
/**
|
|
2925
|
+
* RecordBankReceipt through the project-scoped bank transfer API.
|
|
2926
|
+
*
|
|
2927
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/bank_receipts:record` · permission `billing:bank_receipts:write` · effect `write`
|
|
2928
|
+
*
|
|
2929
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `ETAG_MISMATCH`, `UNAVAILABLE`.
|
|
2930
|
+
*/
|
|
2931
|
+
record(request: RecordBankReceiptRequest): Promise<BankReceipt>;
|
|
2932
|
+
/**
|
|
2933
|
+
* ResolveBankReceipt through the project-scoped bank transfer API.
|
|
2934
|
+
*
|
|
2935
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/bank_receipts/*}:resolve` · permission `billing:bank_receipts:write` · effect `write`
|
|
2936
|
+
*
|
|
2937
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `INVALID_STATE`, `ETAG_MISMATCH`, `UNAVAILABLE`.
|
|
2938
|
+
*/
|
|
2939
|
+
resolve(request: ResolveBankReceiptRequest): Promise<BankReceipt>;
|
|
2940
|
+
/**
|
|
2941
|
+
* ReverseBankReceipt through the project-scoped bank transfer API.
|
|
2942
|
+
*
|
|
2943
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/bank_receipts/*}:reverse` · permission `billing:bank_receipts:write` · effect `write`
|
|
2944
|
+
*
|
|
2945
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `INVALID_STATE`, `ETAG_MISMATCH`, `UNAVAILABLE`.
|
|
2946
|
+
*/
|
|
2947
|
+
reverse(request: ReverseBankReceiptRequest): Promise<BankReceipt>;
|
|
2948
|
+
}
|
|
2651
2949
|
/** `processor_events` of Sylphx Money: Resource type `money.sylphx.com/ProcessorEvent`. */
|
|
2652
2950
|
export declare class ProcessorEventsCollection {
|
|
2653
2951
|
private readonly client;
|
|
@@ -3018,6 +3316,38 @@ export declare class EntitlementGrantsCollection {
|
|
|
3018
3316
|
*/
|
|
3019
3317
|
create(request: CreateEntitlementGrantRequest): Promise<EntitlementGrant>;
|
|
3020
3318
|
}
|
|
3319
|
+
/** `test_clocks` of Sylphx Money: Resource type `money.sylphx.com/TestClock`. */
|
|
3320
|
+
export declare class TestClocksCollection {
|
|
3321
|
+
private readonly client;
|
|
3322
|
+
constructor(client: runtime.Client);
|
|
3323
|
+
/**
|
|
3324
|
+
* Creates a test-only Stripe simulation before the subject's first checkout.
|
|
3325
|
+
* No catalogue, payment, subscription, or entitlement is changed.
|
|
3326
|
+
*
|
|
3327
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/test_clocks` · permission `billing:write` · effect `write`
|
|
3328
|
+
*
|
|
3329
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_ALREADY_EXISTS`, `UNAVAILABLE`.
|
|
3330
|
+
*/
|
|
3331
|
+
create(request: CreateTestClockRequest): Promise<TestClock>;
|
|
3332
|
+
/**
|
|
3333
|
+
* Reads the owned test clock back from Stripe. Live keys are refused.
|
|
3334
|
+
*
|
|
3335
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/test_clocks/*}` · permission `billing:read` · effect `read`
|
|
3336
|
+
*
|
|
3337
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_STATE`, `RESOURCE_NOT_FOUND`, `UNAVAILABLE`.
|
|
3338
|
+
*/
|
|
3339
|
+
get(request: GetTestClockRequest): Promise<TestClock>;
|
|
3340
|
+
/**
|
|
3341
|
+
* Advances Stripe time, never entitlements. Stripe processes asynchronously;
|
|
3342
|
+
* poll GetTestClock until ready, then observe the genuine webhook's effects.
|
|
3343
|
+
* Time only moves forward, within Stripe's subscription-interval bound.
|
|
3344
|
+
*
|
|
3345
|
+
* `POST /v1/{name=orgs/*\/projects/*\/envs/*\/test_clocks/*}:advance` · permission `billing:write` · effect `write`
|
|
3346
|
+
*
|
|
3347
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `INVALID_STATE`, `RESOURCE_NOT_FOUND`, `UNAVAILABLE`.
|
|
3348
|
+
*/
|
|
3349
|
+
advance(request: AdvanceTestClockRequest): Promise<TestClock>;
|
|
3350
|
+
}
|
|
3021
3351
|
/** `checkout_sessions` of Sylphx Money: Resource type `money.sylphx.com/CheckoutSession`. */
|
|
3022
3352
|
export declare class CheckoutSessionsCollection {
|
|
3023
3353
|
private readonly client;
|