rebilly-js-sdk 44.8.0 → 44.9.0

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.
@@ -754,6 +754,40 @@ declare module rebilly {
754
754
  type DeleteApiKeyResponse = operations['DeleteApiKey']['responses']['204']
755
755
  type DeleteApiKeyResponsePromise = Promise<{fields: DeleteApiKeyResponse}>
756
756
 
757
+ type GetApplicationInstanceRequest = { applicationId : String }
758
+
759
+ type GetApplicationInstanceResponse = operations['GetApplicationInstance']['responses']['200']['content']['application/json']
760
+ type GetApplicationInstanceResponsePromise = Promise<{fields: GetApplicationInstanceResponse}>
761
+ type PutApplicationInstanceRequest = operations['PutApplicationInstance']['requestBody']['content']['application/json']
762
+ type PutApplicationInstanceResponse = operations['PutApplicationInstance']['responses']['201']['content']['application/json']
763
+ type PutApplicationInstanceResponsePromise = Promise<{fields: PutApplicationInstanceResponse}>
764
+ type DeleteApplicationInstanceResponse = operations['DeleteApplicationInstance']['responses']['204']
765
+ type DeleteApplicationInstanceResponsePromise = Promise<{fields: DeleteApplicationInstanceResponse}>
766
+
767
+ type GetApplicationCollectionRequest = operations['GetApplicationCollection']['parameters']["query"] & (operations['GetApplicationCollection']['parameters'] extends {path: {}} ? operations['GetApplicationCollection']['parameters']["path"] : {})
768
+
769
+ type GetApplicationCollectionResponse = operations['GetApplicationCollection']['responses']['200']['content']['application/json'][0]
770
+ type GetApplicationCollectionResponsePromise = Promise<{ items: {fields: GetApplicationCollectionResponse}[], getJSON: object, total?: number, offset?: number, limit?: number }>
771
+ type PostApplicationRequest = operations['PostApplication']['requestBody']['content']['application/json']
772
+ type CreateApplicationRequest = { id: String, data: PostApplicationRequest, expand?: String }
773
+ type PostApplicationResponse = operations['PostApplication']['responses']['201']['content']['application/json']
774
+ type PostApplicationResponsePromise = Promise<{fields: PostApplicationResponse}>
775
+
776
+ type GetApplicationRequest = { id : String }
777
+
778
+ type GetApplicationResponse = operations['GetApplication']['responses']['200']['content']['application/json']
779
+ type GetApplicationResponsePromise = Promise<{fields: GetApplicationResponse}>
780
+
781
+ type GetApplicationInstanceCollectionRequest = { id : String }
782
+
783
+ type GetApplicationInstanceCollectionResponse = operations['GetApplicationInstanceCollection']['responses']['200']['content']['application/json'][0]
784
+ type GetApplicationInstanceCollectionResponsePromise = Promise<{ items: {fields: GetApplicationInstanceCollectionResponse}[], getJSON: object, total?: number, offset?: number, limit?: number }>
785
+
786
+ type GetApplicationInstanceByOrganizationRequest = { id : String,organizationId : String }
787
+
788
+ type GetApplicationInstanceByOrganizationResponse = operations['GetApplicationInstanceByOrganization']['responses']['200']['content']['application/json']
789
+ type GetApplicationInstanceByOrganizationResponsePromise = Promise<{fields: GetApplicationInstanceByOrganizationResponse}>
790
+
757
791
  type GetBalanceTransactionCollectionRequest = operations['GetBalanceTransactionCollection']['parameters']["query"] & (operations['GetBalanceTransactionCollection']['parameters'] extends {path: {}} ? operations['GetBalanceTransactionCollection']['parameters']["path"] : {})
758
792
 
759
793
  type GetBalanceTransactionCollectionResponse = operations['GetBalanceTransactionCollection']['responses']['200']['content']['application/json'][0]
@@ -1339,6 +1373,14 @@ declare module rebilly {
1339
1373
  type PutProfileResponse = operations['PutProfile']['responses']['200']['content']['application/json']
1340
1374
  type PutProfileResponsePromise = Promise<{fields: PutProfileResponse}>
1341
1375
 
1376
+
1377
+ type GetProfileMfaResponse = operations['GetProfileMfa']['responses']['200']['content']['application/json']
1378
+ type GetProfileMfaResponsePromise = Promise<{fields: GetProfileMfaResponse}>
1379
+ type PostProfileMfaResponse = operations['PostProfileMfa']['responses']['201']['content']['application/json']
1380
+ type PostProfileMfaResponsePromise = Promise<{fields: PostProfileMfaResponse}>
1381
+ type DeleteProfileMfaResponse = operations['DeleteProfileMfa']['responses']['204']
1382
+ type DeleteProfileMfaResponsePromise = Promise<{fields: DeleteProfileMfaResponse}>
1383
+
1342
1384
  type PostProfilePasswordChangeRequest = operations['PostProfilePasswordChange']['requestBody']['content']['application/json']
1343
1385
  type CreateProfilePasswordChangeRequest = { id: String, data: PostProfilePasswordChangeRequest, expand?: String }
1344
1386
  type PostProfilePasswordChangeResponse = operations['PostProfilePasswordChange']['responses']['201']['content']['application/json']
@@ -4791,6 +4833,7 @@ export interface coreComponents {
4791
4833
  | "AsiaPaymentGateway"
4792
4834
  | "AstroPayCard"
4793
4835
  | "AuthorizeNet"
4836
+ | "Awepay"
4794
4837
  | "Bambora"
4795
4838
  | "BitPay"
4796
4839
  | "BlueSnap"
@@ -5045,6 +5088,7 @@ export interface coreComponents {
5045
5088
  | "ApcoPay"
5046
5089
  | "AsiaPaymentGateway"
5047
5090
  | "AstroPay Card"
5091
+ | "Awepay"
5048
5092
  | "Ipay Options"
5049
5093
  | "B+S"
5050
5094
  | "Bambora"
@@ -5879,6 +5923,16 @@ export interface coreComponents {
5879
5923
  transactionKey: string;
5880
5924
  };
5881
5925
  };
5926
+ /** Awepay config. */
5927
+ Awepay: coreComponents["schemas"]["GatewayAccount"] & {
5928
+ /** Awepay credentials object. */
5929
+ credentials: {
5930
+ /** Awepay site ID. */
5931
+ sid: string;
5932
+ /** Awepay rcode. */
5933
+ rcode: string;
5934
+ };
5935
+ };
5882
5936
  /** Bambora Gateway config. */
5883
5937
  Bambora: coreComponents["schemas"]["GatewayAccount"] & {
5884
5938
  credentials: {
@@ -9458,6 +9512,8 @@ export interface coreComponents {
9458
9512
  /** The number of document upload attempts. `0` treated as unlimited. */
9459
9513
  maxAttempts: number;
9460
9514
  }[];
9515
+ /** Status of the request. */
9516
+ status?: "pending" | "fulfilled" | "expired";
9461
9517
  /** The URL to redirect the customer when an upload is completed. */
9462
9518
  redirectUrl?: string;
9463
9519
  /** Expiration date/time. */
@@ -10874,6 +10930,8 @@ export interface coreComponents {
10874
10930
  /** Rebilly webhooks event type. */
10875
10931
  GlobalWebhookEventType:
10876
10932
  | "aml-list-possibly-matched"
10933
+ | "application-instance-disabled"
10934
+ | "application-instance-enabled"
10877
10935
  | "customer-created"
10878
10936
  | "customer-merged"
10879
10937
  | "customer-one-time-password-requested"
@@ -10936,7 +10994,9 @@ export interface coreComponents {
10936
10994
  | "transaction-processed"
10937
10995
  | "transaction-reconciled"
10938
10996
  | "transaction-timeout-resolved"
10939
- | "waiting-gateway-transaction-completed";
10997
+ | "waiting-gateway-transaction-completed"
10998
+ | "application-instance-enabled"
10999
+ | "application-instance-disabled";
10940
11000
  GatewayAccountLimit: {
10941
11001
  /** The gateway account limit identifier. */
10942
11002
  id?: coreComponents["schemas"]["ResourceId"];
@@ -10978,7 +11038,7 @@ export interface coreComponents {
10978
11038
  };
10979
11039
  };
10980
11040
  responses: {
10981
- /** Unauthorized access, invalid credentials was used. */
11041
+ /** Unauthorized access, invalid credentials were used. */
10982
11042
  Unauthorized: {
10983
11043
  content: {
10984
11044
  "application/json": coreComponents["schemas"]["Error"];
@@ -17468,6 +17528,106 @@ export interface usersPaths {
17468
17528
  };
17469
17529
  };
17470
17530
  };
17531
+ "/application-instances/{applicationId}": {
17532
+ /**
17533
+ * Retrieve a list of application instances.
17534
+ * You may sort by the id, name, status, createdTime, and updatedTime.
17535
+ */
17536
+ get: operations["GetApplicationInstance"];
17537
+ /** Create or update an application instance. */
17538
+ put: operations["PutApplicationInstance"];
17539
+ /** Delete application instance with predefined identifier string. */
17540
+ delete: operations["DeleteApplicationInstance"];
17541
+ parameters: {
17542
+ header: {
17543
+ /**
17544
+ * @deprecated Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).
17545
+ *
17546
+ * It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
17547
+ */
17548
+ "Organization-Id"?: usersComponents["parameters"]["organizationId"];
17549
+ };
17550
+ path: {
17551
+ /** The application identifier string. */
17552
+ applicationId: usersComponents["parameters"]["applicationId"];
17553
+ };
17554
+ };
17555
+ };
17556
+ "/applications": {
17557
+ /**
17558
+ * Retrieve a list of applications.
17559
+ * You may sort by the id, name, status, createdTime, and updatedTime.
17560
+ */
17561
+ get: operations["GetApplicationCollection"];
17562
+ /** Register an application. */
17563
+ post: operations["PostApplication"];
17564
+ parameters: {
17565
+ header: {
17566
+ /**
17567
+ * @deprecated Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).
17568
+ *
17569
+ * It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
17570
+ */
17571
+ "Organization-Id"?: usersComponents["parameters"]["organizationId"];
17572
+ };
17573
+ };
17574
+ };
17575
+ "/applications/{id}": {
17576
+ /** Retrieve application with predefined identifier string. */
17577
+ get: operations["GetApplication"];
17578
+ parameters: {
17579
+ header: {
17580
+ /**
17581
+ * @deprecated Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).
17582
+ *
17583
+ * It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
17584
+ */
17585
+ "Organization-Id"?: usersComponents["parameters"]["organizationId"];
17586
+ };
17587
+ path: {
17588
+ /** The resource identifier string. */
17589
+ id: usersComponents["parameters"]["resourceId"];
17590
+ };
17591
+ };
17592
+ };
17593
+ "/applications/{id}/instances": {
17594
+ /** Retrieve application instances with predefined application identifier string. */
17595
+ get: operations["GetApplicationInstanceCollection"];
17596
+ parameters: {
17597
+ header: {
17598
+ /**
17599
+ * @deprecated Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).
17600
+ *
17601
+ * It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
17602
+ */
17603
+ "Organization-Id"?: usersComponents["parameters"]["organizationId"];
17604
+ };
17605
+ path: {
17606
+ /** The resource identifier string. */
17607
+ id: usersComponents["parameters"]["resourceId"];
17608
+ };
17609
+ };
17610
+ };
17611
+ "/applications/{id}/instances/{organizationId}": {
17612
+ /** Retrieve application instance with predefined application and organization identifier strings. */
17613
+ get: operations["GetApplicationInstanceByOrganization"];
17614
+ parameters: {
17615
+ header: {
17616
+ /**
17617
+ * @deprecated Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).
17618
+ *
17619
+ * It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
17620
+ */
17621
+ "Organization-Id"?: usersComponents["parameters"]["organizationId"];
17622
+ };
17623
+ path: {
17624
+ /** The resource identifier string. */
17625
+ id: usersComponents["parameters"]["resourceId"];
17626
+ /** The organization identifier string. */
17627
+ organizationId: usersComponents["parameters"]["organizationIdPathParam"];
17628
+ };
17629
+ };
17630
+ };
17471
17631
  "/balance-transactions": {
17472
17632
  /**
17473
17633
  * Retrieve a list of balance transactions.
@@ -18910,6 +19070,14 @@ export interface usersPaths {
18910
19070
  /** Update user's profile. */
18911
19071
  put: operations["PutProfile"];
18912
19072
  };
19073
+ "/profile/mfa": {
19074
+ /** Retrieve user MFA status. */
19075
+ get: operations["GetProfileMfa"];
19076
+ /** Update user MFA. Link with rel `enrollment` must be followed to verify existing or enroll new MFA. */
19077
+ post: operations["PostProfileMfa"];
19078
+ /** Delete user MFA. To succed `lastAuthTime` must be no more than 10 minutes before this call. */
19079
+ delete: operations["DeleteProfileMfa"];
19080
+ };
18913
19081
  "/profile/password": {
18914
19082
  /** Updates user's password with the specified newPassword. And checks if. currentPassword matches the actual one. */
18915
19083
  post: operations["PostProfilePasswordChange"];
@@ -19272,6 +19440,74 @@ export interface usersComponents {
19272
19440
  /** The links related to resource. */
19273
19441
  _links?: usersComponents["schemas"]["SelfLink"][];
19274
19442
  };
19443
+ ApplicationInstance: {
19444
+ /** The application instance status. */
19445
+ status?: "enabling" | "enabled" | "disabling" | "disabled";
19446
+ settings: { [key: string]: string };
19447
+ /** Application instance created time. */
19448
+ createdTime?: usersComponents["schemas"]["ServerTimestamp"];
19449
+ /** Application instance updated time. */
19450
+ updatedTime?: usersComponents["schemas"]["ServerTimestamp"];
19451
+ /** The links related to resource. */
19452
+ _links?: Partial<usersComponents["schemas"]["SelfLink"]>[];
19453
+ };
19454
+ ApplicationInstanceLink: usersComponents["schemas"]["Link"] & {
19455
+ /** The link type. */
19456
+ rel: "applicationInstance";
19457
+ };
19458
+ LogoUrlLink: usersComponents["schemas"]["Link"] & {
19459
+ /** The link type. */
19460
+ rel: "logoUrl";
19461
+ };
19462
+ AuthorLogoUrlLink: usersComponents["schemas"]["Link"] & {
19463
+ /** The link type. */
19464
+ rel: "authorLogoUrl";
19465
+ };
19466
+ Application: {
19467
+ /** The application identifier string. */
19468
+ id?: usersComponents["schemas"]["ResourceId"];
19469
+ /** The application name. */
19470
+ name: string;
19471
+ /** The application logo ID. */
19472
+ logoId: usersComponents["schemas"]["ResourceId"];
19473
+ /** The author's name. */
19474
+ authorName: string;
19475
+ /** The author's logo ID. */
19476
+ authorLogoId?: usersComponents["schemas"]["ResourceId"];
19477
+ /** The application's tagline. */
19478
+ tagline: string;
19479
+ /** The application description. */
19480
+ description: string;
19481
+ /** The application status. */
19482
+ status?: "pending-approval" | "available" | "disabled";
19483
+ /** The list of permissions available to the application. */
19484
+ permissions: string[];
19485
+ /** The list of application properties. This is a JSON-schema object. */
19486
+ properties?: { [key: string]: any };
19487
+ /** Application created time. */
19488
+ createdTime?: usersComponents["schemas"]["ServerTimestamp"];
19489
+ /** Application updated time. */
19490
+ updatedTime?: usersComponents["schemas"]["ServerTimestamp"];
19491
+ /** The links related to resource. */
19492
+ _links?: (Partial<usersComponents["schemas"]["SelfLink"]> &
19493
+ Partial<usersComponents["schemas"]["ApplicationInstanceLink"]> &
19494
+ Partial<usersComponents["schemas"]["LogoUrlLink"]> &
19495
+ Partial<usersComponents["schemas"]["AuthorLogoUrlLink"]>)[];
19496
+ };
19497
+ /** Application instance object. */
19498
+ ApplicationInstanceEmbed: {
19499
+ applicationInstance?: usersComponents["schemas"]["ApplicationInstance"];
19500
+ };
19501
+ "Application-2": usersComponents["schemas"]["Application"] & {
19502
+ /** Any embedded objects available that are requested by the `expand` querystring parameter. */
19503
+ _embedded?: Partial<usersComponents["schemas"]["ApplicationInstanceEmbed"]>[];
19504
+ };
19505
+ "ApplicationInstance-2": usersComponents["schemas"]["ApplicationInstance"] & {
19506
+ /** The merchant identifier string. */
19507
+ organizationId?: usersComponents["schemas"]["ResourceId"];
19508
+ /** The session's token used to authenticate as the merchant. */
19509
+ token?: string;
19510
+ };
19275
19511
  BalanceTransaction: {
19276
19512
  /** The ID of entry. */
19277
19513
  id?: usersComponents["schemas"]["ResourceId"];
@@ -19555,6 +19791,7 @@ export interface usersComponents {
19555
19791
  | "AsiaPaymentGateway"
19556
19792
  | "AstroPayCard"
19557
19793
  | "AuthorizeNet"
19794
+ | "Awepay"
19558
19795
  | "Bambora"
19559
19796
  | "BitPay"
19560
19797
  | "BlueSnap"
@@ -19811,6 +20048,7 @@ export interface usersComponents {
19811
20048
  | "ApcoPay"
19812
20049
  | "AsiaPaymentGateway"
19813
20050
  | "AstroPay Card"
20051
+ | "Awepay"
19814
20052
  | "Ipay Options"
19815
20053
  | "B+S"
19816
20054
  | "Bambora"
@@ -20689,6 +20927,16 @@ export interface usersComponents {
20689
20927
  transactionKey: string;
20690
20928
  };
20691
20929
  };
20930
+ /** Awepay config. */
20931
+ Awepay: usersComponents["schemas"]["GatewayAccount"] & {
20932
+ /** Awepay credentials object. */
20933
+ credentials: {
20934
+ /** Awepay site ID. */
20935
+ sid: string;
20936
+ /** Awepay rcode. */
20937
+ rcode: string;
20938
+ };
20939
+ };
20692
20940
  /** Bambora Gateway config. */
20693
20941
  Bambora: usersComponents["schemas"]["GatewayAccount"] & {
20694
20942
  credentials: {
@@ -24404,7 +24652,9 @@ export interface usersComponents {
24404
24652
  | "transaction-declined"
24405
24653
  | "transaction-discrepancy-found"
24406
24654
  | "transaction-process-requested"
24407
- | "transaction-processed";
24655
+ | "transaction-processed"
24656
+ | "application-instance-enabled"
24657
+ | "application-instance-disabled";
24408
24658
  /** The email notification event. */
24409
24659
  EmailNotification: {
24410
24660
  eventType?: usersComponents["schemas"]["EventType"];
@@ -25548,6 +25798,8 @@ export interface usersComponents {
25548
25798
  /** Rebilly webhooks event type. */
25549
25799
  GlobalWebhookEventType:
25550
25800
  | "aml-list-possibly-matched"
25801
+ | "application-instance-disabled"
25802
+ | "application-instance-enabled"
25551
25803
  | "customer-created"
25552
25804
  | "customer-merged"
25553
25805
  | "customer-one-time-password-requested"
@@ -25610,7 +25862,9 @@ export interface usersComponents {
25610
25862
  | "transaction-processed"
25611
25863
  | "transaction-reconciled"
25612
25864
  | "transaction-timeout-resolved"
25613
- | "waiting-gateway-transaction-completed";
25865
+ | "waiting-gateway-transaction-completed"
25866
+ | "application-instance-enabled"
25867
+ | "application-instance-disabled";
25614
25868
  GlobalWebhook: {
25615
25869
  /** The webhook identifier string. */
25616
25870
  id?: usersComponents["schemas"]["ResourceId"];
@@ -25671,6 +25925,21 @@ export interface usersComponents {
25671
25925
  /** User's unique hash. */
25672
25926
  hash?: string;
25673
25927
  };
25928
+ EnrollmentLink: usersComponents["schemas"]["Link"] & {
25929
+ /** The link type. */
25930
+ rel: "enrollment";
25931
+ };
25932
+ ProfileMfa: {
25933
+ /** MFA enrollment status. */
25934
+ status?: "active" | "inactive";
25935
+ /** MFA enrollment type. Type `duo` can't be updated or deleted. Contact support if you need to reset your Duo MFA. */
25936
+ type?: "duo" | "guardian";
25937
+ /** Last time MFA verification passed. To disable MFA it must be no more than 10 minutes before disable. */
25938
+ lastAuthTime?: usersComponents["schemas"]["ServerTimestamp"];
25939
+ /** The links related to resource. */
25940
+ _links?: (Partial<usersComponents["schemas"]["SelfLink"]> &
25941
+ Partial<usersComponents["schemas"]["EnrollmentLink"]>)[];
25942
+ };
25674
25943
  UpdatePassword: {
25675
25944
  /** Current user's password - used when requesting password change. */
25676
25945
  currentPassword: string;
@@ -25926,13 +26195,17 @@ export interface usersComponents {
25926
26195
  _links?: (Partial<usersComponents["schemas"]["SelfLink"]> &
25927
26196
  Partial<usersComponents["schemas"]["OrganizationLink"]>)[];
25928
26197
  };
26198
+ ApplicationLink: usersComponents["schemas"]["Link"] & {
26199
+ /** The link type. */
26200
+ rel: "application";
26201
+ };
25929
26202
  GatewayAccountLimitLink: usersComponents["schemas"]["Link"] & {
25930
26203
  /** The link type. */
25931
26204
  rel: "gatewayAccountLimit";
25932
26205
  };
25933
26206
  };
25934
26207
  responses: {
25935
- /** Unauthorized access, invalid credentials was used. */
26208
+ /** Unauthorized access, invalid credentials were used. */
25936
26209
  Unauthorized: {
25937
26210
  content: {
25938
26211
  "application/json": usersComponents["schemas"]["Error"];
@@ -25978,6 +26251,8 @@ export interface usersComponents {
25978
26251
  collectionSort: string[];
25979
26252
  /** The resource identifier string. */
25980
26253
  resourceId: string;
26254
+ /** The application identifier string. */
26255
+ applicationId: string;
25981
26256
  /**
25982
26257
  * The collection items filter requires a special format.
25983
26258
  * Use "," for multiple allowed values. Use ";" for multiple fields.
@@ -25986,20 +26261,22 @@ export interface usersComponents {
25986
26261
  collectionFilter: string;
25987
26262
  /** The partial search of the text fields. */
25988
26263
  collectionQuery: string;
25989
- /** The token identifier string. */
25990
- hash: string;
25991
- /** The token string. */
25992
- token: string;
25993
- /** The event type. */
25994
- systemEventType: string;
25995
- /** Limit the returned fields to the list specified, separated by comma. Note that id is always returned. */
25996
- collectionFields: string;
25997
26264
  /**
25998
26265
  * Expand a response to get a full related object included inside of the `_embedded` path in the response.
25999
26266
  * It accepts a comma-separated list of objects to expand.
26000
26267
  * See the [expand guide](https://api-reference.rebilly.com/#section/Expand-to-include-embedded-objects) for more info.
26001
26268
  */
26002
26269
  collectionExpand: string;
26270
+ /** Limit the returned fields to the list specified, separated by comma. Note that id is always returned. */
26271
+ collectionFields: string;
26272
+ /** The organization identifier string. */
26273
+ organizationIdPathParam: string;
26274
+ /** The token identifier string. */
26275
+ hash: string;
26276
+ /** The token string. */
26277
+ token: string;
26278
+ /** The event type. */
26279
+ systemEventType: string;
26003
26280
  /** The rule set version. Expand response to get full related object instead of ID. See the expand guide for more info. */
26004
26281
  rulesVersion: number;
26005
26282
  /** The integration label. */
@@ -26138,6 +26415,42 @@ export interface usersComponents {
26138
26415
  "application/json": usersComponents["schemas"]["Website"];
26139
26416
  };
26140
26417
  };
26418
+ /** Application instance disabled webhook request body resource. */
26419
+ ApplicationInstanceDisabled: {
26420
+ content: {
26421
+ "application/json": {
26422
+ /** The organization identifier string. */
26423
+ organizationId?: usersComponents["schemas"]["ResourceId"];
26424
+ /** The organization identifier string. */
26425
+ applicationId?: usersComponents["schemas"]["ResourceId"];
26426
+ eventType?: "application-instance-disabled";
26427
+ _embedded?: {
26428
+ application?: usersComponents["schemas"]["Application"];
26429
+ };
26430
+ /** The links related to resource. */
26431
+ _links?: Partial<usersComponents["schemas"]["ApplicationLink"]>[];
26432
+ };
26433
+ };
26434
+ };
26435
+ /** Application instance enabled webhook request body resource. */
26436
+ ApplicationInstanceEnabled: {
26437
+ content: {
26438
+ "application/json": {
26439
+ /** The organization identifier string. */
26440
+ organizationId?: usersComponents["schemas"]["ResourceId"];
26441
+ /** The organization identifier string. */
26442
+ applicationId?: usersComponents["schemas"]["ResourceId"];
26443
+ eventType?: "application-instance-enabled";
26444
+ _embedded?: {
26445
+ application?: usersComponents["schemas"]["Application"];
26446
+ applicationInstance?: usersComponents["schemas"]["ApplicationInstance"];
26447
+ };
26448
+ /** The links related to resource. */
26449
+ _links?: (Partial<usersComponents["schemas"]["ApplicationLink"]> &
26450
+ Partial<usersComponents["schemas"]["ApplicationInstanceLink"]>)[];
26451
+ };
26452
+ };
26453
+ };
26141
26454
  /** Gateway account limit was reached body resource. */
26142
26455
  GatewayAccount2: {
26143
26456
  content: {
@@ -26359,6 +26672,267 @@ export interface operations {
26359
26672
  };
26360
26673
  };
26361
26674
  };
26675
+ /**
26676
+ * Retrieve a list of application instances.
26677
+ * You may sort by the id, name, status, createdTime, and updatedTime.
26678
+ */
26679
+ GetApplicationInstance: {
26680
+ parameters: {
26681
+ header: {
26682
+ /**
26683
+ * @deprecated Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).
26684
+ *
26685
+ * It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
26686
+ */
26687
+ "Organization-Id"?: usersComponents["parameters"]["organizationId"];
26688
+ };
26689
+ path: {
26690
+ /** The application identifier string. */
26691
+ applicationId: usersComponents["parameters"]["applicationId"];
26692
+ };
26693
+ };
26694
+ responses: {
26695
+ /** An application instance was retrieved successfully. */
26696
+ 200: {
26697
+ headers: {};
26698
+ content: {
26699
+ "application/json": usersComponents["schemas"]["ApplicationInstance"];
26700
+ };
26701
+ };
26702
+ 401: usersComponents["responses"]["Unauthorized"];
26703
+ 403: usersComponents["responses"]["Forbidden"];
26704
+ };
26705
+ };
26706
+ /** Create or update an application instance. */
26707
+ PutApplicationInstance: {
26708
+ parameters: {
26709
+ header: {
26710
+ /**
26711
+ * @deprecated Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).
26712
+ *
26713
+ * It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
26714
+ */
26715
+ "Organization-Id"?: usersComponents["parameters"]["organizationId"];
26716
+ };
26717
+ path: {
26718
+ /** The application identifier string. */
26719
+ applicationId: usersComponents["parameters"]["applicationId"];
26720
+ };
26721
+ };
26722
+ responses: {
26723
+ /** Application instance was updated. */
26724
+ 200: {
26725
+ content: {
26726
+ "application/json": usersComponents["schemas"]["ApplicationInstance"];
26727
+ };
26728
+ };
26729
+ /** Application instance was created. */
26730
+ 201: {
26731
+ content: {
26732
+ "application/json": usersComponents["schemas"]["ApplicationInstance"];
26733
+ };
26734
+ };
26735
+ 401: usersComponents["responses"]["Unauthorized"];
26736
+ 403: usersComponents["responses"]["Forbidden"];
26737
+ 422: usersComponents["responses"]["ValidationError"];
26738
+ };
26739
+ requestBody: {
26740
+ content: {
26741
+ "application/json": usersComponents["schemas"]["ApplicationInstance"];
26742
+ };
26743
+ };
26744
+ };
26745
+ /** Delete application instance with predefined identifier string. */
26746
+ DeleteApplicationInstance: {
26747
+ parameters: {
26748
+ header: {
26749
+ /**
26750
+ * @deprecated Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).
26751
+ *
26752
+ * It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
26753
+ */
26754
+ "Organization-Id"?: usersComponents["parameters"]["organizationId"];
26755
+ };
26756
+ path: {
26757
+ /** The application identifier string. */
26758
+ applicationId: usersComponents["parameters"]["applicationId"];
26759
+ };
26760
+ };
26761
+ responses: {
26762
+ /** Application instance was deleted. */
26763
+ 204: never;
26764
+ 401: usersComponents["responses"]["Unauthorized"];
26765
+ 403: usersComponents["responses"]["Forbidden"];
26766
+ 404: usersComponents["responses"]["NotFound"];
26767
+ };
26768
+ };
26769
+ /**
26770
+ * Retrieve a list of applications.
26771
+ * You may sort by the id, name, status, createdTime, and updatedTime.
26772
+ */
26773
+ GetApplicationCollection: {
26774
+ parameters: {
26775
+ header: {
26776
+ /**
26777
+ * @deprecated Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).
26778
+ *
26779
+ * It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
26780
+ */
26781
+ "Organization-Id"?: usersComponents["parameters"]["organizationId"];
26782
+ };
26783
+ query: {
26784
+ /** The collection items limit. */
26785
+ limit?: usersComponents["parameters"]["collectionLimit"];
26786
+ /** The collection items offset. */
26787
+ offset?: usersComponents["parameters"]["collectionOffset"];
26788
+ /**
26789
+ * The collection items filter requires a special format.
26790
+ * Use "," for multiple allowed values. Use ";" for multiple fields.
26791
+ * See the [filter guide](https://api-reference.rebilly.com/#section/Using-filter-with-collections) for more options and examples about this format.
26792
+ */
26793
+ filter?: usersComponents["parameters"]["collectionFilter"];
26794
+ /** The partial search of the text fields. */
26795
+ q?: usersComponents["parameters"]["collectionQuery"];
26796
+ /**
26797
+ * Expand a response to get a full related object included inside of the `_embedded` path in the response.
26798
+ * It accepts a comma-separated list of objects to expand.
26799
+ * See the [expand guide](https://api-reference.rebilly.com/#section/Expand-to-include-embedded-objects) for more info.
26800
+ */
26801
+ expand?: usersComponents["parameters"]["collectionExpand"];
26802
+ /** Limit the returned fields to the list specified, separated by comma. Note that id is always returned. */
26803
+ fields?: usersComponents["parameters"]["collectionFields"];
26804
+ /** The collection items sort field and order (prefix with "-" for descending sort). */
26805
+ sort?: usersComponents["parameters"]["collectionSort"];
26806
+ };
26807
+ };
26808
+ responses: {
26809
+ /** A list of applications was retrieved successfully. */
26810
+ 200: {
26811
+ headers: {};
26812
+ content: {
26813
+ "application/json": usersComponents["schemas"]["Application-2"][];
26814
+ };
26815
+ };
26816
+ 401: usersComponents["responses"]["Unauthorized"];
26817
+ 403: usersComponents["responses"]["Forbidden"];
26818
+ };
26819
+ };
26820
+ /** Register an application. */
26821
+ PostApplication: {
26822
+ parameters: {
26823
+ header: {
26824
+ /**
26825
+ * @deprecated Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).
26826
+ *
26827
+ * It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
26828
+ */
26829
+ "Organization-Id"?: usersComponents["parameters"]["organizationId"];
26830
+ };
26831
+ };
26832
+ responses: {
26833
+ /** Application was registered. */
26834
+ 201: {
26835
+ content: {
26836
+ "application/json": usersComponents["schemas"]["Application"];
26837
+ };
26838
+ };
26839
+ 401: usersComponents["responses"]["Unauthorized"];
26840
+ 403: usersComponents["responses"]["Forbidden"];
26841
+ 409: usersComponents["responses"]["Conflict"];
26842
+ 422: usersComponents["responses"]["ValidationError"];
26843
+ };
26844
+ requestBody: {
26845
+ content: {
26846
+ "application/json": usersComponents["schemas"]["Application"];
26847
+ };
26848
+ };
26849
+ };
26850
+ /** Retrieve application with predefined identifier string. */
26851
+ GetApplication: {
26852
+ parameters: {
26853
+ header: {
26854
+ /**
26855
+ * @deprecated Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).
26856
+ *
26857
+ * It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
26858
+ */
26859
+ "Organization-Id"?: usersComponents["parameters"]["organizationId"];
26860
+ };
26861
+ path: {
26862
+ /** The resource identifier string. */
26863
+ id: usersComponents["parameters"]["resourceId"];
26864
+ };
26865
+ };
26866
+ responses: {
26867
+ /** Applications was retrieved successfully. */
26868
+ 200: {
26869
+ headers: {};
26870
+ content: {
26871
+ "application/json": usersComponents["schemas"]["Application-2"];
26872
+ };
26873
+ };
26874
+ 401: usersComponents["responses"]["Unauthorized"];
26875
+ 403: usersComponents["responses"]["Forbidden"];
26876
+ };
26877
+ };
26878
+ /** Retrieve application instances with predefined application identifier string. */
26879
+ GetApplicationInstanceCollection: {
26880
+ parameters: {
26881
+ header: {
26882
+ /**
26883
+ * @deprecated Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).
26884
+ *
26885
+ * It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
26886
+ */
26887
+ "Organization-Id"?: usersComponents["parameters"]["organizationId"];
26888
+ };
26889
+ path: {
26890
+ /** The resource identifier string. */
26891
+ id: usersComponents["parameters"]["resourceId"];
26892
+ };
26893
+ };
26894
+ responses: {
26895
+ /** Application instances were retrieved successfully. */
26896
+ 200: {
26897
+ headers: {};
26898
+ content: {
26899
+ "application/json": usersComponents["schemas"]["ApplicationInstance-2"][];
26900
+ };
26901
+ };
26902
+ 401: usersComponents["responses"]["Unauthorized"];
26903
+ 403: usersComponents["responses"]["Forbidden"];
26904
+ };
26905
+ };
26906
+ /** Retrieve application instance with predefined application and organization identifier strings. */
26907
+ GetApplicationInstanceByOrganization: {
26908
+ parameters: {
26909
+ header: {
26910
+ /**
26911
+ * @deprecated Organization identifier in scope of which need to perform request (if not specified, the default organization will be used).
26912
+ *
26913
+ * It is deprecated. Use servers with `/organizations/{organizationId}` base path instead.
26914
+ */
26915
+ "Organization-Id"?: usersComponents["parameters"]["organizationId"];
26916
+ };
26917
+ path: {
26918
+ /** The resource identifier string. */
26919
+ id: usersComponents["parameters"]["resourceId"];
26920
+ /** The organization identifier string. */
26921
+ organizationId: usersComponents["parameters"]["organizationIdPathParam"];
26922
+ };
26923
+ };
26924
+ responses: {
26925
+ /** Application instance was retrieved successfully. */
26926
+ 200: {
26927
+ headers: {};
26928
+ content: {
26929
+ "application/json": usersComponents["schemas"]["ApplicationInstance-2"];
26930
+ };
26931
+ };
26932
+ 401: usersComponents["responses"]["Unauthorized"];
26933
+ 403: usersComponents["responses"]["Forbidden"];
26934
+ };
26935
+ };
26362
26936
  /**
26363
26937
  * Retrieve a list of balance transactions.
26364
26938
  *
@@ -30918,6 +31492,44 @@ export interface operations {
30918
31492
  };
30919
31493
  };
30920
31494
  };
31495
+ /** Retrieve user MFA status. */
31496
+ GetProfileMfa: {
31497
+ responses: {
31498
+ /** User MFA status was retrieved successfully. */
31499
+ 200: {
31500
+ content: {
31501
+ "application/json": usersComponents["schemas"]["ProfileMfa"];
31502
+ };
31503
+ };
31504
+ 401: usersComponents["responses"]["Unauthorized"];
31505
+ 403: usersComponents["responses"]["Forbidden"];
31506
+ 404: usersComponents["responses"]["NotFound"];
31507
+ };
31508
+ };
31509
+ /** Update user MFA. Link with rel `enrollment` must be followed to verify existing or enroll new MFA. */
31510
+ PostProfileMfa: {
31511
+ responses: {
31512
+ /** User MFA update url was created successfuly. */
31513
+ 201: {
31514
+ content: {
31515
+ "application/json": usersComponents["schemas"]["ProfileMfa"];
31516
+ };
31517
+ };
31518
+ 401: usersComponents["responses"]["Unauthorized"];
31519
+ 403: usersComponents["responses"]["Forbidden"];
31520
+ 404: usersComponents["responses"]["NotFound"];
31521
+ };
31522
+ };
31523
+ /** Delete user MFA. To succed `lastAuthTime` must be no more than 10 minutes before this call. */
31524
+ DeleteProfileMfa: {
31525
+ responses: {
31526
+ /** User MFA was deleted successfuly. */
31527
+ 204: never;
31528
+ 401: usersComponents["responses"]["Unauthorized"];
31529
+ 403: usersComponents["responses"]["Forbidden"];
31530
+ 404: usersComponents["responses"]["NotFound"];
31531
+ };
31532
+ };
30921
31533
  /** Updates user's password with the specified newPassword. And checks if. currentPassword matches the actual one. */
30922
31534
  PostProfilePasswordChange: {
30923
31535
  responses: {
@@ -33489,6 +34101,7 @@ export interface storefrontComponents {
33489
34101
  | "AsiaPaymentGateway"
33490
34102
  | "AstroPayCard"
33491
34103
  | "AuthorizeNet"
34104
+ | "Awepay"
33492
34105
  | "Bambora"
33493
34106
  | "BitPay"
33494
34107
  | "BlueSnap"
@@ -33824,6 +34437,8 @@ export interface storefrontComponents {
33824
34437
  /** The number of document upload attempts. `0` treated as unlimited. */
33825
34438
  maxAttempts: number;
33826
34439
  }[];
34440
+ /** Status of the request. */
34441
+ status?: "pending" | "fulfilled" | "expired";
33827
34442
  /** The URL to redirect the customer when an upload is completed. */
33828
34443
  redirectUrl?: string;
33829
34444
  /** Expiration date/time. */
@@ -34950,7 +35565,7 @@ export interface storefrontComponents {
34950
35565
  };
34951
35566
  };
34952
35567
  responses: {
34953
- /** Unauthorized access, invalid credentials was used. */
35568
+ /** Unauthorized access, invalid credentials were used. */
34954
35569
  Unauthorized: {
34955
35570
  content: {
34956
35571
  "application/json": storefrontComponents["schemas"]["Error"];
@@ -36698,6 +37313,40 @@ declare module "resources/api-keys-resource" {
36698
37313
  }): any;
36699
37314
  };
36700
37315
  }
37316
+ declare module "resources/application-instances-resource" {
37317
+ export default function ApplicationInstancesResource({ apiHandler }: {
37318
+ apiHandler: any;
37319
+ }): {
37320
+ get({ applicationId }: {
37321
+ applicationId: any;
37322
+ }): rebilly.GetApplicationInstanceResponsePromise;
37323
+ upsert({ applicationId, data }: {
37324
+ applicationId: any;
37325
+ data: any;
37326
+ }): rebilly.PutApplicationInstanceResponsePromise;
37327
+ delete({ applicationId }: {
37328
+ applicationId: any;
37329
+ }): any;
37330
+ };
37331
+ }
37332
+ declare module "resources/applications-resource" {
37333
+ export default function ApplicationsResource({ apiHandler }: {
37334
+ apiHandler: any;
37335
+ }): {
37336
+ getAll({ limit, offset, filter, q, expand, fields, sort, }?: rebilly.GetApplicationCollectionRequest): rebilly.GetApplicationCollectionResponsePromise;
37337
+ create({ data }: {
37338
+ data: any;
37339
+ }): any;
37340
+ get({ id }: {
37341
+ id: any;
37342
+ }): rebilly.GetApplicationResponsePromise;
37343
+ getInstances({ id }: rebilly.GetApplicationInstanceCollectionRequest): rebilly.GetApplicationInstanceCollectionResponsePromise;
37344
+ getInstance({ id, organizationId }: {
37345
+ id: any;
37346
+ organizationId: any;
37347
+ }): rebilly.GetApplicationInstanceByOrganizationResponsePromise;
37348
+ };
37349
+ }
36701
37350
  declare module "resources/balance-transactions-resource" {
36702
37351
  export default function BalanceTransactionsResource({ apiHandler }: {
36703
37352
  apiHandler: any;
@@ -37760,6 +38409,9 @@ declare module "resources/profile-resource" {
37760
38409
  update({ data }: {
37761
38410
  data: any;
37762
38411
  }): rebilly.PutProfileResponsePromise;
38412
+ getMfa(): rebilly.GetProfileMfaResponsePromise;
38413
+ updateMfa(): any;
38414
+ deleteMfa(): any;
37763
38415
  updatePassword({ data }: {
37764
38416
  data: any;
37765
38417
  }): any;
@@ -38186,6 +38838,40 @@ declare module "resources/api-instance" {
38186
38838
  id: any;
38187
38839
  }): any;
38188
38840
  };
38841
+ applicationInstances: {
38842
+ get({ applicationId }: {
38843
+ applicationId: any;
38844
+ }): rebilly.GetApplicationInstanceResponsePromise;
38845
+ upsert({ applicationId, data }: {
38846
+ applicationId: any;
38847
+ data: any;
38848
+ }): rebilly.PutApplicationInstanceResponsePromise;
38849
+ delete({ applicationId }: {
38850
+ applicationId: any;
38851
+ }): any;
38852
+ };
38853
+ applications: {
38854
+ getAll({ limit, offset, filter, q, expand, fields, sort, }?: {
38855
+ limit?: number;
38856
+ offset?: number;
38857
+ filter?: string;
38858
+ q?: string;
38859
+ expand?: string;
38860
+ fields?: string;
38861
+ sort?: string[];
38862
+ }): rebilly.GetApplicationCollectionResponsePromise;
38863
+ create({ data }: {
38864
+ data: any;
38865
+ }): any;
38866
+ get({ id }: {
38867
+ id: any;
38868
+ }): rebilly.GetApplicationResponsePromise;
38869
+ getInstances({ id }: rebilly.GetApplicationInstanceCollectionRequest): rebilly.GetApplicationInstanceCollectionResponsePromise;
38870
+ getInstance({ id, organizationId }: {
38871
+ id: any;
38872
+ organizationId: any;
38873
+ }): rebilly.GetApplicationInstanceByOrganizationResponsePromise;
38874
+ };
38189
38875
  balanceTransactions: {
38190
38876
  getAll({ limit, offset }?: {
38191
38877
  limit?: number;
@@ -39298,6 +39984,9 @@ declare module "resources/api-instance" {
39298
39984
  update({ data }: {
39299
39985
  data: any;
39300
39986
  }): rebilly.PutProfileResponsePromise;
39987
+ getMfa(): rebilly.GetProfileMfaResponsePromise;
39988
+ updateMfa(): any;
39989
+ deleteMfa(): any;
39301
39990
  updatePassword({ data }: {
39302
39991
  data: any;
39303
39992
  }): any;