@rebilly/instruments 9.84.2 → 9.84.4
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 -2
- package/dist/index.d.ts +81 -81
- package/dist/index.js +423 -8009
- package/dist/index.min.js +8 -14
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [9.84.
|
|
1
|
+
## [9.84.4](https://github.com/Rebilly/rebilly/compare/instruments/core-v9.84.3...instruments/core-v9.84.4) (2024-09-27)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* **instrument:**
|
|
6
|
+
* **instrument, billing-portal:** Remove AJV from libraries until we can setup compile workflows ([#7782](https://github.com/Rebilly/rebilly/issues/7782)) ([56107bc](https://github.com/Rebilly/rebilly/commit/56107bc9640f29c1eb13aab247c4b5ca3cf39101))
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
export interface PlanItem {
|
|
2
|
-
planId: string;
|
|
3
|
-
quantity: number;
|
|
4
|
-
thumbnail?: string;
|
|
5
|
-
}
|
|
6
|
-
export interface Quantity {
|
|
7
|
-
default?: number;
|
|
8
|
-
minimum?: number;
|
|
9
|
-
maximum?: number;
|
|
10
|
-
multipleOf?: number;
|
|
11
|
-
}
|
|
12
|
-
export interface Item {
|
|
13
|
-
planId: string;
|
|
14
|
-
quantity: number | Quantity;
|
|
15
|
-
thumbnail?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface Money {
|
|
18
|
-
amount: number;
|
|
19
|
-
currency: string;
|
|
20
|
-
}
|
|
21
1
|
export interface DepositObject {
|
|
22
2
|
currency: string;
|
|
23
3
|
amount?: number;
|
|
@@ -33,8 +13,21 @@ export interface DepositRequest {
|
|
|
33
13
|
depositRequestId: string;
|
|
34
14
|
}
|
|
35
15
|
export type Deposit = DepositRequest | DepositObject;
|
|
36
|
-
export interface
|
|
37
|
-
|
|
16
|
+
export interface DevProperties {
|
|
17
|
+
paymentMethodsUrl?: string;
|
|
18
|
+
liveUrl?: string;
|
|
19
|
+
sandboxUrl?: string;
|
|
20
|
+
framePayScriptLink?: string;
|
|
21
|
+
framePayStyleLink?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface Features {
|
|
24
|
+
enableTelemetry?: boolean;
|
|
25
|
+
hideConfirmation?: boolean;
|
|
26
|
+
hideResult?: boolean;
|
|
27
|
+
fullPageRedirect?: boolean;
|
|
28
|
+
showCoupons?: string[];
|
|
29
|
+
hideContinue?: boolean;
|
|
30
|
+
hideZeroAmountSummaryItems?: boolean;
|
|
38
31
|
}
|
|
39
32
|
export interface I18n {
|
|
40
33
|
[key: string]: {
|
|
@@ -47,6 +40,64 @@ export interface I18n {
|
|
|
47
40
|
paymentMethods?: object;
|
|
48
41
|
};
|
|
49
42
|
}
|
|
43
|
+
export interface InternalOptions {
|
|
44
|
+
appName?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface Quantity {
|
|
47
|
+
default?: number;
|
|
48
|
+
minimum?: number;
|
|
49
|
+
maximum?: number;
|
|
50
|
+
multipleOf?: number;
|
|
51
|
+
}
|
|
52
|
+
export interface Item {
|
|
53
|
+
planId: string;
|
|
54
|
+
quantity: number | Quantity;
|
|
55
|
+
thumbnail?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface Money {
|
|
58
|
+
amount: number;
|
|
59
|
+
currency: string;
|
|
60
|
+
}
|
|
61
|
+
export type AddressFields = "email" | "organization" | "phoneNumber" | "city" | "country" | "region" | "postalCode" | "address" | "address2";
|
|
62
|
+
export interface Address {
|
|
63
|
+
name?: "default" | "combined" | "stacked";
|
|
64
|
+
region?: "default" | "split" | "stacked";
|
|
65
|
+
show?: (AddressFields | "all")[];
|
|
66
|
+
hide?: (AddressFields | "all")[];
|
|
67
|
+
require?: AddressFields[];
|
|
68
|
+
}
|
|
69
|
+
export type AdditionalFields = "poNumber";
|
|
70
|
+
export interface DisplayOptions {
|
|
71
|
+
buttonColor?: string;
|
|
72
|
+
buttonHeight?: string;
|
|
73
|
+
buttonType?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface DigitalWalletConfiguration {
|
|
76
|
+
displayOptions?: DisplayOptions;
|
|
77
|
+
}
|
|
78
|
+
export interface PaymentInstrumentsOptionFlags {
|
|
79
|
+
compactExpressInstruments?: boolean;
|
|
80
|
+
allowDeactivate?: boolean;
|
|
81
|
+
allowUpdate?: boolean;
|
|
82
|
+
allowMakeDefault?: boolean;
|
|
83
|
+
allowCreate?: boolean;
|
|
84
|
+
}
|
|
85
|
+
export interface PaymentCardConfiguration {
|
|
86
|
+
input?: "default" | "split";
|
|
87
|
+
}
|
|
88
|
+
export interface PaymentInstrumentsDisplayOptions extends PaymentInstrumentsOptionFlags {
|
|
89
|
+
address?: Address;
|
|
90
|
+
paymentCard?: PaymentCardConfiguration;
|
|
91
|
+
paypal?: {
|
|
92
|
+
buttonHeight?: number;
|
|
93
|
+
};
|
|
94
|
+
googlePay?: DigitalWalletConfiguration;
|
|
95
|
+
applePay?: DigitalWalletConfiguration;
|
|
96
|
+
additionalFields?: {
|
|
97
|
+
show?: AdditionalFields[];
|
|
98
|
+
require?: AdditionalFields[];
|
|
99
|
+
};
|
|
100
|
+
}
|
|
50
101
|
export interface ThemeProperties {
|
|
51
102
|
[key: string]: string | undefined;
|
|
52
103
|
colorPrimary?: string;
|
|
@@ -203,67 +254,16 @@ export interface ThemeProperties {
|
|
|
203
254
|
inputErrorSelectionColorText?: string;
|
|
204
255
|
inputErrorSelectionColorBackground?: string;
|
|
205
256
|
}
|
|
206
|
-
export type AddressFields = "email" | "organization" | "phoneNumber" | "city" | "country" | "region" | "postalCode" | "address" | "address2";
|
|
207
|
-
export interface Address {
|
|
208
|
-
name?: "default" | "combined" | "stacked";
|
|
209
|
-
region?: "default" | "split" | "stacked";
|
|
210
|
-
show?: (AddressFields | "all")[];
|
|
211
|
-
hide?: (AddressFields | "all")[];
|
|
212
|
-
require?: AddressFields[];
|
|
213
|
-
}
|
|
214
|
-
export type AdditionalFields = "poNumber";
|
|
215
|
-
export interface DisplayOptions {
|
|
216
|
-
buttonColor?: string;
|
|
217
|
-
buttonHeight?: string;
|
|
218
|
-
buttonType?: string;
|
|
219
|
-
}
|
|
220
|
-
export interface DigitalWalletConfiguration {
|
|
221
|
-
displayOptions?: DisplayOptions;
|
|
222
|
-
}
|
|
223
|
-
export interface PaymentInstrumentsOptionFlags {
|
|
224
|
-
compactExpressInstruments?: boolean;
|
|
225
|
-
allowDeactivate?: boolean;
|
|
226
|
-
allowUpdate?: boolean;
|
|
227
|
-
allowMakeDefault?: boolean;
|
|
228
|
-
allowCreate?: boolean;
|
|
229
|
-
}
|
|
230
|
-
export interface PaymentCardConfiguration {
|
|
231
|
-
input?: "default" | "split";
|
|
232
|
-
}
|
|
233
|
-
export interface PaymentInstrumentsDisplayOptions extends PaymentInstrumentsOptionFlags {
|
|
234
|
-
address?: Address;
|
|
235
|
-
paymentCard?: PaymentCardConfiguration;
|
|
236
|
-
paypal?: {
|
|
237
|
-
buttonHeight?: number;
|
|
238
|
-
};
|
|
239
|
-
googlePay?: DigitalWalletConfiguration;
|
|
240
|
-
applePay?: DigitalWalletConfiguration;
|
|
241
|
-
additionalFields?: {
|
|
242
|
-
show?: AdditionalFields[];
|
|
243
|
-
require?: AdditionalFields[];
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
export interface Features {
|
|
247
|
-
enableTelemetry?: boolean;
|
|
248
|
-
hideConfirmation?: boolean;
|
|
249
|
-
hideResult?: boolean;
|
|
250
|
-
fullPageRedirect?: boolean;
|
|
251
|
-
showCoupons?: string[];
|
|
252
|
-
hideContinue?: boolean;
|
|
253
|
-
hideZeroAmountSummaryItems?: boolean;
|
|
254
|
-
}
|
|
255
|
-
export interface DevProperties {
|
|
256
|
-
paymentMethodsUrl?: string;
|
|
257
|
-
liveUrl?: string;
|
|
258
|
-
sandboxUrl?: string;
|
|
259
|
-
framePayScriptLink?: string;
|
|
260
|
-
framePayStyleLink?: string;
|
|
261
|
-
}
|
|
262
|
-
export interface InternalOptions {
|
|
263
|
-
appName?: string;
|
|
264
|
-
}
|
|
265
257
|
export type BCP47 = "af" | "af-NA" | "af-ZA" | "agq" | "agq-CM" | "ak" | "ak-GH" | "am" | "am-ET" | "ar" | "ar-001" | "ar-AE" | "ar-BH" | "ar-DJ" | "ar-DZ" | "ar-EG" | "ar-EH" | "ar-ER" | "ar-IL" | "ar-IQ" | "ar-JO" | "ar-KM" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-MR" | "ar-OM" | "ar-PS" | "ar-QA" | "ar-SA" | "ar-SD" | "ar-SO" | "ar-SS" | "ar-SY" | "ar-TD" | "ar-TN" | "ar-YE" | "as" | "as-IN" | "asa" | "asa-TZ" | "ast" | "ast-ES" | "az" | "az-Cyrl" | "az-Cyrl-AZ" | "az-Latn" | "az-Latn-AZ" | "bas" | "bas-CM" | "be" | "be-BY" | "bem" | "bem-ZM" | "bez" | "bez-TZ" | "bg" | "bg-BG" | "bm" | "bm-ML" | "bn" | "bn-BD" | "bn-IN" | "bo" | "bo-CN" | "bo-IN" | "br" | "br-FR" | "brx" | "brx-IN" | "bs" | "bs-Cyrl" | "bs-Cyrl-BA" | "bs-Latn" | "bs-Latn-BA" | "ca" | "ca-AD" | "ca-ES" | "ca-FR" | "ca-IT" | "ccp" | "ccp-BD" | "ccp-IN" | "ce" | "ce-RU" | "cgg" | "cgg-UG" | "chr" | "chr-US" | "ckb" | "ckb-IQ" | "ckb-IR" | "cs" | "cs-CZ" | "cy" | "cy-GB" | "da" | "da-DK" | "da-GL" | "dav" | "dav-KE" | "de" | "de-AT" | "de-BE" | "de-CH" | "de-DE" | "de-IT" | "de-LI" | "de-LU" | "dje" | "dje-NE" | "dsb" | "dsb-DE" | "dua" | "dua-CM" | "dyo" | "dyo-SN" | "dz" | "dz-BT" | "ebu" | "ebu-KE" | "ee" | "ee-GH" | "ee-TG" | "el" | "el-CY" | "el-GR" | "en" | "en-001" | "en-150" | "en-AG" | "en-AI" | "en-AS" | "en-AT" | "en-AU" | "en-BB" | "en-BE" | "en-BI" | "en-BM" | "en-BS" | "en-BW" | "en-BZ" | "en-CA" | "en-CC" | "en-CH" | "en-CK" | "en-CM" | "en-CX" | "en-CY" | "en-DE" | "en-DG" | "en-DK" | "en-DM" | "en-ER" | "en-FI" | "en-FJ" | "en-FK" | "en-FM" | "en-GB" | "en-GD" | "en-GG" | "en-GH" | "en-GI" | "en-GM" | "en-GU" | "en-GY" | "en-HK" | "en-IE" | "en-IL" | "en-IM" | "en-IN" | "en-IO" | "en-JE" | "en-JM" | "en-KE" | "en-KI" | "en-KN" | "en-KY" | "en-LC" | "en-LR" | "en-LS" | "en-MG" | "en-MH" | "en-MO" | "en-MP" | "en-MS" | "en-MT" | "en-MU" | "en-MW" | "en-MY" | "en-NA" | "en-NF" | "en-NG" | "en-NL" | "en-NR" | "en-NU" | "en-NZ" | "en-PG" | "en-PH" | "en-PK" | "en-PN" | "en-PR" | "en-PW" | "en-RW" | "en-SB" | "en-SC" | "en-SD" | "en-SE" | "en-SG" | "en-SH" | "en-SI" | "en-SL" | "en-SS" | "en-SX" | "en-SZ" | "en-TC" | "en-TK" | "en-TO" | "en-TT" | "en-TV" | "en-TZ" | "en-UG" | "en-UM" | "en-US" | "en-US-POSIX" | "en-VC" | "en-VG" | "en-VI" | "en-VU" | "en-WS" | "en-ZA" | "en-ZM" | "en-ZW" | "eo" | "es" | "es-419" | "es-AR" | "es-BO" | "es-BR" | "es-BZ" | "es-CL" | "es-CO" | "es-CR" | "es-CU" | "es-DO" | "es-EA" | "es-EC" | "es-ES" | "es-GQ" | "es-GT" | "es-HN" | "es-IC" | "es-MX" | "es-NI" | "es-PA" | "es-PE" | "es-PH" | "es-PR" | "es-PY" | "es-SV" | "es-US" | "es-UY" | "es-VE" | "et" | "et-EE" | "eu" | "eu-ES" | "ewo" | "ewo-CM" | "fa" | "fa-AF" | "fa-IR" | "ff" | "ff-CM" | "ff-GN" | "ff-MR" | "ff-SN" | "fi" | "fi-FI" | "fil" | "fil-PH" | "fo" | "fo-DK" | "fo-FO" | "fr" | "fr-BE" | "fr-BF" | "fr-BI" | "fr-BJ" | "fr-BL" | "fr-CA" | "fr-CD" | "fr-CF" | "fr-CG" | "fr-CH" | "fr-CI" | "fr-CM" | "fr-DJ" | "fr-DZ" | "fr-FR" | "fr-GA" | "fr-GF" | "fr-GN" | "fr-GP" | "fr-GQ" | "fr-HT" | "fr-KM" | "fr-LU" | "fr-MA" | "fr-MC" | "fr-MF" | "fr-MG" | "fr-ML" | "fr-MQ" | "fr-MR" | "fr-MU" | "fr-NC" | "fr-NE" | "fr-PF" | "fr-PM" | "fr-RE" | "fr-RW" | "fr-SC" | "fr-SN" | "fr-SY" | "fr-TD" | "fr-TG" | "fr-TN" | "fr-VU" | "fr-WF" | "fr-YT" | "fur" | "fur-IT" | "fy" | "fy-NL" | "ga" | "ga-IE" | "gd" | "gd-GB" | "gl" | "gl-ES" | "gsw" | "gsw-CH" | "gsw-FR" | "gsw-LI" | "gu" | "gu-IN" | "guz" | "guz-KE" | "gv" | "gv-IM" | "ha" | "ha-GH" | "ha-NE" | "ha-NG" | "haw" | "haw-US" | "he" | "he-IL" | "hi" | "hi-IN" | "hr" | "hr-BA" | "hr-HR" | "hsb" | "hsb-DE" | "hu" | "hu-HU" | "hy" | "hy-AM" | "id" | "id-ID" | "ig" | "ig-NG" | "ii" | "ii-CN" | "is" | "is-IS" | "it" | "it-CH" | "it-IT" | "it-SM" | "it-VA" | "ja" | "ja-JP" | "jgo" | "jgo-CM" | "jmc" | "jmc-TZ" | "ka" | "ka-GE" | "kab" | "kab-DZ" | "kam" | "kam-KE" | "kde" | "kde-TZ" | "kea" | "kea-CV" | "khq" | "khq-ML" | "ki" | "ki-KE" | "kk" | "kk-KZ" | "kkj" | "kkj-CM" | "kl" | "kl-GL" | "kln" | "kln-KE" | "km" | "km-KH" | "kn" | "kn-IN" | "ko" | "ko-KP" | "ko-KR" | "kok" | "kok-IN" | "ks" | "ks-IN" | "ksb" | "ksb-TZ" | "ksf" | "ksf-CM" | "ksh" | "ksh-DE" | "kw" | "kw-GB" | "ky" | "ky-KG" | "lag" | "lag-TZ" | "lb" | "lb-LU" | "lg" | "lg-UG" | "lkt" | "lkt-US" | "ln" | "ln-AO" | "ln-CD" | "ln-CF" | "ln-CG" | "lo" | "lo-LA" | "lrc" | "lrc-IQ" | "lrc-IR" | "lt" | "lt-LT" | "lu" | "lu-CD" | "luo" | "luo-KE" | "luy" | "luy-KE" | "lv" | "lv-LV" | "mas" | "mas-KE" | "mas-TZ" | "mer" | "mer-KE" | "mfe" | "mfe-MU" | "mg" | "mg-MG" | "mgh" | "mgh-MZ" | "mgo" | "mgo-CM" | "mk" | "mk-MK" | "ml" | "ml-IN" | "mn" | "mn-MN" | "mr" | "mr-IN" | "ms" | "ms-BN" | "ms-MY" | "ms-SG" | "mt" | "mt-MT" | "mua" | "mua-CM" | "my" | "my-MM" | "mzn" | "mzn-IR" | "naq" | "naq-NA" | "nb" | "nb-NO" | "nb-SJ" | "nd" | "nd-ZW" | "nds" | "nds-DE" | "nds-NL" | "ne" | "ne-IN" | "ne-NP" | "nl" | "nl-AW" | "nl-BE" | "nl-BQ" | "nl-CW" | "nl-NL" | "nl-SR" | "nl-SX" | "nmg" | "nmg-CM" | "nn" | "nn-NO" | "nnh" | "nnh-CM" | "nus" | "nus-SS" | "nyn" | "nyn-UG" | "om" | "om-ET" | "om-KE" | "or" | "or-IN" | "os" | "os-GE" | "os-RU" | "pa" | "pa-Arab" | "pa-Arab-PK" | "pa-Guru" | "pa-Guru-IN" | "pl" | "pl-PL" | "ps" | "ps-AF" | "pt" | "pt-AO" | "pt-BR" | "pt-CH" | "pt-CV" | "pt-GQ" | "pt-GW" | "pt-LU" | "pt-MO" | "pt-MZ" | "pt-PT" | "pt-ST" | "pt-TL" | "qu" | "qu-BO" | "qu-EC" | "qu-PE" | "rm" | "rm-CH" | "rn" | "rn-BI" | "ro" | "ro-MD" | "ro-RO" | "rof" | "rof-TZ" | "ru" | "ru-BY" | "ru-KG" | "ru-KZ" | "ru-MD" | "ru-RU" | "ru-UA" | "rw" | "rw-RW" | "rwk" | "rwk-TZ" | "sah" | "sah-RU" | "saq" | "saq-KE" | "sbp" | "sbp-TZ" | "se" | "se-FI" | "se-NO" | "se-SE" | "seh" | "seh-MZ" | "ses" | "ses-ML" | "sg" | "sg-CF" | "shi" | "shi-Latn" | "shi-Latn-MA" | "shi-Tfng" | "shi-Tfng-MA" | "si" | "si-LK" | "sk" | "sk-SK" | "sl" | "sl-SI" | "smn" | "smn-FI" | "sn" | "sn-ZW" | "so" | "so-DJ" | "so-ET" | "so-KE" | "so-SO" | "sq" | "sq-AL" | "sq-MK" | "sq-XK" | "sr" | "sr-Cyrl" | "sr-Cyrl-BA" | "sr-Cyrl-ME" | "sr-Cyrl-RS" | "sr-Cyrl-XK" | "sr-Latn" | "sr-Latn-BA" | "sr-Latn-ME" | "sr-Latn-RS" | "sr-Latn-XK" | "sv" | "sv-AX" | "sv-FI" | "sv-SE" | "sw" | "sw-CD" | "sw-KE" | "sw-TZ" | "sw-UG" | "ta" | "ta-IN" | "ta-LK" | "ta-MY" | "ta-SG" | "te" | "te-IN" | "teo" | "teo-KE" | "teo-UG" | "tg" | "tg-TJ" | "th" | "th-TH" | "ti" | "ti-ER" | "ti-ET" | "to" | "to-TO" | "tr" | "tr-CY" | "tr-TR" | "tt" | "tt-RU" | "twq" | "twq-NE" | "tzm" | "tzm-MA" | "ug" | "ug-CN" | "uk" | "uk-UA" | "ur" | "ur-IN" | "ur-PK" | "uz" | "uz-Arab" | "uz-Arab-AF" | "uz-Cyrl" | "uz-Cyrl-UZ" | "uz-Latn" | "uz-Latn-UZ" | "vai" | "vai-Latn" | "vai-Latn-LR" | "vai-Vaii" | "vai-Vaii-LR" | "vi" | "vi-VN" | "vun" | "vun-TZ" | "wae" | "wae-CH" | "wo" | "wo-SN" | "xog" | "xog-UG" | "yav" | "yav-CM" | "yi" | "yi-001" | "yo" | "yo-BJ" | "yo-NG" | "yue" | "yue-Hans" | "yue-Hans-CN" | "yue-Hant" | "yue-Hant-HK" | "zgh" | "zgh-MA" | "zh" | "zh-Hans" | "zh-Hans-CN" | "zh-Hans-HK" | "zh-Hans-MO" | "zh-Hans-SG" | "zh-Hant" | "zh-Hant-HK" | "zh-Hant-MO" | "zh-Hant-TW" | "zu" | "zu-ZA";
|
|
266
258
|
export type Locales = BCP47 | "auto";
|
|
259
|
+
export interface Payout {
|
|
260
|
+
payoutRequestId: string;
|
|
261
|
+
}
|
|
262
|
+
export interface PlanItem {
|
|
263
|
+
planId: string;
|
|
264
|
+
quantity: number;
|
|
265
|
+
thumbnail?: string;
|
|
266
|
+
}
|
|
267
267
|
export interface Options {
|
|
268
268
|
organizationId?: string;
|
|
269
269
|
publishableKey?: string;
|