rebilly-js-sdk 62.235.1 → 62.236.1
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/CHANGELOG.md +2 -4
- package/dist/rebilly-js-sdk.d.cts +190 -26
- package/dist/rebilly-js-sdk.d.mts +190 -26
- package/dist/rebilly-js-sdk.d.ts +190 -26
- package/dist/rebilly-js-sdk.es.mjs +222 -217
- package/dist/rebilly-js-sdk.umd.js +1 -1
- package/package.json +1 -1
- package/src/api-handler.spec.js +7 -3
- package/src/create-api-handler.js +3 -0
- package/src/errors/errors.js +12 -0
- package/src/errors/errors.spec.js +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -3182,6 +3182,15 @@ export interface corePaths {
|
|
|
3182
3182
|
*
|
|
3183
3183
|
* One use case for this operation to apply a revoked coupon,
|
|
3184
3184
|
* or coupon that is redeemed by a customer after the invoice is issued.
|
|
3185
|
+
*
|
|
3186
|
+
* Shipping amount recalculation depends on the `shipping.calculator` property:
|
|
3187
|
+
*
|
|
3188
|
+
* - If `shipping.calculator` is `manual` and the invoice is issued, the shipping amount is not changed.
|
|
3189
|
+
* - If `shipping.calculator` is `manual` and the invoice is a scheduled draft or a quotation, the shipping amount is 0 if no invoice item requires shipping.
|
|
3190
|
+
* - If `shipping.calculator` is `rebilly`, the shipping amount is recalculated from the current shipping rates.
|
|
3191
|
+
* This amount can differ from the original shipping amount of the invoice.
|
|
3192
|
+
* The shipping amount is 0 if no invoice item requires shipping.
|
|
3193
|
+
* A scheduled draft without a shipping rate also gets a shipping amount of 0.
|
|
3185
3194
|
*/
|
|
3186
3195
|
post: operations["PostInvoiceRecalculation"];
|
|
3187
3196
|
parameters: {
|
|
@@ -4627,7 +4636,12 @@ export interface corePaths {
|
|
|
4627
4636
|
"/api-keys": {
|
|
4628
4637
|
/** Retrieve a list of API keys. */
|
|
4629
4638
|
get: operations["GetApiKeyCollection"];
|
|
4630
|
-
/**
|
|
4639
|
+
/**
|
|
4640
|
+
* Creates an API key for the authenticated user.
|
|
4641
|
+
* The key is not assigned to another user.
|
|
4642
|
+
* If the authenticated user is removed from an organization, a request to that organization that uses the API key is not authorized.
|
|
4643
|
+
* For more information, see [Ownership of an API key](https://www.rebilly.com/docs/dev-docs/api-keys/#ownership-of-an-api-key).
|
|
4644
|
+
*/
|
|
4631
4645
|
post: operations["PostApiKey"];
|
|
4632
4646
|
};
|
|
4633
4647
|
"/api-keys/{id}": {
|
|
@@ -5746,6 +5760,9 @@ export interface corePaths {
|
|
|
5746
5760
|
* To turn on `requireMfa`, the session must have passed MFA.
|
|
5747
5761
|
* If the session has not passed MFA, the response is `403` and `error` is `mfa_required_for_caller`.
|
|
5748
5762
|
* If the number of users who have MFA set up is temporarily unavailable, `requireMfa` cannot be turned on and the response is `503`.
|
|
5763
|
+
* If `allowedIps` contains IP addresses, users can use the organization in the Rebilly UI only from those IP addresses.
|
|
5764
|
+
* If a request comes from another IP address, other operations respond with `403` and `error` is `ip_not_allowed`.
|
|
5765
|
+
* If the list does not include the IP address of the caller, the response is `422`.
|
|
5749
5766
|
* Settings apply to the current environment only: live and sandbox are configured separately.
|
|
5750
5767
|
*/
|
|
5751
5768
|
put: operations["PutSecuritySettings"];
|
|
@@ -6278,6 +6295,12 @@ export interface coreComponents {
|
|
|
6278
6295
|
/** HTTP status code. */
|
|
6279
6296
|
status?: number;
|
|
6280
6297
|
} & coreComponents["schemas"]["BaseProblem"];
|
|
6298
|
+
/**
|
|
6299
|
+
* Unique organization identifier.
|
|
6300
|
+
* An organization is an entity that represents a company.
|
|
6301
|
+
* For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
6302
|
+
*/
|
|
6303
|
+
OrganizationId: string;
|
|
6281
6304
|
Forbidden: { [key: string]: any } & {
|
|
6282
6305
|
/** HTTP status code. */
|
|
6283
6306
|
status?: number;
|
|
@@ -6286,8 +6309,15 @@ export interface coreComponents {
|
|
|
6286
6309
|
* Most responses use a descriptive message, such as `Not allowed to change security settings`.
|
|
6287
6310
|
* If the organization requires multi-factor authentication (MFA) and MFA verification has not been completed for the session, this value is `mfa_required`.
|
|
6288
6311
|
* If the request sets `requireMfa` to `true` and MFA verification has not been completed for the session, this value is `mfa_required_for_caller`.
|
|
6312
|
+
* If the organization restricts access to a list of IP addresses and the request comes from an IP address that is not in the list, this value is `ip_not_allowed`.
|
|
6289
6313
|
*/
|
|
6290
6314
|
error?: string;
|
|
6315
|
+
/**
|
|
6316
|
+
* ID of the organization that does not allow the IP address of the request.
|
|
6317
|
+
* This property is present only if `error` is `ip_not_allowed`.
|
|
6318
|
+
* The organization is the organization of the request or another organization that the request acts on.
|
|
6319
|
+
*/
|
|
6320
|
+
organizationId?: coreComponents["schemas"]["OrganizationId"];
|
|
6291
6321
|
} & coreComponents["schemas"]["BaseProblem"];
|
|
6292
6322
|
NotFound: {
|
|
6293
6323
|
/** HTTP status code. */
|
|
@@ -7543,12 +7573,6 @@ export interface coreComponents {
|
|
|
7543
7573
|
/** Revenue amount in USD. */
|
|
7544
7574
|
amountUsd?: number;
|
|
7545
7575
|
};
|
|
7546
|
-
/**
|
|
7547
|
-
* Unique organization identifier.
|
|
7548
|
-
* An organization is an entity that represents a company.
|
|
7549
|
-
* For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
7550
|
-
*/
|
|
7551
|
-
OrganizationId: string;
|
|
7552
7576
|
TaxNumber: {
|
|
7553
7577
|
/** Type of the tax number. */
|
|
7554
7578
|
type: "eu-vat" | "other";
|
|
@@ -9617,6 +9641,20 @@ export interface coreComponents {
|
|
|
9617
9641
|
subtotalAmount?: number;
|
|
9618
9642
|
/** Discount amount that is applied to the invoice. */
|
|
9619
9643
|
discountAmount?: number;
|
|
9644
|
+
/**
|
|
9645
|
+
* Shipping settings of the invoice.
|
|
9646
|
+
* The `calculator` property is `manual` when the shipping amount is provided
|
|
9647
|
+
* and `rebilly` when the amount is calculated from shipping rates.
|
|
9648
|
+
* If `calculator` is `manual` and an issued invoice is recalculated or its items change,
|
|
9649
|
+
* the shipping amount is not changed, even if no invoice item requires shipping.
|
|
9650
|
+
* If `calculator` is `manual` and no invoice item requires shipping, the shipping amount is 0 in these cases:
|
|
9651
|
+
*
|
|
9652
|
+
* - A draft invoice is issued with the [Issue an invoice](https://www.rebilly.com/catalog/all/invoices/postinvoiceissuance) operation, a renewal invoice is issued, or a scheduled draft invoice is recalculated.
|
|
9653
|
+
* - An order is created or previewed, a quote is created, or a `pending` order is updated.
|
|
9654
|
+
* This applies to the order invoice. The order keeps its shipping amount.
|
|
9655
|
+
*
|
|
9656
|
+
* To change the shipping amount of an issued invoice, use the [Upsert an invoice](https://www.rebilly.com/catalog/all/invoices/putinvoice) operation.
|
|
9657
|
+
*/
|
|
9620
9658
|
shipping?: coreComponents["schemas"]["Shipping"];
|
|
9621
9659
|
tax?: coreComponents["schemas"]["Taxes"];
|
|
9622
9660
|
/** Organization tax ID number that is displayed on the invoice. */
|
|
@@ -16008,8 +16046,14 @@ export interface coreComponents {
|
|
|
16008
16046
|
/** Type of API key. */
|
|
16009
16047
|
type?: "secret" | "publishable";
|
|
16010
16048
|
/**
|
|
16011
|
-
*
|
|
16012
|
-
*
|
|
16049
|
+
* Permissions for this API key.
|
|
16050
|
+
*
|
|
16051
|
+
* A request is authorized only when these permissions include the permission for the operation,
|
|
16052
|
+
* and the associated user has that permission.
|
|
16053
|
+
* If these permissions include `*`, each operation is limited to the permissions of the associated user.
|
|
16054
|
+
* If the associated user loses a permission and these permissions still include that permission, a request that requires that permission is not authorized.
|
|
16055
|
+
* If the associated user gains a permission, a request that requires that permission is authorized only when these permissions include that permission or `*`.
|
|
16056
|
+
* For more information, see [Ownership of an API key](https://www.rebilly.com/docs/dev-docs/api-keys/#ownership-of-an-api-key).
|
|
16013
16057
|
*/
|
|
16014
16058
|
acl?: coreComponents["schemas"]["Acl"];
|
|
16015
16059
|
allowedIps?: coreComponents["schemas"]["AllowedIps"];
|
|
@@ -23900,6 +23944,21 @@ export interface coreComponents {
|
|
|
23900
23944
|
SecuritySettings: {
|
|
23901
23945
|
/** Specifies if users must pass multi-factor authentication (MFA) to use this organization in the Rebilly UI. */
|
|
23902
23946
|
requireMfa: boolean;
|
|
23947
|
+
/**
|
|
23948
|
+
* List of IP addresses and Classless Inter-Domain Routing (CIDR) ranges from which users can use this organization in the Rebilly UI.
|
|
23949
|
+
* This setting does not apply to API keys.
|
|
23950
|
+
* This setting applies to the current environment only: live and sandbox are configured separately.
|
|
23951
|
+
* If an IP address has no prefix length, only that address is allowed.
|
|
23952
|
+
* Wildcards, such as `198.51.*.*`, are not accepted.
|
|
23953
|
+
* To remove the restriction, set this value to `null` or an empty array.
|
|
23954
|
+
* To retain the current list, omit this property.
|
|
23955
|
+
*/
|
|
23956
|
+
allowedIps?: coreComponents["schemas"]["AllowedIps"];
|
|
23957
|
+
/**
|
|
23958
|
+
* IP address of the client that sent the request.
|
|
23959
|
+
* This value is `null` if the IP address of the client cannot be determined.
|
|
23960
|
+
*/
|
|
23961
|
+
currentIpAddress?: string | null;
|
|
23903
23962
|
/**
|
|
23904
23963
|
* Number of users who have set up multi-factor authentication (MFA), excluding Rebilly staff.
|
|
23905
23964
|
* Pending invitations are counted as users without MFA.
|
|
@@ -34124,6 +34183,15 @@ export interface operations {
|
|
|
34124
34183
|
*
|
|
34125
34184
|
* One use case for this operation to apply a revoked coupon,
|
|
34126
34185
|
* or coupon that is redeemed by a customer after the invoice is issued.
|
|
34186
|
+
*
|
|
34187
|
+
* Shipping amount recalculation depends on the `shipping.calculator` property:
|
|
34188
|
+
*
|
|
34189
|
+
* - If `shipping.calculator` is `manual` and the invoice is issued, the shipping amount is not changed.
|
|
34190
|
+
* - If `shipping.calculator` is `manual` and the invoice is a scheduled draft or a quotation, the shipping amount is 0 if no invoice item requires shipping.
|
|
34191
|
+
* - If `shipping.calculator` is `rebilly`, the shipping amount is recalculated from the current shipping rates.
|
|
34192
|
+
* This amount can differ from the original shipping amount of the invoice.
|
|
34193
|
+
* The shipping amount is 0 if no invoice item requires shipping.
|
|
34194
|
+
* A scheduled draft without a shipping rate also gets a shipping amount of 0.
|
|
34127
34195
|
*/
|
|
34128
34196
|
PostInvoiceRecalculation: {
|
|
34129
34197
|
parameters: {
|
|
@@ -39999,7 +40067,12 @@ export interface operations {
|
|
|
39999
40067
|
403: coreComponents["responses"]["Forbidden"];
|
|
40000
40068
|
};
|
|
40001
40069
|
};
|
|
40002
|
-
/**
|
|
40070
|
+
/**
|
|
40071
|
+
* Creates an API key for the authenticated user.
|
|
40072
|
+
* The key is not assigned to another user.
|
|
40073
|
+
* If the authenticated user is removed from an organization, a request to that organization that uses the API key is not authorized.
|
|
40074
|
+
* For more information, see [Ownership of an API key](https://www.rebilly.com/docs/dev-docs/api-keys/#ownership-of-an-api-key).
|
|
40075
|
+
*/
|
|
40003
40076
|
PostApiKey: {
|
|
40004
40077
|
responses: {
|
|
40005
40078
|
/** API key created. */
|
|
@@ -44538,6 +44611,9 @@ export interface operations {
|
|
|
44538
44611
|
* To turn on `requireMfa`, the session must have passed MFA.
|
|
44539
44612
|
* If the session has not passed MFA, the response is `403` and `error` is `mfa_required_for_caller`.
|
|
44540
44613
|
* If the number of users who have MFA set up is temporarily unavailable, `requireMfa` cannot be turned on and the response is `503`.
|
|
44614
|
+
* If `allowedIps` contains IP addresses, users can use the organization in the Rebilly UI only from those IP addresses.
|
|
44615
|
+
* If a request comes from another IP address, other operations respond with `403` and `error` is `ip_not_allowed`.
|
|
44616
|
+
* If the list does not include the IP address of the caller, the response is `422`.
|
|
44541
44617
|
* Settings apply to the current environment only: live and sandbox are configured separately.
|
|
44542
44618
|
*/
|
|
44543
44619
|
PutSecuritySettings: {
|
|
@@ -46602,6 +46678,12 @@ export interface storefrontComponents {
|
|
|
46602
46678
|
/** HTTP status code. */
|
|
46603
46679
|
status?: number;
|
|
46604
46680
|
} & storefrontComponents["schemas"]["BaseProblem"];
|
|
46681
|
+
/**
|
|
46682
|
+
* Unique organization identifier.
|
|
46683
|
+
* An organization is an entity that represents a company.
|
|
46684
|
+
* For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
46685
|
+
*/
|
|
46686
|
+
OrganizationId: string;
|
|
46605
46687
|
Forbidden: { [key: string]: any } & {
|
|
46606
46688
|
/** HTTP status code. */
|
|
46607
46689
|
status?: number;
|
|
@@ -46610,8 +46692,15 @@ export interface storefrontComponents {
|
|
|
46610
46692
|
* Most responses use a descriptive message, such as `Not allowed to change security settings`.
|
|
46611
46693
|
* If the organization requires multi-factor authentication (MFA) and MFA verification has not been completed for the session, this value is `mfa_required`.
|
|
46612
46694
|
* If the request sets `requireMfa` to `true` and MFA verification has not been completed for the session, this value is `mfa_required_for_caller`.
|
|
46695
|
+
* If the organization restricts access to a list of IP addresses and the request comes from an IP address that is not in the list, this value is `ip_not_allowed`.
|
|
46613
46696
|
*/
|
|
46614
46697
|
error?: string;
|
|
46698
|
+
/**
|
|
46699
|
+
* ID of the organization that does not allow the IP address of the request.
|
|
46700
|
+
* This property is present only if `error` is `ip_not_allowed`.
|
|
46701
|
+
* The organization is the organization of the request or another organization that the request acts on.
|
|
46702
|
+
*/
|
|
46703
|
+
organizationId?: storefrontComponents["schemas"]["OrganizationId"];
|
|
46615
46704
|
} & storefrontComponents["schemas"]["BaseProblem"];
|
|
46616
46705
|
NotFound: {
|
|
46617
46706
|
/** HTTP status code. */
|
|
@@ -47867,12 +47956,6 @@ export interface storefrontComponents {
|
|
|
47867
47956
|
/** Revenue amount in USD. */
|
|
47868
47957
|
amountUsd?: number;
|
|
47869
47958
|
};
|
|
47870
|
-
/**
|
|
47871
|
-
* Unique organization identifier.
|
|
47872
|
-
* An organization is an entity that represents a company.
|
|
47873
|
-
* For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
47874
|
-
*/
|
|
47875
|
-
OrganizationId: string;
|
|
47876
47959
|
TaxNumber: {
|
|
47877
47960
|
/** Type of the tax number. */
|
|
47878
47961
|
type: "eu-vat" | "other";
|
|
@@ -49941,6 +50024,20 @@ export interface storefrontComponents {
|
|
|
49941
50024
|
subtotalAmount?: number;
|
|
49942
50025
|
/** Discount amount that is applied to the invoice. */
|
|
49943
50026
|
discountAmount?: number;
|
|
50027
|
+
/**
|
|
50028
|
+
* Shipping settings of the invoice.
|
|
50029
|
+
* The `calculator` property is `manual` when the shipping amount is provided
|
|
50030
|
+
* and `rebilly` when the amount is calculated from shipping rates.
|
|
50031
|
+
* If `calculator` is `manual` and an issued invoice is recalculated or its items change,
|
|
50032
|
+
* the shipping amount is not changed, even if no invoice item requires shipping.
|
|
50033
|
+
* If `calculator` is `manual` and no invoice item requires shipping, the shipping amount is 0 in these cases:
|
|
50034
|
+
*
|
|
50035
|
+
* - A draft invoice is issued with the [Issue an invoice](https://www.rebilly.com/catalog/all/invoices/postinvoiceissuance) operation, a renewal invoice is issued, or a scheduled draft invoice is recalculated.
|
|
50036
|
+
* - An order is created or previewed, a quote is created, or a `pending` order is updated.
|
|
50037
|
+
* This applies to the order invoice. The order keeps its shipping amount.
|
|
50038
|
+
*
|
|
50039
|
+
* To change the shipping amount of an issued invoice, use the [Upsert an invoice](https://www.rebilly.com/catalog/all/invoices/putinvoice) operation.
|
|
50040
|
+
*/
|
|
49944
50041
|
shipping?: storefrontComponents["schemas"]["Shipping"];
|
|
49945
50042
|
tax?: storefrontComponents["schemas"]["Taxes"];
|
|
49946
50043
|
/** Organization tax ID number that is displayed on the invoice. */
|
|
@@ -56332,8 +56429,14 @@ export interface storefrontComponents {
|
|
|
56332
56429
|
/** Type of API key. */
|
|
56333
56430
|
type?: "secret" | "publishable";
|
|
56334
56431
|
/**
|
|
56335
|
-
*
|
|
56336
|
-
*
|
|
56432
|
+
* Permissions for this API key.
|
|
56433
|
+
*
|
|
56434
|
+
* A request is authorized only when these permissions include the permission for the operation,
|
|
56435
|
+
* and the associated user has that permission.
|
|
56436
|
+
* If these permissions include `*`, each operation is limited to the permissions of the associated user.
|
|
56437
|
+
* If the associated user loses a permission and these permissions still include that permission, a request that requires that permission is not authorized.
|
|
56438
|
+
* If the associated user gains a permission, a request that requires that permission is authorized only when these permissions include that permission or `*`.
|
|
56439
|
+
* For more information, see [Ownership of an API key](https://www.rebilly.com/docs/dev-docs/api-keys/#ownership-of-an-api-key).
|
|
56337
56440
|
*/
|
|
56338
56441
|
acl?: storefrontComponents["schemas"]["Acl"];
|
|
56339
56442
|
allowedIps?: storefrontComponents["schemas"]["AllowedIps"];
|
|
@@ -64224,6 +64327,21 @@ export interface storefrontComponents {
|
|
|
64224
64327
|
SecuritySettings: {
|
|
64225
64328
|
/** Specifies if users must pass multi-factor authentication (MFA) to use this organization in the Rebilly UI. */
|
|
64226
64329
|
requireMfa: boolean;
|
|
64330
|
+
/**
|
|
64331
|
+
* List of IP addresses and Classless Inter-Domain Routing (CIDR) ranges from which users can use this organization in the Rebilly UI.
|
|
64332
|
+
* This setting does not apply to API keys.
|
|
64333
|
+
* This setting applies to the current environment only: live and sandbox are configured separately.
|
|
64334
|
+
* If an IP address has no prefix length, only that address is allowed.
|
|
64335
|
+
* Wildcards, such as `198.51.*.*`, are not accepted.
|
|
64336
|
+
* To remove the restriction, set this value to `null` or an empty array.
|
|
64337
|
+
* To retain the current list, omit this property.
|
|
64338
|
+
*/
|
|
64339
|
+
allowedIps?: storefrontComponents["schemas"]["AllowedIps"];
|
|
64340
|
+
/**
|
|
64341
|
+
* IP address of the client that sent the request.
|
|
64342
|
+
* This value is `null` if the IP address of the client cannot be determined.
|
|
64343
|
+
*/
|
|
64344
|
+
currentIpAddress?: string | null;
|
|
64227
64345
|
/**
|
|
64228
64346
|
* Number of users who have set up multi-factor authentication (MFA), excluding Rebilly staff.
|
|
64229
64347
|
* Pending invitations are counted as users without MFA.
|
|
@@ -74166,6 +74284,12 @@ export interface reportsComponents {
|
|
|
74166
74284
|
/** HTTP status code. */
|
|
74167
74285
|
status?: number;
|
|
74168
74286
|
} & reportsComponents["schemas"]["BaseProblem"];
|
|
74287
|
+
/**
|
|
74288
|
+
* Unique organization identifier.
|
|
74289
|
+
* An organization is an entity that represents a company.
|
|
74290
|
+
* For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
74291
|
+
*/
|
|
74292
|
+
OrganizationId: string;
|
|
74169
74293
|
Forbidden: { [key: string]: any } & {
|
|
74170
74294
|
/** HTTP status code. */
|
|
74171
74295
|
status?: number;
|
|
@@ -74174,8 +74298,15 @@ export interface reportsComponents {
|
|
|
74174
74298
|
* Most responses use a descriptive message, such as `Not allowed to change security settings`.
|
|
74175
74299
|
* If the organization requires multi-factor authentication (MFA) and MFA verification has not been completed for the session, this value is `mfa_required`.
|
|
74176
74300
|
* If the request sets `requireMfa` to `true` and MFA verification has not been completed for the session, this value is `mfa_required_for_caller`.
|
|
74301
|
+
* If the organization restricts access to a list of IP addresses and the request comes from an IP address that is not in the list, this value is `ip_not_allowed`.
|
|
74177
74302
|
*/
|
|
74178
74303
|
error?: string;
|
|
74304
|
+
/**
|
|
74305
|
+
* ID of the organization that does not allow the IP address of the request.
|
|
74306
|
+
* This property is present only if `error` is `ip_not_allowed`.
|
|
74307
|
+
* The organization is the organization of the request or another organization that the request acts on.
|
|
74308
|
+
*/
|
|
74309
|
+
organizationId?: reportsComponents["schemas"]["OrganizationId"];
|
|
74179
74310
|
} & reportsComponents["schemas"]["BaseProblem"];
|
|
74180
74311
|
NotFound: {
|
|
74181
74312
|
/** HTTP status code. */
|
|
@@ -75431,12 +75562,6 @@ export interface reportsComponents {
|
|
|
75431
75562
|
/** Revenue amount in USD. */
|
|
75432
75563
|
amountUsd?: number;
|
|
75433
75564
|
};
|
|
75434
|
-
/**
|
|
75435
|
-
* Unique organization identifier.
|
|
75436
|
-
* An organization is an entity that represents a company.
|
|
75437
|
-
* For more information, see [Obtain an organization ID](https://www.rebilly.com/docs/settings/organizations-and-websites/#obtain-your-organization-id-and-website-id).
|
|
75438
|
-
*/
|
|
75439
|
-
OrganizationId: string;
|
|
75440
75565
|
TaxNumber: {
|
|
75441
75566
|
/** Type of the tax number. */
|
|
75442
75567
|
type: "eu-vat" | "other";
|
|
@@ -77505,6 +77630,20 @@ export interface reportsComponents {
|
|
|
77505
77630
|
subtotalAmount?: number;
|
|
77506
77631
|
/** Discount amount that is applied to the invoice. */
|
|
77507
77632
|
discountAmount?: number;
|
|
77633
|
+
/**
|
|
77634
|
+
* Shipping settings of the invoice.
|
|
77635
|
+
* The `calculator` property is `manual` when the shipping amount is provided
|
|
77636
|
+
* and `rebilly` when the amount is calculated from shipping rates.
|
|
77637
|
+
* If `calculator` is `manual` and an issued invoice is recalculated or its items change,
|
|
77638
|
+
* the shipping amount is not changed, even if no invoice item requires shipping.
|
|
77639
|
+
* If `calculator` is `manual` and no invoice item requires shipping, the shipping amount is 0 in these cases:
|
|
77640
|
+
*
|
|
77641
|
+
* - A draft invoice is issued with the [Issue an invoice](https://www.rebilly.com/catalog/all/invoices/postinvoiceissuance) operation, a renewal invoice is issued, or a scheduled draft invoice is recalculated.
|
|
77642
|
+
* - An order is created or previewed, a quote is created, or a `pending` order is updated.
|
|
77643
|
+
* This applies to the order invoice. The order keeps its shipping amount.
|
|
77644
|
+
*
|
|
77645
|
+
* To change the shipping amount of an issued invoice, use the [Upsert an invoice](https://www.rebilly.com/catalog/all/invoices/putinvoice) operation.
|
|
77646
|
+
*/
|
|
77508
77647
|
shipping?: reportsComponents["schemas"]["Shipping"];
|
|
77509
77648
|
tax?: reportsComponents["schemas"]["Taxes"];
|
|
77510
77649
|
/** Organization tax ID number that is displayed on the invoice. */
|
|
@@ -83896,8 +84035,14 @@ export interface reportsComponents {
|
|
|
83896
84035
|
/** Type of API key. */
|
|
83897
84036
|
type?: "secret" | "publishable";
|
|
83898
84037
|
/**
|
|
83899
|
-
*
|
|
83900
|
-
*
|
|
84038
|
+
* Permissions for this API key.
|
|
84039
|
+
*
|
|
84040
|
+
* A request is authorized only when these permissions include the permission for the operation,
|
|
84041
|
+
* and the associated user has that permission.
|
|
84042
|
+
* If these permissions include `*`, each operation is limited to the permissions of the associated user.
|
|
84043
|
+
* If the associated user loses a permission and these permissions still include that permission, a request that requires that permission is not authorized.
|
|
84044
|
+
* If the associated user gains a permission, a request that requires that permission is authorized only when these permissions include that permission or `*`.
|
|
84045
|
+
* For more information, see [Ownership of an API key](https://www.rebilly.com/docs/dev-docs/api-keys/#ownership-of-an-api-key).
|
|
83901
84046
|
*/
|
|
83902
84047
|
acl?: reportsComponents["schemas"]["Acl"];
|
|
83903
84048
|
allowedIps?: reportsComponents["schemas"]["AllowedIps"];
|
|
@@ -91788,6 +91933,21 @@ export interface reportsComponents {
|
|
|
91788
91933
|
SecuritySettings: {
|
|
91789
91934
|
/** Specifies if users must pass multi-factor authentication (MFA) to use this organization in the Rebilly UI. */
|
|
91790
91935
|
requireMfa: boolean;
|
|
91936
|
+
/**
|
|
91937
|
+
* List of IP addresses and Classless Inter-Domain Routing (CIDR) ranges from which users can use this organization in the Rebilly UI.
|
|
91938
|
+
* This setting does not apply to API keys.
|
|
91939
|
+
* This setting applies to the current environment only: live and sandbox are configured separately.
|
|
91940
|
+
* If an IP address has no prefix length, only that address is allowed.
|
|
91941
|
+
* Wildcards, such as `198.51.*.*`, are not accepted.
|
|
91942
|
+
* To remove the restriction, set this value to `null` or an empty array.
|
|
91943
|
+
* To retain the current list, omit this property.
|
|
91944
|
+
*/
|
|
91945
|
+
allowedIps?: reportsComponents["schemas"]["AllowedIps"];
|
|
91946
|
+
/**
|
|
91947
|
+
* IP address of the client that sent the request.
|
|
91948
|
+
* This value is `null` if the IP address of the client cannot be determined.
|
|
91949
|
+
*/
|
|
91950
|
+
currentIpAddress?: string | null;
|
|
91791
91951
|
/**
|
|
91792
91952
|
* Number of users who have set up multi-factor authentication (MFA), excluding Rebilly staff.
|
|
91793
91953
|
* Pending invitations are counted as users without MFA.
|
|
@@ -103092,6 +103252,7 @@ declare module "errors/errors" {
|
|
|
103092
103252
|
export { RebillyError };
|
|
103093
103253
|
export { RebillyRequestError };
|
|
103094
103254
|
export { RebillyMfaRequiredError };
|
|
103255
|
+
export { RebillyIpNotAllowedError };
|
|
103095
103256
|
export { RebillyValidationError };
|
|
103096
103257
|
export { RebillyNotFoundError };
|
|
103097
103258
|
export { RebillyConflictError };
|
|
@@ -103107,6 +103268,9 @@ declare module "errors/errors" {
|
|
|
103107
103268
|
class RebillyMfaRequiredError extends RebillyRequestError {
|
|
103108
103269
|
name: string;
|
|
103109
103270
|
}
|
|
103271
|
+
class RebillyIpNotAllowedError extends RebillyRequestError {
|
|
103272
|
+
name: string;
|
|
103273
|
+
}
|
|
103110
103274
|
class RebillyValidationError extends RebillyError {
|
|
103111
103275
|
constructor(error: any);
|
|
103112
103276
|
}
|