reach-api-sdk 1.0.227 → 1.0.229
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/README.md +49 -7
- package/dist/reach-sdk.d.ts +180 -6
- package/dist/reach-sdk.js +40 -2
- package/package.json +5 -1
- package/scripts/sync-swagger.mjs +33 -0
- package/src/definition/swagger.yaml +257 -1
- package/src/index.ts +3 -0
- package/src/models/Attendee.ts +4 -0
- package/src/models/AttendeePatch.ts +5 -0
- package/src/models/AttendeePost.ts +22 -0
- package/src/models/DatabaseState.ts +4 -0
- package/src/models/TenantSetting.ts +17 -0
- package/src/models/Wallet.ts +10 -0
- package/src/models/WalletCreditPeriod.ts +59 -0
- package/src/models/WalletCreditPeriodReassessPost.ts +22 -0
- package/src/models/WalletCreditPeriodStatus.ts +12 -0
- package/src/services/AttendeesService.ts +30 -0
- package/src/services/WalletsService.ts +35 -0
|
@@ -3745,6 +3745,11 @@ paths:
|
|
|
3745
3745
|
description: Gets or sets the queryable attendee last name.
|
|
3746
3746
|
schema:
|
|
3747
3747
|
type: string
|
|
3748
|
+
- name: ExternalReference
|
|
3749
|
+
in: query
|
|
3750
|
+
description: Gets or sets the queryable attendee external reference.
|
|
3751
|
+
schema:
|
|
3752
|
+
type: string
|
|
3748
3753
|
- name: PageNumber
|
|
3749
3754
|
in: query
|
|
3750
3755
|
description: Gets or sets the page number for paged queries.
|
|
@@ -4060,6 +4065,11 @@ paths:
|
|
|
4060
4065
|
description: Gets or sets the queryable attendee last name.
|
|
4061
4066
|
schema:
|
|
4062
4067
|
type: string
|
|
4068
|
+
- name: ExternalReference
|
|
4069
|
+
in: query
|
|
4070
|
+
description: Gets or sets the queryable attendee external reference.
|
|
4071
|
+
schema:
|
|
4072
|
+
type: string
|
|
4063
4073
|
- name: PageNumber
|
|
4064
4074
|
in: query
|
|
4065
4075
|
description: Gets or sets the page number for paged queries.
|
|
@@ -4197,6 +4207,11 @@ paths:
|
|
|
4197
4207
|
description: Gets or sets the queryable attendee last name.
|
|
4198
4208
|
schema:
|
|
4199
4209
|
type: string
|
|
4210
|
+
- name: ExternalReference
|
|
4211
|
+
in: query
|
|
4212
|
+
description: Gets or sets the queryable attendee external reference.
|
|
4213
|
+
schema:
|
|
4214
|
+
type: string
|
|
4200
4215
|
- name: PageNumber
|
|
4201
4216
|
in: query
|
|
4202
4217
|
description: Gets or sets the page number for paged queries.
|
|
@@ -4337,6 +4352,11 @@ paths:
|
|
|
4337
4352
|
description: Gets or sets the queryable attendee last name.
|
|
4338
4353
|
schema:
|
|
4339
4354
|
type: string
|
|
4355
|
+
- name: ExternalReference
|
|
4356
|
+
in: query
|
|
4357
|
+
description: Gets or sets the queryable attendee external reference.
|
|
4358
|
+
schema:
|
|
4359
|
+
type: string
|
|
4340
4360
|
- name: PageNumber
|
|
4341
4361
|
in: query
|
|
4342
4362
|
description: Gets or sets the page number for paged queries.
|
|
@@ -4480,6 +4500,11 @@ paths:
|
|
|
4480
4500
|
description: Gets or sets the queryable attendee last name.
|
|
4481
4501
|
schema:
|
|
4482
4502
|
type: string
|
|
4503
|
+
- name: ExternalReference
|
|
4504
|
+
in: query
|
|
4505
|
+
description: Gets or sets the queryable attendee external reference.
|
|
4506
|
+
schema:
|
|
4507
|
+
type: string
|
|
4483
4508
|
- name: PageNumber
|
|
4484
4509
|
in: query
|
|
4485
4510
|
description: Gets or sets the page number for paged queries.
|
|
@@ -154639,6 +154664,81 @@ paths:
|
|
|
154639
154664
|
text/json:
|
|
154640
154665
|
schema:
|
|
154641
154666
|
$ref: '#/components/schemas/ValidationResultModel'
|
|
154667
|
+
'/api/wallets/{id}/credit-periods/reassess':
|
|
154668
|
+
post:
|
|
154669
|
+
tags:
|
|
154670
|
+
- Wallets
|
|
154671
|
+
summary: Reassesses the active credit period for a wallet and sets balance to the new allocation.
|
|
154672
|
+
operationId: ReassessCreditPeriod
|
|
154673
|
+
parameters:
|
|
154674
|
+
- name: id
|
|
154675
|
+
in: path
|
|
154676
|
+
description: The wallet id.
|
|
154677
|
+
required: true
|
|
154678
|
+
schema:
|
|
154679
|
+
type: string
|
|
154680
|
+
format: uuid
|
|
154681
|
+
requestBody:
|
|
154682
|
+
description: The reassessment request.
|
|
154683
|
+
content:
|
|
154684
|
+
application/json:
|
|
154685
|
+
schema:
|
|
154686
|
+
$ref: '#/components/schemas/WalletCreditPeriodReassessPost'
|
|
154687
|
+
text/json:
|
|
154688
|
+
schema:
|
|
154689
|
+
$ref: '#/components/schemas/WalletCreditPeriodReassessPost'
|
|
154690
|
+
application/*+json:
|
|
154691
|
+
schema:
|
|
154692
|
+
$ref: '#/components/schemas/WalletCreditPeriodReassessPost'
|
|
154693
|
+
responses:
|
|
154694
|
+
'200':
|
|
154695
|
+
description: OK
|
|
154696
|
+
content:
|
|
154697
|
+
text/plain:
|
|
154698
|
+
schema:
|
|
154699
|
+
$ref: '#/components/schemas/Wallet'
|
|
154700
|
+
application/json:
|
|
154701
|
+
schema:
|
|
154702
|
+
$ref: '#/components/schemas/Wallet'
|
|
154703
|
+
text/json:
|
|
154704
|
+
schema:
|
|
154705
|
+
$ref: '#/components/schemas/Wallet'
|
|
154706
|
+
'400':
|
|
154707
|
+
description: Bad Request
|
|
154708
|
+
content:
|
|
154709
|
+
text/plain:
|
|
154710
|
+
schema:
|
|
154711
|
+
$ref: '#/components/schemas/ReachError'
|
|
154712
|
+
application/json:
|
|
154713
|
+
schema:
|
|
154714
|
+
$ref: '#/components/schemas/ReachError'
|
|
154715
|
+
text/json:
|
|
154716
|
+
schema:
|
|
154717
|
+
$ref: '#/components/schemas/ReachError'
|
|
154718
|
+
'500':
|
|
154719
|
+
description: Internal Server Error
|
|
154720
|
+
content:
|
|
154721
|
+
text/plain:
|
|
154722
|
+
schema:
|
|
154723
|
+
$ref: '#/components/schemas/ReachError'
|
|
154724
|
+
application/json:
|
|
154725
|
+
schema:
|
|
154726
|
+
$ref: '#/components/schemas/ReachError'
|
|
154727
|
+
text/json:
|
|
154728
|
+
schema:
|
|
154729
|
+
$ref: '#/components/schemas/ReachError'
|
|
154730
|
+
'422':
|
|
154731
|
+
description: Unprocessable Content
|
|
154732
|
+
content:
|
|
154733
|
+
text/plain:
|
|
154734
|
+
schema:
|
|
154735
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
154736
|
+
application/json:
|
|
154737
|
+
schema:
|
|
154738
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
154739
|
+
text/json:
|
|
154740
|
+
schema:
|
|
154741
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
154642
154742
|
'/api/wallets/{id}/transactions':
|
|
154643
154743
|
get:
|
|
154644
154744
|
tags:
|
|
@@ -157854,6 +157954,10 @@ components:
|
|
|
157854
157954
|
minLength: 1
|
|
157855
157955
|
type: string
|
|
157856
157956
|
description: Gets or sets the last name.
|
|
157957
|
+
externalReference:
|
|
157958
|
+
type: string
|
|
157959
|
+
description: Gets or sets the tenant-scoped external reference for integration with external systems.
|
|
157960
|
+
nullable: true
|
|
157857
157961
|
nameAbbreviation:
|
|
157858
157962
|
minLength: 1
|
|
157859
157963
|
type: string
|
|
@@ -157911,6 +158015,10 @@ components:
|
|
|
157911
158015
|
description: "Gets or sets the attendee date of birth.\r\nWhen a linked `end_user_identity` exists, first name, last name, and date of birth\r\npatch fields are applied to that record as well as to the attendee row where applicable."
|
|
157912
158016
|
format: date-time
|
|
157913
158017
|
nullable: true
|
|
158018
|
+
externalReference:
|
|
158019
|
+
type: string
|
|
158020
|
+
description: "Gets or sets the tenant-scoped external reference for integration with external systems.\r\nOnly applicable when enable_attendee_external_reference is enabled for the tenant."
|
|
158021
|
+
nullable: true
|
|
157914
158022
|
additionalProperties: false
|
|
157915
158023
|
description: Post model for attendee updates.
|
|
157916
158024
|
AttendeePost:
|
|
@@ -157939,14 +158047,37 @@ components:
|
|
|
157939
158047
|
format: uuid
|
|
157940
158048
|
initialWalletBalance:
|
|
157941
158049
|
type: number
|
|
157942
|
-
description: "Gets or sets the initial wallet balance for the attendee.\r\nThis is only applicable when wallet tracking level is set to Attendee.\r\nWhen wallet tracking level is Attendee, a wallet is always created for the attendee.\r\nIf InitialWalletBalance is provided and greater than 0, the wallet will be topped up with this amount.\r\nIf not provided or set to 0, the wallet will be created with a balance of 0."
|
|
158050
|
+
description: "Gets or sets the initial wallet balance for the attendee.\r\nThis is only applicable when wallet tracking level is set to Attendee.\r\nWhen wallet tracking level is Attendee, a wallet is always created for the attendee.\r\nIf InitialWalletBalance is provided and greater than 0, the wallet will be topped up with this amount.\r\nIf not provided or set to 0, the wallet will be created with a balance of 0.\r\nIgnored when enable_wallet_credit_periods is enabled; use credit period fields instead."
|
|
157943
158051
|
format: double
|
|
157944
158052
|
nullable: true
|
|
158053
|
+
creditPeriodStartDate:
|
|
158054
|
+
type: string
|
|
158055
|
+
description: Gets or sets the credit period start date. Required when wallet credit periods are enabled.
|
|
158056
|
+
format: date-time
|
|
158057
|
+
nullable: true
|
|
158058
|
+
creditPeriodEndDate:
|
|
158059
|
+
type: string
|
|
158060
|
+
description: Gets or sets the credit period end date. Required when wallet credit periods are enabled.
|
|
158061
|
+
format: date-time
|
|
158062
|
+
nullable: true
|
|
158063
|
+
creditAllocation:
|
|
158064
|
+
type: number
|
|
158065
|
+
description: Gets or sets the credit allocation for the initial period. Required when wallet credit periods are enabled.
|
|
158066
|
+
format: double
|
|
158067
|
+
nullable: true
|
|
158068
|
+
creditPeriodAutoRenew:
|
|
158069
|
+
type: boolean
|
|
158070
|
+
description: Gets or sets a value indicating whether the credit period auto-renews. Defaults to true when not specified.
|
|
158071
|
+
nullable: true
|
|
157945
158072
|
dateOfBirth:
|
|
157946
158073
|
type: string
|
|
157947
158074
|
description: "Gets or sets the attendee date of birth.\r\nThis is used to resolve or create the linked end_user_identity record for person-level identity tracking."
|
|
157948
158075
|
format: date-time
|
|
157949
158076
|
nullable: true
|
|
158077
|
+
externalReference:
|
|
158078
|
+
type: string
|
|
158079
|
+
description: "Gets or sets the tenant-scoped external reference for integration with external systems.\r\nOnly applicable when enable_attendee_external_reference is enabled for the tenant."
|
|
158080
|
+
nullable: true
|
|
157950
158081
|
additionalProperties: false
|
|
157951
158082
|
description: Post model for attendee inserts.
|
|
157952
158083
|
AttendeeWalletDeductionPreview:
|
|
@@ -161192,6 +161323,7 @@ components:
|
|
|
161192
161323
|
- paidOpportunitiesExist
|
|
161193
161324
|
- providersExist
|
|
161194
161325
|
- scheduledSessionsExist
|
|
161326
|
+
- sellableItemsExist
|
|
161195
161327
|
- sessionsExist
|
|
161196
161328
|
- slotsExist
|
|
161197
161329
|
- storefrontTouched
|
|
@@ -161268,6 +161400,10 @@ components:
|
|
|
161268
161400
|
type: boolean
|
|
161269
161401
|
description: Gets or sets a value indicating whether facilities database records exist.
|
|
161270
161402
|
default: false
|
|
161403
|
+
sellableItemsExist:
|
|
161404
|
+
type: boolean
|
|
161405
|
+
description: Gets or sets a value indicating whether sellable item (product) database records exist.
|
|
161406
|
+
default: false
|
|
161271
161407
|
scheduledSessionsExist:
|
|
161272
161408
|
type: boolean
|
|
161273
161409
|
description: Gets or sets a value indicating whether scheduled session database records exist.
|
|
@@ -173872,6 +174008,10 @@ components:
|
|
|
173872
174008
|
type: boolean
|
|
173873
174009
|
description: "Gets or sets a value indicating whether customers are only allowed to use wallet transactions (no card payments).\r\nWhen enabled, prices will be displayed as 'credits' rather than currency."
|
|
173874
174010
|
default: false
|
|
174011
|
+
enableWalletCreditPeriods:
|
|
174012
|
+
type: boolean
|
|
174013
|
+
description: "Gets or sets a value indicating whether wallet credit periods are enabled for the tenant.\r\nWhen enabled, attendee wallets require an active credit period for bookings and allocation management."
|
|
174014
|
+
default: false
|
|
173875
174015
|
customerLoginRequiresPreprovision:
|
|
173876
174016
|
type: boolean
|
|
173877
174017
|
description: "Gets or sets a value indicating whether customer portal WorkOS login is restricted to pre-provisioned customers only.\r\nWhen true, the authenticated email must match a live customer row (email or display_email) for this tenant."
|
|
@@ -173884,6 +174024,18 @@ components:
|
|
|
173884
174024
|
type: boolean
|
|
173885
174025
|
description: "Gets or sets a value indicating whether WorkOS customer-portal auth is enabled for this tenant.\r\nWhen false (default), storefronts should hide WorkOS sign-in; use for phased rollout per tenant."
|
|
173886
174026
|
default: false
|
|
174027
|
+
enableAttendeeExternalReference:
|
|
174028
|
+
type: boolean
|
|
174029
|
+
description: Gets or sets a value indicating whether attendee external references are enabled for the tenant.
|
|
174030
|
+
default: false
|
|
174031
|
+
requireAttendeeExternalReference:
|
|
174032
|
+
type: boolean
|
|
174033
|
+
description: Gets or sets a value indicating whether external_reference is required when creating attendees.
|
|
174034
|
+
default: false
|
|
174035
|
+
attendeeExternalReferenceLabel:
|
|
174036
|
+
type: string
|
|
174037
|
+
description: Gets or sets the label shown for the attendee external reference field in partner UI.
|
|
174038
|
+
nullable: true
|
|
173887
174039
|
orderNumber:
|
|
173888
174040
|
type: string
|
|
173889
174041
|
description: Gets the next order number in the sequence.
|
|
@@ -176723,10 +176875,23 @@ components:
|
|
|
176723
176875
|
type: string
|
|
176724
176876
|
description: Gets or sets the wallet currency.
|
|
176725
176877
|
nullable: true
|
|
176878
|
+
currentCreditPeriodId:
|
|
176879
|
+
type: string
|
|
176880
|
+
description: Gets or sets the current active credit period id when wallet credit periods are enabled.
|
|
176881
|
+
format: uuid
|
|
176882
|
+
nullable: true
|
|
176883
|
+
cycleEndDate:
|
|
176884
|
+
type: string
|
|
176885
|
+
description: Gets the period end date for the current credit period. Used by partner platform wallet UI.
|
|
176886
|
+
format: date-time
|
|
176887
|
+
nullable: true
|
|
176888
|
+
readOnly: true
|
|
176726
176889
|
customer:
|
|
176727
176890
|
$ref: '#/components/schemas/Customer'
|
|
176728
176891
|
attendee:
|
|
176729
176892
|
$ref: '#/components/schemas/Attendee'
|
|
176893
|
+
currentCreditPeriod:
|
|
176894
|
+
$ref: '#/components/schemas/WalletCreditPeriod'
|
|
176730
176895
|
transactions:
|
|
176731
176896
|
type: array
|
|
176732
176897
|
items:
|
|
@@ -176735,6 +176900,97 @@ components:
|
|
|
176735
176900
|
nullable: true
|
|
176736
176901
|
additionalProperties: false
|
|
176737
176902
|
description: Represents a wallet within the Reach application.
|
|
176903
|
+
WalletCreditPeriod:
|
|
176904
|
+
required:
|
|
176905
|
+
- autoRenew
|
|
176906
|
+
- creditAllocation
|
|
176907
|
+
- dateCreated
|
|
176908
|
+
- dateModified
|
|
176909
|
+
- isLive
|
|
176910
|
+
- periodEndDate
|
|
176911
|
+
- periodStartDate
|
|
176912
|
+
- status
|
|
176913
|
+
- tenantId
|
|
176914
|
+
- walletId
|
|
176915
|
+
type: object
|
|
176916
|
+
properties:
|
|
176917
|
+
id:
|
|
176918
|
+
type: string
|
|
176919
|
+
description: Gets or sets the entities Id.
|
|
176920
|
+
format: uuid
|
|
176921
|
+
tenantId:
|
|
176922
|
+
type: string
|
|
176923
|
+
description: Gets or sets the tenant Id.
|
|
176924
|
+
format: uuid
|
|
176925
|
+
dateCreated:
|
|
176926
|
+
type: string
|
|
176927
|
+
description: Gets or sets the created date of this entity.
|
|
176928
|
+
format: date-time
|
|
176929
|
+
dateModified:
|
|
176930
|
+
type: string
|
|
176931
|
+
description: Gets or sets the last modified date of this entity.
|
|
176932
|
+
format: date-time
|
|
176933
|
+
modifiedById:
|
|
176934
|
+
type: string
|
|
176935
|
+
description: Gets or sets the modified by Id.
|
|
176936
|
+
format: uuid
|
|
176937
|
+
nullable: true
|
|
176938
|
+
isLive:
|
|
176939
|
+
type: boolean
|
|
176940
|
+
description: Gets or sets a value indicating whether the record is live and available for use within the application.
|
|
176941
|
+
default: false
|
|
176942
|
+
walletId:
|
|
176943
|
+
type: string
|
|
176944
|
+
description: Gets or sets the wallet id.
|
|
176945
|
+
format: uuid
|
|
176946
|
+
periodStartDate:
|
|
176947
|
+
type: string
|
|
176948
|
+
description: Gets or sets the first day credits are usable (inclusive).
|
|
176949
|
+
format: date-time
|
|
176950
|
+
periodEndDate:
|
|
176951
|
+
type: string
|
|
176952
|
+
description: Gets or sets the last day credits are usable (inclusive).
|
|
176953
|
+
format: date-time
|
|
176954
|
+
creditAllocation:
|
|
176955
|
+
type: number
|
|
176956
|
+
description: Gets or sets the credit award amount for this period.
|
|
176957
|
+
format: double
|
|
176958
|
+
autoRenew:
|
|
176959
|
+
type: boolean
|
|
176960
|
+
description: Gets or sets a value indicating whether this period should auto-renew when it ends.
|
|
176961
|
+
default: false
|
|
176962
|
+
status:
|
|
176963
|
+
$ref: '#/components/schemas/WalletCreditPeriodStatus'
|
|
176964
|
+
wallet:
|
|
176965
|
+
$ref: '#/components/schemas/Wallet'
|
|
176966
|
+
additionalProperties: false
|
|
176967
|
+
description: Represents a credit entitlement window for a wallet.
|
|
176968
|
+
WalletCreditPeriodReassessPost:
|
|
176969
|
+
required:
|
|
176970
|
+
- creditAllocation
|
|
176971
|
+
type: object
|
|
176972
|
+
properties:
|
|
176973
|
+
creditAllocation:
|
|
176974
|
+
type: number
|
|
176975
|
+
description: Gets or sets the new credit allocation. Wallet balance is set to this amount immediately.
|
|
176976
|
+
format: double
|
|
176977
|
+
periodEndDate:
|
|
176978
|
+
type: string
|
|
176979
|
+
description: Gets or sets an optional updated period end date.
|
|
176980
|
+
format: date-time
|
|
176981
|
+
nullable: true
|
|
176982
|
+
autoRenew:
|
|
176983
|
+
type: boolean
|
|
176984
|
+
description: Gets or sets an optional auto-renew flag.
|
|
176985
|
+
nullable: true
|
|
176986
|
+
additionalProperties: false
|
|
176987
|
+
description: Request body for mid-cycle credit reassessment.
|
|
176988
|
+
WalletCreditPeriodStatus:
|
|
176989
|
+
enum:
|
|
176990
|
+
- Active
|
|
176991
|
+
- Closed
|
|
176992
|
+
type: string
|
|
176993
|
+
description: Controls the wallet credit period status.
|
|
176738
176994
|
WalletDeductionPreview:
|
|
176739
176995
|
type: object
|
|
176740
176996
|
properties:
|
package/src/index.ts
CHANGED
|
@@ -530,6 +530,9 @@ export type { WaitlistOpportunityReportPage } from './models/WaitlistOpportunity
|
|
|
530
530
|
export type { WaitlistOpportunityReportPatch } from './models/WaitlistOpportunityReportPatch';
|
|
531
531
|
export type { WaitlistOpportunityReportPost } from './models/WaitlistOpportunityReportPost';
|
|
532
532
|
export type { Wallet } from './models/Wallet';
|
|
533
|
+
export type { WalletCreditPeriod } from './models/WalletCreditPeriod';
|
|
534
|
+
export type { WalletCreditPeriodReassessPost } from './models/WalletCreditPeriodReassessPost';
|
|
535
|
+
export { WalletCreditPeriodStatus } from './models/WalletCreditPeriodStatus';
|
|
533
536
|
export type { WalletDeductionPreview } from './models/WalletDeductionPreview';
|
|
534
537
|
export type { WalletPage } from './models/WalletPage';
|
|
535
538
|
export type { WalletPatch } from './models/WalletPatch';
|
package/src/models/Attendee.ts
CHANGED
|
@@ -50,6 +50,10 @@ export type Attendee = {
|
|
|
50
50
|
* Gets or sets the last name.
|
|
51
51
|
*/
|
|
52
52
|
lastName: string;
|
|
53
|
+
/**
|
|
54
|
+
* Gets or sets the tenant-scoped external reference for integration with external systems.
|
|
55
|
+
*/
|
|
56
|
+
externalReference?: string | null;
|
|
53
57
|
/**
|
|
54
58
|
* Gets the attendees abbreviated name.
|
|
55
59
|
*/
|
|
@@ -29,4 +29,9 @@ export type AttendeePatch = {
|
|
|
29
29
|
* patch fields are applied to that record as well as to the attendee row where applicable.
|
|
30
30
|
*/
|
|
31
31
|
dateOfBirth?: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Gets or sets the tenant-scoped external reference for integration with external systems.
|
|
34
|
+
* Only applicable when enable_attendee_external_reference is enabled for the tenant.
|
|
35
|
+
*/
|
|
36
|
+
externalReference?: string | null;
|
|
32
37
|
};
|
|
@@ -29,11 +29,33 @@ export type AttendeePost = {
|
|
|
29
29
|
* When wallet tracking level is Attendee, a wallet is always created for the attendee.
|
|
30
30
|
* If InitialWalletBalance is provided and greater than 0, the wallet will be topped up with this amount.
|
|
31
31
|
* If not provided or set to 0, the wallet will be created with a balance of 0.
|
|
32
|
+
* Ignored when enable_wallet_credit_periods is enabled; use credit period fields instead.
|
|
32
33
|
*/
|
|
33
34
|
initialWalletBalance?: number | null;
|
|
35
|
+
/**
|
|
36
|
+
* Gets or sets the credit period start date. Required when wallet credit periods are enabled.
|
|
37
|
+
*/
|
|
38
|
+
creditPeriodStartDate?: string | null;
|
|
39
|
+
/**
|
|
40
|
+
* Gets or sets the credit period end date. Required when wallet credit periods are enabled.
|
|
41
|
+
*/
|
|
42
|
+
creditPeriodEndDate?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Gets or sets the credit allocation for the initial period. Required when wallet credit periods are enabled.
|
|
45
|
+
*/
|
|
46
|
+
creditAllocation?: number | null;
|
|
47
|
+
/**
|
|
48
|
+
* Gets or sets a value indicating whether the credit period auto-renews. Defaults to true when not specified.
|
|
49
|
+
*/
|
|
50
|
+
creditPeriodAutoRenew?: boolean | null;
|
|
34
51
|
/**
|
|
35
52
|
* Gets or sets the attendee date of birth.
|
|
36
53
|
* This is used to resolve or create the linked end_user_identity record for person-level identity tracking.
|
|
37
54
|
*/
|
|
38
55
|
dateOfBirth?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Gets or sets the tenant-scoped external reference for integration with external systems.
|
|
58
|
+
* Only applicable when enable_attendee_external_reference is enabled for the tenant.
|
|
59
|
+
*/
|
|
60
|
+
externalReference?: string | null;
|
|
39
61
|
};
|
|
@@ -73,6 +73,10 @@ export type DatabaseState = {
|
|
|
73
73
|
* Gets or sets a value indicating whether facilities database records exist.
|
|
74
74
|
*/
|
|
75
75
|
facilitiesExist: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Gets or sets a value indicating whether sellable item (product) database records exist.
|
|
78
|
+
*/
|
|
79
|
+
sellableItemsExist: boolean;
|
|
76
80
|
/**
|
|
77
81
|
* Gets or sets a value indicating whether scheduled session database records exist.
|
|
78
82
|
*/
|
|
@@ -63,6 +63,11 @@ export type TenantSetting = {
|
|
|
63
63
|
* When enabled, prices will be displayed as 'credits' rather than currency.
|
|
64
64
|
*/
|
|
65
65
|
walletOnlyPayments?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Gets or sets a value indicating whether wallet credit periods are enabled for the tenant.
|
|
68
|
+
* When enabled, attendee wallets require an active credit period for bookings and allocation management.
|
|
69
|
+
*/
|
|
70
|
+
enableWalletCreditPeriods?: boolean;
|
|
66
71
|
/**
|
|
67
72
|
* Gets or sets a value indicating whether customer portal WorkOS login is restricted to pre-provisioned customers only.
|
|
68
73
|
* When true, the authenticated email must match a live customer row (email or display_email) for this tenant.
|
|
@@ -78,6 +83,18 @@ export type TenantSetting = {
|
|
|
78
83
|
* When false (default), storefronts should hide WorkOS sign-in; use for phased rollout per tenant.
|
|
79
84
|
*/
|
|
80
85
|
customerPortalWorkOsLoginEnabled?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Gets or sets a value indicating whether attendee external references are enabled for the tenant.
|
|
88
|
+
*/
|
|
89
|
+
enableAttendeeExternalReference?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Gets or sets a value indicating whether external_reference is required when creating attendees.
|
|
92
|
+
*/
|
|
93
|
+
requireAttendeeExternalReference?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Gets or sets the label shown for the attendee external reference field in partner UI.
|
|
96
|
+
*/
|
|
97
|
+
attendeeExternalReferenceLabel?: string | null;
|
|
81
98
|
/**
|
|
82
99
|
* Gets the next order number in the sequence.
|
|
83
100
|
*/
|
package/src/models/Wallet.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import type { Attendee } from './Attendee';
|
|
7
7
|
import type { Customer } from './Customer';
|
|
8
|
+
import type { WalletCreditPeriod } from './WalletCreditPeriod';
|
|
8
9
|
import type { WalletTransaction } from './WalletTransaction';
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -51,8 +52,17 @@ export type Wallet = {
|
|
|
51
52
|
* Gets or sets the wallet currency.
|
|
52
53
|
*/
|
|
53
54
|
currency?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Gets or sets the current active credit period id when wallet credit periods are enabled.
|
|
57
|
+
*/
|
|
58
|
+
currentCreditPeriodId?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Gets the period end date for the current credit period. Used by partner platform wallet UI.
|
|
61
|
+
*/
|
|
62
|
+
readonly cycleEndDate?: string | null;
|
|
54
63
|
customer?: Customer;
|
|
55
64
|
attendee?: Attendee;
|
|
65
|
+
currentCreditPeriod?: WalletCreditPeriod;
|
|
56
66
|
/**
|
|
57
67
|
* Gets or sets the wallet transactions.
|
|
58
68
|
*/
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
import type { Wallet } from './Wallet';
|
|
7
|
+
import type { WalletCreditPeriodStatus } from './WalletCreditPeriodStatus';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Represents a credit entitlement window for a wallet.
|
|
11
|
+
*/
|
|
12
|
+
export type WalletCreditPeriod = {
|
|
13
|
+
/**
|
|
14
|
+
* Gets or sets the entities Id.
|
|
15
|
+
*/
|
|
16
|
+
id?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Gets or sets the tenant Id.
|
|
19
|
+
*/
|
|
20
|
+
tenantId: string;
|
|
21
|
+
/**
|
|
22
|
+
* Gets or sets the created date of this entity.
|
|
23
|
+
*/
|
|
24
|
+
dateCreated: string;
|
|
25
|
+
/**
|
|
26
|
+
* Gets or sets the last modified date of this entity.
|
|
27
|
+
*/
|
|
28
|
+
dateModified: string;
|
|
29
|
+
/**
|
|
30
|
+
* Gets or sets the modified by Id.
|
|
31
|
+
*/
|
|
32
|
+
modifiedById?: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Gets or sets a value indicating whether the record is live and available for use within the application.
|
|
35
|
+
*/
|
|
36
|
+
isLive: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Gets or sets the wallet id.
|
|
39
|
+
*/
|
|
40
|
+
walletId: string;
|
|
41
|
+
/**
|
|
42
|
+
* Gets or sets the first day credits are usable (inclusive).
|
|
43
|
+
*/
|
|
44
|
+
periodStartDate: string;
|
|
45
|
+
/**
|
|
46
|
+
* Gets or sets the last day credits are usable (inclusive).
|
|
47
|
+
*/
|
|
48
|
+
periodEndDate: string;
|
|
49
|
+
/**
|
|
50
|
+
* Gets or sets the credit award amount for this period.
|
|
51
|
+
*/
|
|
52
|
+
creditAllocation: number;
|
|
53
|
+
/**
|
|
54
|
+
* Gets or sets a value indicating whether this period should auto-renew when it ends.
|
|
55
|
+
*/
|
|
56
|
+
autoRenew: boolean;
|
|
57
|
+
status: WalletCreditPeriodStatus;
|
|
58
|
+
wallet?: Wallet;
|
|
59
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Request body for mid-cycle credit reassessment.
|
|
8
|
+
*/
|
|
9
|
+
export type WalletCreditPeriodReassessPost = {
|
|
10
|
+
/**
|
|
11
|
+
* Gets or sets the new credit allocation. Wallet balance is set to this amount immediately.
|
|
12
|
+
*/
|
|
13
|
+
creditAllocation: number;
|
|
14
|
+
/**
|
|
15
|
+
* Gets or sets an optional updated period end date.
|
|
16
|
+
*/
|
|
17
|
+
periodEndDate?: string | null;
|
|
18
|
+
/**
|
|
19
|
+
* Gets or sets an optional auto-renew flag.
|
|
20
|
+
*/
|
|
21
|
+
autoRenew?: boolean | null;
|
|
22
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do no edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Controls the wallet credit period status.
|
|
8
|
+
*/
|
|
9
|
+
export enum WalletCreditPeriodStatus {
|
|
10
|
+
ACTIVE = 'Active',
|
|
11
|
+
CLOSED = 'Closed',
|
|
12
|
+
}
|