@wireapp/api-client 26.12.0 → 26.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,6 +6,7 @@ import { Coupon, InvoiceUpcomingData } from './InvoiceUpcomingData';
|
|
|
6
6
|
import { PlanData, PlanInterval } from './PlanData';
|
|
7
7
|
import { SupportedCurrency } from './SupportedCurrency';
|
|
8
8
|
import { HttpClient } from '../../http';
|
|
9
|
+
import { Subscription } from '../payment';
|
|
9
10
|
export declare class BillingAPI {
|
|
10
11
|
private readonly client;
|
|
11
12
|
static readonly DEFAULT_INVOICES_CHUNK_SIZE = 10;
|
|
@@ -26,11 +27,12 @@ export declare class BillingAPI {
|
|
|
26
27
|
getBillingTeam(teamId: string): Promise<BillingTeamData>;
|
|
27
28
|
putBillingInfo(teamId: string, billingInfo: BillingData): Promise<BillingData>;
|
|
28
29
|
getBillingInfo(teamId: string): Promise<BillingData>;
|
|
29
|
-
putCard(teamId: string,
|
|
30
|
+
putCard(teamId: string, paymentMethodId: string): Promise<CardData>;
|
|
30
31
|
getCard(teamId: string): Promise<CardData>;
|
|
31
32
|
postCoupon(teamId: string, coupon: string): Promise<Coupon>;
|
|
32
33
|
deleteCoupon(teamId: string, coupon: string): Promise<void>;
|
|
33
34
|
getCurrentPlan(teamId: string): Promise<PlanData>;
|
|
35
|
+
subscribe(teamId: string, planId: string, paymentMethod: string): Promise<Subscription>;
|
|
34
36
|
putPlan(teamId: string, planId: string): Promise<PlanData>;
|
|
35
37
|
getAvailablePlans(teamId: string, filter: {
|
|
36
38
|
currency?: SupportedCurrency;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BillingAPI.d.ts","sourceRoot":"","sources":["../../../src/team/billing/BillingAPI.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAClD,OAAO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amId, paymentMethodId) {
|
|
52
52
|
const config = {
|
|
53
53
|
data: {
|
|
54
|
-
|
|
54
|
+
paymentMethod: paymentMethodId,
|
|
55
55
|
},
|
|
56
56
|
method: 'put',
|
|
57
57
|
url: `${BillingAPI.URL.TEAMS}/${teamId}/${BillingAPI.URL.BILLING}/${BillingAPI.URL.CARD}`,
|
|
@@ -96,6 +96,15 @@ class BillingAPI {
|
|
|
96
96
|
const response = await this.client.sendJSON(config);
|
|
97
97
|
return response.data;
|
|
98
98
|
}
|
|
99
|
+
async subscribe(teamId, planId, paymentMethod) {
|
|
100
|
+
const config = {
|
|
101
|
+
data: { planId, paymentMethod },
|
|
102
|
+
method: 'post',
|
|
103
|
+
url: `${BillingAPI.URL.TEAMS}/${teamId}/${BillingAPI.URL.BILLING}/subscription`,
|
|
104
|
+
};
|
|
105
|
+
const response = await this.client.sendJSON(config);
|
|
106
|
+
return response.data;
|
|
107
|
+
}
|
|
99
108
|
async putPlan(teamId, planId) {
|
|
100
109
|
const config = {
|
|
101
110
|
data: { planId },
|
|
@@ -32,4 +32,332 @@ export interface PaymentData {
|
|
|
32
32
|
suspend?: PaymentSuspension;
|
|
33
33
|
trialEndsAt: number;
|
|
34
34
|
}
|
|
35
|
+
export type Subscription = {
|
|
36
|
+
application: object;
|
|
37
|
+
application_fee_percent: object;
|
|
38
|
+
automatic_tax: {
|
|
39
|
+
enabled: boolean;
|
|
40
|
+
liability: object;
|
|
41
|
+
};
|
|
42
|
+
billing_cycle_anchor: number;
|
|
43
|
+
billing_cycle_anchor_config: object;
|
|
44
|
+
billing_thresholds: object;
|
|
45
|
+
cancel_at: object;
|
|
46
|
+
cancel_at_period_end: boolean;
|
|
47
|
+
canceled_at: object;
|
|
48
|
+
cancellation_details: {
|
|
49
|
+
comment: object;
|
|
50
|
+
feedback: object;
|
|
51
|
+
reason: object;
|
|
52
|
+
};
|
|
53
|
+
collection_method: string;
|
|
54
|
+
created: number;
|
|
55
|
+
currency: string;
|
|
56
|
+
current_period_end: number;
|
|
57
|
+
current_period_start: number;
|
|
58
|
+
customer: string;
|
|
59
|
+
days_until_due: object;
|
|
60
|
+
default_payment_method: object;
|
|
61
|
+
default_source: object;
|
|
62
|
+
default_tax_rates: any[];
|
|
63
|
+
description: object;
|
|
64
|
+
discount: object;
|
|
65
|
+
ended_at: object;
|
|
66
|
+
id: string;
|
|
67
|
+
items: {
|
|
68
|
+
object: string;
|
|
69
|
+
data: any[];
|
|
70
|
+
has_more: boolean;
|
|
71
|
+
url: string;
|
|
72
|
+
request_params: object;
|
|
73
|
+
};
|
|
74
|
+
latest_invoice: {
|
|
75
|
+
account_country: string;
|
|
76
|
+
account_name: string;
|
|
77
|
+
account_tax_ids: object;
|
|
78
|
+
amount_due: number;
|
|
79
|
+
amount_paid: number;
|
|
80
|
+
amount_remaining: number;
|
|
81
|
+
amount_shipping: number;
|
|
82
|
+
application: object;
|
|
83
|
+
application_fee_amount: object;
|
|
84
|
+
attempt_count: number;
|
|
85
|
+
attempted: boolean;
|
|
86
|
+
auto_advance: boolean;
|
|
87
|
+
automatic_tax: {
|
|
88
|
+
enabled: boolean;
|
|
89
|
+
liability: object;
|
|
90
|
+
status: object;
|
|
91
|
+
};
|
|
92
|
+
billing_reason: string;
|
|
93
|
+
charge: object;
|
|
94
|
+
collection_method: string;
|
|
95
|
+
created: number;
|
|
96
|
+
currency: string;
|
|
97
|
+
custom_fields: object;
|
|
98
|
+
customer: string;
|
|
99
|
+
customer_address: {
|
|
100
|
+
city: string;
|
|
101
|
+
country: string;
|
|
102
|
+
line1: string;
|
|
103
|
+
line2: string;
|
|
104
|
+
postal_code: string;
|
|
105
|
+
state: string;
|
|
106
|
+
};
|
|
107
|
+
customer_email: string;
|
|
108
|
+
customer_name: string;
|
|
109
|
+
customer_phone: object;
|
|
110
|
+
customer_shipping: object;
|
|
111
|
+
customer_tax_exempt: string;
|
|
112
|
+
customer_tax_ids: any[];
|
|
113
|
+
default_payment_method: object;
|
|
114
|
+
default_source: object;
|
|
115
|
+
default_tax_rates: any[];
|
|
116
|
+
deleted: object;
|
|
117
|
+
description: object;
|
|
118
|
+
discount: object;
|
|
119
|
+
discounts: any[];
|
|
120
|
+
due_date: object;
|
|
121
|
+
effective_at: number;
|
|
122
|
+
ending_balance: number;
|
|
123
|
+
footer: object;
|
|
124
|
+
from_invoice: object;
|
|
125
|
+
hosted_invoice_url: string;
|
|
126
|
+
id: string;
|
|
127
|
+
invoice_pdf: string;
|
|
128
|
+
issuer: {
|
|
129
|
+
account: object;
|
|
130
|
+
type: string;
|
|
131
|
+
};
|
|
132
|
+
last_finalization_error: object;
|
|
133
|
+
latest_revision: object;
|
|
134
|
+
lines: {
|
|
135
|
+
object: string;
|
|
136
|
+
data: any[];
|
|
137
|
+
has_more: boolean;
|
|
138
|
+
url: string;
|
|
139
|
+
request_params: object;
|
|
140
|
+
};
|
|
141
|
+
livemode: boolean;
|
|
142
|
+
metadata: {};
|
|
143
|
+
next_payment_attempt: object;
|
|
144
|
+
number: string;
|
|
145
|
+
object: string;
|
|
146
|
+
on_behalf_of: object;
|
|
147
|
+
paid: boolean;
|
|
148
|
+
paid_out_of_band: boolean;
|
|
149
|
+
payment_intent: {
|
|
150
|
+
amount: number;
|
|
151
|
+
amount_capturable: number;
|
|
152
|
+
amount_details: {
|
|
153
|
+
tip: {
|
|
154
|
+
amount: object;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
amount_received: number;
|
|
158
|
+
application: object;
|
|
159
|
+
application_fee_amount: object;
|
|
160
|
+
automatic_payment_methods: object;
|
|
161
|
+
canceled_at: object;
|
|
162
|
+
cancellation_reason: object;
|
|
163
|
+
capture_method: string;
|
|
164
|
+
client_secret: string;
|
|
165
|
+
confirmation_method: string;
|
|
166
|
+
created: number;
|
|
167
|
+
currency: string;
|
|
168
|
+
customer: string;
|
|
169
|
+
description: string;
|
|
170
|
+
id: string;
|
|
171
|
+
invoice: string;
|
|
172
|
+
last_payment_error: object;
|
|
173
|
+
latest_charge: object;
|
|
174
|
+
livemode: boolean;
|
|
175
|
+
metadata: {};
|
|
176
|
+
next_action: {
|
|
177
|
+
alipay_handle_redirect: object;
|
|
178
|
+
boleto_display_details: object;
|
|
179
|
+
card_await_notification: object;
|
|
180
|
+
cashapp_handle_redirect_or_display_qr_code: object;
|
|
181
|
+
display_bank_transfer_instructions: object;
|
|
182
|
+
konbini_display_details: object;
|
|
183
|
+
oxxo_display_details: object;
|
|
184
|
+
paynow_display_qr_code: object;
|
|
185
|
+
pix_display_qr_code: object;
|
|
186
|
+
promptpay_display_qr_code: object;
|
|
187
|
+
redirect_to_url: object;
|
|
188
|
+
swish_handle_redirect_or_display_qr_code: object;
|
|
189
|
+
type: string;
|
|
190
|
+
use_stripe_sdk: {
|
|
191
|
+
directory_server_encryption: {
|
|
192
|
+
algorithm: string;
|
|
193
|
+
certificate: string;
|
|
194
|
+
directory_server_id: string;
|
|
195
|
+
root_certificate_authorities: any[];
|
|
196
|
+
};
|
|
197
|
+
directory_server_name: string;
|
|
198
|
+
merchant: string;
|
|
199
|
+
one_click_authn: object;
|
|
200
|
+
server_transaction_id: string;
|
|
201
|
+
three_d_secure_2_source: string;
|
|
202
|
+
three_ds_method_url: string;
|
|
203
|
+
three_ds_optimizations: string;
|
|
204
|
+
type: string;
|
|
205
|
+
};
|
|
206
|
+
verify_with_microdeposits: object;
|
|
207
|
+
wechat_pay_display_qr_code: object;
|
|
208
|
+
wechat_pay_redirect_to_android_app: object;
|
|
209
|
+
wechat_pay_redirect_to_ios_app: object;
|
|
210
|
+
};
|
|
211
|
+
object: string;
|
|
212
|
+
on_behalf_of: object;
|
|
213
|
+
payment_method: string;
|
|
214
|
+
payment_method_configuration_details: object;
|
|
215
|
+
payment_method_options: {
|
|
216
|
+
acss_debit: object;
|
|
217
|
+
affirm: object;
|
|
218
|
+
afterpay_clearpay: object;
|
|
219
|
+
alipay: object;
|
|
220
|
+
au_becs_debit: object;
|
|
221
|
+
bacs_debit: object;
|
|
222
|
+
bancontact: object;
|
|
223
|
+
blik: object;
|
|
224
|
+
boleto: object;
|
|
225
|
+
card: {
|
|
226
|
+
capture_method: object;
|
|
227
|
+
installments: object;
|
|
228
|
+
mandate_options: object;
|
|
229
|
+
network: object;
|
|
230
|
+
request_extended_authorization: object;
|
|
231
|
+
request_incremental_authorization: object;
|
|
232
|
+
request_multicapture: object;
|
|
233
|
+
request_overcapture: object;
|
|
234
|
+
request_three_d_secure: string;
|
|
235
|
+
require_cvc_recollection: object;
|
|
236
|
+
setup_future_usage: object;
|
|
237
|
+
statement_descriptor_suffix_kana: object;
|
|
238
|
+
statement_descriptor_suffix_kanji: object;
|
|
239
|
+
};
|
|
240
|
+
card_present: object;
|
|
241
|
+
cashapp: object;
|
|
242
|
+
customer_balance: object;
|
|
243
|
+
eps: object;
|
|
244
|
+
fpx: object;
|
|
245
|
+
giropay: object;
|
|
246
|
+
grabpay: object;
|
|
247
|
+
ideal: object;
|
|
248
|
+
interac_present: object;
|
|
249
|
+
klarna: object;
|
|
250
|
+
konbini: object;
|
|
251
|
+
link: object;
|
|
252
|
+
mobilepay: object;
|
|
253
|
+
oxxo: object;
|
|
254
|
+
p24: object;
|
|
255
|
+
paynow: object;
|
|
256
|
+
paypal: {
|
|
257
|
+
capture_method: object;
|
|
258
|
+
preferred_locale: object;
|
|
259
|
+
reference: object;
|
|
260
|
+
setup_future_usage: object;
|
|
261
|
+
};
|
|
262
|
+
pix: object;
|
|
263
|
+
promptpay: object;
|
|
264
|
+
revolut_pay: object;
|
|
265
|
+
sepa_debit: {
|
|
266
|
+
mandate_options: object;
|
|
267
|
+
setup_future_usage: object;
|
|
268
|
+
};
|
|
269
|
+
sofort: object;
|
|
270
|
+
swish: object;
|
|
271
|
+
us_bank_account: object;
|
|
272
|
+
wechat_pay: object;
|
|
273
|
+
zip: object;
|
|
274
|
+
};
|
|
275
|
+
payment_method_types: any[];
|
|
276
|
+
processing: object;
|
|
277
|
+
receipt_email: object;
|
|
278
|
+
review: object;
|
|
279
|
+
setup_future_usage: string;
|
|
280
|
+
shipping: object;
|
|
281
|
+
source: object;
|
|
282
|
+
statement_descriptor: object;
|
|
283
|
+
statement_descriptor_suffix: object;
|
|
284
|
+
status: string;
|
|
285
|
+
transfer_data: object;
|
|
286
|
+
transfer_group: object;
|
|
287
|
+
};
|
|
288
|
+
payment_settings: {
|
|
289
|
+
default_mandate: object;
|
|
290
|
+
payment_method_options: object;
|
|
291
|
+
payment_method_types: object;
|
|
292
|
+
};
|
|
293
|
+
period_end: number;
|
|
294
|
+
period_start: number;
|
|
295
|
+
post_payment_credit_notes_amount: number;
|
|
296
|
+
pre_payment_credit_notes_amount: number;
|
|
297
|
+
quote: object;
|
|
298
|
+
receipt_number: object;
|
|
299
|
+
rendering: object;
|
|
300
|
+
rendering_options: object;
|
|
301
|
+
shipping_cost: object;
|
|
302
|
+
shipping_details: object;
|
|
303
|
+
starting_balance: number;
|
|
304
|
+
statement_descriptor: object;
|
|
305
|
+
status: string;
|
|
306
|
+
status_transitions: {
|
|
307
|
+
finalized_at: number;
|
|
308
|
+
marked_uncollectible_at: object;
|
|
309
|
+
paid_at: object;
|
|
310
|
+
voided_at: object;
|
|
311
|
+
};
|
|
312
|
+
subscription: string;
|
|
313
|
+
subscription_details: {
|
|
314
|
+
metadata: {
|
|
315
|
+
teamId: string;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
subscription_proration_date: object;
|
|
319
|
+
subtotal: number;
|
|
320
|
+
subtotal_excluding_tax: number;
|
|
321
|
+
tax: number;
|
|
322
|
+
test_clock: object;
|
|
323
|
+
threshold_reason: object;
|
|
324
|
+
total: number;
|
|
325
|
+
total_discount_amounts: any[];
|
|
326
|
+
total_excluding_tax: number;
|
|
327
|
+
total_tax_amounts: any[];
|
|
328
|
+
transfer_data: object;
|
|
329
|
+
webhooks_delivered_at: object;
|
|
330
|
+
};
|
|
331
|
+
livemode: boolean;
|
|
332
|
+
metadata: {
|
|
333
|
+
teamId: string;
|
|
334
|
+
};
|
|
335
|
+
next_pending_invoice_item_invoice: object;
|
|
336
|
+
object: string;
|
|
337
|
+
on_behalf_of: object;
|
|
338
|
+
pause_collection: object;
|
|
339
|
+
payment_settings: {
|
|
340
|
+
payment_method_options: object;
|
|
341
|
+
payment_method_types: object;
|
|
342
|
+
save_default_payment_method: string;
|
|
343
|
+
};
|
|
344
|
+
pending_invoice_item_interval: object;
|
|
345
|
+
pending_setup_intent: null | {
|
|
346
|
+
status: string;
|
|
347
|
+
client_secret: string;
|
|
348
|
+
};
|
|
349
|
+
pending_update: object;
|
|
350
|
+
schedule: object;
|
|
351
|
+
start_date: number;
|
|
352
|
+
status: string;
|
|
353
|
+
test_clock: object;
|
|
354
|
+
transfer_data: object;
|
|
355
|
+
trial_end: object;
|
|
356
|
+
trial_settings: {
|
|
357
|
+
end_behavior: {
|
|
358
|
+
missing_payment_method: string;
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
trial_start: object;
|
|
362
|
+
};
|
|
35
363
|
//# sourceMappingURL=PaymentData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentData.d.ts","sourceRoot":"","sources":["../../../src/team/payment/PaymentData.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,aAAa,EAAC,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,IAAI,CAAC;AAE5C,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,iBAA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|
30
30
|
"devDependencies": {
|
|
31
31
|
"@swc/core": "^1.3.10",
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"watch": "webpack serve --config webpack.browser.js",
|
|
67
67
|
"prepare": "yarn dist"
|
|
68
68
|
},
|
|
69
|
-
"version": "26.
|
|
70
|
-
"gitHead": "
|
|
69
|
+
"version": "26.13.0",
|
|
70
|
+
"gitHead": "c2be3cb7554da671c7b65d9a58e78651d6b4a143"
|
|
71
71
|
}
|