@vrplatform/api 1.3.1-stage.6285 → 1.3.1-stage.6295

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/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.3.1-stage.6285",
6
+ "version": "1.3.1-stage.6295",
7
7
  "description": "",
8
8
  "main": "build/main/index.js",
9
9
  "module": "build/module/index.js",
@@ -1142,7 +1142,7 @@ export interface paths {
1142
1142
  cookie?: never;
1143
1143
  };
1144
1144
  /**
1145
- * @description List contacts, including linked owner secondary-email search and embedded report filter options. Owner access is limited to directly owned contacts.
1145
+ * @description List contacts with masked ACH state, including hasInFlightPayment for requested or processing Ramp payments, linked owner secondary-email search, and embedded report filter options. Owner access is limited to directly owned contacts.
1146
1146
  *
1147
1147
  * Required scope: contacts:read
1148
1148
  */
@@ -1202,6 +1202,27 @@ export interface paths {
1202
1202
  patch?: never;
1203
1203
  trace?: never;
1204
1204
  };
1205
+ "/contacts/{contactId}/payouts": {
1206
+ parameters: {
1207
+ query?: never;
1208
+ header?: never;
1209
+ path?: never;
1210
+ cookie?: never;
1211
+ };
1212
+ /**
1213
+ * @description List the selected contact's active payout transactions newest first. Authenticated owners may request only contact IDs in their server-derived owner access; unauthorized contacts return an opaque not-found response. Property managers and owner-preview sessions may request a selected team contact. The response is an owner-facing projection with the latest provider-payment state, including requested payments, and excludes bank, reconciliation, journal, connection, and internal provider fields.
1214
+ *
1215
+ * Required scope: transactions:read
1216
+ */
1217
+ get: operations["getContactsByContactIdPayouts"];
1218
+ put?: never;
1219
+ post?: never;
1220
+ delete?: never;
1221
+ options?: never;
1222
+ head?: never;
1223
+ patch?: never;
1224
+ trace?: never;
1225
+ };
1205
1226
  "/contacts/{id}": {
1206
1227
  parameters: {
1207
1228
  query?: never;
@@ -1210,7 +1231,7 @@ export interface paths {
1210
1231
  cookie?: never;
1211
1232
  };
1212
1233
  /**
1213
- * @description Get contact by ID
1234
+ * @description Get a contact by ID with masked ACH state. hasInFlightPayment identifies requested or processing Ramp payments so clients can warn that bank changes affect future payments only.
1214
1235
  *
1215
1236
  * Required scope: contacts:read
1216
1237
  */
@@ -1264,7 +1285,7 @@ export interface paths {
1264
1285
  get?: never;
1265
1286
  put?: never;
1266
1287
  /**
1267
- * @description Send owner ACH details to the single eligible Ramp push-vendor flow for verification. This action requires ach-payment-methods:write rather than general contact write access. The server resolves the connection; clients do not select one. First use activates a flow that has never been configured, while an explicitly inactive flow remains unavailable. Raw routing and account numbers are write-only and are never stored by VRPlatform. The contact becomes ready only after Ramp confirms the account.
1288
+ * @description Send owner ACH details to the single eligible Ramp push-vendor flow for verification. This action requires ach-payment-methods:write rather than general contact write access. The server resolves the connection; clients do not select one. First use activates a flow that has never been configured, while an explicitly inactive flow remains unavailable. Raw routing and account numbers are write-only and are never stored by VRPlatform. The contact becomes ready only after Ramp confirms the account. Requested and processing payments remain bound to their scheduled destination, so an update affects future payments only.
1268
1289
  *
1269
1290
  * Required scope: ach-payment-methods:write
1270
1291
  */
@@ -28028,6 +28049,8 @@ export interface operations {
28028
28049
  last4: string | null;
28029
28050
  /** @enum {string} */
28030
28051
  status: "notConfigured" | "pending" | "ready" | "failed";
28052
+ /** @description True when a Ramp payment is requested or processing. Bank changes remain allowed and affect future payments only. */
28053
+ hasInFlightPayment: boolean;
28031
28054
  };
28032
28055
  };
28033
28056
  }[];
@@ -29167,6 +29190,311 @@ export interface operations {
29167
29190
  };
29168
29191
  };
29169
29192
  };
29193
+ getContactsByContactIdPayouts: {
29194
+ parameters: {
29195
+ query?: {
29196
+ limit?: number;
29197
+ page?: number;
29198
+ offset?: number;
29199
+ };
29200
+ header?: never;
29201
+ path: {
29202
+ contactId: string;
29203
+ };
29204
+ cookie?: never;
29205
+ };
29206
+ requestBody?: never;
29207
+ responses: {
29208
+ /** @description Successful response */
29209
+ 200: {
29210
+ headers: {
29211
+ [name: string]: unknown;
29212
+ };
29213
+ content: {
29214
+ "application/json": {
29215
+ data: {
29216
+ /** Format: uuid */
29217
+ id: string;
29218
+ uniqueRef: string | null;
29219
+ shortRef: string | null;
29220
+ date: string;
29221
+ description: string;
29222
+ /** @description Value in cents (100 = 1€) */
29223
+ amount: number;
29224
+ /** @description Currency in ISO 4217 format, will be converted to lowercase */
29225
+ currency: string;
29226
+ ownerStatement: {
29227
+ /** Format: uuid */
29228
+ id: string;
29229
+ uniqueRef: string | null;
29230
+ /**
29231
+ * Format: vrp-month
29232
+ * @description Month string in format `YYYY-MM`.
29233
+ * @example 2024-01
29234
+ */
29235
+ month: string;
29236
+ } | null;
29237
+ providerPayment: {
29238
+ /** Format: uuid */
29239
+ id: string;
29240
+ /** @constant */
29241
+ provider: "ramp";
29242
+ /** @enum {string} */
29243
+ status: "requested" | "processing" | "paid" | "failed" | "returned" | "canceled";
29244
+ failureReason: string | null;
29245
+ /**
29246
+ * Format: date-time
29247
+ * @description Timestamp string with date, time, milliseconds, and timezone.
29248
+ * @example 2024-01-15T12:30:00.000+00:00
29249
+ */
29250
+ createdAt: string;
29251
+ /**
29252
+ * Format: date-time
29253
+ * @description Timestamp string with date, time, milliseconds, and timezone.
29254
+ * @example 2024-01-15T12:30:00.000+00:00
29255
+ */
29256
+ updatedAt: string;
29257
+ } | null;
29258
+ }[];
29259
+ pagination: {
29260
+ /** @default 100 */
29261
+ limit: number;
29262
+ /** @default 1 */
29263
+ page: number;
29264
+ total: number;
29265
+ totalPage: number;
29266
+ nextPage?: number;
29267
+ };
29268
+ };
29269
+ };
29270
+ };
29271
+ /** @description Bad request */
29272
+ 400: {
29273
+ headers: {
29274
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
29275
+ "Retry-After"?: number;
29276
+ [name: string]: unknown;
29277
+ };
29278
+ content: {
29279
+ "application/json": {
29280
+ code: string;
29281
+ message: string;
29282
+ links?: {
29283
+ docs: string;
29284
+ schema: string;
29285
+ };
29286
+ issues?: {
29287
+ message: string;
29288
+ path?: (string | number)[];
29289
+ schema?: string;
29290
+ }[];
29291
+ retryable?: boolean;
29292
+ context?: unknown;
29293
+ };
29294
+ };
29295
+ };
29296
+ /** @description Unauthorized */
29297
+ 401: {
29298
+ headers: {
29299
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
29300
+ "Retry-After"?: number;
29301
+ [name: string]: unknown;
29302
+ };
29303
+ content: {
29304
+ "application/json": {
29305
+ code: string;
29306
+ message: string;
29307
+ links?: {
29308
+ docs: string;
29309
+ schema: string;
29310
+ };
29311
+ issues?: {
29312
+ message: string;
29313
+ path?: (string | number)[];
29314
+ schema?: string;
29315
+ }[];
29316
+ retryable?: boolean;
29317
+ context?: unknown;
29318
+ };
29319
+ };
29320
+ };
29321
+ /** @description Forbidden */
29322
+ 403: {
29323
+ headers: {
29324
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
29325
+ "Retry-After"?: number;
29326
+ [name: string]: unknown;
29327
+ };
29328
+ content: {
29329
+ "application/json": {
29330
+ code: string;
29331
+ message: string;
29332
+ links?: {
29333
+ docs: string;
29334
+ schema: string;
29335
+ };
29336
+ issues?: {
29337
+ message: string;
29338
+ path?: (string | number)[];
29339
+ schema?: string;
29340
+ }[];
29341
+ retryable?: boolean;
29342
+ context?: unknown;
29343
+ };
29344
+ };
29345
+ };
29346
+ /** @description Not found */
29347
+ 404: {
29348
+ headers: {
29349
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
29350
+ "Retry-After"?: number;
29351
+ [name: string]: unknown;
29352
+ };
29353
+ content: {
29354
+ "application/json": {
29355
+ code: string;
29356
+ message: string;
29357
+ links?: {
29358
+ docs: string;
29359
+ schema: string;
29360
+ };
29361
+ issues?: {
29362
+ message: string;
29363
+ path?: (string | number)[];
29364
+ schema?: string;
29365
+ }[];
29366
+ retryable?: boolean;
29367
+ context?: unknown;
29368
+ };
29369
+ };
29370
+ };
29371
+ /** @description Conflict */
29372
+ 409: {
29373
+ headers: {
29374
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
29375
+ "Retry-After"?: number;
29376
+ [name: string]: unknown;
29377
+ };
29378
+ content: {
29379
+ "application/json": {
29380
+ code: string;
29381
+ message: string;
29382
+ links?: {
29383
+ docs: string;
29384
+ schema: string;
29385
+ };
29386
+ issues?: {
29387
+ message: string;
29388
+ path?: (string | number)[];
29389
+ schema?: string;
29390
+ }[];
29391
+ retryable?: boolean;
29392
+ context?: unknown;
29393
+ };
29394
+ };
29395
+ };
29396
+ /** @description Gone */
29397
+ 410: {
29398
+ headers: {
29399
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
29400
+ "Retry-After"?: number;
29401
+ [name: string]: unknown;
29402
+ };
29403
+ content: {
29404
+ "application/json": {
29405
+ code: string;
29406
+ message: string;
29407
+ links?: {
29408
+ docs: string;
29409
+ schema: string;
29410
+ };
29411
+ issues?: {
29412
+ message: string;
29413
+ path?: (string | number)[];
29414
+ schema?: string;
29415
+ }[];
29416
+ retryable?: boolean;
29417
+ context?: unknown;
29418
+ };
29419
+ };
29420
+ };
29421
+ /** @description Unprocessable content */
29422
+ 422: {
29423
+ headers: {
29424
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
29425
+ "Retry-After"?: number;
29426
+ [name: string]: unknown;
29427
+ };
29428
+ content: {
29429
+ "application/json": {
29430
+ code: string;
29431
+ message: string;
29432
+ links?: {
29433
+ docs: string;
29434
+ schema: string;
29435
+ };
29436
+ issues?: {
29437
+ message: string;
29438
+ path?: (string | number)[];
29439
+ schema?: string;
29440
+ }[];
29441
+ retryable?: boolean;
29442
+ context?: unknown;
29443
+ };
29444
+ };
29445
+ };
29446
+ /** @description Internal server error */
29447
+ 500: {
29448
+ headers: {
29449
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
29450
+ "Retry-After"?: number;
29451
+ [name: string]: unknown;
29452
+ };
29453
+ content: {
29454
+ "application/json": {
29455
+ code: string;
29456
+ message: string;
29457
+ links?: {
29458
+ docs: string;
29459
+ schema: string;
29460
+ };
29461
+ issues?: {
29462
+ message: string;
29463
+ path?: (string | number)[];
29464
+ schema?: string;
29465
+ }[];
29466
+ retryable?: boolean;
29467
+ context?: unknown;
29468
+ };
29469
+ };
29470
+ };
29471
+ /** @description Service unavailable */
29472
+ 503: {
29473
+ headers: {
29474
+ /** @description Seconds to wait when retryable=true and the server supplies a delay. */
29475
+ "Retry-After"?: number;
29476
+ [name: string]: unknown;
29477
+ };
29478
+ content: {
29479
+ "application/json": {
29480
+ code: string;
29481
+ message: string;
29482
+ links?: {
29483
+ docs: string;
29484
+ schema: string;
29485
+ };
29486
+ issues?: {
29487
+ message: string;
29488
+ path?: (string | number)[];
29489
+ schema?: string;
29490
+ }[];
29491
+ retryable?: boolean;
29492
+ context?: unknown;
29493
+ };
29494
+ };
29495
+ };
29496
+ };
29497
+ };
29170
29498
  getContactsById: {
29171
29499
  parameters: {
29172
29500
  query?: never;
@@ -29255,6 +29583,8 @@ export interface operations {
29255
29583
  last4: string | null;
29256
29584
  /** @enum {string} */
29257
29585
  status: "notConfigured" | "pending" | "ready" | "failed";
29586
+ /** @description True when a Ramp payment is requested or processing. Bank changes remain allowed and affect future payments only. */
29587
+ hasInFlightPayment: boolean;
29258
29588
  };
29259
29589
  };
29260
29590
  };