@vrplatform/hyperline-client 1.0.14 → 1.0.15

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.
@@ -15,8 +15,8 @@ export declare class HyperlineAPI {
15
15
  name: string;
16
16
  type: "corporate" | "person" | "automatically_created" | null;
17
17
  status: "active" | "archived";
18
- currency: import("./_types.generated").components["schemas"]["Currency"] & (string | null);
19
- country: import("./_types.generated").components["schemas"]["Country"];
18
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL" | null;
19
+ country: "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "IC" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PT-20" | "PT-30" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW" | null;
20
20
  vat_number: string | null;
21
21
  vat_number_valid: boolean;
22
22
  vat_rate_custom: number | null;
@@ -27,7 +27,7 @@ export declare class HyperlineAPI {
27
27
  [key: string]: string | number | boolean | null | (string | number | boolean | null)[];
28
28
  } | null;
29
29
  custom_properties: {
30
- [key: string]: string | number | boolean | (import("./_types.generated").components["schemas"]["DateTime"] & string) | null;
30
+ [key: string]: string | number | boolean | null;
31
31
  } | null;
32
32
  billing_address: import("./_types.generated").components["schemas"]["Address"];
33
33
  billing_email: string | null;
@@ -47,23 +47,29 @@ export declare class HyperlineAPI {
47
47
  plan_id: string | null;
48
48
  checkout_session_id: string | null;
49
49
  }[];
50
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
51
- updated_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
52
- deleted_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
50
+ created_at: string;
51
+ updated_at: string;
52
+ deleted_at: string | null;
53
53
  } & {
54
54
  providers: {
55
- gocardless?: string;
56
- mollie?: string;
57
55
  stripe?: string;
56
+ mollie?: string;
57
+ gocardless?: string;
58
58
  airwallex?: string;
59
- hubspot?: string;
60
59
  salesforce?: string;
60
+ hubspot?: string;
61
61
  xero?: string;
62
- "exact-online"?: string;
63
62
  pennylane?: string;
63
+ "exact-online"?: string;
64
64
  quickbooks?: string;
65
65
  netsuite?: string;
66
+ anrok?: string;
66
67
  };
68
+ integrations: {
69
+ entity_id: string;
70
+ provider_name: "stripe" | "mollie" | "gocardless" | "airwallex" | "salesforce" | "hubspot" | "xero" | "pennylane" | "exact-online" | "quickbooks" | "netsuite" | "anrok";
71
+ provider_account_id: string;
72
+ }[];
67
73
  current_payment_method: import("./_types.generated").components["schemas"]["PaymentMethod"] & unknown;
68
74
  bank_account: import("./_types.generated").components["schemas"]["BankAccount"] & unknown;
69
75
  organisation_id: string | null;
@@ -74,8 +80,8 @@ export declare class HyperlineAPI {
74
80
  name: string;
75
81
  type: "corporate" | "person" | "automatically_created" | null;
76
82
  status: "active" | "archived";
77
- currency: import("./_types.generated").components["schemas"]["Currency"] & (string | null);
78
- country: import("./_types.generated").components["schemas"]["Country"];
83
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL" | null;
84
+ country: "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "IC" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PT-20" | "PT-30" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW" | null;
79
85
  vat_number: string | null;
80
86
  vat_number_valid: boolean;
81
87
  vat_rate_custom: number | null;
@@ -86,7 +92,7 @@ export declare class HyperlineAPI {
86
92
  [key: string]: string | number | boolean | null | (string | number | boolean | null)[];
87
93
  } | null;
88
94
  custom_properties: {
89
- [key: string]: string | number | boolean | (import("./_types.generated").components["schemas"]["DateTime"] & string) | null;
95
+ [key: string]: string | number | boolean | null;
90
96
  } | null;
91
97
  billing_address: import("./_types.generated").components["schemas"]["Address"];
92
98
  billing_email: string | null;
@@ -106,9 +112,9 @@ export declare class HyperlineAPI {
106
112
  plan_id: string | null;
107
113
  checkout_session_id: string | null;
108
114
  }[];
109
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
110
- updated_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
111
- deleted_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
115
+ created_at: string;
116
+ updated_at: string;
117
+ deleted_at: string | null;
112
118
  } | undefined>;
113
119
  getCustomers(skip?: number, take?: number, query?: operations['getCustomers']['parameters']['query']): Promise<{
114
120
  meta: {
@@ -124,8 +130,8 @@ export declare class HyperlineAPI {
124
130
  name: string;
125
131
  type: "corporate" | "person" | "automatically_created" | null;
126
132
  status: "active" | "archived";
127
- currency: import("./_types.generated").components["schemas"]["Currency"] & (string | null);
128
- country: import("./_types.generated").components["schemas"]["Country"];
133
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL" | null;
134
+ country: "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "IC" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PT-20" | "PT-30" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW" | null;
129
135
  vat_number: string | null;
130
136
  vat_number_valid: boolean;
131
137
  vat_rate_custom: number | null;
@@ -136,7 +142,7 @@ export declare class HyperlineAPI {
136
142
  [key: string]: string | number | boolean | null | (string | number | boolean | null)[];
137
143
  } | null;
138
144
  custom_properties: {
139
- [key: string]: string | number | boolean | (import("./_types.generated").components["schemas"]["DateTime"] & string) | null;
145
+ [key: string]: string | number | boolean | null;
140
146
  } | null;
141
147
  billing_address: import("./_types.generated").components["schemas"]["Address"];
142
148
  billing_email: string | null;
@@ -156,23 +162,29 @@ export declare class HyperlineAPI {
156
162
  plan_id: string | null;
157
163
  checkout_session_id: string | null;
158
164
  }[];
159
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
160
- updated_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
161
- deleted_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
165
+ created_at: string;
166
+ updated_at: string;
167
+ deleted_at: string | null;
162
168
  } & {
163
169
  providers: {
164
- gocardless?: string;
165
- mollie?: string;
166
170
  stripe?: string;
171
+ mollie?: string;
172
+ gocardless?: string;
167
173
  airwallex?: string;
168
- hubspot?: string;
169
174
  salesforce?: string;
175
+ hubspot?: string;
170
176
  xero?: string;
171
- "exact-online"?: string;
172
177
  pennylane?: string;
178
+ "exact-online"?: string;
173
179
  quickbooks?: string;
174
180
  netsuite?: string;
181
+ anrok?: string;
175
182
  };
183
+ integrations: {
184
+ entity_id: string;
185
+ provider_name: "stripe" | "mollie" | "gocardless" | "airwallex" | "salesforce" | "hubspot" | "xero" | "pennylane" | "exact-online" | "quickbooks" | "netsuite" | "anrok";
186
+ provider_account_id: string;
187
+ }[];
176
188
  current_payment_method: import("./_types.generated").components["schemas"]["PaymentMethod"] & unknown;
177
189
  bank_account: import("./_types.generated").components["schemas"]["BankAccount"] & unknown;
178
190
  organisation_id: string | null;
@@ -183,8 +195,8 @@ export declare class HyperlineAPI {
183
195
  name: string;
184
196
  type: "corporate" | "person" | "automatically_created" | null;
185
197
  status: "active" | "archived";
186
- currency: import("./_types.generated").components["schemas"]["Currency"] & (string | null);
187
- country: import("./_types.generated").components["schemas"]["Country"];
198
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL" | null;
199
+ country: "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "IC" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PT-20" | "PT-30" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW" | null;
188
200
  vat_number: string | null;
189
201
  vat_number_valid: boolean;
190
202
  vat_rate_custom: number | null;
@@ -195,7 +207,7 @@ export declare class HyperlineAPI {
195
207
  [key: string]: string | number | boolean | null | (string | number | boolean | null)[];
196
208
  } | null;
197
209
  custom_properties: {
198
- [key: string]: string | number | boolean | (import("./_types.generated").components["schemas"]["DateTime"] & string) | null;
210
+ [key: string]: string | number | boolean | null;
199
211
  } | null;
200
212
  billing_address: import("./_types.generated").components["schemas"]["Address"];
201
213
  billing_email: string | null;
@@ -215,23 +227,29 @@ export declare class HyperlineAPI {
215
227
  plan_id: string | null;
216
228
  checkout_session_id: string | null;
217
229
  }[];
218
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
219
- updated_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
220
- deleted_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
230
+ created_at: string;
231
+ updated_at: string;
232
+ deleted_at: string | null;
221
233
  } & {
222
234
  providers: {
223
- gocardless?: string;
224
- mollie?: string;
225
235
  stripe?: string;
236
+ mollie?: string;
237
+ gocardless?: string;
226
238
  airwallex?: string;
227
- hubspot?: string;
228
239
  salesforce?: string;
240
+ hubspot?: string;
229
241
  xero?: string;
230
- "exact-online"?: string;
231
242
  pennylane?: string;
243
+ "exact-online"?: string;
232
244
  quickbooks?: string;
233
245
  netsuite?: string;
246
+ anrok?: string;
234
247
  };
248
+ integrations: {
249
+ entity_id: string;
250
+ provider_name: "stripe" | "mollie" | "gocardless" | "airwallex" | "salesforce" | "hubspot" | "xero" | "pennylane" | "exact-online" | "quickbooks" | "netsuite" | "anrok";
251
+ provider_account_id: string;
252
+ }[];
235
253
  current_payment_method: import("./_types.generated").components["schemas"]["PaymentMethod"] & unknown;
236
254
  bank_account: import("./_types.generated").components["schemas"]["BankAccount"] & unknown;
237
255
  organisation_id: string | null;
@@ -243,8 +261,8 @@ export declare class HyperlineAPI {
243
261
  name: string;
244
262
  type: "corporate" | "person" | "automatically_created" | null;
245
263
  status: "active" | "archived";
246
- currency: import("./_types.generated").components["schemas"]["Currency"] & (string | null);
247
- country: import("./_types.generated").components["schemas"]["Country"];
264
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL" | null;
265
+ country: "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "IC" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PT-20" | "PT-30" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW" | null;
248
266
  vat_number: string | null;
249
267
  vat_number_valid: boolean;
250
268
  vat_rate_custom: number | null;
@@ -255,7 +273,7 @@ export declare class HyperlineAPI {
255
273
  [key: string]: string | number | boolean | null | (string | number | boolean | null)[];
256
274
  } | null;
257
275
  custom_properties: {
258
- [key: string]: string | number | boolean | (import("./_types.generated").components["schemas"]["DateTime"] & string) | null;
276
+ [key: string]: string | number | boolean | null;
259
277
  } | null;
260
278
  billing_address: import("./_types.generated").components["schemas"]["Address"];
261
279
  billing_email: string | null;
@@ -275,17 +293,17 @@ export declare class HyperlineAPI {
275
293
  plan_id: string | null;
276
294
  checkout_session_id: string | null;
277
295
  }[];
278
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
279
- updated_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
280
- deleted_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
296
+ created_at: string;
297
+ updated_at: string;
298
+ deleted_at: string | null;
281
299
  } | null>;
282
300
  unarchiveCustomer(id: string): Promise<{
283
301
  id: string;
284
302
  name: string;
285
303
  type: "corporate" | "person" | "automatically_created" | null;
286
304
  status: "active" | "archived";
287
- currency: import("./_types.generated").components["schemas"]["Currency"] & (string | null);
288
- country: import("./_types.generated").components["schemas"]["Country"];
305
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL" | null;
306
+ country: "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AO" | "AQ" | "AR" | "AS" | "AT" | "AU" | "AW" | "AX" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BL" | "BM" | "BN" | "BO" | "BQ" | "BR" | "BS" | "BT" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CC" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CW" | "CX" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GG" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "IC" | "ID" | "IE" | "IL" | "IM" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JE" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MF" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PT-20" | "PT-30" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SJ" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SX" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW" | null;
289
307
  vat_number: string | null;
290
308
  vat_number_valid: boolean;
291
309
  vat_rate_custom: number | null;
@@ -296,7 +314,7 @@ export declare class HyperlineAPI {
296
314
  [key: string]: string | number | boolean | null | (string | number | boolean | null)[];
297
315
  } | null;
298
316
  custom_properties: {
299
- [key: string]: string | number | boolean | (import("./_types.generated").components["schemas"]["DateTime"] & string) | null;
317
+ [key: string]: string | number | boolean | null;
300
318
  } | null;
301
319
  billing_address: import("./_types.generated").components["schemas"]["Address"];
302
320
  billing_email: string | null;
@@ -316,16 +334,16 @@ export declare class HyperlineAPI {
316
334
  plan_id: string | null;
317
335
  checkout_session_id: string | null;
318
336
  }[];
319
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
320
- updated_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
321
- deleted_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
337
+ created_at: string;
338
+ updated_at: string;
339
+ deleted_at: string | null;
322
340
  } | null>;
323
341
  getCustomerPortal(id: string): Promise<{
324
342
  url: string;
325
343
  } | null>;
326
344
  getSubscription(id: string, liveBilling?: boolean): Promise<({
327
345
  id: string;
328
- currency: import("./_types.generated").components["schemas"]["Currency"];
346
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL";
329
347
  status: "active" | "cancelled" | "draft" | "errored" | "paused" | "pending" | "voided";
330
348
  purchase_order: string | null;
331
349
  customer_id: string;
@@ -344,45 +362,45 @@ export declare class HyperlineAPI {
344
362
  count: number;
345
363
  } | null;
346
364
  activation_strategy: "start_date" | "manually" | "checkout" | "quote" | "contract_start_date" | null;
347
- starts_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
348
- contract_start: import("./_types.generated").components["schemas"]["DateTime"] & string;
349
- contract_end: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
350
- initial_billing_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
351
- paused_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
352
- reactivate_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
353
- cancel_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
365
+ starts_at: string;
366
+ contract_start: string;
367
+ contract_end: string | null;
368
+ initial_billing_at: string | null;
369
+ paused_at: string | null;
370
+ reactivate_at: string | null;
371
+ cancel_at: string | null;
354
372
  cancellation_strategy: "refund_prorata" | "refund_custom" | "charge_prorata" | "charge_custom" | "end_of_period" | "do_nothing" | null;
355
- cancellation_amount: import("./_types.generated").components["schemas"]["Amount"] & (number | null);
356
- estimated_arr: import("./_types.generated").components["schemas"]["Amount"] & (number | null);
357
- current_period_started_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
358
- current_period_ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
359
- next_payment_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
360
- next_payment_amount: import("./_types.generated").components["schemas"]["Amount"] & (number | null);
361
- renews_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
373
+ cancellation_amount: number | null;
374
+ estimated_arr: number | null;
375
+ current_period_started_at: string | null;
376
+ current_period_ends_at: string | null;
377
+ next_payment_at: string | null;
378
+ next_payment_amount: number | null;
379
+ renews_at: string | null;
362
380
  current_phase_id: string | null;
363
381
  properties: {
364
382
  [key: string]: string | number | boolean | null | (string | number | boolean | null)[];
365
383
  } | null;
366
384
  custom_properties: {
367
- [key: string]: string | number | boolean | (import("./_types.generated").components["schemas"]["DateTime"] & string) | null;
385
+ [key: string]: string | number | boolean | null;
368
386
  } | null;
369
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
370
- updated_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
387
+ created_at: string;
388
+ updated_at: string;
371
389
  } & {
372
390
  products: (import("./_types.generated").components["schemas"]["SubscriptionProductFee"] | import("./_types.generated").components["schemas"]["SubscriptionProductCredit"] | import("./_types.generated").components["schemas"]["SubscriptionProductSeat"] | import("./_types.generated").components["schemas"]["SubscriptionProductDynamic"])[];
373
391
  coupons: (({
374
392
  description: string | null;
375
- expiration_date: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
393
+ expiration_date: string | null;
376
394
  redemption_limit: number | null;
377
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
395
+ created_at: string;
378
396
  type: "amount";
379
- discount_amount: import("./_types.generated").components["schemas"]["Amount"] & unknown;
380
- currency: import("./_types.generated").components["schemas"]["Currency"] & (string | null);
397
+ discount_amount: number;
398
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL" | null;
381
399
  } | {
382
400
  description: string | null;
383
- expiration_date: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
401
+ expiration_date: string | null;
384
402
  redemption_limit: number | null;
385
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
403
+ created_at: string;
386
404
  type: "percent";
387
405
  discount_percent: number;
388
406
  }) & {
@@ -392,8 +410,8 @@ export declare class HyperlineAPI {
392
410
  subscription_coupon_id: string;
393
411
  repeat: "once" | "forever" | "custom";
394
412
  product_ids: string[];
395
- apply_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
396
- expires_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
413
+ apply_at: string | null;
414
+ expires_at: string | null;
397
415
  })[];
398
416
  phases: {
399
417
  id: string;
@@ -407,26 +425,26 @@ export declare class HyperlineAPI {
407
425
  count: number;
408
426
  } | null;
409
427
  billing_date_setting: "phase_start" | "specific_date";
410
- initial_billing_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
411
- starts_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
412
- ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
428
+ initial_billing_at: string | null;
429
+ starts_at: string | null;
430
+ ends_at: string | null;
413
431
  billing_cycle_alignment: "calendar_period" | "anniversary";
414
432
  transition_calculation_method: "prorata" | "pay_in_full" | "none";
415
433
  transition_invoicing_schedule: "immediately";
416
434
  products: (import("./_types.generated").components["schemas"]["SubscriptionProductFee"] | import("./_types.generated").components["schemas"]["SubscriptionProductCredit"] | import("./_types.generated").components["schemas"]["SubscriptionProductSeat"] | import("./_types.generated").components["schemas"]["SubscriptionProductDynamic"])[];
417
435
  coupons: (({
418
436
  description: string | null;
419
- expiration_date: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
437
+ expiration_date: string | null;
420
438
  redemption_limit: number | null;
421
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
439
+ created_at: string;
422
440
  type: "amount";
423
- discount_amount: import("./_types.generated").components["schemas"]["Amount"] & unknown;
424
- currency: import("./_types.generated").components["schemas"]["Currency"] & (string | null);
441
+ discount_amount: number;
442
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL" | null;
425
443
  } | {
426
444
  description: string | null;
427
- expiration_date: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
445
+ expiration_date: string | null;
428
446
  redemption_limit: number | null;
429
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
447
+ created_at: string;
430
448
  type: "percent";
431
449
  discount_percent: number;
432
450
  }) & {
@@ -436,11 +454,11 @@ export declare class HyperlineAPI {
436
454
  subscription_coupon_id: string;
437
455
  repeat: "once" | "forever" | "custom";
438
456
  product_ids: string[];
439
- apply_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
440
- expires_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
457
+ apply_at: string | null;
458
+ expires_at: string | null;
441
459
  })[];
442
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
443
- updated_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
460
+ created_at: string;
461
+ updated_at: string;
444
462
  }[];
445
463
  quote: {
446
464
  id: string;
@@ -458,8 +476,8 @@ export declare class HyperlineAPI {
458
476
  status: "active" | "pending" | "finished";
459
477
  activation_strategy: "start_date" | "immediately" | "manual" | "quote_signature" | "checkout";
460
478
  end_strategy: "end_date" | "duration" | "manual";
461
- starts_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
462
- ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
479
+ starts_at: string | null;
480
+ ends_at: string | null;
463
481
  duration: {
464
482
  period: "days" | "weeks" | "months" | "years";
465
483
  count: number;
@@ -469,8 +487,8 @@ export declare class HyperlineAPI {
469
487
  period: "days" | "weeks" | "months" | "years";
470
488
  count: number;
471
489
  } | null;
472
- current_period_started_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
473
- current_period_ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
490
+ current_period_started_at: string | null;
491
+ current_period_ends_at: string | null;
474
492
  } | null;
475
493
  } & {
476
494
  live_billing?: import("./_types.generated").components["schemas"]["LiveBilling"];
@@ -486,7 +504,7 @@ export declare class HyperlineAPI {
486
504
  getAllSubscriptions(items?: paths['/v2/subscriptions']['get']['responses'][200]['content']['application/json']['data'], query?: operations['getSubscriptions']['parameters']['query']): Promise<paths['/v2/subscriptions']['get']['responses'][200]['content']['application/json']['data']>;
487
505
  createSubscription(data: NonNullable<paths['/v2/subscriptions']['post']['requestBody']>['content']['application/json']): Promise<({
488
506
  id: string;
489
- currency: import("./_types.generated").components["schemas"]["Currency"];
507
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL";
490
508
  status: "active" | "cancelled" | "draft" | "errored" | "paused" | "pending" | "voided";
491
509
  purchase_order: string | null;
492
510
  customer_id: string;
@@ -505,45 +523,45 @@ export declare class HyperlineAPI {
505
523
  count: number;
506
524
  } | null;
507
525
  activation_strategy: "start_date" | "manually" | "checkout" | "quote" | "contract_start_date" | null;
508
- starts_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
509
- contract_start: import("./_types.generated").components["schemas"]["DateTime"] & string;
510
- contract_end: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
511
- initial_billing_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
512
- paused_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
513
- reactivate_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
514
- cancel_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
526
+ starts_at: string;
527
+ contract_start: string;
528
+ contract_end: string | null;
529
+ initial_billing_at: string | null;
530
+ paused_at: string | null;
531
+ reactivate_at: string | null;
532
+ cancel_at: string | null;
515
533
  cancellation_strategy: "refund_prorata" | "refund_custom" | "charge_prorata" | "charge_custom" | "end_of_period" | "do_nothing" | null;
516
- cancellation_amount: import("./_types.generated").components["schemas"]["Amount"] & (number | null);
517
- estimated_arr: import("./_types.generated").components["schemas"]["Amount"] & (number | null);
518
- current_period_started_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
519
- current_period_ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
520
- next_payment_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
521
- next_payment_amount: import("./_types.generated").components["schemas"]["Amount"] & (number | null);
522
- renews_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
534
+ cancellation_amount: number | null;
535
+ estimated_arr: number | null;
536
+ current_period_started_at: string | null;
537
+ current_period_ends_at: string | null;
538
+ next_payment_at: string | null;
539
+ next_payment_amount: number | null;
540
+ renews_at: string | null;
523
541
  current_phase_id: string | null;
524
542
  properties: {
525
543
  [key: string]: string | number | boolean | null | (string | number | boolean | null)[];
526
544
  } | null;
527
545
  custom_properties: {
528
- [key: string]: string | number | boolean | (import("./_types.generated").components["schemas"]["DateTime"] & string) | null;
546
+ [key: string]: string | number | boolean | null;
529
547
  } | null;
530
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
531
- updated_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
548
+ created_at: string;
549
+ updated_at: string;
532
550
  } & {
533
551
  products: (import("./_types.generated").components["schemas"]["SubscriptionProductFee"] | import("./_types.generated").components["schemas"]["SubscriptionProductCredit"] | import("./_types.generated").components["schemas"]["SubscriptionProductSeat"] | import("./_types.generated").components["schemas"]["SubscriptionProductDynamic"])[];
534
552
  coupons: (({
535
553
  description: string | null;
536
- expiration_date: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
554
+ expiration_date: string | null;
537
555
  redemption_limit: number | null;
538
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
556
+ created_at: string;
539
557
  type: "amount";
540
- discount_amount: import("./_types.generated").components["schemas"]["Amount"] & unknown;
541
- currency: import("./_types.generated").components["schemas"]["Currency"] & (string | null);
558
+ discount_amount: number;
559
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL" | null;
542
560
  } | {
543
561
  description: string | null;
544
- expiration_date: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
562
+ expiration_date: string | null;
545
563
  redemption_limit: number | null;
546
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
564
+ created_at: string;
547
565
  type: "percent";
548
566
  discount_percent: number;
549
567
  }) & {
@@ -553,8 +571,8 @@ export declare class HyperlineAPI {
553
571
  subscription_coupon_id: string;
554
572
  repeat: "once" | "forever" | "custom";
555
573
  product_ids: string[];
556
- apply_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
557
- expires_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
574
+ apply_at: string | null;
575
+ expires_at: string | null;
558
576
  })[];
559
577
  phases: {
560
578
  id: string;
@@ -568,26 +586,26 @@ export declare class HyperlineAPI {
568
586
  count: number;
569
587
  } | null;
570
588
  billing_date_setting: "phase_start" | "specific_date";
571
- initial_billing_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
572
- starts_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
573
- ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
589
+ initial_billing_at: string | null;
590
+ starts_at: string | null;
591
+ ends_at: string | null;
574
592
  billing_cycle_alignment: "calendar_period" | "anniversary";
575
593
  transition_calculation_method: "prorata" | "pay_in_full" | "none";
576
594
  transition_invoicing_schedule: "immediately";
577
595
  products: (import("./_types.generated").components["schemas"]["SubscriptionProductFee"] | import("./_types.generated").components["schemas"]["SubscriptionProductCredit"] | import("./_types.generated").components["schemas"]["SubscriptionProductSeat"] | import("./_types.generated").components["schemas"]["SubscriptionProductDynamic"])[];
578
596
  coupons: (({
579
597
  description: string | null;
580
- expiration_date: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
598
+ expiration_date: string | null;
581
599
  redemption_limit: number | null;
582
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
600
+ created_at: string;
583
601
  type: "amount";
584
- discount_amount: import("./_types.generated").components["schemas"]["Amount"] & unknown;
585
- currency: import("./_types.generated").components["schemas"]["Currency"] & (string | null);
602
+ discount_amount: number;
603
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL" | null;
586
604
  } | {
587
605
  description: string | null;
588
- expiration_date: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
606
+ expiration_date: string | null;
589
607
  redemption_limit: number | null;
590
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
608
+ created_at: string;
591
609
  type: "percent";
592
610
  discount_percent: number;
593
611
  }) & {
@@ -597,11 +615,11 @@ export declare class HyperlineAPI {
597
615
  subscription_coupon_id: string;
598
616
  repeat: "once" | "forever" | "custom";
599
617
  product_ids: string[];
600
- apply_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
601
- expires_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
618
+ apply_at: string | null;
619
+ expires_at: string | null;
602
620
  })[];
603
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
604
- updated_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
621
+ created_at: string;
622
+ updated_at: string;
605
623
  }[];
606
624
  quote: {
607
625
  id: string;
@@ -619,8 +637,8 @@ export declare class HyperlineAPI {
619
637
  status: "active" | "pending" | "finished";
620
638
  activation_strategy: "start_date" | "immediately" | "manual" | "quote_signature" | "checkout";
621
639
  end_strategy: "end_date" | "duration" | "manual";
622
- starts_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
623
- ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
640
+ starts_at: string | null;
641
+ ends_at: string | null;
624
642
  duration: {
625
643
  period: "days" | "weeks" | "months" | "years";
626
644
  count: number;
@@ -630,16 +648,166 @@ export declare class HyperlineAPI {
630
648
  period: "days" | "weeks" | "months" | "years";
631
649
  count: number;
632
650
  } | null;
633
- current_period_started_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
634
- current_period_ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
651
+ current_period_started_at: string | null;
652
+ current_period_ends_at: string | null;
635
653
  } | null;
636
654
  }) | null>;
637
- updateSubscription(id: string, data: NonNullable<paths['/v1/subscriptions/{id}/update']['post']['requestBody']>['content']['application/json']): Promise<{
655
+ updateSubscription(id: string, data: NonNullable<paths['/v2/subscriptions/{id}']['put']['requestBody']>['content']['application/json']): Promise<({
656
+ id: string;
657
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL";
658
+ status: "active" | "cancelled" | "draft" | "errored" | "paused" | "pending" | "voided";
659
+ purchase_order: string | null;
660
+ customer_id: string;
661
+ plan_id: string | null;
662
+ invoicing_entity_id: string;
663
+ checkout_session_id: string | null;
664
+ crm_opportunity_id: string | null;
665
+ minimum_invoice_fee: number | null;
666
+ commitment_interval: {
667
+ period: "days" | "weeks" | "months" | "years";
668
+ count: number;
669
+ } | null;
670
+ renew_automatically: boolean;
671
+ renew_for: {
672
+ period: "days" | "weeks" | "months" | "years";
673
+ count: number;
674
+ } | null;
675
+ activation_strategy: "start_date" | "manually" | "checkout" | "quote" | "contract_start_date" | null;
676
+ starts_at: string;
677
+ contract_start: string;
678
+ contract_end: string | null;
679
+ initial_billing_at: string | null;
680
+ paused_at: string | null;
681
+ reactivate_at: string | null;
682
+ cancel_at: string | null;
683
+ cancellation_strategy: "refund_prorata" | "refund_custom" | "charge_prorata" | "charge_custom" | "end_of_period" | "do_nothing" | null;
684
+ cancellation_amount: number | null;
685
+ estimated_arr: number | null;
686
+ current_period_started_at: string | null;
687
+ current_period_ends_at: string | null;
688
+ next_payment_at: string | null;
689
+ next_payment_amount: number | null;
690
+ renews_at: string | null;
691
+ current_phase_id: string | null;
692
+ properties: {
693
+ [key: string]: string | number | boolean | null | (string | number | boolean | null)[];
694
+ } | null;
695
+ custom_properties: {
696
+ [key: string]: string | number | boolean | null;
697
+ } | null;
698
+ created_at: string;
699
+ updated_at: string;
700
+ } & {
701
+ products: (import("./_types.generated").components["schemas"]["SubscriptionProductFee"] | import("./_types.generated").components["schemas"]["SubscriptionProductCredit"] | import("./_types.generated").components["schemas"]["SubscriptionProductSeat"] | import("./_types.generated").components["schemas"]["SubscriptionProductDynamic"])[];
702
+ coupons: (({
703
+ description: string | null;
704
+ expiration_date: string | null;
705
+ redemption_limit: number | null;
706
+ created_at: string;
707
+ type: "amount";
708
+ discount_amount: number;
709
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL" | null;
710
+ } | {
711
+ description: string | null;
712
+ expiration_date: string | null;
713
+ redemption_limit: number | null;
714
+ created_at: string;
715
+ type: "percent";
716
+ discount_percent: number;
717
+ }) & {
718
+ id: string | null;
719
+ promotion_code_id: string | null;
720
+ name: string | null;
721
+ subscription_coupon_id: string;
722
+ repeat: "once" | "forever" | "custom";
723
+ product_ids: string[];
724
+ apply_at: string | null;
725
+ expires_at: string | null;
726
+ })[];
727
+ phases: {
728
+ id: string;
729
+ type: "setup" | "trial" | "standard";
730
+ status: "pending" | "active" | "finished";
731
+ order: number;
732
+ activation_strategy: "immediately" | "manual" | "start_date" | "quote_signature" | "checkout" | "contract_start_date" | "previous_phase_end";
733
+ end_strategy: "manual" | "end_date" | "duration" | "contract_end_date";
734
+ duration: {
735
+ period: "days" | "weeks" | "months" | "years";
736
+ count: number;
737
+ } | null;
738
+ billing_date_setting: "phase_start" | "specific_date";
739
+ initial_billing_at: string | null;
740
+ starts_at: string | null;
741
+ ends_at: string | null;
742
+ billing_cycle_alignment: "calendar_period" | "anniversary";
743
+ transition_calculation_method: "prorata" | "pay_in_full" | "none";
744
+ transition_invoicing_schedule: "immediately";
745
+ products: (import("./_types.generated").components["schemas"]["SubscriptionProductFee"] | import("./_types.generated").components["schemas"]["SubscriptionProductCredit"] | import("./_types.generated").components["schemas"]["SubscriptionProductSeat"] | import("./_types.generated").components["schemas"]["SubscriptionProductDynamic"])[];
746
+ coupons: (({
747
+ description: string | null;
748
+ expiration_date: string | null;
749
+ redemption_limit: number | null;
750
+ created_at: string;
751
+ type: "amount";
752
+ discount_amount: number;
753
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL" | null;
754
+ } | {
755
+ description: string | null;
756
+ expiration_date: string | null;
757
+ redemption_limit: number | null;
758
+ created_at: string;
759
+ type: "percent";
760
+ discount_percent: number;
761
+ }) & {
762
+ id: string | null;
763
+ promotion_code_id: string | null;
764
+ name: string | null;
765
+ subscription_coupon_id: string;
766
+ repeat: "once" | "forever" | "custom";
767
+ product_ids: string[];
768
+ apply_at: string | null;
769
+ expires_at: string | null;
770
+ })[];
771
+ created_at: string;
772
+ updated_at: string;
773
+ }[];
774
+ quote: {
775
+ id: string;
776
+ status: "draft" | "pending_approval" | "changes_requested" | "approved" | "pending_signature" | "voided" | "signed";
777
+ } | null;
778
+ plan: {
779
+ id: string;
780
+ name: string;
781
+ } | null;
782
+ checkout_session: import("./_types.generated").components["schemas"]["CheckoutSession"];
783
+ payment_method_type: "card" | "direct_debit" | "direct_debit_ach" | "direct_debit_bacs" | "transfer" | "transfer_automated" | "external" | null;
784
+ payment_method: import("./_types.generated").components["schemas"]["PaymentMethod"] & unknown;
785
+ generate_draft_invoices: boolean;
786
+ contract_terms: {
787
+ status: "active" | "pending" | "finished";
788
+ activation_strategy: "start_date" | "immediately" | "manual" | "quote_signature" | "checkout";
789
+ end_strategy: "end_date" | "duration" | "manual";
790
+ starts_at: string | null;
791
+ ends_at: string | null;
792
+ duration: {
793
+ period: "days" | "weeks" | "months" | "years";
794
+ count: number;
795
+ } | null;
796
+ renew_automatically: boolean | ("true" | "false");
797
+ renew_for_duration: {
798
+ period: "days" | "weeks" | "months" | "years";
799
+ count: number;
800
+ } | null;
801
+ current_period_started_at: string | null;
802
+ current_period_ends_at: string | null;
803
+ } | null;
804
+ }) | null>;
805
+ createSubscriptionUpdate(id: string, data: NonNullable<paths['/v1/subscriptions/{id}/update']['post']['requestBody']>['content']['application/json']): Promise<{
638
806
  id: string;
639
807
  } | null>;
640
808
  cancelSubscription(id: string, data: NonNullable<paths['/v1/subscriptions/{id}/cancel']['post']['requestBody']>['content']['application/json']): Promise<({
641
809
  id: string;
642
- currency: import("./_types.generated").components["schemas"]["Currency"];
810
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL";
643
811
  status: "active" | "cancelled" | "draft" | "errored" | "paused" | "pending" | "voided";
644
812
  purchase_order: string | null;
645
813
  customer_id: string;
@@ -658,45 +826,45 @@ export declare class HyperlineAPI {
658
826
  count: number;
659
827
  } | null;
660
828
  activation_strategy: "start_date" | "manually" | "checkout" | "quote" | "contract_start_date" | null;
661
- starts_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
662
- contract_start: import("./_types.generated").components["schemas"]["DateTime"] & string;
663
- contract_end: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
664
- initial_billing_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
665
- paused_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
666
- reactivate_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
667
- cancel_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
829
+ starts_at: string;
830
+ contract_start: string;
831
+ contract_end: string | null;
832
+ initial_billing_at: string | null;
833
+ paused_at: string | null;
834
+ reactivate_at: string | null;
835
+ cancel_at: string | null;
668
836
  cancellation_strategy: "refund_prorata" | "refund_custom" | "charge_prorata" | "charge_custom" | "end_of_period" | "do_nothing" | null;
669
- cancellation_amount: import("./_types.generated").components["schemas"]["Amount"] & (number | null);
670
- estimated_arr: import("./_types.generated").components["schemas"]["Amount"] & (number | null);
671
- current_period_started_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
672
- current_period_ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
673
- next_payment_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
674
- next_payment_amount: import("./_types.generated").components["schemas"]["Amount"] & (number | null);
675
- renews_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
837
+ cancellation_amount: number | null;
838
+ estimated_arr: number | null;
839
+ current_period_started_at: string | null;
840
+ current_period_ends_at: string | null;
841
+ next_payment_at: string | null;
842
+ next_payment_amount: number | null;
843
+ renews_at: string | null;
676
844
  current_phase_id: string | null;
677
845
  properties: {
678
846
  [key: string]: string | number | boolean | null | (string | number | boolean | null)[];
679
847
  } | null;
680
848
  custom_properties: {
681
- [key: string]: string | number | boolean | (import("./_types.generated").components["schemas"]["DateTime"] & string) | null;
849
+ [key: string]: string | number | boolean | null;
682
850
  } | null;
683
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
684
- updated_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
851
+ created_at: string;
852
+ updated_at: string;
685
853
  } & {
686
854
  products: (import("./_types.generated").components["schemas"]["SubscriptionProductFee"] | import("./_types.generated").components["schemas"]["SubscriptionProductCredit"] | import("./_types.generated").components["schemas"]["SubscriptionProductSeat"] | import("./_types.generated").components["schemas"]["SubscriptionProductDynamic"])[];
687
855
  coupons: (({
688
856
  description: string | null;
689
- expiration_date: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
857
+ expiration_date: string | null;
690
858
  redemption_limit: number | null;
691
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
859
+ created_at: string;
692
860
  type: "amount";
693
- discount_amount: import("./_types.generated").components["schemas"]["Amount"] & unknown;
694
- currency: import("./_types.generated").components["schemas"]["Currency"] & (string | null);
861
+ discount_amount: number;
862
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL" | null;
695
863
  } | {
696
864
  description: string | null;
697
- expiration_date: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
865
+ expiration_date: string | null;
698
866
  redemption_limit: number | null;
699
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
867
+ created_at: string;
700
868
  type: "percent";
701
869
  discount_percent: number;
702
870
  }) & {
@@ -706,8 +874,8 @@ export declare class HyperlineAPI {
706
874
  subscription_coupon_id: string;
707
875
  repeat: "once" | "forever" | "custom";
708
876
  product_ids: string[];
709
- apply_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
710
- expires_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
877
+ apply_at: string | null;
878
+ expires_at: string | null;
711
879
  })[];
712
880
  phases: {
713
881
  id: string;
@@ -721,26 +889,26 @@ export declare class HyperlineAPI {
721
889
  count: number;
722
890
  } | null;
723
891
  billing_date_setting: "phase_start" | "specific_date";
724
- initial_billing_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
725
- starts_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
726
- ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
892
+ initial_billing_at: string | null;
893
+ starts_at: string | null;
894
+ ends_at: string | null;
727
895
  billing_cycle_alignment: "calendar_period" | "anniversary";
728
896
  transition_calculation_method: "prorata" | "pay_in_full" | "none";
729
897
  transition_invoicing_schedule: "immediately";
730
898
  products: (import("./_types.generated").components["schemas"]["SubscriptionProductFee"] | import("./_types.generated").components["schemas"]["SubscriptionProductCredit"] | import("./_types.generated").components["schemas"]["SubscriptionProductSeat"] | import("./_types.generated").components["schemas"]["SubscriptionProductDynamic"])[];
731
899
  coupons: (({
732
900
  description: string | null;
733
- expiration_date: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
901
+ expiration_date: string | null;
734
902
  redemption_limit: number | null;
735
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
903
+ created_at: string;
736
904
  type: "amount";
737
- discount_amount: import("./_types.generated").components["schemas"]["Amount"] & unknown;
738
- currency: import("./_types.generated").components["schemas"]["Currency"] & (string | null);
905
+ discount_amount: number;
906
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL" | null;
739
907
  } | {
740
908
  description: string | null;
741
- expiration_date: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
909
+ expiration_date: string | null;
742
910
  redemption_limit: number | null;
743
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
911
+ created_at: string;
744
912
  type: "percent";
745
913
  discount_percent: number;
746
914
  }) & {
@@ -750,11 +918,11 @@ export declare class HyperlineAPI {
750
918
  subscription_coupon_id: string;
751
919
  repeat: "once" | "forever" | "custom";
752
920
  product_ids: string[];
753
- apply_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
754
- expires_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
921
+ apply_at: string | null;
922
+ expires_at: string | null;
755
923
  })[];
756
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
757
- updated_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
924
+ created_at: string;
925
+ updated_at: string;
758
926
  }[];
759
927
  quote: {
760
928
  id: string;
@@ -772,8 +940,8 @@ export declare class HyperlineAPI {
772
940
  status: "active" | "pending" | "finished";
773
941
  activation_strategy: "start_date" | "immediately" | "manual" | "quote_signature" | "checkout";
774
942
  end_strategy: "end_date" | "duration" | "manual";
775
- starts_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
776
- ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
943
+ starts_at: string | null;
944
+ ends_at: string | null;
777
945
  duration: {
778
946
  period: "days" | "weeks" | "months" | "years";
779
947
  count: number;
@@ -783,13 +951,13 @@ export declare class HyperlineAPI {
783
951
  period: "days" | "weeks" | "months" | "years";
784
952
  count: number;
785
953
  } | null;
786
- current_period_started_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
787
- current_period_ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
954
+ current_period_started_at: string | null;
955
+ current_period_ends_at: string | null;
788
956
  } | null;
789
957
  }) | null>;
790
958
  reinstateSubscription(id: string): Promise<({
791
959
  id: string;
792
- currency: import("./_types.generated").components["schemas"]["Currency"];
960
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL";
793
961
  status: "active" | "cancelled" | "draft" | "errored" | "paused" | "pending" | "voided";
794
962
  purchase_order: string | null;
795
963
  customer_id: string;
@@ -808,45 +976,45 @@ export declare class HyperlineAPI {
808
976
  count: number;
809
977
  } | null;
810
978
  activation_strategy: "start_date" | "manually" | "checkout" | "quote" | "contract_start_date" | null;
811
- starts_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
812
- contract_start: import("./_types.generated").components["schemas"]["DateTime"] & string;
813
- contract_end: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
814
- initial_billing_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
815
- paused_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
816
- reactivate_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
817
- cancel_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
979
+ starts_at: string;
980
+ contract_start: string;
981
+ contract_end: string | null;
982
+ initial_billing_at: string | null;
983
+ paused_at: string | null;
984
+ reactivate_at: string | null;
985
+ cancel_at: string | null;
818
986
  cancellation_strategy: "refund_prorata" | "refund_custom" | "charge_prorata" | "charge_custom" | "end_of_period" | "do_nothing" | null;
819
- cancellation_amount: import("./_types.generated").components["schemas"]["Amount"] & (number | null);
820
- estimated_arr: import("./_types.generated").components["schemas"]["Amount"] & (number | null);
821
- current_period_started_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
822
- current_period_ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
823
- next_payment_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
824
- next_payment_amount: import("./_types.generated").components["schemas"]["Amount"] & (number | null);
825
- renews_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
987
+ cancellation_amount: number | null;
988
+ estimated_arr: number | null;
989
+ current_period_started_at: string | null;
990
+ current_period_ends_at: string | null;
991
+ next_payment_at: string | null;
992
+ next_payment_amount: number | null;
993
+ renews_at: string | null;
826
994
  current_phase_id: string | null;
827
995
  properties: {
828
996
  [key: string]: string | number | boolean | null | (string | number | boolean | null)[];
829
997
  } | null;
830
998
  custom_properties: {
831
- [key: string]: string | number | boolean | (import("./_types.generated").components["schemas"]["DateTime"] & string) | null;
999
+ [key: string]: string | number | boolean | null;
832
1000
  } | null;
833
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
834
- updated_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
1001
+ created_at: string;
1002
+ updated_at: string;
835
1003
  } & {
836
1004
  products: (import("./_types.generated").components["schemas"]["SubscriptionProductFee"] | import("./_types.generated").components["schemas"]["SubscriptionProductCredit"] | import("./_types.generated").components["schemas"]["SubscriptionProductSeat"] | import("./_types.generated").components["schemas"]["SubscriptionProductDynamic"])[];
837
1005
  coupons: (({
838
1006
  description: string | null;
839
- expiration_date: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1007
+ expiration_date: string | null;
840
1008
  redemption_limit: number | null;
841
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
1009
+ created_at: string;
842
1010
  type: "amount";
843
- discount_amount: import("./_types.generated").components["schemas"]["Amount"] & unknown;
844
- currency: import("./_types.generated").components["schemas"]["Currency"] & (string | null);
1011
+ discount_amount: number;
1012
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL" | null;
845
1013
  } | {
846
1014
  description: string | null;
847
- expiration_date: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1015
+ expiration_date: string | null;
848
1016
  redemption_limit: number | null;
849
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
1017
+ created_at: string;
850
1018
  type: "percent";
851
1019
  discount_percent: number;
852
1020
  }) & {
@@ -856,8 +1024,8 @@ export declare class HyperlineAPI {
856
1024
  subscription_coupon_id: string;
857
1025
  repeat: "once" | "forever" | "custom";
858
1026
  product_ids: string[];
859
- apply_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
860
- expires_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1027
+ apply_at: string | null;
1028
+ expires_at: string | null;
861
1029
  })[];
862
1030
  phases: {
863
1031
  id: string;
@@ -871,26 +1039,26 @@ export declare class HyperlineAPI {
871
1039
  count: number;
872
1040
  } | null;
873
1041
  billing_date_setting: "phase_start" | "specific_date";
874
- initial_billing_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
875
- starts_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
876
- ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1042
+ initial_billing_at: string | null;
1043
+ starts_at: string | null;
1044
+ ends_at: string | null;
877
1045
  billing_cycle_alignment: "calendar_period" | "anniversary";
878
1046
  transition_calculation_method: "prorata" | "pay_in_full" | "none";
879
1047
  transition_invoicing_schedule: "immediately";
880
1048
  products: (import("./_types.generated").components["schemas"]["SubscriptionProductFee"] | import("./_types.generated").components["schemas"]["SubscriptionProductCredit"] | import("./_types.generated").components["schemas"]["SubscriptionProductSeat"] | import("./_types.generated").components["schemas"]["SubscriptionProductDynamic"])[];
881
1049
  coupons: (({
882
1050
  description: string | null;
883
- expiration_date: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1051
+ expiration_date: string | null;
884
1052
  redemption_limit: number | null;
885
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
1053
+ created_at: string;
886
1054
  type: "amount";
887
- discount_amount: import("./_types.generated").components["schemas"]["Amount"] & unknown;
888
- currency: import("./_types.generated").components["schemas"]["Currency"] & (string | null);
1055
+ discount_amount: number;
1056
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL" | null;
889
1057
  } | {
890
1058
  description: string | null;
891
- expiration_date: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1059
+ expiration_date: string | null;
892
1060
  redemption_limit: number | null;
893
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
1061
+ created_at: string;
894
1062
  type: "percent";
895
1063
  discount_percent: number;
896
1064
  }) & {
@@ -900,11 +1068,11 @@ export declare class HyperlineAPI {
900
1068
  subscription_coupon_id: string;
901
1069
  repeat: "once" | "forever" | "custom";
902
1070
  product_ids: string[];
903
- apply_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
904
- expires_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1071
+ apply_at: string | null;
1072
+ expires_at: string | null;
905
1073
  })[];
906
- created_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
907
- updated_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
1074
+ created_at: string;
1075
+ updated_at: string;
908
1076
  }[];
909
1077
  quote: {
910
1078
  id: string;
@@ -922,8 +1090,8 @@ export declare class HyperlineAPI {
922
1090
  status: "active" | "pending" | "finished";
923
1091
  activation_strategy: "start_date" | "immediately" | "manual" | "quote_signature" | "checkout";
924
1092
  end_strategy: "end_date" | "duration" | "manual";
925
- starts_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
926
- ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1093
+ starts_at: string | null;
1094
+ ends_at: string | null;
927
1095
  duration: {
928
1096
  period: "days" | "weeks" | "months" | "years";
929
1097
  count: number;
@@ -933,8 +1101,8 @@ export declare class HyperlineAPI {
933
1101
  period: "days" | "weeks" | "months" | "years";
934
1102
  count: number;
935
1103
  } | null;
936
- current_period_started_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
937
- current_period_ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1104
+ current_period_started_at: string | null;
1105
+ current_period_ends_at: string | null;
938
1106
  } | null;
939
1107
  }) | null>;
940
1108
  getPlan(id: string): Promise<{
@@ -946,9 +1114,9 @@ export declare class HyperlineAPI {
946
1114
  count: number;
947
1115
  } | null;
948
1116
  contract_start_strategy: "start_date" | "immediately" | "manual" | "manual_with_latest" | "quote_signature" | "checkout";
949
- contract_start: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1117
+ contract_start: string | null;
950
1118
  contract_end_strategy: "duration" | "manual" | "end_date";
951
- contract_end: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1119
+ contract_end: string | null;
952
1120
  contract_duration: {
953
1121
  period: "days" | "weeks" | "months" | "years" | "forever";
954
1122
  count: number | null;
@@ -960,7 +1128,7 @@ export declare class HyperlineAPI {
960
1128
  } | null;
961
1129
  products: (import("./_types.generated").components["schemas"]["PlanProductFee"] | import("./_types.generated").components["schemas"]["PlanProductSeat"] | import("./_types.generated").components["schemas"]["PlanProductDynamic"] | import("./_types.generated").components["schemas"]["PlanProductCredit"])[];
962
1130
  custom_properties: {
963
- [key: string]: string | number | boolean | (import("./_types.generated").components["schemas"]["DateTime"] & string) | null;
1131
+ [key: string]: string | number | boolean | null;
964
1132
  } | null;
965
1133
  } | null>;
966
1134
  getPlans(skip?: number, take?: number): Promise<{
@@ -981,22 +1149,24 @@ export declare class HyperlineAPI {
981
1149
  purchase_order: string | null;
982
1150
  original_invoice_id: string | null;
983
1151
  original_invoice_number: string | null;
984
- currency: import("./_types.generated").components["schemas"]["Currency"];
985
- total_amount: import("./_types.generated").components["schemas"]["Amount"];
986
- amount_due: import("./_types.generated").components["schemas"]["Amount"] & unknown;
987
- amount_paid: import("./_types.generated").components["schemas"]["Amount"] & unknown;
988
- amount_fixed: import("./_types.generated").components["schemas"]["Amount"] & unknown;
989
- amount_excluding_tax: import("./_types.generated").components["schemas"]["Amount"] & unknown;
1152
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL";
1153
+ total_amount: number;
1154
+ amount_due: number;
1155
+ amount_paid: number;
1156
+ amount_fixed: number;
1157
+ amount_excluding_tax: number;
990
1158
  tax_rate: number;
991
- tax_amount: import("./_types.generated").components["schemas"]["Amount"] & unknown;
1159
+ tax_amount: number;
992
1160
  tax_scheme: "exempt" | "standard" | "reverse_charge" | "manual" | "not_eligible";
993
- discount_amount: import("./_types.generated").components["schemas"]["Amount"] & unknown;
1161
+ discount_amount: number;
994
1162
  conversion_rate: number | null;
995
- converted_amount: import("./_types.generated").components["schemas"]["Amount"] & (number | null);
996
- converted_at: import("./_types.generated").components["schemas"]["DateTime"];
1163
+ converted_amount: number | null;
1164
+ converted_at: string | null;
997
1165
  payment_method_id: string | null;
998
1166
  bank_account_id: string | null;
999
1167
  custom_note: string | null;
1168
+ additional_info: string | null;
1169
+ footer: string | null;
1000
1170
  customer: {
1001
1171
  id: string;
1002
1172
  name: string;
@@ -1012,34 +1182,34 @@ export declare class HyperlineAPI {
1012
1182
  address: import("./_types.generated").components["schemas"]["Address"] & unknown;
1013
1183
  };
1014
1184
  subscription_id: string | null;
1015
- period_starts_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1016
- period_ends_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1017
- emitted_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
1018
- due_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
1019
- refunded_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1020
- grace_period_ended_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1021
- settled_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1022
- updated_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1185
+ period_starts_at: string | null;
1186
+ period_ends_at: string | null;
1187
+ emitted_at: string;
1188
+ due_at: string;
1189
+ refunded_at: string | null;
1190
+ grace_period_ended_at: string | null;
1191
+ settled_at: string | null;
1192
+ updated_at: string | null;
1023
1193
  line_items: import("./_types.generated").components["schemas"]["InvoiceLineItem"][];
1024
1194
  } & {
1025
1195
  transactions: ({
1026
1196
  id: string;
1027
1197
  type: "subscription" | "one_time" | "refund";
1028
- amount: import("./_types.generated").components["schemas"]["Amount"] & unknown;
1029
- currency: import("./_types.generated").components["schemas"]["Currency"] & unknown;
1198
+ amount: number;
1199
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL";
1030
1200
  customer_id: string;
1031
1201
  provider_id: string | null;
1032
- process_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
1033
- refunded_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1034
- last_refreshed_at: import("./_types.generated").components["schemas"]["DateTime"] & unknown;
1202
+ process_at: string;
1203
+ refunded_at: string | null;
1204
+ last_refreshed_at: string | null;
1035
1205
  provider_fee: {
1036
- amount: import("./_types.generated").components["schemas"]["Amount"] & unknown;
1037
- currency: import("./_types.generated").components["schemas"]["Currency"];
1206
+ amount: number;
1207
+ currency: "EUR" | "AED" | "AFN" | "XCD" | "ALL" | "AMD" | "AOA" | "ARS" | "USD" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "XOF" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "NOK" | "BWP" | "BYR" | "BZD" | "CAD" | "CDF" | "XAF" | "CHF" | "NZD" | "CLP" | "CNY" | "COP" | "CRC" | "CUP" | "CVE" | "ANG" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "MAD" | "ERN" | "ETB" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRO" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "XPF" | "NGN" | "NIO" | "NPR" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STD" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "UYU" | "UZS" | "VEF" | "VND" | "VUV" | "WST" | "YER" | "ZAR" | "ZMW" | "ZWL";
1038
1208
  exchange_rate: number | null;
1039
1209
  } | null;
1040
1210
  chargeback: {
1041
- amount: import("./_types.generated").components["schemas"]["Amount"] & unknown;
1042
- last_chargeback_at: import("./_types.generated").components["schemas"]["DateTime"] & string;
1211
+ amount: number;
1212
+ last_chargeback_at: string;
1043
1213
  } | null;
1044
1214
  } & ({
1045
1215
  payment_method_type: "card" | "direct_debit" | "direct_debit_ach" | "direct_debit_bacs";
@@ -1062,10 +1232,15 @@ export declare class HyperlineAPI {
1062
1232
  coupons: {
1063
1233
  id: string | null;
1064
1234
  name: string | null;
1065
- discount_amount: import("./_types.generated").components["schemas"]["Amount"] & (number | null);
1235
+ discount_amount: number | null;
1066
1236
  discount_percent: number | null;
1067
1237
  line_item_ids: string[];
1068
1238
  }[];
1239
+ integrations: {
1240
+ entity_id: string;
1241
+ provider_name: "stripe" | "mollie" | "gocardless" | "airwallex" | "salesforce" | "hubspot" | "xero" | "pennylane" | "exact-online" | "quickbooks" | "netsuite" | "anrok";
1242
+ provider_account_id: string;
1243
+ }[];
1069
1244
  }) | null>;
1070
1245
  getInvoices(skip?: number, take?: number, query?: operations['getInvoices']['parameters']['query']): Promise<{
1071
1246
  meta: {
@@ -1075,7 +1250,7 @@ export declare class HyperlineAPI {
1075
1250
  };
1076
1251
  data: import("./_types.generated").components["schemas"]["Invoice"][];
1077
1252
  } | null>;
1078
- getInvoicesByCustomerId(id: string): Promise<{
1253
+ getInvoicesByCustomerId(id: string, filters?: Partial<operations['getInvoices']['parameters']['query']>): Promise<{
1079
1254
  meta: {
1080
1255
  total: number;
1081
1256
  taken: number;
@@ -1085,6 +1260,65 @@ export declare class HyperlineAPI {
1085
1260
  } | null>;
1086
1261
  getInvoiceDownload(id: string): Promise<string | null>;
1087
1262
  getAllInvoices(items?: paths['/v1/invoices']['get']['responses'][200]['content']['application/json']['data'], query?: operations['getInvoices']['parameters']['query']): Promise<paths['/v1/invoices']['get']['responses'][200]['content']['application/json']['data']>;
1263
+ getPaymentMethod(customerId: string, paymentMethodId: string): Promise<({
1264
+ id: string;
1265
+ } & {
1266
+ status: "active" | "pending";
1267
+ } & {
1268
+ type: "card";
1269
+ last_4_digits: number | null;
1270
+ expiration_date: string | null;
1271
+ brand: string | null;
1272
+ } & {
1273
+ integration: {
1274
+ entity_id: string;
1275
+ provider_name: "stripe" | "mollie" | "gocardless" | "airwallex" | "salesforce" | "hubspot" | "xero" | "pennylane" | "exact-online" | "quickbooks" | "netsuite" | "anrok";
1276
+ provider_account_id: string;
1277
+ } | null;
1278
+ }) | ({
1279
+ id: string;
1280
+ } & {
1281
+ status: "errored";
1282
+ error_type: "authentication_required" | "authorization_error" | "declined" | "expired" | "fraud" | "invalid" | "not_supported" | "unknown";
1283
+ } & {
1284
+ type: "card";
1285
+ last_4_digits: number | null;
1286
+ expiration_date: string | null;
1287
+ brand: string | null;
1288
+ } & {
1289
+ integration: {
1290
+ entity_id: string;
1291
+ provider_name: "stripe" | "mollie" | "gocardless" | "airwallex" | "salesforce" | "hubspot" | "xero" | "pennylane" | "exact-online" | "quickbooks" | "netsuite" | "anrok";
1292
+ provider_account_id: string;
1293
+ } | null;
1294
+ }) | ({
1295
+ id: string;
1296
+ } & {
1297
+ status: "active" | "pending";
1298
+ } & {
1299
+ type: "direct_debit" | "direct_debit_ach" | "direct_debit_bacs";
1300
+ account_number_ending: string | null;
1301
+ } & {
1302
+ integration: {
1303
+ entity_id: string;
1304
+ provider_name: "stripe" | "mollie" | "gocardless" | "airwallex" | "salesforce" | "hubspot" | "xero" | "pennylane" | "exact-online" | "quickbooks" | "netsuite" | "anrok";
1305
+ provider_account_id: string;
1306
+ } | null;
1307
+ }) | ({
1308
+ id: string;
1309
+ } & {
1310
+ status: "errored";
1311
+ error_type: "authentication_required" | "authorization_error" | "declined" | "expired" | "fraud" | "invalid" | "not_supported" | "unknown";
1312
+ } & {
1313
+ type: "direct_debit" | "direct_debit_ach" | "direct_debit_bacs";
1314
+ account_number_ending: string | null;
1315
+ } & {
1316
+ integration: {
1317
+ entity_id: string;
1318
+ provider_name: "stripe" | "mollie" | "gocardless" | "airwallex" | "salesforce" | "hubspot" | "xero" | "pennylane" | "exact-online" | "quickbooks" | "netsuite" | "anrok";
1319
+ provider_account_id: string;
1320
+ } | null;
1321
+ }) | null>;
1088
1322
  createBillableEvent(data: CreateBillableEvent[]): Promise<BillableEvents | null>;
1089
1323
  getComponentToken(data: {
1090
1324
  customer_id: string;