reach-api-sdk 1.0.225 → 1.0.228
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 +159 -7
- package/dist/reach-sdk.js +42 -2
- package/package.json +5 -1
- package/scripts/sync-swagger.mjs +33 -0
- package/src/definition/swagger.yaml +238 -1
- package/src/index.ts +3 -0
- package/src/models/AttendeePost.ts +17 -0
- package/src/models/DatabaseState.ts +4 -0
- package/src/models/TenantSetting.ts +5 -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/UsersService.ts +36 -0
- package/src/services/WalletsService.ts +35 -0
|
@@ -139247,6 +139247,11 @@ paths:
|
|
|
139247
139247
|
description: Gets or sets the team member invite status for use in a query search.
|
|
139248
139248
|
schema:
|
|
139249
139249
|
$ref: '#/components/schemas/InviteStatus'
|
|
139250
|
+
- name: IsPlatformAccount
|
|
139251
|
+
in: query
|
|
139252
|
+
description: Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
|
|
139253
|
+
schema:
|
|
139254
|
+
type: boolean
|
|
139250
139255
|
- name: PageNumber
|
|
139251
139256
|
in: query
|
|
139252
139257
|
description: Gets or sets the page number for paged queries.
|
|
@@ -139909,6 +139914,11 @@ paths:
|
|
|
139909
139914
|
description: Gets or sets the team member invite status for use in a query search.
|
|
139910
139915
|
schema:
|
|
139911
139916
|
$ref: '#/components/schemas/InviteStatus'
|
|
139917
|
+
- name: IsPlatformAccount
|
|
139918
|
+
in: query
|
|
139919
|
+
description: Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
|
|
139920
|
+
schema:
|
|
139921
|
+
type: boolean
|
|
139912
139922
|
- name: PageNumber
|
|
139913
139923
|
in: query
|
|
139914
139924
|
description: Gets or sets the page number for paged queries.
|
|
@@ -140243,6 +140253,11 @@ paths:
|
|
|
140243
140253
|
description: Gets or sets the team member invite status for use in a query search.
|
|
140244
140254
|
schema:
|
|
140245
140255
|
$ref: '#/components/schemas/InviteStatus'
|
|
140256
|
+
- name: IsPlatformAccount
|
|
140257
|
+
in: query
|
|
140258
|
+
description: Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
|
|
140259
|
+
schema:
|
|
140260
|
+
type: boolean
|
|
140246
140261
|
- name: PageNumber
|
|
140247
140262
|
in: query
|
|
140248
140263
|
description: Gets or sets the page number for paged queries.
|
|
@@ -140399,6 +140414,11 @@ paths:
|
|
|
140399
140414
|
description: Gets or sets the team member invite status for use in a query search.
|
|
140400
140415
|
schema:
|
|
140401
140416
|
$ref: '#/components/schemas/InviteStatus'
|
|
140417
|
+
- name: IsPlatformAccount
|
|
140418
|
+
in: query
|
|
140419
|
+
description: Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
|
|
140420
|
+
schema:
|
|
140421
|
+
type: boolean
|
|
140402
140422
|
- name: PageNumber
|
|
140403
140423
|
in: query
|
|
140404
140424
|
description: Gets or sets the page number for paged queries.
|
|
@@ -140558,6 +140578,11 @@ paths:
|
|
|
140558
140578
|
description: Gets or sets the team member invite status for use in a query search.
|
|
140559
140579
|
schema:
|
|
140560
140580
|
$ref: '#/components/schemas/InviteStatus'
|
|
140581
|
+
- name: IsPlatformAccount
|
|
140582
|
+
in: query
|
|
140583
|
+
description: Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
|
|
140584
|
+
schema:
|
|
140585
|
+
type: boolean
|
|
140561
140586
|
- name: PageNumber
|
|
140562
140587
|
in: query
|
|
140563
140588
|
description: Gets or sets the page number for paged queries.
|
|
@@ -140720,6 +140745,11 @@ paths:
|
|
|
140720
140745
|
description: Gets or sets the team member invite status for use in a query search.
|
|
140721
140746
|
schema:
|
|
140722
140747
|
$ref: '#/components/schemas/InviteStatus'
|
|
140748
|
+
- name: IsPlatformAccount
|
|
140749
|
+
in: query
|
|
140750
|
+
description: Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
|
|
140751
|
+
schema:
|
|
140752
|
+
type: boolean
|
|
140723
140753
|
- name: PageNumber
|
|
140724
140754
|
in: query
|
|
140725
140755
|
description: Gets or sets the page number for paged queries.
|
|
@@ -154609,6 +154639,81 @@ paths:
|
|
|
154609
154639
|
text/json:
|
|
154610
154640
|
schema:
|
|
154611
154641
|
$ref: '#/components/schemas/ValidationResultModel'
|
|
154642
|
+
'/api/wallets/{id}/credit-periods/reassess':
|
|
154643
|
+
post:
|
|
154644
|
+
tags:
|
|
154645
|
+
- Wallets
|
|
154646
|
+
summary: Reassesses the active credit period for a wallet and sets balance to the new allocation.
|
|
154647
|
+
operationId: ReassessCreditPeriod
|
|
154648
|
+
parameters:
|
|
154649
|
+
- name: id
|
|
154650
|
+
in: path
|
|
154651
|
+
description: The wallet id.
|
|
154652
|
+
required: true
|
|
154653
|
+
schema:
|
|
154654
|
+
type: string
|
|
154655
|
+
format: uuid
|
|
154656
|
+
requestBody:
|
|
154657
|
+
description: The reassessment request.
|
|
154658
|
+
content:
|
|
154659
|
+
application/json:
|
|
154660
|
+
schema:
|
|
154661
|
+
$ref: '#/components/schemas/WalletCreditPeriodReassessPost'
|
|
154662
|
+
text/json:
|
|
154663
|
+
schema:
|
|
154664
|
+
$ref: '#/components/schemas/WalletCreditPeriodReassessPost'
|
|
154665
|
+
application/*+json:
|
|
154666
|
+
schema:
|
|
154667
|
+
$ref: '#/components/schemas/WalletCreditPeriodReassessPost'
|
|
154668
|
+
responses:
|
|
154669
|
+
'200':
|
|
154670
|
+
description: OK
|
|
154671
|
+
content:
|
|
154672
|
+
text/plain:
|
|
154673
|
+
schema:
|
|
154674
|
+
$ref: '#/components/schemas/Wallet'
|
|
154675
|
+
application/json:
|
|
154676
|
+
schema:
|
|
154677
|
+
$ref: '#/components/schemas/Wallet'
|
|
154678
|
+
text/json:
|
|
154679
|
+
schema:
|
|
154680
|
+
$ref: '#/components/schemas/Wallet'
|
|
154681
|
+
'400':
|
|
154682
|
+
description: Bad Request
|
|
154683
|
+
content:
|
|
154684
|
+
text/plain:
|
|
154685
|
+
schema:
|
|
154686
|
+
$ref: '#/components/schemas/ReachError'
|
|
154687
|
+
application/json:
|
|
154688
|
+
schema:
|
|
154689
|
+
$ref: '#/components/schemas/ReachError'
|
|
154690
|
+
text/json:
|
|
154691
|
+
schema:
|
|
154692
|
+
$ref: '#/components/schemas/ReachError'
|
|
154693
|
+
'500':
|
|
154694
|
+
description: Internal Server Error
|
|
154695
|
+
content:
|
|
154696
|
+
text/plain:
|
|
154697
|
+
schema:
|
|
154698
|
+
$ref: '#/components/schemas/ReachError'
|
|
154699
|
+
application/json:
|
|
154700
|
+
schema:
|
|
154701
|
+
$ref: '#/components/schemas/ReachError'
|
|
154702
|
+
text/json:
|
|
154703
|
+
schema:
|
|
154704
|
+
$ref: '#/components/schemas/ReachError'
|
|
154705
|
+
'422':
|
|
154706
|
+
description: Unprocessable Content
|
|
154707
|
+
content:
|
|
154708
|
+
text/plain:
|
|
154709
|
+
schema:
|
|
154710
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
154711
|
+
application/json:
|
|
154712
|
+
schema:
|
|
154713
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
154714
|
+
text/json:
|
|
154715
|
+
schema:
|
|
154716
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
154612
154717
|
'/api/wallets/{id}/transactions':
|
|
154613
154718
|
get:
|
|
154614
154719
|
tags:
|
|
@@ -157909,9 +158014,28 @@ components:
|
|
|
157909
158014
|
format: uuid
|
|
157910
158015
|
initialWalletBalance:
|
|
157911
158016
|
type: number
|
|
157912
|
-
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."
|
|
158017
|
+
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."
|
|
157913
158018
|
format: double
|
|
157914
158019
|
nullable: true
|
|
158020
|
+
creditPeriodStartDate:
|
|
158021
|
+
type: string
|
|
158022
|
+
description: Gets or sets the credit period start date. Required when wallet credit periods are enabled.
|
|
158023
|
+
format: date-time
|
|
158024
|
+
nullable: true
|
|
158025
|
+
creditPeriodEndDate:
|
|
158026
|
+
type: string
|
|
158027
|
+
description: Gets or sets the credit period end date. Required when wallet credit periods are enabled.
|
|
158028
|
+
format: date-time
|
|
158029
|
+
nullable: true
|
|
158030
|
+
creditAllocation:
|
|
158031
|
+
type: number
|
|
158032
|
+
description: Gets or sets the credit allocation for the initial period. Required when wallet credit periods are enabled.
|
|
158033
|
+
format: double
|
|
158034
|
+
nullable: true
|
|
158035
|
+
creditPeriodAutoRenew:
|
|
158036
|
+
type: boolean
|
|
158037
|
+
description: Gets or sets a value indicating whether the credit period auto-renews. Defaults to true when not specified.
|
|
158038
|
+
nullable: true
|
|
157915
158039
|
dateOfBirth:
|
|
157916
158040
|
type: string
|
|
157917
158041
|
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."
|
|
@@ -161162,6 +161286,7 @@ components:
|
|
|
161162
161286
|
- paidOpportunitiesExist
|
|
161163
161287
|
- providersExist
|
|
161164
161288
|
- scheduledSessionsExist
|
|
161289
|
+
- sellableItemsExist
|
|
161165
161290
|
- sessionsExist
|
|
161166
161291
|
- slotsExist
|
|
161167
161292
|
- storefrontTouched
|
|
@@ -161238,6 +161363,10 @@ components:
|
|
|
161238
161363
|
type: boolean
|
|
161239
161364
|
description: Gets or sets a value indicating whether facilities database records exist.
|
|
161240
161365
|
default: false
|
|
161366
|
+
sellableItemsExist:
|
|
161367
|
+
type: boolean
|
|
161368
|
+
description: Gets or sets a value indicating whether sellable item (product) database records exist.
|
|
161369
|
+
default: false
|
|
161241
161370
|
scheduledSessionsExist:
|
|
161242
161371
|
type: boolean
|
|
161243
161372
|
description: Gets or sets a value indicating whether scheduled session database records exist.
|
|
@@ -173842,6 +173971,10 @@ components:
|
|
|
173842
173971
|
type: boolean
|
|
173843
173972
|
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."
|
|
173844
173973
|
default: false
|
|
173974
|
+
enableWalletCreditPeriods:
|
|
173975
|
+
type: boolean
|
|
173976
|
+
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."
|
|
173977
|
+
default: false
|
|
173845
173978
|
customerLoginRequiresPreprovision:
|
|
173846
173979
|
type: boolean
|
|
173847
173980
|
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."
|
|
@@ -176693,10 +176826,23 @@ components:
|
|
|
176693
176826
|
type: string
|
|
176694
176827
|
description: Gets or sets the wallet currency.
|
|
176695
176828
|
nullable: true
|
|
176829
|
+
currentCreditPeriodId:
|
|
176830
|
+
type: string
|
|
176831
|
+
description: Gets or sets the current active credit period id when wallet credit periods are enabled.
|
|
176832
|
+
format: uuid
|
|
176833
|
+
nullable: true
|
|
176834
|
+
cycleEndDate:
|
|
176835
|
+
type: string
|
|
176836
|
+
description: Gets the period end date for the current credit period. Used by partner platform wallet UI.
|
|
176837
|
+
format: date-time
|
|
176838
|
+
nullable: true
|
|
176839
|
+
readOnly: true
|
|
176696
176840
|
customer:
|
|
176697
176841
|
$ref: '#/components/schemas/Customer'
|
|
176698
176842
|
attendee:
|
|
176699
176843
|
$ref: '#/components/schemas/Attendee'
|
|
176844
|
+
currentCreditPeriod:
|
|
176845
|
+
$ref: '#/components/schemas/WalletCreditPeriod'
|
|
176700
176846
|
transactions:
|
|
176701
176847
|
type: array
|
|
176702
176848
|
items:
|
|
@@ -176705,6 +176851,97 @@ components:
|
|
|
176705
176851
|
nullable: true
|
|
176706
176852
|
additionalProperties: false
|
|
176707
176853
|
description: Represents a wallet within the Reach application.
|
|
176854
|
+
WalletCreditPeriod:
|
|
176855
|
+
required:
|
|
176856
|
+
- autoRenew
|
|
176857
|
+
- creditAllocation
|
|
176858
|
+
- dateCreated
|
|
176859
|
+
- dateModified
|
|
176860
|
+
- isLive
|
|
176861
|
+
- periodEndDate
|
|
176862
|
+
- periodStartDate
|
|
176863
|
+
- status
|
|
176864
|
+
- tenantId
|
|
176865
|
+
- walletId
|
|
176866
|
+
type: object
|
|
176867
|
+
properties:
|
|
176868
|
+
id:
|
|
176869
|
+
type: string
|
|
176870
|
+
description: Gets or sets the entities Id.
|
|
176871
|
+
format: uuid
|
|
176872
|
+
tenantId:
|
|
176873
|
+
type: string
|
|
176874
|
+
description: Gets or sets the tenant Id.
|
|
176875
|
+
format: uuid
|
|
176876
|
+
dateCreated:
|
|
176877
|
+
type: string
|
|
176878
|
+
description: Gets or sets the created date of this entity.
|
|
176879
|
+
format: date-time
|
|
176880
|
+
dateModified:
|
|
176881
|
+
type: string
|
|
176882
|
+
description: Gets or sets the last modified date of this entity.
|
|
176883
|
+
format: date-time
|
|
176884
|
+
modifiedById:
|
|
176885
|
+
type: string
|
|
176886
|
+
description: Gets or sets the modified by Id.
|
|
176887
|
+
format: uuid
|
|
176888
|
+
nullable: true
|
|
176889
|
+
isLive:
|
|
176890
|
+
type: boolean
|
|
176891
|
+
description: Gets or sets a value indicating whether the record is live and available for use within the application.
|
|
176892
|
+
default: false
|
|
176893
|
+
walletId:
|
|
176894
|
+
type: string
|
|
176895
|
+
description: Gets or sets the wallet id.
|
|
176896
|
+
format: uuid
|
|
176897
|
+
periodStartDate:
|
|
176898
|
+
type: string
|
|
176899
|
+
description: Gets or sets the first day credits are usable (inclusive).
|
|
176900
|
+
format: date-time
|
|
176901
|
+
periodEndDate:
|
|
176902
|
+
type: string
|
|
176903
|
+
description: Gets or sets the last day credits are usable (inclusive).
|
|
176904
|
+
format: date-time
|
|
176905
|
+
creditAllocation:
|
|
176906
|
+
type: number
|
|
176907
|
+
description: Gets or sets the credit award amount for this period.
|
|
176908
|
+
format: double
|
|
176909
|
+
autoRenew:
|
|
176910
|
+
type: boolean
|
|
176911
|
+
description: Gets or sets a value indicating whether this period should auto-renew when it ends.
|
|
176912
|
+
default: false
|
|
176913
|
+
status:
|
|
176914
|
+
$ref: '#/components/schemas/WalletCreditPeriodStatus'
|
|
176915
|
+
wallet:
|
|
176916
|
+
$ref: '#/components/schemas/Wallet'
|
|
176917
|
+
additionalProperties: false
|
|
176918
|
+
description: Represents a credit entitlement window for a wallet.
|
|
176919
|
+
WalletCreditPeriodReassessPost:
|
|
176920
|
+
required:
|
|
176921
|
+
- creditAllocation
|
|
176922
|
+
type: object
|
|
176923
|
+
properties:
|
|
176924
|
+
creditAllocation:
|
|
176925
|
+
type: number
|
|
176926
|
+
description: Gets or sets the new credit allocation. Wallet balance is set to this amount immediately.
|
|
176927
|
+
format: double
|
|
176928
|
+
periodEndDate:
|
|
176929
|
+
type: string
|
|
176930
|
+
description: Gets or sets an optional updated period end date.
|
|
176931
|
+
format: date-time
|
|
176932
|
+
nullable: true
|
|
176933
|
+
autoRenew:
|
|
176934
|
+
type: boolean
|
|
176935
|
+
description: Gets or sets an optional auto-renew flag.
|
|
176936
|
+
nullable: true
|
|
176937
|
+
additionalProperties: false
|
|
176938
|
+
description: Request body for mid-cycle credit reassessment.
|
|
176939
|
+
WalletCreditPeriodStatus:
|
|
176940
|
+
enum:
|
|
176941
|
+
- Active
|
|
176942
|
+
- Closed
|
|
176943
|
+
type: string
|
|
176944
|
+
description: Controls the wallet credit period status.
|
|
176708
176945
|
WalletDeductionPreview:
|
|
176709
176946
|
type: object
|
|
176710
176947
|
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';
|
|
@@ -29,8 +29,25 @@ 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.
|
|
@@ -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.
|
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
|
+
}
|
|
@@ -108,6 +108,7 @@ export class UsersService {
|
|
|
108
108
|
nameLike,
|
|
109
109
|
email,
|
|
110
110
|
inviteStatus,
|
|
111
|
+
isPlatformAccount,
|
|
111
112
|
pageNumber,
|
|
112
113
|
take,
|
|
113
114
|
skip,
|
|
@@ -144,6 +145,10 @@ export class UsersService {
|
|
|
144
145
|
* Gets or sets the team member invite status for use in a query search.
|
|
145
146
|
*/
|
|
146
147
|
inviteStatus?: InviteStatus;
|
|
148
|
+
/**
|
|
149
|
+
* Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
|
|
150
|
+
*/
|
|
151
|
+
isPlatformAccount?: boolean;
|
|
147
152
|
/**
|
|
148
153
|
* Gets or sets the page number for paged queries.
|
|
149
154
|
*/
|
|
@@ -199,6 +204,7 @@ export class UsersService {
|
|
|
199
204
|
NameLike: nameLike,
|
|
200
205
|
Email: email,
|
|
201
206
|
InviteStatus: inviteStatus,
|
|
207
|
+
IsPlatformAccount: isPlatformAccount,
|
|
202
208
|
PageNumber: pageNumber,
|
|
203
209
|
Take: take,
|
|
204
210
|
Skip: skip,
|
|
@@ -422,6 +428,7 @@ export class UsersService {
|
|
|
422
428
|
nameLike,
|
|
423
429
|
email,
|
|
424
430
|
inviteStatus,
|
|
431
|
+
isPlatformAccount,
|
|
425
432
|
pageNumber,
|
|
426
433
|
take,
|
|
427
434
|
skip,
|
|
@@ -458,6 +465,10 @@ export class UsersService {
|
|
|
458
465
|
* Gets or sets the team member invite status for use in a query search.
|
|
459
466
|
*/
|
|
460
467
|
inviteStatus?: InviteStatus;
|
|
468
|
+
/**
|
|
469
|
+
* Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
|
|
470
|
+
*/
|
|
471
|
+
isPlatformAccount?: boolean;
|
|
461
472
|
/**
|
|
462
473
|
* Gets or sets the page number for paged queries.
|
|
463
474
|
*/
|
|
@@ -513,6 +524,7 @@ export class UsersService {
|
|
|
513
524
|
NameLike: nameLike,
|
|
514
525
|
Email: email,
|
|
515
526
|
InviteStatus: inviteStatus,
|
|
527
|
+
IsPlatformAccount: isPlatformAccount,
|
|
516
528
|
PageNumber: pageNumber,
|
|
517
529
|
Take: take,
|
|
518
530
|
Skip: skip,
|
|
@@ -626,6 +638,7 @@ export class UsersService {
|
|
|
626
638
|
nameLike,
|
|
627
639
|
email,
|
|
628
640
|
inviteStatus,
|
|
641
|
+
isPlatformAccount,
|
|
629
642
|
pageNumber,
|
|
630
643
|
take,
|
|
631
644
|
skip,
|
|
@@ -662,6 +675,10 @@ export class UsersService {
|
|
|
662
675
|
* Gets or sets the team member invite status for use in a query search.
|
|
663
676
|
*/
|
|
664
677
|
inviteStatus?: InviteStatus;
|
|
678
|
+
/**
|
|
679
|
+
* Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
|
|
680
|
+
*/
|
|
681
|
+
isPlatformAccount?: boolean;
|
|
665
682
|
/**
|
|
666
683
|
* Gets or sets the page number for paged queries.
|
|
667
684
|
*/
|
|
@@ -717,6 +734,7 @@ export class UsersService {
|
|
|
717
734
|
NameLike: nameLike,
|
|
718
735
|
Email: email,
|
|
719
736
|
InviteStatus: inviteStatus,
|
|
737
|
+
IsPlatformAccount: isPlatformAccount,
|
|
720
738
|
PageNumber: pageNumber,
|
|
721
739
|
Take: take,
|
|
722
740
|
Skip: skip,
|
|
@@ -749,6 +767,7 @@ export class UsersService {
|
|
|
749
767
|
nameLike,
|
|
750
768
|
email,
|
|
751
769
|
inviteStatus,
|
|
770
|
+
isPlatformAccount,
|
|
752
771
|
pageNumber,
|
|
753
772
|
take,
|
|
754
773
|
skip,
|
|
@@ -785,6 +804,10 @@ export class UsersService {
|
|
|
785
804
|
* Gets or sets the team member invite status for use in a query search.
|
|
786
805
|
*/
|
|
787
806
|
inviteStatus?: InviteStatus;
|
|
807
|
+
/**
|
|
808
|
+
* Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
|
|
809
|
+
*/
|
|
810
|
+
isPlatformAccount?: boolean;
|
|
788
811
|
/**
|
|
789
812
|
* Gets or sets the page number for paged queries.
|
|
790
813
|
*/
|
|
@@ -840,6 +863,7 @@ export class UsersService {
|
|
|
840
863
|
NameLike: nameLike,
|
|
841
864
|
Email: email,
|
|
842
865
|
InviteStatus: inviteStatus,
|
|
866
|
+
IsPlatformAccount: isPlatformAccount,
|
|
843
867
|
PageNumber: pageNumber,
|
|
844
868
|
Take: take,
|
|
845
869
|
Skip: skip,
|
|
@@ -872,6 +896,7 @@ export class UsersService {
|
|
|
872
896
|
nameLike,
|
|
873
897
|
email,
|
|
874
898
|
inviteStatus,
|
|
899
|
+
isPlatformAccount,
|
|
875
900
|
pageNumber,
|
|
876
901
|
take,
|
|
877
902
|
skip,
|
|
@@ -908,6 +933,10 @@ export class UsersService {
|
|
|
908
933
|
* Gets or sets the team member invite status for use in a query search.
|
|
909
934
|
*/
|
|
910
935
|
inviteStatus?: InviteStatus;
|
|
936
|
+
/**
|
|
937
|
+
* Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
|
|
938
|
+
*/
|
|
939
|
+
isPlatformAccount?: boolean;
|
|
911
940
|
/**
|
|
912
941
|
* Gets or sets the page number for paged queries.
|
|
913
942
|
*/
|
|
@@ -963,6 +992,7 @@ export class UsersService {
|
|
|
963
992
|
NameLike: nameLike,
|
|
964
993
|
Email: email,
|
|
965
994
|
InviteStatus: inviteStatus,
|
|
995
|
+
IsPlatformAccount: isPlatformAccount,
|
|
966
996
|
PageNumber: pageNumber,
|
|
967
997
|
Take: take,
|
|
968
998
|
Skip: skip,
|
|
@@ -995,6 +1025,7 @@ export class UsersService {
|
|
|
995
1025
|
nameLike,
|
|
996
1026
|
email,
|
|
997
1027
|
inviteStatus,
|
|
1028
|
+
isPlatformAccount,
|
|
998
1029
|
pageNumber,
|
|
999
1030
|
take,
|
|
1000
1031
|
skip,
|
|
@@ -1031,6 +1062,10 @@ export class UsersService {
|
|
|
1031
1062
|
* Gets or sets the team member invite status for use in a query search.
|
|
1032
1063
|
*/
|
|
1033
1064
|
inviteStatus?: InviteStatus;
|
|
1065
|
+
/**
|
|
1066
|
+
* Gets or sets a value indicating whether to return only users with a platform role in user_tenant_access for the current tenant.
|
|
1067
|
+
*/
|
|
1068
|
+
isPlatformAccount?: boolean;
|
|
1034
1069
|
/**
|
|
1035
1070
|
* Gets or sets the page number for paged queries.
|
|
1036
1071
|
*/
|
|
@@ -1086,6 +1121,7 @@ export class UsersService {
|
|
|
1086
1121
|
NameLike: nameLike,
|
|
1087
1122
|
Email: email,
|
|
1088
1123
|
InviteStatus: inviteStatus,
|
|
1124
|
+
IsPlatformAccount: isPlatformAccount,
|
|
1089
1125
|
PageNumber: pageNumber,
|
|
1090
1126
|
Take: take,
|
|
1091
1127
|
Skip: skip,
|