framepayments 1.0.8 → 2.0.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.
- package/README.md +1 -1
- package/dist/api/accounts-api.d.ts +20 -0
- package/dist/api/accounts-api.d.ts.map +1 -0
- package/dist/api/accounts-api.js +55 -0
- package/dist/api/accounts-api.js.map +1 -0
- package/dist/api/billing-api.d.ts +20 -0
- package/dist/api/billing-api.d.ts.map +1 -0
- package/dist/api/billing-api.js +58 -0
- package/dist/api/billing-api.js.map +1 -0
- package/dist/api/capabilities-api.d.ts +11 -0
- package/dist/api/capabilities-api.d.ts.map +1 -0
- package/dist/api/capabilities-api.js +22 -0
- package/dist/api/capabilities-api.js.map +1 -0
- package/dist/api/charge_intents-api.d.ts +1 -0
- package/dist/api/charge_intents-api.d.ts.map +1 -1
- package/dist/api/charge_intents-api.js +4 -0
- package/dist/api/charge_intents-api.js.map +1 -1
- package/dist/api/charge_sessions-api.d.ts +9 -0
- package/dist/api/charge_sessions-api.d.ts.map +1 -0
- package/dist/api/charge_sessions-api.js +14 -0
- package/dist/api/charge_sessions-api.js.map +1 -0
- package/dist/api/charges-api.d.ts +9 -0
- package/dist/api/charges-api.d.ts.map +1 -0
- package/dist/api/charges-api.js +14 -0
- package/dist/api/charges-api.js.map +1 -0
- package/dist/api/coupons-api.d.ts +12 -0
- package/dist/api/coupons-api.d.ts.map +1 -0
- package/dist/api/coupons-api.js +29 -0
- package/dist/api/coupons-api.js.map +1 -0
- package/dist/api/customer_identity-api.d.ts +2 -1
- package/dist/api/customer_identity-api.d.ts.map +1 -1
- package/dist/api/customer_identity-api.js +4 -0
- package/dist/api/customer_identity-api.js.map +1 -1
- package/dist/api/customers-api.d.ts +2 -0
- package/dist/api/customers-api.d.ts.map +1 -1
- package/dist/api/customers-api.js +4 -0
- package/dist/api/customers-api.js.map +1 -1
- package/dist/api/discounts-api.d.ts +11 -0
- package/dist/api/discounts-api.d.ts.map +1 -0
- package/dist/api/discounts-api.js +25 -0
- package/dist/api/discounts-api.js.map +1 -0
- package/dist/api/disputes-api.d.ts +2 -2
- package/dist/api/disputes-api.d.ts.map +1 -1
- package/dist/api/disputes-api.js +3 -3
- package/dist/api/disputes-api.js.map +1 -1
- package/dist/api/geo_compliance-api.d.ts +8 -0
- package/dist/api/geo_compliance-api.d.ts.map +1 -0
- package/dist/api/geo_compliance-api.js +10 -0
- package/dist/api/geo_compliance-api.js.map +1 -0
- package/dist/api/geofences-api.d.ts +12 -0
- package/dist/api/geofences-api.d.ts.map +1 -0
- package/dist/api/geofences-api.js +17 -0
- package/dist/api/geofences-api.js.map +1 -0
- package/dist/api/onboarding-api.d.ts +12 -0
- package/dist/api/onboarding-api.d.ts.map +1 -0
- package/dist/api/onboarding-api.js +26 -0
- package/dist/api/onboarding-api.js.map +1 -0
- package/dist/api/onboarding_sessions-api.d.ts +9 -0
- package/dist/api/onboarding_sessions-api.d.ts.map +1 -0
- package/dist/api/onboarding_sessions-api.js +16 -0
- package/dist/api/onboarding_sessions-api.js.map +1 -0
- package/dist/api/payment_link_sessions-api.d.ts +8 -0
- package/dist/api/payment_link_sessions-api.d.ts.map +1 -0
- package/dist/api/payment_link_sessions-api.js +10 -0
- package/dist/api/payment_link_sessions-api.js.map +1 -0
- package/dist/api/payouts-api.d.ts +8 -0
- package/dist/api/payouts-api.d.ts.map +1 -0
- package/dist/api/payouts-api.js +10 -0
- package/dist/api/payouts-api.js.map +1 -0
- package/dist/api/phone_verifications-api.d.ts +9 -0
- package/dist/api/phone_verifications-api.d.ts.map +1 -0
- package/dist/api/phone_verifications-api.js +14 -0
- package/dist/api/phone_verifications-api.js.map +1 -0
- package/dist/api/product_phases-api.d.ts +17 -0
- package/dist/api/product_phases-api.d.ts.map +1 -0
- package/dist/api/product_phases-api.js +37 -0
- package/dist/api/product_phases-api.js.map +1 -0
- package/dist/api/promotion_codes-api.d.ts +12 -0
- package/dist/api/promotion_codes-api.d.ts.map +1 -0
- package/dist/api/promotion_codes-api.js +29 -0
- package/dist/api/promotion_codes-api.js.map +1 -0
- package/dist/api/sonar_sessions-api.d.ts +9 -0
- package/dist/api/sonar_sessions-api.d.ts.map +1 -0
- package/dist/api/sonar_sessions-api.js +14 -0
- package/dist/api/sonar_sessions-api.js.map +1 -0
- package/dist/api/subscription_change_logs-api.d.ts +9 -0
- package/dist/api/subscription_change_logs-api.d.ts.map +1 -0
- package/dist/api/subscription_change_logs-api.js +17 -0
- package/dist/api/subscription_change_logs-api.js.map +1 -0
- package/dist/api/terms_of_service-api.d.ts +9 -0
- package/dist/api/terms_of_service-api.d.ts.map +1 -0
- package/dist/api/terms_of_service-api.js +14 -0
- package/dist/api/terms_of_service-api.js.map +1 -0
- package/dist/api/three_ds-api.d.ts +10 -0
- package/dist/api/three_ds-api.d.ts.map +1 -0
- package/dist/api/three_ds-api.js +18 -0
- package/dist/api/three_ds-api.js.map +1 -0
- package/dist/api/transfer_billing_agreements-api.d.ts +12 -0
- package/dist/api/transfer_billing_agreements-api.d.ts.map +1 -0
- package/dist/api/transfer_billing_agreements-api.js +29 -0
- package/dist/api/transfer_billing_agreements-api.js.map +1 -0
- package/dist/api/transfer_fee_plans-api.d.ts +11 -0
- package/dist/api/transfer_fee_plans-api.d.ts.map +1 -0
- package/dist/api/transfer_fee_plans-api.js +25 -0
- package/dist/api/transfer_fee_plans-api.js.map +1 -0
- package/dist/api/transfers-api.d.ts +11 -0
- package/dist/api/transfers-api.d.ts.map +1 -0
- package/dist/api/transfers-api.js +25 -0
- package/dist/api/transfers-api.js.map +1 -0
- package/dist/api/webhook_endpoints-api.d.ts +9 -0
- package/dist/api/webhook_endpoints-api.d.ts.map +1 -0
- package/dist/api/webhook_endpoints-api.js +17 -0
- package/dist/api/webhook_endpoints-api.js.map +1 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +46 -0
- package/dist/index.js.map +1 -1
- package/dist/types/accounts.d.ts +94 -0
- package/dist/types/accounts.d.ts.map +1 -0
- package/dist/types/accounts.js +2 -0
- package/dist/types/accounts.js.map +1 -0
- package/dist/types/billing.d.ts +84 -0
- package/dist/types/billing.d.ts.map +1 -0
- package/dist/types/billing.js +2 -0
- package/dist/types/billing.js.map +1 -0
- package/dist/types/capabilities.d.ts +21 -0
- package/dist/types/capabilities.d.ts.map +1 -0
- package/dist/types/capabilities.js +2 -0
- package/dist/types/capabilities.js.map +1 -0
- package/dist/types/charge_intents.d.ts +1 -0
- package/dist/types/charge_intents.d.ts.map +1 -1
- package/dist/types/charge_sessions.d.ts +18 -0
- package/dist/types/charge_sessions.d.ts.map +1 -0
- package/dist/types/charge_sessions.js +2 -0
- package/dist/types/charge_sessions.js.map +1 -0
- package/dist/types/charges.d.ts +23 -0
- package/dist/types/charges.d.ts.map +1 -0
- package/dist/types/charges.js +2 -0
- package/dist/types/charges.js.map +1 -0
- package/dist/types/coupons.d.ts +33 -0
- package/dist/types/coupons.d.ts.map +1 -0
- package/dist/types/coupons.js +2 -0
- package/dist/types/coupons.js.map +1 -0
- package/dist/types/customer_identity.d.ts +7 -0
- package/dist/types/customer_identity.d.ts.map +1 -1
- package/dist/types/discounts.d.ts +22 -0
- package/dist/types/discounts.d.ts.map +1 -0
- package/dist/types/discounts.js +2 -0
- package/dist/types/discounts.js.map +1 -0
- package/dist/types/disputes.d.ts +15 -0
- package/dist/types/disputes.d.ts.map +1 -1
- package/dist/types/geo_compliance.d.ts +8 -0
- package/dist/types/geo_compliance.d.ts.map +1 -0
- package/dist/types/geo_compliance.js +2 -0
- package/dist/types/geo_compliance.js.map +1 -0
- package/dist/types/geofences.d.ts +16 -0
- package/dist/types/geofences.d.ts.map +1 -0
- package/dist/types/geofences.js +2 -0
- package/dist/types/geofences.js.map +1 -0
- package/dist/types/onboarding.d.ts +40 -0
- package/dist/types/onboarding.d.ts.map +1 -0
- package/dist/types/onboarding.js +2 -0
- package/dist/types/onboarding.js.map +1 -0
- package/dist/types/onboarding_sessions.d.ts +16 -0
- package/dist/types/onboarding_sessions.d.ts.map +1 -0
- package/dist/types/onboarding_sessions.js +2 -0
- package/dist/types/onboarding_sessions.js.map +1 -0
- package/dist/types/payment_link_sessions.d.ts +17 -0
- package/dist/types/payment_link_sessions.d.ts.map +1 -0
- package/dist/types/payment_link_sessions.js +2 -0
- package/dist/types/payment_link_sessions.js.map +1 -0
- package/dist/types/payouts.d.ts +20 -0
- package/dist/types/payouts.d.ts.map +1 -0
- package/dist/types/payouts.js +2 -0
- package/dist/types/payouts.js.map +1 -0
- package/dist/types/phone_verifications.d.ts +18 -0
- package/dist/types/phone_verifications.d.ts.map +1 -0
- package/dist/types/phone_verifications.js +2 -0
- package/dist/types/phone_verifications.js.map +1 -0
- package/dist/types/product_phases.d.ts +33 -0
- package/dist/types/product_phases.d.ts.map +1 -0
- package/dist/types/product_phases.js +2 -0
- package/dist/types/product_phases.js.map +1 -0
- package/dist/types/promotion_codes.d.ts +32 -0
- package/dist/types/promotion_codes.d.ts.map +1 -0
- package/dist/types/promotion_codes.js +2 -0
- package/dist/types/promotion_codes.js.map +1 -0
- package/dist/types/sonar_sessions.d.ts +18 -0
- package/dist/types/sonar_sessions.d.ts.map +1 -0
- package/dist/types/sonar_sessions.js +2 -0
- package/dist/types/sonar_sessions.js.map +1 -0
- package/dist/types/subscription_change_logs.d.ts +14 -0
- package/dist/types/subscription_change_logs.d.ts.map +1 -0
- package/dist/types/subscription_change_logs.js +2 -0
- package/dist/types/subscription_change_logs.js.map +1 -0
- package/dist/types/terms_of_service.d.ts +10 -0
- package/dist/types/terms_of_service.d.ts.map +1 -0
- package/dist/types/terms_of_service.js +2 -0
- package/dist/types/terms_of_service.js.map +1 -0
- package/dist/types/three_ds.d.ts +17 -0
- package/dist/types/three_ds.d.ts.map +1 -0
- package/dist/types/three_ds.js +2 -0
- package/dist/types/three_ds.js.map +1 -0
- package/dist/types/transfer_billing_agreements.d.ts +26 -0
- package/dist/types/transfer_billing_agreements.d.ts.map +1 -0
- package/dist/types/transfer_billing_agreements.js +2 -0
- package/dist/types/transfer_billing_agreements.js.map +1 -0
- package/dist/types/transfer_fee_plans.d.ts +25 -0
- package/dist/types/transfer_fee_plans.d.ts.map +1 -0
- package/dist/types/transfer_fee_plans.js +2 -0
- package/dist/types/transfer_fee_plans.js.map +1 -0
- package/dist/types/transfers.d.ts +26 -0
- package/dist/types/transfers.d.ts.map +1 -0
- package/dist/types/transfers.js +2 -0
- package/dist/types/transfers.js.map +1 -0
- package/dist/types/webhook_endpoints.d.ts +17 -0
- package/dist/types/webhook_endpoints.d.ts.map +1 -0
- package/dist/types/webhook_endpoints.js +2 -0
- package/dist/types/webhook_endpoints.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { Geofence, GeofenceListResponse } from '../types/geofences';
|
|
3
|
+
export declare class GeofencesAPI {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: AxiosInstance);
|
|
6
|
+
list(params?: {
|
|
7
|
+
per_page?: number;
|
|
8
|
+
page?: number;
|
|
9
|
+
}): Promise<GeofenceListResponse>;
|
|
10
|
+
iterateAllGeofences(per_page?: number): Promise<AsyncGenerator<Geofence, any, any>>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=geofences-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geofences-api.d.ts","sourceRoot":"","sources":["../../src/api/geofences-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAGzE,qBAAa,YAAY;IACX,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAKlF,mBAAmB,CAAC,QAAQ,SAAK;CAMxC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { paginate } from '../utils/paginator';
|
|
2
|
+
export class GeofencesAPI {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
this.client = client;
|
|
5
|
+
}
|
|
6
|
+
async list(params) {
|
|
7
|
+
const resp = await this.client.get('/v1/geofences', { params });
|
|
8
|
+
return resp.data;
|
|
9
|
+
}
|
|
10
|
+
async iterateAllGeofences(per_page = 20) {
|
|
11
|
+
return paginate(async (page) => {
|
|
12
|
+
const res = await this.client.get('/v1/geofences', { params: { per_page, page } });
|
|
13
|
+
return res.data;
|
|
14
|
+
}, per_page);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=geofences-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geofences-api.js","sourceRoot":"","sources":["../../src/api/geofences-api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,OAAO,YAAY;IACvB,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,IAAI,CAAC,MAA6C;QACtD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QAChE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,mBAAmB,CAAC,QAAQ,GAAG,EAAE;QACrC,OAAO,QAAQ,CAAW,KAAK,EAAE,IAAY,EAAE,EAAE;YAC/C,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;YACnF,OAAO,GAAG,CAAC,IAAI,CAAC;QAClB,CAAC,EAAE,QAAQ,CAAC,CAAC;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { OnboardingSession, OnboardingSessionListResponse, ListOnboardingSessionsParams, CreateOnboardingSessionParams, UpdateOnboardingSessionParams, OnboardingPayoutParams } from '../types/onboarding';
|
|
3
|
+
export declare class OnboardingAPI {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: AxiosInstance);
|
|
6
|
+
list(params?: ListOnboardingSessionsParams): Promise<OnboardingSessionListResponse>;
|
|
7
|
+
create(params: CreateOnboardingSessionParams): Promise<OnboardingSession>;
|
|
8
|
+
get(sessionId: string): Promise<OnboardingSession>;
|
|
9
|
+
update(sessionId: string, params: UpdateOnboardingSessionParams): Promise<OnboardingSession>;
|
|
10
|
+
payout(sessionId: string, params: OnboardingPayoutParams): Promise<OnboardingSession>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=onboarding-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding-api.d.ts","sourceRoot":"","sources":["../../src/api/onboarding-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,iBAAiB,EACjB,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,EAC7B,6BAA6B,EAC7B,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAE7B,qBAAa,aAAa;IACZ,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,IAAI,CAAC,MAAM,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,6BAA6B,CAAC;IAKnF,MAAM,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAKzE,GAAG,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAKlD,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAK5F,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAI5F"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export class OnboardingAPI {
|
|
2
|
+
constructor(client) {
|
|
3
|
+
this.client = client;
|
|
4
|
+
}
|
|
5
|
+
async list(params) {
|
|
6
|
+
const resp = await this.client.get('/v1/onboarding/sessions', { params });
|
|
7
|
+
return resp.data;
|
|
8
|
+
}
|
|
9
|
+
async create(params) {
|
|
10
|
+
const resp = await this.client.post('/v1/onboarding/sessions', params);
|
|
11
|
+
return resp.data;
|
|
12
|
+
}
|
|
13
|
+
async get(sessionId) {
|
|
14
|
+
const resp = await this.client.get(`/v1/onboarding/sessions/${sessionId}`);
|
|
15
|
+
return resp.data;
|
|
16
|
+
}
|
|
17
|
+
async update(sessionId, params) {
|
|
18
|
+
const resp = await this.client.patch(`/v1/onboarding/sessions/${sessionId}`, params);
|
|
19
|
+
return resp.data;
|
|
20
|
+
}
|
|
21
|
+
async payout(sessionId, params) {
|
|
22
|
+
const resp = await this.client.post(`/v1/onboarding/sessions/${sessionId}/payout`, params);
|
|
23
|
+
return resp.data;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=onboarding-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding-api.js","sourceRoot":"","sources":["../../src/api/onboarding-api.ts"],"names":[],"mappings":"AAUA,MAAM,OAAO,aAAa;IACxB,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,IAAI,CAAC,MAAqC;QAC9C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QAC1E,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,MAAqC;QAChD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;QACvE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,SAAiB;QACzB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,2BAA2B,SAAS,EAAE,CAAC,CAAC;QAC3E,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,SAAiB,EAAE,MAAqC;QACnE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,2BAA2B,SAAS,EAAE,EAAE,MAAM,CAAC,CAAC;QACrF,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,SAAiB,EAAE,MAA8B;QAC5D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,2BAA2B,SAAS,SAAS,EAAE,MAAM,CAAC,CAAC;QAC3F,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { OnboardingSession, CreateOnboardingSessionParams } from '../types/onboarding_sessions';
|
|
3
|
+
export declare class OnboardingSessionsAPI {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: AxiosInstance);
|
|
6
|
+
create(params: CreateOnboardingSessionParams): Promise<OnboardingSession>;
|
|
7
|
+
getByAccount(accountId: string): Promise<OnboardingSession>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=onboarding_sessions-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding_sessions-api.d.ts","sourceRoot":"","sources":["../../src/api/onboarding_sessions-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAErG,qBAAa,qBAAqB;IACpB,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,MAAM,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAKzE,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAMlE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export class OnboardingSessionsAPI {
|
|
2
|
+
constructor(client) {
|
|
3
|
+
this.client = client;
|
|
4
|
+
}
|
|
5
|
+
async create(params) {
|
|
6
|
+
const resp = await this.client.post('/v1/onboarding_sessions', params);
|
|
7
|
+
return resp.data;
|
|
8
|
+
}
|
|
9
|
+
async getByAccount(accountId) {
|
|
10
|
+
const resp = await this.client.get('/v1/onboarding_sessions', {
|
|
11
|
+
params: { account_id: accountId }
|
|
12
|
+
});
|
|
13
|
+
return resp.data;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=onboarding_sessions-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding_sessions-api.js","sourceRoot":"","sources":["../../src/api/onboarding_sessions-api.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,qBAAqB;IAChC,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,MAAM,CAAC,MAAqC;QAChD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;QACvE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,SAAiB;QAClC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,yBAAyB,EAAE;YAC5D,MAAM,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE;SAClC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { PaymentLinkSession, CreatePaymentLinkSessionParams } from '../types/payment_link_sessions';
|
|
3
|
+
export declare class PaymentLinkSessionsAPI {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: AxiosInstance);
|
|
6
|
+
create(params: CreatePaymentLinkSessionParams): Promise<PaymentLinkSession>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=payment_link_sessions-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment_link_sessions-api.d.ts","sourceRoot":"","sources":["../../src/api/payment_link_sessions-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,kBAAkB,EAClB,8BAA8B,EAC/B,MAAM,gCAAgC,CAAC;AAExC,qBAAa,sBAAsB;IACrB,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,MAAM,CAAC,MAAM,EAAE,8BAA8B,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAIlF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class PaymentLinkSessionsAPI {
|
|
2
|
+
constructor(client) {
|
|
3
|
+
this.client = client;
|
|
4
|
+
}
|
|
5
|
+
async create(params) {
|
|
6
|
+
const resp = await this.client.post('/v1/payment_link_sessions', params);
|
|
7
|
+
return resp.data;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=payment_link_sessions-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment_link_sessions-api.js","sourceRoot":"","sources":["../../src/api/payment_link_sessions-api.ts"],"names":[],"mappings":"AAMA,MAAM,OAAO,sBAAsB;IACjC,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,MAAM,CAAC,MAAsC;QACjD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,2BAA2B,EAAE,MAAM,CAAC,CAAC;QACzE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { Payout, CreatePayoutParams } from '../types/payouts';
|
|
3
|
+
export declare class PayoutsAPI {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: AxiosInstance);
|
|
6
|
+
create(params: CreatePayoutParams): Promise<Payout>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=payouts-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payouts-api.d.ts","sourceRoot":"","sources":["../../src/api/payouts-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEnE,qBAAa,UAAU;IACT,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;CAI1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payouts-api.js","sourceRoot":"","sources":["../../src/api/payouts-api.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,UAAU;IACrB,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,MAAM,CAAC,MAA0B;QACrC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;QAC3D,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { PhoneVerification, CreatePhoneVerificationParams, ConfirmPhoneVerificationParams } from '../types/phone_verifications';
|
|
3
|
+
export declare class PhoneVerificationsAPI {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: AxiosInstance);
|
|
6
|
+
create(accountId: string, params: CreatePhoneVerificationParams): Promise<PhoneVerification>;
|
|
7
|
+
confirm(accountId: string, id: string, params: ConfirmPhoneVerificationParams): Promise<PhoneVerification>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=phone_verifications-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phone_verifications-api.d.ts","sourceRoot":"","sources":["../../src/api/phone_verifications-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,iBAAiB,EACjB,6BAA6B,EAC7B,8BAA8B,EAC/B,MAAM,8BAA8B,CAAC;AAEtC,qBAAa,qBAAqB;IACpB,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAK5F,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,8BAA8B,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAIjH"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class PhoneVerificationsAPI {
|
|
2
|
+
constructor(client) {
|
|
3
|
+
this.client = client;
|
|
4
|
+
}
|
|
5
|
+
async create(accountId, params) {
|
|
6
|
+
const resp = await this.client.post(`/v1/accounts/${accountId}/phone_verifications`, params);
|
|
7
|
+
return resp.data;
|
|
8
|
+
}
|
|
9
|
+
async confirm(accountId, id, params) {
|
|
10
|
+
const resp = await this.client.post(`/v1/accounts/${accountId}/phone_verifications/${id}/confirm`, params);
|
|
11
|
+
return resp.data;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=phone_verifications-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phone_verifications-api.js","sourceRoot":"","sources":["../../src/api/phone_verifications-api.ts"],"names":[],"mappings":"AAOA,MAAM,OAAO,qBAAqB;IAChC,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,MAAM,CAAC,SAAiB,EAAE,MAAqC;QACnE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,SAAS,sBAAsB,EAAE,MAAM,CAAC,CAAC;QAC7F,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,SAAiB,EAAE,EAAU,EAAE,MAAsC;QACjF,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,SAAS,wBAAwB,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;QAC3G,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { ProductPhase, ProductPhaseListResponse, CreateProductPhaseParams, UpdateProductPhaseParams } from '../types/product_phases';
|
|
3
|
+
export declare class ProductPhasesAPI {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: AxiosInstance);
|
|
6
|
+
list(productId: string, per_page?: number, page?: number): Promise<ProductPhaseListResponse>;
|
|
7
|
+
get(productId: string, phaseId: string): Promise<ProductPhase>;
|
|
8
|
+
create(productId: string, params: CreateProductPhaseParams): Promise<ProductPhase>;
|
|
9
|
+
update(productId: string, phaseId: string, params: UpdateProductPhaseParams): Promise<ProductPhase>;
|
|
10
|
+
delete(productId: string, phaseId: string): Promise<ProductPhase>;
|
|
11
|
+
bulkUpdate(productId: string, phases: Array<{
|
|
12
|
+
id: string;
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}>): Promise<ProductPhaseListResponse>;
|
|
15
|
+
iterateAllProductPhases(productId: string, per_page?: number): Promise<AsyncGenerator<ProductPhase, any, any>>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=product_phases-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product_phases-api.d.ts","sourceRoot":"","sources":["../../src/api/product_phases-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,YAAY,EACZ,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AAGjC,qBAAa,gBAAgB;IACf,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAK5F,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAK9D,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,YAAY,CAAC;IAKlF,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,YAAY,CAAC;IAKnG,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAKjE,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAKvH,uBAAuB,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,SAAK;CAM/D"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { paginate } from '../utils/paginator';
|
|
2
|
+
export class ProductPhasesAPI {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
this.client = client;
|
|
5
|
+
}
|
|
6
|
+
async list(productId, per_page, page) {
|
|
7
|
+
const resp = await this.client.get(`/v1/products/${productId}/phases`, { params: { per_page, page } });
|
|
8
|
+
return resp.data;
|
|
9
|
+
}
|
|
10
|
+
async get(productId, phaseId) {
|
|
11
|
+
const resp = await this.client.get(`/v1/products/${productId}/phases/${phaseId}`);
|
|
12
|
+
return resp.data;
|
|
13
|
+
}
|
|
14
|
+
async create(productId, params) {
|
|
15
|
+
const resp = await this.client.post(`/v1/products/${productId}/phases`, params);
|
|
16
|
+
return resp.data;
|
|
17
|
+
}
|
|
18
|
+
async update(productId, phaseId, params) {
|
|
19
|
+
const resp = await this.client.patch(`/v1/products/${productId}/phases/${phaseId}`, params);
|
|
20
|
+
return resp.data;
|
|
21
|
+
}
|
|
22
|
+
async delete(productId, phaseId) {
|
|
23
|
+
const resp = await this.client.delete(`/v1/products/${productId}/phases/${phaseId}`);
|
|
24
|
+
return resp.data;
|
|
25
|
+
}
|
|
26
|
+
async bulkUpdate(productId, phases) {
|
|
27
|
+
const resp = await this.client.patch(`/v1/products/${productId}/phases/bulk_update`, { phases });
|
|
28
|
+
return resp.data;
|
|
29
|
+
}
|
|
30
|
+
async iterateAllProductPhases(productId, per_page = 20) {
|
|
31
|
+
return paginate(async (page) => {
|
|
32
|
+
const res = await this.client.get(`/v1/products/${productId}/phases`, { params: { per_page, page } });
|
|
33
|
+
return res.data;
|
|
34
|
+
}, per_page);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=product_phases-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product_phases-api.js","sourceRoot":"","sources":["../../src/api/product_phases-api.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,OAAO,gBAAgB;IAC3B,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,IAAI,CAAC,SAAiB,EAAE,QAAiB,EAAE,IAAa;QAC5D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,SAAS,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACvG,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,SAAiB,EAAE,OAAe;QAC1C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,SAAS,WAAW,OAAO,EAAE,CAAC,CAAC;QAClF,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,SAAiB,EAAE,MAAgC;QAC9D,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,SAAS,SAAS,EAAE,MAAM,CAAC,CAAC;QAChF,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,SAAiB,EAAE,OAAe,EAAE,MAAgC;QAC/E,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,SAAS,WAAW,OAAO,EAAE,EAAE,MAAM,CAAC,CAAC;QAC5F,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,SAAiB,EAAE,OAAe;QAC7C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,SAAS,WAAW,OAAO,EAAE,CAAC,CAAC;QACrF,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,SAAiB,EAAE,MAAqD;QACvF,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,gBAAgB,SAAS,qBAAqB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;QACjG,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,uBAAuB,CAAC,SAAiB,EAAE,QAAQ,GAAG,EAAE;QAC5D,OAAO,QAAQ,CAAe,KAAK,EAAE,IAAY,EAAE,EAAE;YACnD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,gBAAgB,SAAS,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;YACtG,OAAO,GAAG,CAAC,IAAI,CAAC;QAClB,CAAC,EAAE,QAAQ,CAAC,CAAC;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { PromotionCode, PromotionCodeListResponse, CreatePromotionCodeParams, UpdatePromotionCodeParams } from '../types/promotion_codes';
|
|
3
|
+
export declare class PromotionCodesAPI {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: AxiosInstance);
|
|
6
|
+
list(per_page?: number, page?: number): Promise<PromotionCodeListResponse>;
|
|
7
|
+
get(id: string): Promise<PromotionCode>;
|
|
8
|
+
create(params: CreatePromotionCodeParams): Promise<PromotionCode>;
|
|
9
|
+
update(id: string, params: UpdatePromotionCodeParams): Promise<PromotionCode>;
|
|
10
|
+
iterateAllPromotionCodes(per_page?: number): Promise<AsyncGenerator<PromotionCode, any, any>>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=promotion_codes-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promotion_codes-api.d.ts","sourceRoot":"","sources":["../../src/api/promotion_codes-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,aAAa,EACb,yBAAyB,EACzB,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,0BAA0B,CAAC;AAGlC,qBAAa,iBAAiB;IAChB,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAK1E,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAKvC,MAAM,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;IAKjE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;IAK7E,wBAAwB,CAAC,QAAQ,SAAK;CAM7C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { paginate } from '../utils/paginator';
|
|
2
|
+
export class PromotionCodesAPI {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
this.client = client;
|
|
5
|
+
}
|
|
6
|
+
async list(per_page, page) {
|
|
7
|
+
const resp = await this.client.get('/v1/promotion_codes', { params: { per_page, page } });
|
|
8
|
+
return resp.data;
|
|
9
|
+
}
|
|
10
|
+
async get(id) {
|
|
11
|
+
const resp = await this.client.get(`/v1/promotion_codes/${id}`);
|
|
12
|
+
return resp.data;
|
|
13
|
+
}
|
|
14
|
+
async create(params) {
|
|
15
|
+
const resp = await this.client.post('/v1/promotion_codes', params);
|
|
16
|
+
return resp.data;
|
|
17
|
+
}
|
|
18
|
+
async update(id, params) {
|
|
19
|
+
const resp = await this.client.patch(`/v1/promotion_codes/${id}`, params);
|
|
20
|
+
return resp.data;
|
|
21
|
+
}
|
|
22
|
+
async iterateAllPromotionCodes(per_page = 20) {
|
|
23
|
+
return paginate(async (page) => {
|
|
24
|
+
const res = await this.client.get('/v1/promotion_codes', { params: { per_page, page } });
|
|
25
|
+
return res.data;
|
|
26
|
+
}, per_page);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=promotion_codes-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promotion_codes-api.js","sourceRoot":"","sources":["../../src/api/promotion_codes-api.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,OAAO,iBAAiB;IAC5B,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,IAAI,CAAC,QAAiB,EAAE,IAAa;QACzC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QAC1F,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,EAAU;QAClB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,CAAC,CAAC;QAChE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,MAAiC;QAC5C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,MAAiC;QACxD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,uBAAuB,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;QAC1E,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,wBAAwB,CAAC,QAAQ,GAAG,EAAE;QAC1C,OAAO,QAAQ,CAAgB,KAAK,EAAE,IAAY,EAAE,EAAE;YACpD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,qBAAqB,EAAE,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;YACzF,OAAO,GAAG,CAAC,IAAI,CAAC;QAClB,CAAC,EAAE,QAAQ,CAAC,CAAC;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { SonarSession, CreateSonarSessionParams, UpdateSonarSessionParams } from '../types/sonar_sessions';
|
|
3
|
+
export declare class SonarSessionsAPI {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: AxiosInstance);
|
|
6
|
+
create(params: CreateSonarSessionParams): Promise<SonarSession>;
|
|
7
|
+
update(id: string, params: UpdateSonarSessionParams): Promise<SonarSession>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=sonar_sessions-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sonar_sessions-api.d.ts","sourceRoot":"","sources":["../../src/api/sonar_sessions-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,YAAY,EACZ,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AAEjC,qBAAa,gBAAgB;IACf,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,MAAM,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,YAAY,CAAC;IAK/D,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,YAAY,CAAC;CAIlF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class SonarSessionsAPI {
|
|
2
|
+
constructor(client) {
|
|
3
|
+
this.client = client;
|
|
4
|
+
}
|
|
5
|
+
async create(params) {
|
|
6
|
+
const resp = await this.client.post('/v1/sonar_sessions', params);
|
|
7
|
+
return resp.data;
|
|
8
|
+
}
|
|
9
|
+
async update(id, params) {
|
|
10
|
+
const resp = await this.client.patch(`/v1/sonar_sessions/${id}`, params);
|
|
11
|
+
return resp.data;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=sonar_sessions-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sonar_sessions-api.js","sourceRoot":"","sources":["../../src/api/sonar_sessions-api.ts"],"names":[],"mappings":"AAOA,MAAM,OAAO,gBAAgB;IAC3B,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,MAAM,CAAC,MAAgC;QAC3C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;QAClE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,MAAgC;QACvD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;QACzE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { SubscriptionChangeLog, SubscriptionChangeLogListResponse } from '../types/subscription_change_logs';
|
|
3
|
+
export declare class SubscriptionChangeLogsAPI {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: AxiosInstance);
|
|
6
|
+
list(subscriptionId: string, per_page?: number, page?: number): Promise<SubscriptionChangeLogListResponse>;
|
|
7
|
+
iterateAllSubscriptionChangeLogs(subscriptionId: string, per_page?: number): Promise<AsyncGenerator<SubscriptionChangeLog, any, any>>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=subscription_change_logs-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription_change_logs-api.d.ts","sourceRoot":"","sources":["../../src/api/subscription_change_logs-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,qBAAqB,EACrB,iCAAiC,EAClC,MAAM,mCAAmC,CAAC;AAG3C,qBAAa,yBAAyB;IACxB,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,IAAI,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,iCAAiC,CAAC;IAK1G,gCAAgC,CAAC,cAAc,EAAE,MAAM,EAAE,QAAQ,SAAK;CAM7E"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { paginate } from '../utils/paginator';
|
|
2
|
+
export class SubscriptionChangeLogsAPI {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
this.client = client;
|
|
5
|
+
}
|
|
6
|
+
async list(subscriptionId, per_page, page) {
|
|
7
|
+
const resp = await this.client.get(`/v1/subscriptions/${subscriptionId}/change_logs`, { params: { per_page, page } });
|
|
8
|
+
return resp.data;
|
|
9
|
+
}
|
|
10
|
+
async iterateAllSubscriptionChangeLogs(subscriptionId, per_page = 20) {
|
|
11
|
+
return paginate(async (page) => {
|
|
12
|
+
const res = await this.client.get(`/v1/subscriptions/${subscriptionId}/change_logs`, { params: { per_page, page } });
|
|
13
|
+
return res.data;
|
|
14
|
+
}, per_page);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=subscription_change_logs-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription_change_logs-api.js","sourceRoot":"","sources":["../../src/api/subscription_change_logs-api.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,OAAO,yBAAyB;IACpC,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,IAAI,CAAC,cAAsB,EAAE,QAAiB,EAAE,IAAa;QACjE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,qBAAqB,cAAc,cAAc,EAAE,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACtH,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,gCAAgC,CAAC,cAAsB,EAAE,QAAQ,GAAG,EAAE;QAC1E,OAAO,QAAQ,CAAwB,KAAK,EAAE,IAAY,EAAE,EAAE;YAC5D,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,qBAAqB,cAAc,cAAc,EAAE,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;YACrH,OAAO,GAAG,CAAC,IAAI,CAAC;QAClB,CAAC,EAAE,QAAQ,CAAC,CAAC;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { TermsOfServiceTokenResponse, UpdateTermsOfServiceParams } from '../types/terms_of_service';
|
|
3
|
+
export declare class TermsOfServiceAPI {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: AxiosInstance);
|
|
6
|
+
createToken(): Promise<TermsOfServiceTokenResponse>;
|
|
7
|
+
update(params: UpdateTermsOfServiceParams): Promise<TermsOfServiceTokenResponse>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=terms_of_service-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terms_of_service-api.d.ts","sourceRoot":"","sources":["../../src/api/terms_of_service-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AAEzG,qBAAa,iBAAiB;IAChB,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,WAAW,IAAI,OAAO,CAAC,2BAA2B,CAAC;IAKnD,MAAM,CAAC,MAAM,EAAE,0BAA0B,GAAG,OAAO,CAAC,2BAA2B,CAAC;CAIvF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class TermsOfServiceAPI {
|
|
2
|
+
constructor(client) {
|
|
3
|
+
this.client = client;
|
|
4
|
+
}
|
|
5
|
+
async createToken() {
|
|
6
|
+
const resp = await this.client.post('/v1/terms_of_service', {});
|
|
7
|
+
return resp.data;
|
|
8
|
+
}
|
|
9
|
+
async update(params) {
|
|
10
|
+
const resp = await this.client.patch('/v1/terms_of_service', params);
|
|
11
|
+
return resp.data;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=terms_of_service-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terms_of_service-api.js","sourceRoot":"","sources":["../../src/api/terms_of_service-api.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,iBAAiB;IAC5B,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,WAAW;QACf,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,CAAC,CAAC;QAChE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,MAAkC;QAC7C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC;QACrE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { ThreeDSIntent, CreateThreeDSIntentParams } from '../types/three_ds';
|
|
3
|
+
export declare class ThreeDSAPI {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: AxiosInstance);
|
|
6
|
+
create(params: CreateThreeDSIntentParams): Promise<ThreeDSIntent>;
|
|
7
|
+
get(id: string): Promise<ThreeDSIntent>;
|
|
8
|
+
resend(id: string): Promise<ThreeDSIntent>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=three_ds-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"three_ds-api.d.ts","sourceRoot":"","sources":["../../src/api/three_ds-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAElF,qBAAa,UAAU;IACT,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,MAAM,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;IAKjE,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAKvC,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAIjD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export class ThreeDSAPI {
|
|
2
|
+
constructor(client) {
|
|
3
|
+
this.client = client;
|
|
4
|
+
}
|
|
5
|
+
async create(params) {
|
|
6
|
+
const resp = await this.client.post('/v1/3ds/intents', params);
|
|
7
|
+
return resp.data;
|
|
8
|
+
}
|
|
9
|
+
async get(id) {
|
|
10
|
+
const resp = await this.client.get(`/v1/3ds/intents/${id}`);
|
|
11
|
+
return resp.data;
|
|
12
|
+
}
|
|
13
|
+
async resend(id) {
|
|
14
|
+
const resp = await this.client.post(`/v1/3ds/intents/${id}/resend`);
|
|
15
|
+
return resp.data;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=three_ds-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"three_ds-api.js","sourceRoot":"","sources":["../../src/api/three_ds-api.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,UAAU;IACrB,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,MAAM,CAAC,MAAiC;QAC5C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;QAC/D,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,EAAU;QAClB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;QAC5D,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU;QACrB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,CAAC;QACpE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { TransferBillingAgreement, TransferBillingAgreementListResponse, CreateTransferBillingAgreementParams, UpdateTransferBillingAgreementParams } from '../types/transfer_billing_agreements';
|
|
3
|
+
export declare class TransferBillingAgreementsAPI {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: AxiosInstance);
|
|
6
|
+
list(per_page?: number, page?: number): Promise<TransferBillingAgreementListResponse>;
|
|
7
|
+
get(id: string): Promise<TransferBillingAgreement>;
|
|
8
|
+
create(params: CreateTransferBillingAgreementParams): Promise<TransferBillingAgreement>;
|
|
9
|
+
update(id: string, params: UpdateTransferBillingAgreementParams): Promise<TransferBillingAgreement>;
|
|
10
|
+
iterateAllTransferBillingAgreements(per_page?: number): Promise<AsyncGenerator<TransferBillingAgreement, any, any>>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=transfer_billing_agreements-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer_billing_agreements-api.d.ts","sourceRoot":"","sources":["../../src/api/transfer_billing_agreements-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,wBAAwB,EACxB,oCAAoC,EACpC,oCAAoC,EACpC,oCAAoC,EACrC,MAAM,sCAAsC,CAAC;AAG9C,qBAAa,4BAA4B;IAC3B,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,oCAAoC,CAAC;IAKrF,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAKlD,MAAM,CAAC,MAAM,EAAE,oCAAoC,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAKvF,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,oCAAoC,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAKnG,mCAAmC,CAAC,QAAQ,SAAK;CAMxD"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { paginate } from '../utils/paginator';
|
|
2
|
+
export class TransferBillingAgreementsAPI {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
this.client = client;
|
|
5
|
+
}
|
|
6
|
+
async list(per_page, page) {
|
|
7
|
+
const resp = await this.client.get('/v1/transfer_billing_agreements', { params: { per_page, page } });
|
|
8
|
+
return resp.data;
|
|
9
|
+
}
|
|
10
|
+
async get(id) {
|
|
11
|
+
const resp = await this.client.get(`/v1/transfer_billing_agreements/${id}`);
|
|
12
|
+
return resp.data;
|
|
13
|
+
}
|
|
14
|
+
async create(params) {
|
|
15
|
+
const resp = await this.client.post('/v1/transfer_billing_agreements', params);
|
|
16
|
+
return resp.data;
|
|
17
|
+
}
|
|
18
|
+
async update(id, params) {
|
|
19
|
+
const resp = await this.client.patch(`/v1/transfer_billing_agreements/${id}`, params);
|
|
20
|
+
return resp.data;
|
|
21
|
+
}
|
|
22
|
+
async iterateAllTransferBillingAgreements(per_page = 20) {
|
|
23
|
+
return paginate(async (page) => {
|
|
24
|
+
const res = await this.client.get('/v1/transfer_billing_agreements', { params: { per_page, page } });
|
|
25
|
+
return res.data;
|
|
26
|
+
}, per_page);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=transfer_billing_agreements-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer_billing_agreements-api.js","sourceRoot":"","sources":["../../src/api/transfer_billing_agreements-api.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,OAAO,4BAA4B;IACvC,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,IAAI,CAAC,QAAiB,EAAE,IAAa;QACzC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACtG,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,EAAU;QAClB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,mCAAmC,EAAE,EAAE,CAAC,CAAC;QAC5E,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,MAA4C;QACvD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iCAAiC,EAAE,MAAM,CAAC,CAAC;QAC/E,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,MAA4C;QACnE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,mCAAmC,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;QACtF,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,mCAAmC,CAAC,QAAQ,GAAG,EAAE;QACrD,OAAO,QAAQ,CAA2B,KAAK,EAAE,IAAY,EAAE,EAAE;YAC/D,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;YACrG,OAAO,GAAG,CAAC,IAAI,CAAC;QAClB,CAAC,EAAE,QAAQ,CAAC,CAAC;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { TransferFeePlan, TransferFeePlanListResponse, CreateTransferFeePlanParams } from '../types/transfer_fee_plans';
|
|
3
|
+
export declare class TransferFeePlansAPI {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: AxiosInstance);
|
|
6
|
+
list(per_page?: number, page?: number): Promise<TransferFeePlanListResponse>;
|
|
7
|
+
get(id: string): Promise<TransferFeePlan>;
|
|
8
|
+
create(params: CreateTransferFeePlanParams): Promise<TransferFeePlan>;
|
|
9
|
+
iterateAllTransferFeePlans(per_page?: number): Promise<AsyncGenerator<TransferFeePlan, any, any>>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=transfer_fee_plans-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer_fee_plans-api.d.ts","sourceRoot":"","sources":["../../src/api/transfer_fee_plans-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EACV,eAAe,EACf,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,6BAA6B,CAAC;AAGrC,qBAAa,mBAAmB;IAClB,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,2BAA2B,CAAC;IAK5E,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAKzC,MAAM,CAAC,MAAM,EAAE,2BAA2B,GAAG,OAAO,CAAC,eAAe,CAAC;IAKrE,0BAA0B,CAAC,QAAQ,SAAK;CAM/C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { paginate } from '../utils/paginator';
|
|
2
|
+
export class TransferFeePlansAPI {
|
|
3
|
+
constructor(client) {
|
|
4
|
+
this.client = client;
|
|
5
|
+
}
|
|
6
|
+
async list(per_page, page) {
|
|
7
|
+
const resp = await this.client.get('/v1/transfer_fee_plans', { params: { per_page, page } });
|
|
8
|
+
return resp.data;
|
|
9
|
+
}
|
|
10
|
+
async get(id) {
|
|
11
|
+
const resp = await this.client.get(`/v1/transfer_fee_plans/${id}`);
|
|
12
|
+
return resp.data;
|
|
13
|
+
}
|
|
14
|
+
async create(params) {
|
|
15
|
+
const resp = await this.client.post('/v1/transfer_fee_plans', params);
|
|
16
|
+
return resp.data;
|
|
17
|
+
}
|
|
18
|
+
async iterateAllTransferFeePlans(per_page = 20) {
|
|
19
|
+
return paginate(async (page) => {
|
|
20
|
+
const res = await this.client.get('/v1/transfer_fee_plans', { params: { per_page, page } });
|
|
21
|
+
return res.data;
|
|
22
|
+
}, per_page);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=transfer_fee_plans-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer_fee_plans-api.js","sourceRoot":"","sources":["../../src/api/transfer_fee_plans-api.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,OAAO,mBAAmB;IAC9B,YAAoB,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE7C,KAAK,CAAC,IAAI,CAAC,QAAiB,EAAE,IAAa;QACzC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QAC7F,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,GAAG,CAAC,EAAU;QAClB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,MAAmC;QAC9C,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;QACtE,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,0BAA0B,CAAC,QAAQ,GAAG,EAAE;QAC5C,OAAO,QAAQ,CAAkB,KAAK,EAAE,IAAY,EAAE,EAAE;YACtD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;YAC5F,OAAO,GAAG,CAAC,IAAI,CAAC;QAClB,CAAC,EAAE,QAAQ,CAAC,CAAC;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AxiosInstance } from 'axios';
|
|
2
|
+
import type { Transfer, TransferListResponse, CreateTransferParams } from '../types/transfers';
|
|
3
|
+
export declare class TransfersAPI {
|
|
4
|
+
private client;
|
|
5
|
+
constructor(client: AxiosInstance);
|
|
6
|
+
list(per_page?: number, page?: number): Promise<TransferListResponse>;
|
|
7
|
+
get(id: string): Promise<Transfer>;
|
|
8
|
+
create(params: CreateTransferParams): Promise<Transfer>;
|
|
9
|
+
iterateAllTransfers(per_page?: number): Promise<AsyncGenerator<Transfer, any, any>>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=transfers-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfers-api.d.ts","sourceRoot":"","sources":["../../src/api/transfers-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAG/F,qBAAa,YAAY;IACX,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,aAAa;IAEnC,IAAI,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAKrE,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAKlC,MAAM,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAKvD,mBAAmB,CAAC,QAAQ,SAAK;CAMxC"}
|