@gewis/sudosos-client 0.0.0-develop.b7949f1 → 0.0.0-develop.b8bab32

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.
Files changed (3) hide show
  1. package/dist/api.d.ts +634 -0
  2. package/dist/api.js +751 -2
  3. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -1902,6 +1902,37 @@ export interface CreateInvoiceRequest {
1902
1902
  */
1903
1903
  'amount': DineroObjectRequest;
1904
1904
  }
1905
+ /**
1906
+ *
1907
+ * @export
1908
+ * @interface CreatePaymentRequestRequest
1909
+ */
1910
+ export interface CreatePaymentRequestRequest {
1911
+ /**
1912
+ * The ID of the user whose balance will be credited on payment.
1913
+ * @type {number}
1914
+ * @memberof CreatePaymentRequestRequest
1915
+ */
1916
+ 'forId': number;
1917
+ /**
1918
+ *
1919
+ * @type {DineroObjectRequest}
1920
+ * @memberof CreatePaymentRequestRequest
1921
+ */
1922
+ 'amount': DineroObjectRequest;
1923
+ /**
1924
+ * ISO-8601 timestamp after which the request stops accepting payments.
1925
+ * @type {string}
1926
+ * @memberof CreatePaymentRequestRequest
1927
+ */
1928
+ 'expiresAt': string;
1929
+ /**
1930
+ * Optional human-readable description (e.g. invoice reference).
1931
+ * @type {string}
1932
+ * @memberof CreatePaymentRequestRequest
1933
+ */
1934
+ 'description'?: string;
1935
+ }
1905
1936
  /**
1906
1937
  *
1907
1938
  * @export
@@ -3229,6 +3260,19 @@ export interface InvoiceUserResponse {
3229
3260
  */
3230
3261
  'automatic': boolean;
3231
3262
  }
3263
+ /**
3264
+ *
3265
+ * @export
3266
+ * @interface MarkFulfilledExternallyRequest
3267
+ */
3268
+ export interface MarkFulfilledExternallyRequest {
3269
+ /**
3270
+ * Why this request is being marked paid out-of-band (audit trail).
3271
+ * @type {string}
3272
+ * @memberof MarkFulfilledExternallyRequest
3273
+ */
3274
+ 'reason': string;
3275
+ }
3232
3276
  /**
3233
3277
  *
3234
3278
  * @export
@@ -11730,6 +11774,492 @@ export declare class InvoicesApi extends BaseAPI {
11730
11774
  */
11731
11775
  updateInvoice(requestParameters: InvoicesApiUpdateInvoiceRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BaseInvoiceResponse, any, {}>>;
11732
11776
  }
11777
+ /**
11778
+ * PaymentRequestsApi - axios parameter creator
11779
+ * @export
11780
+ */
11781
+ export declare const PaymentRequestsApiAxiosParamCreator: (configuration?: Configuration) => {
11782
+ /**
11783
+ *
11784
+ * @summary Cancel a PENDING PaymentRequest.
11785
+ * @param {string} id UUID v4 of the payment request.
11786
+ * @param {*} [options] Override http request option.
11787
+ * @throws {RequiredError}
11788
+ */
11789
+ cancelPaymentRequest: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11790
+ /**
11791
+ *
11792
+ * @summary Create a new PaymentRequest.
11793
+ * @param {CreatePaymentRequestRequest} createPaymentRequestRequest The request to create
11794
+ * @param {*} [options] Override http request option.
11795
+ * @throws {RequiredError}
11796
+ */
11797
+ createPaymentRequest: (createPaymentRequestRequest: CreatePaymentRequestRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11798
+ /**
11799
+ *
11800
+ * @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
11801
+ * @param {number} [forId] Filter by beneficiary user id.
11802
+ * @param {number} [createdById] Filter by creator user id.
11803
+ * @param {GetAllPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
11804
+ * @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
11805
+ * @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
11806
+ * @param {number} [take] How many rows the endpoint should return
11807
+ * @param {number} [skip] How many rows to skip (for pagination)
11808
+ * @param {*} [options] Override http request option.
11809
+ * @throws {RequiredError}
11810
+ */
11811
+ getAllPaymentRequests: (forId?: number, createdById?: number, status?: GetAllPaymentRequestsStatusEnum, fromDate?: string, tillDate?: string, take?: number, skip?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11812
+ /**
11813
+ *
11814
+ * @summary Fetch a single PaymentRequest by id.
11815
+ * @param {string} id UUID v4 of the payment request.
11816
+ * @param {*} [options] Override http request option.
11817
+ * @throws {RequiredError}
11818
+ */
11819
+ getSinglePaymentRequest: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11820
+ /**
11821
+ *
11822
+ * @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
11823
+ * @param {string} id UUID v4 of the payment request.
11824
+ * @param {MarkFulfilledExternallyRequest} markFulfilledExternallyRequest The audit reason
11825
+ * @param {*} [options] Override http request option.
11826
+ * @throws {RequiredError}
11827
+ */
11828
+ markPaymentRequestFulfilledExternally: (id: string, markFulfilledExternallyRequest: MarkFulfilledExternallyRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11829
+ /**
11830
+ *
11831
+ * @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
11832
+ * @param {string} id UUID v4 of the payment request.
11833
+ * @param {*} [options] Override http request option.
11834
+ * @throws {RequiredError}
11835
+ */
11836
+ startPaymentRequestAuthenticated: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11837
+ };
11838
+ /**
11839
+ * PaymentRequestsApi - functional programming interface
11840
+ * @export
11841
+ */
11842
+ export declare const PaymentRequestsApiFp: (configuration?: Configuration) => {
11843
+ /**
11844
+ *
11845
+ * @summary Cancel a PENDING PaymentRequest.
11846
+ * @param {string} id UUID v4 of the payment request.
11847
+ * @param {*} [options] Override http request option.
11848
+ * @throws {RequiredError}
11849
+ */
11850
+ cancelPaymentRequest(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BasePaymentRequestResponse>>;
11851
+ /**
11852
+ *
11853
+ * @summary Create a new PaymentRequest.
11854
+ * @param {CreatePaymentRequestRequest} createPaymentRequestRequest The request to create
11855
+ * @param {*} [options] Override http request option.
11856
+ * @throws {RequiredError}
11857
+ */
11858
+ createPaymentRequest(createPaymentRequestRequest: CreatePaymentRequestRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BasePaymentRequestResponse>>;
11859
+ /**
11860
+ *
11861
+ * @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
11862
+ * @param {number} [forId] Filter by beneficiary user id.
11863
+ * @param {number} [createdById] Filter by creator user id.
11864
+ * @param {GetAllPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
11865
+ * @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
11866
+ * @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
11867
+ * @param {number} [take] How many rows the endpoint should return
11868
+ * @param {number} [skip] How many rows to skip (for pagination)
11869
+ * @param {*} [options] Override http request option.
11870
+ * @throws {RequiredError}
11871
+ */
11872
+ getAllPaymentRequests(forId?: number, createdById?: number, status?: GetAllPaymentRequestsStatusEnum, fromDate?: string, tillDate?: string, take?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedBasePaymentRequestResponse>>;
11873
+ /**
11874
+ *
11875
+ * @summary Fetch a single PaymentRequest by id.
11876
+ * @param {string} id UUID v4 of the payment request.
11877
+ * @param {*} [options] Override http request option.
11878
+ * @throws {RequiredError}
11879
+ */
11880
+ getSinglePaymentRequest(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BasePaymentRequestResponse>>;
11881
+ /**
11882
+ *
11883
+ * @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
11884
+ * @param {string} id UUID v4 of the payment request.
11885
+ * @param {MarkFulfilledExternallyRequest} markFulfilledExternallyRequest The audit reason
11886
+ * @param {*} [options] Override http request option.
11887
+ * @throws {RequiredError}
11888
+ */
11889
+ markPaymentRequestFulfilledExternally(id: string, markFulfilledExternallyRequest: MarkFulfilledExternallyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BasePaymentRequestResponse>>;
11890
+ /**
11891
+ *
11892
+ * @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
11893
+ * @param {string} id UUID v4 of the payment request.
11894
+ * @param {*} [options] Override http request option.
11895
+ * @throws {RequiredError}
11896
+ */
11897
+ startPaymentRequestAuthenticated(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentRequestStartResponse>>;
11898
+ };
11899
+ /**
11900
+ * PaymentRequestsApi - factory interface
11901
+ * @export
11902
+ */
11903
+ export declare const PaymentRequestsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
11904
+ /**
11905
+ *
11906
+ * @summary Cancel a PENDING PaymentRequest.
11907
+ * @param {PaymentRequestsApiCancelPaymentRequestRequest} requestParameters Request parameters.
11908
+ * @param {*} [options] Override http request option.
11909
+ * @throws {RequiredError}
11910
+ */
11911
+ cancelPaymentRequest(requestParameters: PaymentRequestsApiCancelPaymentRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise<BasePaymentRequestResponse>;
11912
+ /**
11913
+ *
11914
+ * @summary Create a new PaymentRequest.
11915
+ * @param {PaymentRequestsApiCreatePaymentRequestRequest} requestParameters Request parameters.
11916
+ * @param {*} [options] Override http request option.
11917
+ * @throws {RequiredError}
11918
+ */
11919
+ createPaymentRequest(requestParameters: PaymentRequestsApiCreatePaymentRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise<BasePaymentRequestResponse>;
11920
+ /**
11921
+ *
11922
+ * @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
11923
+ * @param {PaymentRequestsApiGetAllPaymentRequestsRequest} requestParameters Request parameters.
11924
+ * @param {*} [options] Override http request option.
11925
+ * @throws {RequiredError}
11926
+ */
11927
+ getAllPaymentRequests(requestParameters?: PaymentRequestsApiGetAllPaymentRequestsRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedBasePaymentRequestResponse>;
11928
+ /**
11929
+ *
11930
+ * @summary Fetch a single PaymentRequest by id.
11931
+ * @param {PaymentRequestsApiGetSinglePaymentRequestRequest} requestParameters Request parameters.
11932
+ * @param {*} [options] Override http request option.
11933
+ * @throws {RequiredError}
11934
+ */
11935
+ getSinglePaymentRequest(requestParameters: PaymentRequestsApiGetSinglePaymentRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise<BasePaymentRequestResponse>;
11936
+ /**
11937
+ *
11938
+ * @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
11939
+ * @param {PaymentRequestsApiMarkPaymentRequestFulfilledExternallyRequest} requestParameters Request parameters.
11940
+ * @param {*} [options] Override http request option.
11941
+ * @throws {RequiredError}
11942
+ */
11943
+ markPaymentRequestFulfilledExternally(requestParameters: PaymentRequestsApiMarkPaymentRequestFulfilledExternallyRequest, options?: RawAxiosRequestConfig): AxiosPromise<BasePaymentRequestResponse>;
11944
+ /**
11945
+ *
11946
+ * @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
11947
+ * @param {PaymentRequestsApiStartPaymentRequestAuthenticatedRequest} requestParameters Request parameters.
11948
+ * @param {*} [options] Override http request option.
11949
+ * @throws {RequiredError}
11950
+ */
11951
+ startPaymentRequestAuthenticated(requestParameters: PaymentRequestsApiStartPaymentRequestAuthenticatedRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentRequestStartResponse>;
11952
+ };
11953
+ /**
11954
+ * Request parameters for cancelPaymentRequest operation in PaymentRequestsApi.
11955
+ * @export
11956
+ * @interface PaymentRequestsApiCancelPaymentRequestRequest
11957
+ */
11958
+ export interface PaymentRequestsApiCancelPaymentRequestRequest {
11959
+ /**
11960
+ * UUID v4 of the payment request.
11961
+ * @type {string}
11962
+ * @memberof PaymentRequestsApiCancelPaymentRequest
11963
+ */
11964
+ readonly id: string;
11965
+ }
11966
+ /**
11967
+ * Request parameters for createPaymentRequest operation in PaymentRequestsApi.
11968
+ * @export
11969
+ * @interface PaymentRequestsApiCreatePaymentRequestRequest
11970
+ */
11971
+ export interface PaymentRequestsApiCreatePaymentRequestRequest {
11972
+ /**
11973
+ * The request to create
11974
+ * @type {CreatePaymentRequestRequest}
11975
+ * @memberof PaymentRequestsApiCreatePaymentRequest
11976
+ */
11977
+ readonly createPaymentRequestRequest: CreatePaymentRequestRequest;
11978
+ }
11979
+ /**
11980
+ * Request parameters for getAllPaymentRequests operation in PaymentRequestsApi.
11981
+ * @export
11982
+ * @interface PaymentRequestsApiGetAllPaymentRequestsRequest
11983
+ */
11984
+ export interface PaymentRequestsApiGetAllPaymentRequestsRequest {
11985
+ /**
11986
+ * Filter by beneficiary user id.
11987
+ * @type {number}
11988
+ * @memberof PaymentRequestsApiGetAllPaymentRequests
11989
+ */
11990
+ readonly forId?: number;
11991
+ /**
11992
+ * Filter by creator user id.
11993
+ * @type {number}
11994
+ * @memberof PaymentRequestsApiGetAllPaymentRequests
11995
+ */
11996
+ readonly createdById?: number;
11997
+ /**
11998
+ * Comma-separated list of derived statuses.
11999
+ * @type {'PENDING' | 'PAID' | 'EXPIRED' | 'CANCELLED'}
12000
+ * @memberof PaymentRequestsApiGetAllPaymentRequests
12001
+ */
12002
+ readonly status?: GetAllPaymentRequestsStatusEnum;
12003
+ /**
12004
+ * Filter requests created on or after this ISO date (inclusive).
12005
+ * @type {string}
12006
+ * @memberof PaymentRequestsApiGetAllPaymentRequests
12007
+ */
12008
+ readonly fromDate?: string;
12009
+ /**
12010
+ * Filter requests created strictly before this ISO date (exclusive).
12011
+ * @type {string}
12012
+ * @memberof PaymentRequestsApiGetAllPaymentRequests
12013
+ */
12014
+ readonly tillDate?: string;
12015
+ /**
12016
+ * How many rows the endpoint should return
12017
+ * @type {number}
12018
+ * @memberof PaymentRequestsApiGetAllPaymentRequests
12019
+ */
12020
+ readonly take?: number;
12021
+ /**
12022
+ * How many rows to skip (for pagination)
12023
+ * @type {number}
12024
+ * @memberof PaymentRequestsApiGetAllPaymentRequests
12025
+ */
12026
+ readonly skip?: number;
12027
+ }
12028
+ /**
12029
+ * Request parameters for getSinglePaymentRequest operation in PaymentRequestsApi.
12030
+ * @export
12031
+ * @interface PaymentRequestsApiGetSinglePaymentRequestRequest
12032
+ */
12033
+ export interface PaymentRequestsApiGetSinglePaymentRequestRequest {
12034
+ /**
12035
+ * UUID v4 of the payment request.
12036
+ * @type {string}
12037
+ * @memberof PaymentRequestsApiGetSinglePaymentRequest
12038
+ */
12039
+ readonly id: string;
12040
+ }
12041
+ /**
12042
+ * Request parameters for markPaymentRequestFulfilledExternally operation in PaymentRequestsApi.
12043
+ * @export
12044
+ * @interface PaymentRequestsApiMarkPaymentRequestFulfilledExternallyRequest
12045
+ */
12046
+ export interface PaymentRequestsApiMarkPaymentRequestFulfilledExternallyRequest {
12047
+ /**
12048
+ * UUID v4 of the payment request.
12049
+ * @type {string}
12050
+ * @memberof PaymentRequestsApiMarkPaymentRequestFulfilledExternally
12051
+ */
12052
+ readonly id: string;
12053
+ /**
12054
+ * The audit reason
12055
+ * @type {MarkFulfilledExternallyRequest}
12056
+ * @memberof PaymentRequestsApiMarkPaymentRequestFulfilledExternally
12057
+ */
12058
+ readonly markFulfilledExternallyRequest: MarkFulfilledExternallyRequest;
12059
+ }
12060
+ /**
12061
+ * Request parameters for startPaymentRequestAuthenticated operation in PaymentRequestsApi.
12062
+ * @export
12063
+ * @interface PaymentRequestsApiStartPaymentRequestAuthenticatedRequest
12064
+ */
12065
+ export interface PaymentRequestsApiStartPaymentRequestAuthenticatedRequest {
12066
+ /**
12067
+ * UUID v4 of the payment request.
12068
+ * @type {string}
12069
+ * @memberof PaymentRequestsApiStartPaymentRequestAuthenticated
12070
+ */
12071
+ readonly id: string;
12072
+ }
12073
+ /**
12074
+ * PaymentRequestsApi - object-oriented interface
12075
+ * @export
12076
+ * @class PaymentRequestsApi
12077
+ * @extends {BaseAPI}
12078
+ */
12079
+ export declare class PaymentRequestsApi extends BaseAPI {
12080
+ /**
12081
+ *
12082
+ * @summary Cancel a PENDING PaymentRequest.
12083
+ * @param {PaymentRequestsApiCancelPaymentRequestRequest} requestParameters Request parameters.
12084
+ * @param {*} [options] Override http request option.
12085
+ * @throws {RequiredError}
12086
+ * @memberof PaymentRequestsApi
12087
+ */
12088
+ cancelPaymentRequest(requestParameters: PaymentRequestsApiCancelPaymentRequestRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BasePaymentRequestResponse, any, {}>>;
12089
+ /**
12090
+ *
12091
+ * @summary Create a new PaymentRequest.
12092
+ * @param {PaymentRequestsApiCreatePaymentRequestRequest} requestParameters Request parameters.
12093
+ * @param {*} [options] Override http request option.
12094
+ * @throws {RequiredError}
12095
+ * @memberof PaymentRequestsApi
12096
+ */
12097
+ createPaymentRequest(requestParameters: PaymentRequestsApiCreatePaymentRequestRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BasePaymentRequestResponse, any, {}>>;
12098
+ /**
12099
+ *
12100
+ * @summary List PaymentRequests (paginated, with filtering by beneficiary, creator, and status)
12101
+ * @param {PaymentRequestsApiGetAllPaymentRequestsRequest} requestParameters Request parameters.
12102
+ * @param {*} [options] Override http request option.
12103
+ * @throws {RequiredError}
12104
+ * @memberof PaymentRequestsApi
12105
+ */
12106
+ getAllPaymentRequests(requestParameters?: PaymentRequestsApiGetAllPaymentRequestsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedBasePaymentRequestResponse, any, {}>>;
12107
+ /**
12108
+ *
12109
+ * @summary Fetch a single PaymentRequest by id.
12110
+ * @param {PaymentRequestsApiGetSinglePaymentRequestRequest} requestParameters Request parameters.
12111
+ * @param {*} [options] Override http request option.
12112
+ * @throws {RequiredError}
12113
+ * @memberof PaymentRequestsApi
12114
+ */
12115
+ getSinglePaymentRequest(requestParameters: PaymentRequestsApiGetSinglePaymentRequestRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BasePaymentRequestResponse, any, {}>>;
12116
+ /**
12117
+ *
12118
+ * @summary Admin escape hatch: mark a PaymentRequest paid out-of-band (e.g. bank transfer). Creates a void->user credit Transfer manually.
12119
+ * @param {PaymentRequestsApiMarkPaymentRequestFulfilledExternallyRequest} requestParameters Request parameters.
12120
+ * @param {*} [options] Override http request option.
12121
+ * @throws {RequiredError}
12122
+ * @memberof PaymentRequestsApi
12123
+ */
12124
+ markPaymentRequestFulfilledExternally(requestParameters: PaymentRequestsApiMarkPaymentRequestFulfilledExternallyRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<BasePaymentRequestResponse, any, {}>>;
12125
+ /**
12126
+ *
12127
+ * @summary Start a Stripe payment session for the given PaymentRequest while authenticated.
12128
+ * @param {PaymentRequestsApiStartPaymentRequestAuthenticatedRequest} requestParameters Request parameters.
12129
+ * @param {*} [options] Override http request option.
12130
+ * @throws {RequiredError}
12131
+ * @memberof PaymentRequestsApi
12132
+ */
12133
+ startPaymentRequestAuthenticated(requestParameters: PaymentRequestsApiStartPaymentRequestAuthenticatedRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentRequestStartResponse, any, {}>>;
12134
+ }
12135
+ /**
12136
+ * @export
12137
+ */
12138
+ export declare const GetAllPaymentRequestsStatusEnum: {
12139
+ readonly Pending: "PENDING";
12140
+ readonly Paid: "PAID";
12141
+ readonly Expired: "EXPIRED";
12142
+ readonly Cancelled: "CANCELLED";
12143
+ };
12144
+ export type GetAllPaymentRequestsStatusEnum = typeof GetAllPaymentRequestsStatusEnum[keyof typeof GetAllPaymentRequestsStatusEnum];
12145
+ /**
12146
+ * PaymentRequestsPublicApi - axios parameter creator
12147
+ * @export
12148
+ */
12149
+ export declare const PaymentRequestsPublicApiAxiosParamCreator: (configuration?: Configuration) => {
12150
+ /**
12151
+ *
12152
+ * @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
12153
+ * @param {string} id UUID v4 of the payment request.
12154
+ * @param {*} [options] Override http request option.
12155
+ * @throws {RequiredError}
12156
+ */
12157
+ getPublicPaymentRequest: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12158
+ /**
12159
+ *
12160
+ * @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
12161
+ * @param {string} id UUID v4 of the payment request.
12162
+ * @param {*} [options] Override http request option.
12163
+ * @throws {RequiredError}
12164
+ */
12165
+ startPaymentRequestPublic: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12166
+ };
12167
+ /**
12168
+ * PaymentRequestsPublicApi - functional programming interface
12169
+ * @export
12170
+ */
12171
+ export declare const PaymentRequestsPublicApiFp: (configuration?: Configuration) => {
12172
+ /**
12173
+ *
12174
+ * @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
12175
+ * @param {string} id UUID v4 of the payment request.
12176
+ * @param {*} [options] Override http request option.
12177
+ * @throws {RequiredError}
12178
+ */
12179
+ getPublicPaymentRequest(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublicPaymentRequestResponse>>;
12180
+ /**
12181
+ *
12182
+ * @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
12183
+ * @param {string} id UUID v4 of the payment request.
12184
+ * @param {*} [options] Override http request option.
12185
+ * @throws {RequiredError}
12186
+ */
12187
+ startPaymentRequestPublic(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentRequestStartResponse>>;
12188
+ };
12189
+ /**
12190
+ * PaymentRequestsPublicApi - factory interface
12191
+ * @export
12192
+ */
12193
+ export declare const PaymentRequestsPublicApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
12194
+ /**
12195
+ *
12196
+ * @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
12197
+ * @param {PaymentRequestsPublicApiGetPublicPaymentRequestRequest} requestParameters Request parameters.
12198
+ * @param {*} [options] Override http request option.
12199
+ * @throws {RequiredError}
12200
+ */
12201
+ getPublicPaymentRequest(requestParameters: PaymentRequestsPublicApiGetPublicPaymentRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise<PublicPaymentRequestResponse>;
12202
+ /**
12203
+ *
12204
+ * @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
12205
+ * @param {PaymentRequestsPublicApiStartPaymentRequestPublicRequest} requestParameters Request parameters.
12206
+ * @param {*} [options] Override http request option.
12207
+ * @throws {RequiredError}
12208
+ */
12209
+ startPaymentRequestPublic(requestParameters: PaymentRequestsPublicApiStartPaymentRequestPublicRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentRequestStartResponse>;
12210
+ };
12211
+ /**
12212
+ * Request parameters for getPublicPaymentRequest operation in PaymentRequestsPublicApi.
12213
+ * @export
12214
+ * @interface PaymentRequestsPublicApiGetPublicPaymentRequestRequest
12215
+ */
12216
+ export interface PaymentRequestsPublicApiGetPublicPaymentRequestRequest {
12217
+ /**
12218
+ * UUID v4 of the payment request.
12219
+ * @type {string}
12220
+ * @memberof PaymentRequestsPublicApiGetPublicPaymentRequest
12221
+ */
12222
+ readonly id: string;
12223
+ }
12224
+ /**
12225
+ * Request parameters for startPaymentRequestPublic operation in PaymentRequestsPublicApi.
12226
+ * @export
12227
+ * @interface PaymentRequestsPublicApiStartPaymentRequestPublicRequest
12228
+ */
12229
+ export interface PaymentRequestsPublicApiStartPaymentRequestPublicRequest {
12230
+ /**
12231
+ * UUID v4 of the payment request.
12232
+ * @type {string}
12233
+ * @memberof PaymentRequestsPublicApiStartPaymentRequestPublic
12234
+ */
12235
+ readonly id: string;
12236
+ }
12237
+ /**
12238
+ * PaymentRequestsPublicApi - object-oriented interface
12239
+ * @export
12240
+ * @class PaymentRequestsPublicApi
12241
+ * @extends {BaseAPI}
12242
+ */
12243
+ export declare class PaymentRequestsPublicApi extends BaseAPI {
12244
+ /**
12245
+ *
12246
+ * @summary Fetch a PaymentRequest via the public share link. Returns a trimmed response that omits internal audit fields.
12247
+ * @param {PaymentRequestsPublicApiGetPublicPaymentRequestRequest} requestParameters Request parameters.
12248
+ * @param {*} [options] Override http request option.
12249
+ * @throws {RequiredError}
12250
+ * @memberof PaymentRequestsPublicApi
12251
+ */
12252
+ getPublicPaymentRequest(requestParameters: PaymentRequestsPublicApiGetPublicPaymentRequestRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PublicPaymentRequestResponse, any, {}>>;
12253
+ /**
12254
+ *
12255
+ * @summary Start a Stripe payment session for the given PaymentRequest without authentication — the share link IS the credential.
12256
+ * @param {PaymentRequestsPublicApiStartPaymentRequestPublicRequest} requestParameters Request parameters.
12257
+ * @param {*} [options] Override http request option.
12258
+ * @throws {RequiredError}
12259
+ * @memberof PaymentRequestsPublicApi
12260
+ */
12261
+ startPaymentRequestPublic(requestParameters: PaymentRequestsPublicApiStartPaymentRequestPublicRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaymentRequestStartResponse, any, {}>>;
12262
+ }
11733
12263
  /**
11734
12264
  * PayoutRequestsApi - axios parameter creator
11735
12265
  * @export
@@ -15893,6 +16423,20 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
15893
16423
  * @throws {RequiredError}
15894
16424
  */
15895
16425
  getUsersFinancialMutations: (id: number, fromDate?: string, tillDate?: string, take?: number, skip?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
16426
+ /**
16427
+ *
16428
+ * @summary Get the PaymentRequests where the given user is the beneficiary. Regular users can hit this for their own id; admins can hit it for any user.
16429
+ * @param {number} id The id of the beneficiary user.
16430
+ * @param {number} [createdById] Filter by creator user id.
16431
+ * @param {GetUsersPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
16432
+ * @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
16433
+ * @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
16434
+ * @param {number} [take] How many rows the endpoint should return
16435
+ * @param {number} [skip] How many rows to skip (for pagination)
16436
+ * @param {*} [options] Override http request option.
16437
+ * @throws {RequiredError}
16438
+ */
16439
+ getUsersPaymentRequests: (id: number, createdById?: number, status?: GetUsersPaymentRequestsStatusEnum, fromDate?: string, tillDate?: string, take?: number, skip?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15896
16440
  /**
15897
16441
  *
15898
16442
  * @summary Returns the user\'s Points of Sale
@@ -16255,6 +16799,20 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
16255
16799
  * @throws {RequiredError}
16256
16800
  */
16257
16801
  getUsersFinancialMutations(id: number, fromDate?: string, tillDate?: string, take?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedFinancialMutationResponse>>;
16802
+ /**
16803
+ *
16804
+ * @summary Get the PaymentRequests where the given user is the beneficiary. Regular users can hit this for their own id; admins can hit it for any user.
16805
+ * @param {number} id The id of the beneficiary user.
16806
+ * @param {number} [createdById] Filter by creator user id.
16807
+ * @param {GetUsersPaymentRequestsStatusEnum} [status] Comma-separated list of derived statuses.
16808
+ * @param {string} [fromDate] Filter requests created on or after this ISO date (inclusive).
16809
+ * @param {string} [tillDate] Filter requests created strictly before this ISO date (exclusive).
16810
+ * @param {number} [take] How many rows the endpoint should return
16811
+ * @param {number} [skip] How many rows to skip (for pagination)
16812
+ * @param {*} [options] Override http request option.
16813
+ * @throws {RequiredError}
16814
+ */
16815
+ getUsersPaymentRequests(id: number, createdById?: number, status?: GetUsersPaymentRequestsStatusEnum, fromDate?: string, tillDate?: string, take?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedBasePaymentRequestResponse>>;
16258
16816
  /**
16259
16817
  *
16260
16818
  * @summary Returns the user\'s Points of Sale
@@ -16599,6 +17157,14 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
16599
17157
  * @throws {RequiredError}
16600
17158
  */
16601
17159
  getUsersFinancialMutations(requestParameters: UsersApiGetUsersFinancialMutationsRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedFinancialMutationResponse>;
17160
+ /**
17161
+ *
17162
+ * @summary Get the PaymentRequests where the given user is the beneficiary. Regular users can hit this for their own id; admins can hit it for any user.
17163
+ * @param {UsersApiGetUsersPaymentRequestsRequest} requestParameters Request parameters.
17164
+ * @param {*} [options] Override http request option.
17165
+ * @throws {RequiredError}
17166
+ */
17167
+ getUsersPaymentRequests(requestParameters: UsersApiGetUsersPaymentRequestsRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaginatedBasePaymentRequestResponse>;
16602
17168
  /**
16603
17169
  *
16604
17170
  * @summary Returns the user\'s Points of Sale
@@ -17090,6 +17656,55 @@ export interface UsersApiGetUsersFinancialMutationsRequest {
17090
17656
  */
17091
17657
  readonly skip?: number;
17092
17658
  }
17659
+ /**
17660
+ * Request parameters for getUsersPaymentRequests operation in UsersApi.
17661
+ * @export
17662
+ * @interface UsersApiGetUsersPaymentRequestsRequest
17663
+ */
17664
+ export interface UsersApiGetUsersPaymentRequestsRequest {
17665
+ /**
17666
+ * The id of the beneficiary user.
17667
+ * @type {number}
17668
+ * @memberof UsersApiGetUsersPaymentRequests
17669
+ */
17670
+ readonly id: number;
17671
+ /**
17672
+ * Filter by creator user id.
17673
+ * @type {number}
17674
+ * @memberof UsersApiGetUsersPaymentRequests
17675
+ */
17676
+ readonly createdById?: number;
17677
+ /**
17678
+ * Comma-separated list of derived statuses.
17679
+ * @type {'PENDING' | 'PAID' | 'EXPIRED' | 'CANCELLED'}
17680
+ * @memberof UsersApiGetUsersPaymentRequests
17681
+ */
17682
+ readonly status?: GetUsersPaymentRequestsStatusEnum;
17683
+ /**
17684
+ * Filter requests created on or after this ISO date (inclusive).
17685
+ * @type {string}
17686
+ * @memberof UsersApiGetUsersPaymentRequests
17687
+ */
17688
+ readonly fromDate?: string;
17689
+ /**
17690
+ * Filter requests created strictly before this ISO date (exclusive).
17691
+ * @type {string}
17692
+ * @memberof UsersApiGetUsersPaymentRequests
17693
+ */
17694
+ readonly tillDate?: string;
17695
+ /**
17696
+ * How many rows the endpoint should return
17697
+ * @type {number}
17698
+ * @memberof UsersApiGetUsersPaymentRequests
17699
+ */
17700
+ readonly take?: number;
17701
+ /**
17702
+ * How many rows to skip (for pagination)
17703
+ * @type {number}
17704
+ * @memberof UsersApiGetUsersPaymentRequests
17705
+ */
17706
+ readonly skip?: number;
17707
+ }
17093
17708
  /**
17094
17709
  * Request parameters for getUsersPointsOfSale operation in UsersApi.
17095
17710
  * @export
@@ -17756,6 +18371,15 @@ export declare class UsersApi extends BaseAPI {
17756
18371
  * @memberof UsersApi
17757
18372
  */
17758
18373
  getUsersFinancialMutations(requestParameters: UsersApiGetUsersFinancialMutationsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedFinancialMutationResponse, any, {}>>;
18374
+ /**
18375
+ *
18376
+ * @summary Get the PaymentRequests where the given user is the beneficiary. Regular users can hit this for their own id; admins can hit it for any user.
18377
+ * @param {UsersApiGetUsersPaymentRequestsRequest} requestParameters Request parameters.
18378
+ * @param {*} [options] Override http request option.
18379
+ * @throws {RequiredError}
18380
+ * @memberof UsersApi
18381
+ */
18382
+ getUsersPaymentRequests(requestParameters: UsersApiGetUsersPaymentRequestsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedBasePaymentRequestResponse, any, {}>>;
17759
18383
  /**
17760
18384
  *
17761
18385
  * @summary Returns the user\'s Points of Sale
@@ -17951,6 +18575,16 @@ export declare const GetAllUsersTypeEnum: {
17951
18575
  readonly AutomaticInvoice: "AUTOMATIC_INVOICE";
17952
18576
  };
17953
18577
  export type GetAllUsersTypeEnum = typeof GetAllUsersTypeEnum[keyof typeof GetAllUsersTypeEnum];
18578
+ /**
18579
+ * @export
18580
+ */
18581
+ export declare const GetUsersPaymentRequestsStatusEnum: {
18582
+ readonly Pending: "PENDING";
18583
+ readonly Paid: "PAID";
18584
+ readonly Expired: "EXPIRED";
18585
+ readonly Cancelled: "CANCELLED";
18586
+ };
18587
+ export type GetUsersPaymentRequestsStatusEnum = typeof GetUsersPaymentRequestsStatusEnum[keyof typeof GetUsersPaymentRequestsStatusEnum];
17954
18588
  /**
17955
18589
  * @export
17956
18590
  */