dodopayments 1.51.2 → 1.52.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/index.d.mts +10 -4
- package/index.d.ts +10 -4
- package/index.d.ts.map +1 -1
- package/index.js +10 -0
- package/index.js.map +1 -1
- package/index.mjs +11 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +8 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoices/payments.d.ts +1 -0
- package/resources/invoices/payments.d.ts.map +1 -1
- package/resources/invoices/payments.js +7 -0
- package/resources/invoices/payments.js.map +1 -1
- package/resources/invoices/payments.mjs +7 -0
- package/resources/invoices/payments.mjs.map +1 -1
- package/resources/meters.d.ts +192 -0
- package/resources/meters.d.ts.map +1 -0
- package/resources/meters.js +39 -0
- package/resources/meters.js.map +1 -0
- package/resources/meters.mjs +34 -0
- package/resources/meters.mjs.map +1 -0
- package/resources/payments.d.ts +5 -0
- package/resources/payments.d.ts.map +1 -1
- package/resources/payments.js.map +1 -1
- package/resources/payments.mjs.map +1 -1
- package/resources/products/index.d.ts +1 -1
- package/resources/products/index.d.ts.map +1 -1
- package/resources/products/index.js.map +1 -1
- package/resources/products/index.mjs.map +1 -1
- package/resources/products/products.d.ts +72 -3
- package/resources/products/products.d.ts.map +1 -1
- package/resources/products/products.js +1 -1
- package/resources/products/products.js.map +1 -1
- package/resources/products/products.mjs +1 -1
- package/resources/products/products.mjs.map +1 -1
- package/resources/subscriptions.d.ts +131 -1
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +12 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +10 -0
- package/resources/subscriptions.mjs.map +1 -1
- package/resources/usage-events.d.ts +193 -0
- package/resources/usage-events.d.ts.map +1 -0
- package/resources/usage-events.js +97 -0
- package/resources/usage-events.js.map +1 -0
- package/resources/usage-events.mjs +92 -0
- package/resources/usage-events.mjs.map +1 -0
- package/src/index.ts +54 -0
- package/src/resources/index.ts +22 -0
- package/src/resources/invoices/payments.ts +8 -0
- package/src/resources/meters.ts +306 -0
- package/src/resources/payments.ts +6 -0
- package/src/resources/products/index.ts +1 -0
- package/src/resources/products/products.ts +89 -2
- package/src/resources/subscriptions.ts +188 -0
- package/src/resources/usage-events.ts +241 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.52.5 (2025-09-04)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.52.3...v1.52.5](https://github.com/dodopayments/dodopayments-node/compare/v1.52.3...v1.52.5)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** updated openapi spec to v1.52.4 ([a37d6c4](https://github.com/dodopayments/dodopayments-node/commit/a37d6c433fc3e4810118d6f665e398210554cc6c))
|
|
10
|
+
|
|
11
|
+
## 1.52.3 (2025-09-03)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v1.51.2...v1.52.3](https://github.com/dodopayments/dodopayments-node/compare/v1.51.2...v1.52.3)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** manual updates ([7a7db07](https://github.com/dodopayments/dodopayments-node/commit/7a7db0762a1020d0728d9da846a3d65b5d0d4c0a))
|
|
18
|
+
* **api:** updated openapi spec ([db99ebf](https://github.com/dodopayments/dodopayments-node/commit/db99ebfb265529a3997b873722a0aaf80b314279))
|
|
19
|
+
* **mcp:** add client infer to cloudflare oauth screen ([335f078](https://github.com/dodopayments/dodopayments-node/commit/335f078f1d66afe41532d29558aed3d8a5c118eb))
|
|
20
|
+
* **mcp:** allow setting logging level ([b3850a4](https://github.com/dodopayments/dodopayments-node/commit/b3850a4f6c383c3bd60c5dc23f9af6e5bf7a69d5))
|
|
21
|
+
* **mcp:** expose client options in `streamableHTTPApp` ([621a46f](https://github.com/dodopayments/dodopayments-node/commit/621a46f4b907fae51e1b515b2e492ba8cee4dd3e))
|
|
22
|
+
* updated openapi spec and added model and API functions for Usage Based Billing ([1714ff8](https://github.com/dodopayments/dodopayments-node/commit/1714ff822ddd24afe7d979710f20dac30630faaf))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Chores
|
|
26
|
+
|
|
27
|
+
* **internal:** codegen related update ([b5228cd](https://github.com/dodopayments/dodopayments-node/commit/b5228cd2b0e92ca723cbb21fc5dc6de90adb472d))
|
|
28
|
+
|
|
3
29
|
## 1.51.2 (2025-08-24)
|
|
4
30
|
|
|
5
31
|
Full Changelog: [v1.51.1...v1.51.2](https://github.com/dodopayments/dodopayments-node/compare/v1.51.1...v1.51.2)
|
package/index.d.mts
CHANGED
|
@@ -13,15 +13,17 @@ import { Dispute, DisputeListParams, DisputeListResponse, DisputeListResponsesDe
|
|
|
13
13
|
import { LicenseKeyInstance, LicenseKeyInstanceListParams, LicenseKeyInstanceUpdateParams, LicenseKeyInstances, LicenseKeyInstancesDefaultPageNumberPagination } from "./resources/license-key-instances.js";
|
|
14
14
|
import { LicenseKey, LicenseKeyListParams, LicenseKeyStatus, LicenseKeyUpdateParams, LicenseKeys, LicenseKeysDefaultPageNumberPagination } from "./resources/license-keys.js";
|
|
15
15
|
import { LicenseActivateParams, LicenseDeactivateParams, LicenseValidateParams, LicenseValidateResponse, Licenses } from "./resources/licenses.js";
|
|
16
|
+
import { Meter, MeterAggregation, MeterCreateParams, MeterFilter, MeterListParams, Meters, MetersDefaultPageNumberPagination } from "./resources/meters.js";
|
|
16
17
|
import { CountryCode, Currency, Misc, MiscListSupportedCountriesResponse, TaxCategory } from "./resources/misc.js";
|
|
17
18
|
import { AttachExistingCustomer, BillingAddress, CreateNewCustomer, CustomerLimitedDetails, CustomerRequest, IntentStatus, NewCustomer, OneTimeProductCartItem, Payment, PaymentCreateParams, PaymentCreateResponse, PaymentListParams, PaymentListResponse, PaymentListResponsesDefaultPageNumberPagination, PaymentMethodTypes, PaymentRetrieveLineItemsResponse, Payments } from "./resources/payments.js";
|
|
18
19
|
import { PayoutListParams, PayoutListResponse, PayoutListResponsesDefaultPageNumberPagination, Payouts } from "./resources/payouts.js";
|
|
19
20
|
import { Refund, RefundCreateParams, RefundListParams, RefundStatus, Refunds, RefundsDefaultPageNumberPagination } from "./resources/refunds.js";
|
|
20
|
-
import { AddonCartResponseItem, AttachAddon, OnDemandSubscription, Subscription, SubscriptionChangePlanParams, SubscriptionChargeParams, SubscriptionChargeResponse, SubscriptionCreateParams, SubscriptionCreateResponse, SubscriptionListParams, SubscriptionListResponse, SubscriptionListResponsesDefaultPageNumberPagination, SubscriptionStatus, SubscriptionUpdateParams, Subscriptions, TimeInterval } from "./resources/subscriptions.js";
|
|
21
|
+
import { AddonCartResponseItem, AttachAddon, OnDemandSubscription, Subscription, SubscriptionChangePlanParams, SubscriptionChargeParams, SubscriptionChargeResponse, SubscriptionCreateParams, SubscriptionCreateResponse, SubscriptionListParams, SubscriptionListResponse, SubscriptionListResponsesDefaultPageNumberPagination, SubscriptionRetrieveUsageHistoryParams, SubscriptionRetrieveUsageHistoryResponse, SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination, SubscriptionStatus, SubscriptionUpdateParams, Subscriptions, TimeInterval } from "./resources/subscriptions.js";
|
|
22
|
+
import { Event, EventInput, EventsDefaultPageNumberPagination, UsageEventIngestParams, UsageEventIngestResponse, UsageEventListParams, UsageEvents } from "./resources/usage-events.js";
|
|
21
23
|
import { WebhookEventType, WebhookEvents, WebhookPayload } from "./resources/webhook-events.js";
|
|
22
24
|
import { Customer, CustomerCreateParams, CustomerListParams, CustomerPortalSession, CustomerUpdateParams, Customers, CustomersDefaultPageNumberPagination } from "./resources/customers/customers.js";
|
|
23
25
|
import { Invoices } from "./resources/invoices/invoices.js";
|
|
24
|
-
import { LicenseKeyDuration, Price, Product, ProductCreateParams, ProductListParams, ProductListResponse, ProductListResponsesDefaultPageNumberPagination, ProductUpdateFilesParams, ProductUpdateFilesResponse, ProductUpdateParams, Products } from "./resources/products/products.js";
|
|
26
|
+
import { AddMeterToPrice, LicenseKeyDuration, Price, Product, ProductCreateParams, ProductListParams, ProductListResponse, ProductListResponsesDefaultPageNumberPagination, ProductUpdateFilesParams, ProductUpdateFilesResponse, ProductUpdateParams, Products } from "./resources/products/products.js";
|
|
25
27
|
import { WebhookCreateParams, WebhookDetails, WebhookDetailsCursorPagePagination, WebhookListParams, WebhookRetrieveSecretResponse, WebhookUpdateParams, Webhooks } from "./resources/webhooks/webhooks.js";
|
|
26
28
|
declare const environments: {
|
|
27
29
|
live_mode: string;
|
|
@@ -132,6 +134,8 @@ export declare class DodoPayments extends Core.APIClient {
|
|
|
132
134
|
addons: API.Addons;
|
|
133
135
|
brands: API.Brands;
|
|
134
136
|
webhooks: API.Webhooks;
|
|
137
|
+
usageEvents: API.UsageEvents;
|
|
138
|
+
meters: API.Meters;
|
|
135
139
|
protected defaultQuery(): Core.DefaultQuery | undefined;
|
|
136
140
|
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
137
141
|
protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
@@ -161,7 +165,7 @@ export declare namespace DodoPayments {
|
|
|
161
165
|
export { type CursorPagePaginationParams as CursorPagePaginationParams, type CursorPagePaginationResponse as CursorPagePaginationResponse, };
|
|
162
166
|
export { CheckoutSessions as CheckoutSessions, type CheckoutSessionRequest as CheckoutSessionRequest, type CheckoutSessionResponse as CheckoutSessionResponse, type CheckoutSessionCreateParams as CheckoutSessionCreateParams, };
|
|
163
167
|
export { Payments as Payments, type AttachExistingCustomer as AttachExistingCustomer, type BillingAddress as BillingAddress, type CreateNewCustomer as CreateNewCustomer, type CustomerLimitedDetails as CustomerLimitedDetails, type CustomerRequest as CustomerRequest, type IntentStatus as IntentStatus, type NewCustomer as NewCustomer, type OneTimeProductCartItem as OneTimeProductCartItem, type Payment as Payment, type PaymentMethodTypes as PaymentMethodTypes, type PaymentCreateResponse as PaymentCreateResponse, type PaymentListResponse as PaymentListResponse, type PaymentRetrieveLineItemsResponse as PaymentRetrieveLineItemsResponse, PaymentListResponsesDefaultPageNumberPagination as PaymentListResponsesDefaultPageNumberPagination, type PaymentCreateParams as PaymentCreateParams, type PaymentListParams as PaymentListParams, };
|
|
164
|
-
export { Subscriptions as Subscriptions, type AddonCartResponseItem as AddonCartResponseItem, type AttachAddon as AttachAddon, type OnDemandSubscription as OnDemandSubscription, type Subscription as Subscription, type SubscriptionStatus as SubscriptionStatus, type TimeInterval as TimeInterval, type SubscriptionCreateResponse as SubscriptionCreateResponse, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionChargeResponse as SubscriptionChargeResponse, SubscriptionListResponsesDefaultPageNumberPagination as SubscriptionListResponsesDefaultPageNumberPagination, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionChangePlanParams as SubscriptionChangePlanParams, type SubscriptionChargeParams as SubscriptionChargeParams, };
|
|
168
|
+
export { Subscriptions as Subscriptions, type AddonCartResponseItem as AddonCartResponseItem, type AttachAddon as AttachAddon, type OnDemandSubscription as OnDemandSubscription, type Subscription as Subscription, type SubscriptionStatus as SubscriptionStatus, type TimeInterval as TimeInterval, type SubscriptionCreateResponse as SubscriptionCreateResponse, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionChargeResponse as SubscriptionChargeResponse, type SubscriptionRetrieveUsageHistoryResponse as SubscriptionRetrieveUsageHistoryResponse, SubscriptionListResponsesDefaultPageNumberPagination as SubscriptionListResponsesDefaultPageNumberPagination, SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination as SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionChangePlanParams as SubscriptionChangePlanParams, type SubscriptionChargeParams as SubscriptionChargeParams, type SubscriptionRetrieveUsageHistoryParams as SubscriptionRetrieveUsageHistoryParams, };
|
|
165
169
|
export { Invoices as Invoices };
|
|
166
170
|
export { Licenses as Licenses, type LicenseValidateResponse as LicenseValidateResponse, type LicenseActivateParams as LicenseActivateParams, type LicenseDeactivateParams as LicenseDeactivateParams, type LicenseValidateParams as LicenseValidateParams, };
|
|
167
171
|
export { LicenseKeys as LicenseKeys, type LicenseKey as LicenseKey, type LicenseKeyStatus as LicenseKeyStatus, LicenseKeysDefaultPageNumberPagination as LicenseKeysDefaultPageNumberPagination, type LicenseKeyUpdateParams as LicenseKeyUpdateParams, type LicenseKeyListParams as LicenseKeyListParams, };
|
|
@@ -171,12 +175,14 @@ export declare namespace DodoPayments {
|
|
|
171
175
|
export { Disputes as Disputes, type Dispute as Dispute, type DisputeStage as DisputeStage, type DisputeStatus as DisputeStatus, type GetDispute as GetDispute, type DisputeListResponse as DisputeListResponse, DisputeListResponsesDefaultPageNumberPagination as DisputeListResponsesDefaultPageNumberPagination, type DisputeListParams as DisputeListParams, };
|
|
172
176
|
export { Payouts as Payouts, type PayoutListResponse as PayoutListResponse, PayoutListResponsesDefaultPageNumberPagination as PayoutListResponsesDefaultPageNumberPagination, type PayoutListParams as PayoutListParams, };
|
|
173
177
|
export { WebhookEvents as WebhookEvents, type WebhookEventType as WebhookEventType, type WebhookPayload as WebhookPayload, };
|
|
174
|
-
export { Products as Products, type LicenseKeyDuration as LicenseKeyDuration, type Price as Price, type Product as Product, type ProductListResponse as ProductListResponse, type ProductUpdateFilesResponse as ProductUpdateFilesResponse, ProductListResponsesDefaultPageNumberPagination as ProductListResponsesDefaultPageNumberPagination, type ProductCreateParams as ProductCreateParams, type ProductUpdateParams as ProductUpdateParams, type ProductListParams as ProductListParams, type ProductUpdateFilesParams as ProductUpdateFilesParams, };
|
|
178
|
+
export { Products as Products, type AddMeterToPrice as AddMeterToPrice, type LicenseKeyDuration as LicenseKeyDuration, type Price as Price, type Product as Product, type ProductListResponse as ProductListResponse, type ProductUpdateFilesResponse as ProductUpdateFilesResponse, ProductListResponsesDefaultPageNumberPagination as ProductListResponsesDefaultPageNumberPagination, type ProductCreateParams as ProductCreateParams, type ProductUpdateParams as ProductUpdateParams, type ProductListParams as ProductListParams, type ProductUpdateFilesParams as ProductUpdateFilesParams, };
|
|
175
179
|
export { Misc as Misc, type CountryCode as CountryCode, type Currency as Currency, type TaxCategory as TaxCategory, type MiscListSupportedCountriesResponse as MiscListSupportedCountriesResponse, };
|
|
176
180
|
export { Discounts as Discounts, type Discount as Discount, type DiscountType as DiscountType, DiscountsDefaultPageNumberPagination as DiscountsDefaultPageNumberPagination, type DiscountCreateParams as DiscountCreateParams, type DiscountUpdateParams as DiscountUpdateParams, type DiscountListParams as DiscountListParams, };
|
|
177
181
|
export { Addons as Addons, type AddonResponse as AddonResponse, type AddonUpdateImagesResponse as AddonUpdateImagesResponse, AddonResponsesDefaultPageNumberPagination as AddonResponsesDefaultPageNumberPagination, type AddonCreateParams as AddonCreateParams, type AddonUpdateParams as AddonUpdateParams, type AddonListParams as AddonListParams, };
|
|
178
182
|
export { Brands as Brands, type Brand as Brand, type BrandListResponse as BrandListResponse, type BrandUpdateImagesResponse as BrandUpdateImagesResponse, type BrandCreateParams as BrandCreateParams, type BrandUpdateParams as BrandUpdateParams, };
|
|
179
183
|
export { Webhooks as Webhooks, type WebhookDetails as WebhookDetails, type WebhookRetrieveSecretResponse as WebhookRetrieveSecretResponse, WebhookDetailsCursorPagePagination as WebhookDetailsCursorPagePagination, type WebhookCreateParams as WebhookCreateParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookListParams as WebhookListParams, };
|
|
184
|
+
export { UsageEvents as UsageEvents, type Event as Event, type EventInput as EventInput, type UsageEventIngestResponse as UsageEventIngestResponse, EventsDefaultPageNumberPagination as EventsDefaultPageNumberPagination, type UsageEventListParams as UsageEventListParams, type UsageEventIngestParams as UsageEventIngestParams, };
|
|
185
|
+
export { Meters as Meters, type Meter as Meter, type MeterAggregation as MeterAggregation, type MeterFilter as MeterFilter, MetersDefaultPageNumberPagination as MetersDefaultPageNumberPagination, type MeterCreateParams as MeterCreateParams, type MeterListParams as MeterListParams, };
|
|
180
186
|
}
|
|
181
187
|
export { toFile, fileFromPath } from "./uploads.js";
|
|
182
188
|
export { DodoPaymentsError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
|
package/index.d.ts
CHANGED
|
@@ -13,15 +13,17 @@ import { Dispute, DisputeListParams, DisputeListResponse, DisputeListResponsesDe
|
|
|
13
13
|
import { LicenseKeyInstance, LicenseKeyInstanceListParams, LicenseKeyInstanceUpdateParams, LicenseKeyInstances, LicenseKeyInstancesDefaultPageNumberPagination } from "./resources/license-key-instances.js";
|
|
14
14
|
import { LicenseKey, LicenseKeyListParams, LicenseKeyStatus, LicenseKeyUpdateParams, LicenseKeys, LicenseKeysDefaultPageNumberPagination } from "./resources/license-keys.js";
|
|
15
15
|
import { LicenseActivateParams, LicenseDeactivateParams, LicenseValidateParams, LicenseValidateResponse, Licenses } from "./resources/licenses.js";
|
|
16
|
+
import { Meter, MeterAggregation, MeterCreateParams, MeterFilter, MeterListParams, Meters, MetersDefaultPageNumberPagination } from "./resources/meters.js";
|
|
16
17
|
import { CountryCode, Currency, Misc, MiscListSupportedCountriesResponse, TaxCategory } from "./resources/misc.js";
|
|
17
18
|
import { AttachExistingCustomer, BillingAddress, CreateNewCustomer, CustomerLimitedDetails, CustomerRequest, IntentStatus, NewCustomer, OneTimeProductCartItem, Payment, PaymentCreateParams, PaymentCreateResponse, PaymentListParams, PaymentListResponse, PaymentListResponsesDefaultPageNumberPagination, PaymentMethodTypes, PaymentRetrieveLineItemsResponse, Payments } from "./resources/payments.js";
|
|
18
19
|
import { PayoutListParams, PayoutListResponse, PayoutListResponsesDefaultPageNumberPagination, Payouts } from "./resources/payouts.js";
|
|
19
20
|
import { Refund, RefundCreateParams, RefundListParams, RefundStatus, Refunds, RefundsDefaultPageNumberPagination } from "./resources/refunds.js";
|
|
20
|
-
import { AddonCartResponseItem, AttachAddon, OnDemandSubscription, Subscription, SubscriptionChangePlanParams, SubscriptionChargeParams, SubscriptionChargeResponse, SubscriptionCreateParams, SubscriptionCreateResponse, SubscriptionListParams, SubscriptionListResponse, SubscriptionListResponsesDefaultPageNumberPagination, SubscriptionStatus, SubscriptionUpdateParams, Subscriptions, TimeInterval } from "./resources/subscriptions.js";
|
|
21
|
+
import { AddonCartResponseItem, AttachAddon, OnDemandSubscription, Subscription, SubscriptionChangePlanParams, SubscriptionChargeParams, SubscriptionChargeResponse, SubscriptionCreateParams, SubscriptionCreateResponse, SubscriptionListParams, SubscriptionListResponse, SubscriptionListResponsesDefaultPageNumberPagination, SubscriptionRetrieveUsageHistoryParams, SubscriptionRetrieveUsageHistoryResponse, SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination, SubscriptionStatus, SubscriptionUpdateParams, Subscriptions, TimeInterval } from "./resources/subscriptions.js";
|
|
22
|
+
import { Event, EventInput, EventsDefaultPageNumberPagination, UsageEventIngestParams, UsageEventIngestResponse, UsageEventListParams, UsageEvents } from "./resources/usage-events.js";
|
|
21
23
|
import { WebhookEventType, WebhookEvents, WebhookPayload } from "./resources/webhook-events.js";
|
|
22
24
|
import { Customer, CustomerCreateParams, CustomerListParams, CustomerPortalSession, CustomerUpdateParams, Customers, CustomersDefaultPageNumberPagination } from "./resources/customers/customers.js";
|
|
23
25
|
import { Invoices } from "./resources/invoices/invoices.js";
|
|
24
|
-
import { LicenseKeyDuration, Price, Product, ProductCreateParams, ProductListParams, ProductListResponse, ProductListResponsesDefaultPageNumberPagination, ProductUpdateFilesParams, ProductUpdateFilesResponse, ProductUpdateParams, Products } from "./resources/products/products.js";
|
|
26
|
+
import { AddMeterToPrice, LicenseKeyDuration, Price, Product, ProductCreateParams, ProductListParams, ProductListResponse, ProductListResponsesDefaultPageNumberPagination, ProductUpdateFilesParams, ProductUpdateFilesResponse, ProductUpdateParams, Products } from "./resources/products/products.js";
|
|
25
27
|
import { WebhookCreateParams, WebhookDetails, WebhookDetailsCursorPagePagination, WebhookListParams, WebhookRetrieveSecretResponse, WebhookUpdateParams, Webhooks } from "./resources/webhooks/webhooks.js";
|
|
26
28
|
declare const environments: {
|
|
27
29
|
live_mode: string;
|
|
@@ -132,6 +134,8 @@ export declare class DodoPayments extends Core.APIClient {
|
|
|
132
134
|
addons: API.Addons;
|
|
133
135
|
brands: API.Brands;
|
|
134
136
|
webhooks: API.Webhooks;
|
|
137
|
+
usageEvents: API.UsageEvents;
|
|
138
|
+
meters: API.Meters;
|
|
135
139
|
protected defaultQuery(): Core.DefaultQuery | undefined;
|
|
136
140
|
protected defaultHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
137
141
|
protected authHeaders(opts: Core.FinalRequestOptions): Core.Headers;
|
|
@@ -161,7 +165,7 @@ export declare namespace DodoPayments {
|
|
|
161
165
|
export { type CursorPagePaginationParams as CursorPagePaginationParams, type CursorPagePaginationResponse as CursorPagePaginationResponse, };
|
|
162
166
|
export { CheckoutSessions as CheckoutSessions, type CheckoutSessionRequest as CheckoutSessionRequest, type CheckoutSessionResponse as CheckoutSessionResponse, type CheckoutSessionCreateParams as CheckoutSessionCreateParams, };
|
|
163
167
|
export { Payments as Payments, type AttachExistingCustomer as AttachExistingCustomer, type BillingAddress as BillingAddress, type CreateNewCustomer as CreateNewCustomer, type CustomerLimitedDetails as CustomerLimitedDetails, type CustomerRequest as CustomerRequest, type IntentStatus as IntentStatus, type NewCustomer as NewCustomer, type OneTimeProductCartItem as OneTimeProductCartItem, type Payment as Payment, type PaymentMethodTypes as PaymentMethodTypes, type PaymentCreateResponse as PaymentCreateResponse, type PaymentListResponse as PaymentListResponse, type PaymentRetrieveLineItemsResponse as PaymentRetrieveLineItemsResponse, PaymentListResponsesDefaultPageNumberPagination as PaymentListResponsesDefaultPageNumberPagination, type PaymentCreateParams as PaymentCreateParams, type PaymentListParams as PaymentListParams, };
|
|
164
|
-
export { Subscriptions as Subscriptions, type AddonCartResponseItem as AddonCartResponseItem, type AttachAddon as AttachAddon, type OnDemandSubscription as OnDemandSubscription, type Subscription as Subscription, type SubscriptionStatus as SubscriptionStatus, type TimeInterval as TimeInterval, type SubscriptionCreateResponse as SubscriptionCreateResponse, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionChargeResponse as SubscriptionChargeResponse, SubscriptionListResponsesDefaultPageNumberPagination as SubscriptionListResponsesDefaultPageNumberPagination, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionChangePlanParams as SubscriptionChangePlanParams, type SubscriptionChargeParams as SubscriptionChargeParams, };
|
|
168
|
+
export { Subscriptions as Subscriptions, type AddonCartResponseItem as AddonCartResponseItem, type AttachAddon as AttachAddon, type OnDemandSubscription as OnDemandSubscription, type Subscription as Subscription, type SubscriptionStatus as SubscriptionStatus, type TimeInterval as TimeInterval, type SubscriptionCreateResponse as SubscriptionCreateResponse, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionChargeResponse as SubscriptionChargeResponse, type SubscriptionRetrieveUsageHistoryResponse as SubscriptionRetrieveUsageHistoryResponse, SubscriptionListResponsesDefaultPageNumberPagination as SubscriptionListResponsesDefaultPageNumberPagination, SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination as SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination, type SubscriptionCreateParams as SubscriptionCreateParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionChangePlanParams as SubscriptionChangePlanParams, type SubscriptionChargeParams as SubscriptionChargeParams, type SubscriptionRetrieveUsageHistoryParams as SubscriptionRetrieveUsageHistoryParams, };
|
|
165
169
|
export { Invoices as Invoices };
|
|
166
170
|
export { Licenses as Licenses, type LicenseValidateResponse as LicenseValidateResponse, type LicenseActivateParams as LicenseActivateParams, type LicenseDeactivateParams as LicenseDeactivateParams, type LicenseValidateParams as LicenseValidateParams, };
|
|
167
171
|
export { LicenseKeys as LicenseKeys, type LicenseKey as LicenseKey, type LicenseKeyStatus as LicenseKeyStatus, LicenseKeysDefaultPageNumberPagination as LicenseKeysDefaultPageNumberPagination, type LicenseKeyUpdateParams as LicenseKeyUpdateParams, type LicenseKeyListParams as LicenseKeyListParams, };
|
|
@@ -171,12 +175,14 @@ export declare namespace DodoPayments {
|
|
|
171
175
|
export { Disputes as Disputes, type Dispute as Dispute, type DisputeStage as DisputeStage, type DisputeStatus as DisputeStatus, type GetDispute as GetDispute, type DisputeListResponse as DisputeListResponse, DisputeListResponsesDefaultPageNumberPagination as DisputeListResponsesDefaultPageNumberPagination, type DisputeListParams as DisputeListParams, };
|
|
172
176
|
export { Payouts as Payouts, type PayoutListResponse as PayoutListResponse, PayoutListResponsesDefaultPageNumberPagination as PayoutListResponsesDefaultPageNumberPagination, type PayoutListParams as PayoutListParams, };
|
|
173
177
|
export { WebhookEvents as WebhookEvents, type WebhookEventType as WebhookEventType, type WebhookPayload as WebhookPayload, };
|
|
174
|
-
export { Products as Products, type LicenseKeyDuration as LicenseKeyDuration, type Price as Price, type Product as Product, type ProductListResponse as ProductListResponse, type ProductUpdateFilesResponse as ProductUpdateFilesResponse, ProductListResponsesDefaultPageNumberPagination as ProductListResponsesDefaultPageNumberPagination, type ProductCreateParams as ProductCreateParams, type ProductUpdateParams as ProductUpdateParams, type ProductListParams as ProductListParams, type ProductUpdateFilesParams as ProductUpdateFilesParams, };
|
|
178
|
+
export { Products as Products, type AddMeterToPrice as AddMeterToPrice, type LicenseKeyDuration as LicenseKeyDuration, type Price as Price, type Product as Product, type ProductListResponse as ProductListResponse, type ProductUpdateFilesResponse as ProductUpdateFilesResponse, ProductListResponsesDefaultPageNumberPagination as ProductListResponsesDefaultPageNumberPagination, type ProductCreateParams as ProductCreateParams, type ProductUpdateParams as ProductUpdateParams, type ProductListParams as ProductListParams, type ProductUpdateFilesParams as ProductUpdateFilesParams, };
|
|
175
179
|
export { Misc as Misc, type CountryCode as CountryCode, type Currency as Currency, type TaxCategory as TaxCategory, type MiscListSupportedCountriesResponse as MiscListSupportedCountriesResponse, };
|
|
176
180
|
export { Discounts as Discounts, type Discount as Discount, type DiscountType as DiscountType, DiscountsDefaultPageNumberPagination as DiscountsDefaultPageNumberPagination, type DiscountCreateParams as DiscountCreateParams, type DiscountUpdateParams as DiscountUpdateParams, type DiscountListParams as DiscountListParams, };
|
|
177
181
|
export { Addons as Addons, type AddonResponse as AddonResponse, type AddonUpdateImagesResponse as AddonUpdateImagesResponse, AddonResponsesDefaultPageNumberPagination as AddonResponsesDefaultPageNumberPagination, type AddonCreateParams as AddonCreateParams, type AddonUpdateParams as AddonUpdateParams, type AddonListParams as AddonListParams, };
|
|
178
182
|
export { Brands as Brands, type Brand as Brand, type BrandListResponse as BrandListResponse, type BrandUpdateImagesResponse as BrandUpdateImagesResponse, type BrandCreateParams as BrandCreateParams, type BrandUpdateParams as BrandUpdateParams, };
|
|
179
183
|
export { Webhooks as Webhooks, type WebhookDetails as WebhookDetails, type WebhookRetrieveSecretResponse as WebhookRetrieveSecretResponse, WebhookDetailsCursorPagePagination as WebhookDetailsCursorPagePagination, type WebhookCreateParams as WebhookCreateParams, type WebhookUpdateParams as WebhookUpdateParams, type WebhookListParams as WebhookListParams, };
|
|
184
|
+
export { UsageEvents as UsageEvents, type Event as Event, type EventInput as EventInput, type UsageEventIngestResponse as UsageEventIngestResponse, EventsDefaultPageNumberPagination as EventsDefaultPageNumberPagination, type UsageEventListParams as UsageEventListParams, type UsageEventIngestParams as UsageEventIngestParams, };
|
|
185
|
+
export { Meters as Meters, type Meter as Meter, type MeterAggregation as MeterAggregation, type MeterFilter as MeterFilter, MetersDefaultPageNumberPagination as MetersDefaultPageNumberPagination, type MeterCreateParams as MeterCreateParams, type MeterListParams as MeterListParams, };
|
|
180
186
|
}
|
|
181
187
|
export { toFile, fileFromPath } from "./uploads.js";
|
|
182
188
|
export { DodoPaymentsError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.js";
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,SAAS,CAAC;AAClC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EACL,KAAK,0BAA0B,EAC/B,4BAA4B,EAC5B,KAAK,iCAAiC,EACtC,mCAAmC,EACpC,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,mBAAmB,CAAC;AACzC,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,yCAAyC,EACzC,yBAAyB,EACzB,iBAAiB,EACjB,MAAM,EACP,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,KAAK,EACL,iBAAiB,EACjB,iBAAiB,EACjB,yBAAyB,EACzB,iBAAiB,EACjB,MAAM,EACP,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,2BAA2B,EAC3B,sBAAsB,EACtB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,QAAQ,E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AsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,WAAW,IAAI,WAAW,EAC/B,iCAAiC,IAAI,iCAAiC,EACtE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH;AAED,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAEjB,eAAe,YAAY,CAAC"}
|
package/index.js
CHANGED
|
@@ -39,11 +39,13 @@ const disputes_1 = require("./resources/disputes.js");
|
|
|
39
39
|
const license_key_instances_1 = require("./resources/license-key-instances.js");
|
|
40
40
|
const license_keys_1 = require("./resources/license-keys.js");
|
|
41
41
|
const licenses_1 = require("./resources/licenses.js");
|
|
42
|
+
const meters_1 = require("./resources/meters.js");
|
|
42
43
|
const misc_1 = require("./resources/misc.js");
|
|
43
44
|
const payments_1 = require("./resources/payments.js");
|
|
44
45
|
const payouts_1 = require("./resources/payouts.js");
|
|
45
46
|
const refunds_1 = require("./resources/refunds.js");
|
|
46
47
|
const subscriptions_1 = require("./resources/subscriptions.js");
|
|
48
|
+
const usage_events_1 = require("./resources/usage-events.js");
|
|
47
49
|
const webhook_events_1 = require("./resources/webhook-events.js");
|
|
48
50
|
const customers_1 = require("./resources/customers/customers.js");
|
|
49
51
|
const invoices_1 = require("./resources/invoices/invoices.js");
|
|
@@ -110,6 +112,8 @@ class DodoPayments extends Core.APIClient {
|
|
|
110
112
|
this.addons = new API.Addons(this);
|
|
111
113
|
this.brands = new API.Brands(this);
|
|
112
114
|
this.webhooks = new API.Webhooks(this);
|
|
115
|
+
this.usageEvents = new API.UsageEvents(this);
|
|
116
|
+
this.meters = new API.Meters(this);
|
|
113
117
|
this._options = options;
|
|
114
118
|
this.bearerToken = bearerToken;
|
|
115
119
|
}
|
|
@@ -154,6 +158,8 @@ DodoPayments.PaymentListResponsesDefaultPageNumberPagination =
|
|
|
154
158
|
DodoPayments.Subscriptions = subscriptions_1.Subscriptions;
|
|
155
159
|
DodoPayments.SubscriptionListResponsesDefaultPageNumberPagination =
|
|
156
160
|
subscriptions_1.SubscriptionListResponsesDefaultPageNumberPagination;
|
|
161
|
+
DodoPayments.SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination =
|
|
162
|
+
subscriptions_1.SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination;
|
|
157
163
|
DodoPayments.Invoices = invoices_1.Invoices;
|
|
158
164
|
DodoPayments.Licenses = licenses_1.Licenses;
|
|
159
165
|
DodoPayments.LicenseKeys = license_keys_1.LicenseKeys;
|
|
@@ -181,6 +187,10 @@ DodoPayments.AddonResponsesDefaultPageNumberPagination = addons_1.AddonResponses
|
|
|
181
187
|
DodoPayments.Brands = brands_1.Brands;
|
|
182
188
|
DodoPayments.Webhooks = webhooks_1.Webhooks;
|
|
183
189
|
DodoPayments.WebhookDetailsCursorPagePagination = webhooks_1.WebhookDetailsCursorPagePagination;
|
|
190
|
+
DodoPayments.UsageEvents = usage_events_1.UsageEvents;
|
|
191
|
+
DodoPayments.EventsDefaultPageNumberPagination = usage_events_1.EventsDefaultPageNumberPagination;
|
|
192
|
+
DodoPayments.Meters = meters_1.Meters;
|
|
193
|
+
DodoPayments.MetersDefaultPageNumberPagination = meters_1.MetersDefaultPageNumberPagination;
|
|
184
194
|
var uploads_1 = require("./uploads.js");
|
|
185
195
|
Object.defineProperty(exports, "toFile", { enumerable: true, get: function () { return uploads_1.toFile; } });
|
|
186
196
|
Object.defineProperty(exports, "fileFromPath", { enumerable: true, get: function () { return uploads_1.fileFromPath; } });
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,gDAA+B;AAC/B,mDAAkC;AAClC,4DAA2C;AAO3C,sDAAqC;AACrC,0DAAyC;AACzC,kDAQ4B;AAC5B,kDAO4B;AAC5B,wEAKuC;AACvC,wDAQ+B;AAC/B,sDAS8B;AAC9B,gFAM2C;AAC3C,8DAOkC;AAClC,sDAM8B;AAC9B,8CAM0B;AAC1B,sDAkB8B;AAC9B,oDAK6B;AAC7B,oDAO6B;AAC7B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGtF,gDAA+B;AAC/B,mDAAkC;AAClC,4DAA2C;AAO3C,sDAAqC;AACrC,0DAAyC;AACzC,kDAQ4B;AAC5B,kDAO4B;AAC5B,wEAKuC;AACvC,wDAQ+B;AAC/B,sDAS8B;AAC9B,gFAM2C;AAC3C,8DAOkC;AAClC,sDAM8B;AAC9B,kDAQ4B;AAC5B,8CAM0B;AAC1B,sDAkB8B;AAC9B,oDAK6B;AAC7B,oDAO6B;AAC7B,gEAoBmC;AACnC,8DAQkC;AAClC,kEAA6F;AAC7F,kEAQyC;AACzC,+DAAyD;AACzD,+DAauC;AACvC,+DAQuC;AAEvC,MAAM,YAAY,GAAG;IACnB,SAAS,EAAE,+BAA+B;IAC1C,SAAS,EAAE,+BAA+B;CAC3C,CAAC;AA6EF;;GAEG;AACH,MAAa,YAAa,SAAQ,IAAI,CAAC,SAAS;IAK9C;;;;;;;;;;;;OAYG;IACH,YAAY,EACV,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,wBAAwB,CAAC,EAChD,WAAW,GAAG,IAAI,CAAC,O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AAC;AACjC,YAAY,CAAC,kCAAkC,GAAG,6CAAkC,CAAC;AACrF,YAAY,CAAC,WAAW,GAAG,0BAAW,CAAC;AACvC,YAAY,CAAC,iCAAiC,GAAG,gDAAiC,CAAC;AACnF,YAAY,CAAC,MAAM,GAAG,eAAM,CAAC;AAC7B,YAAY,CAAC,iCAAiC,GAAG,0CAAiC,CAAC;AA2NnF,wCAAiD;AAAxC,iGAAA,MAAM,OAAA;AAAE,uGAAA,YAAY,OAAA;AAC7B,oCAciB;AAbf,0GAAA,iBAAiB,OAAA;AACjB,iGAAA,QAAQ,OAAA;AACR,2GAAA,kBAAkB,OAAA;AAClB,kHAAA,yBAAyB,OAAA;AACzB,0GAAA,iBAAiB,OAAA;AACjB,sGAAA,aAAa,OAAA;AACb,sGAAA,aAAa,OAAA;AACb,uGAAA,cAAc,OAAA;AACd,wGAAA,eAAe,OAAA;AACf,4GAAA,mBAAmB,OAAA;AACnB,4GAAA,mBAAmB,OAAA;AACnB,8GAAA,qBAAqB,OAAA;AACrB,iHAAA,wBAAwB,OAAA;AAG1B,kBAAe,YAAY,CAAC"}
|
package/index.mjs
CHANGED
|
@@ -13,11 +13,13 @@ import { DisputeListResponsesDefaultPageNumberPagination, Disputes, } from "./re
|
|
|
13
13
|
import { LicenseKeyInstances, LicenseKeyInstancesDefaultPageNumberPagination, } from "./resources/license-key-instances.mjs";
|
|
14
14
|
import { LicenseKeys, LicenseKeysDefaultPageNumberPagination, } from "./resources/license-keys.mjs";
|
|
15
15
|
import { Licenses, } from "./resources/licenses.mjs";
|
|
16
|
+
import { Meters, MetersDefaultPageNumberPagination, } from "./resources/meters.mjs";
|
|
16
17
|
import { Misc, } from "./resources/misc.mjs";
|
|
17
18
|
import { PaymentListResponsesDefaultPageNumberPagination, Payments, } from "./resources/payments.mjs";
|
|
18
19
|
import { PayoutListResponsesDefaultPageNumberPagination, Payouts, } from "./resources/payouts.mjs";
|
|
19
20
|
import { Refunds, RefundsDefaultPageNumberPagination, } from "./resources/refunds.mjs";
|
|
20
|
-
import { SubscriptionListResponsesDefaultPageNumberPagination, Subscriptions, } from "./resources/subscriptions.mjs";
|
|
21
|
+
import { SubscriptionListResponsesDefaultPageNumberPagination, SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination, Subscriptions, } from "./resources/subscriptions.mjs";
|
|
22
|
+
import { EventsDefaultPageNumberPagination, UsageEvents, } from "./resources/usage-events.mjs";
|
|
21
23
|
import { WebhookEvents } from "./resources/webhook-events.mjs";
|
|
22
24
|
import { Customers, CustomersDefaultPageNumberPagination, } from "./resources/customers/customers.mjs";
|
|
23
25
|
import { Invoices } from "./resources/invoices/invoices.mjs";
|
|
@@ -84,6 +86,8 @@ export class DodoPayments extends Core.APIClient {
|
|
|
84
86
|
this.addons = new API.Addons(this);
|
|
85
87
|
this.brands = new API.Brands(this);
|
|
86
88
|
this.webhooks = new API.Webhooks(this);
|
|
89
|
+
this.usageEvents = new API.UsageEvents(this);
|
|
90
|
+
this.meters = new API.Meters(this);
|
|
87
91
|
this._options = options;
|
|
88
92
|
this.bearerToken = bearerToken;
|
|
89
93
|
}
|
|
@@ -127,6 +131,8 @@ DodoPayments.PaymentListResponsesDefaultPageNumberPagination =
|
|
|
127
131
|
DodoPayments.Subscriptions = Subscriptions;
|
|
128
132
|
DodoPayments.SubscriptionListResponsesDefaultPageNumberPagination =
|
|
129
133
|
SubscriptionListResponsesDefaultPageNumberPagination;
|
|
134
|
+
DodoPayments.SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination =
|
|
135
|
+
SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination;
|
|
130
136
|
DodoPayments.Invoices = Invoices;
|
|
131
137
|
DodoPayments.Licenses = Licenses;
|
|
132
138
|
DodoPayments.LicenseKeys = LicenseKeys;
|
|
@@ -154,6 +160,10 @@ DodoPayments.AddonResponsesDefaultPageNumberPagination = AddonResponsesDefaultPa
|
|
|
154
160
|
DodoPayments.Brands = Brands;
|
|
155
161
|
DodoPayments.Webhooks = Webhooks;
|
|
156
162
|
DodoPayments.WebhookDetailsCursorPagePagination = WebhookDetailsCursorPagePagination;
|
|
163
|
+
DodoPayments.UsageEvents = UsageEvents;
|
|
164
|
+
DodoPayments.EventsDefaultPageNumberPagination = EventsDefaultPageNumberPagination;
|
|
165
|
+
DodoPayments.Meters = Meters;
|
|
166
|
+
DodoPayments.MetersDefaultPageNumberPagination = MetersDefaultPageNumberPagination;
|
|
157
167
|
export { toFile, fileFromPath } from "./uploads.mjs";
|
|
158
168
|
export { DodoPaymentsError, APIError, APIConnectionError, APIConnectionTimeoutError, APIUserAbortError, NotFoundError, ConflictError, RateLimitError, BadRequestError, AuthenticationError, InternalServerError, PermissionDeniedError, UnprocessableEntityError, } from "./error.mjs";
|
|
159
169
|
export default DodoPayments;
|
package/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;;OAG/E,KAAK,IAAI;OACT,KAAK,MAAM;OACX,KAAK,UAAU;OAOf,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAIL,yCAAyC,EAGzC,MAAM,GACP;OACM,EAML,MAAM,GACP;OACM,EAIL,gBAAgB,GACjB;OACM,EAML,SAAS,EACT,oCAAoC,GACrC;OACM,EAIL,+CAA+C,EAG/C,QAAQ,GAET;OACM,EAIL,mBAAmB,EACnB,8CAA8C,GAC/C;OACM,EAKL,WAAW,EACX,sCAAsC,GACvC;OACM,EAKL,QAAQ,GACT;OACM,EAGL,IAAI,GAGL;OACM,EAcL,+CAA+C,EAG/C,QAAQ,GACT;OACM,EAGL,8CAA8C,EAC9C,OAAO,GACR;OACM,EAKL,OAAO,EACP,kCAAkC,GACnC;OACM,EAYL,oDAAoD,EAGpD,aAAa,GAEd;OACM,EAAoB,aAAa,EAAkB;OACnD,EAML,SAAS,EACT,oCAAoC,GACrC;OACM,EAAE,QAAQ,EAAE;OACZ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iCAAiC,CAAC;AACnF,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC;AAC7B,YAAY,CAAC,iCAAiC,GAAG,iCAAiC,CAAC;OA2N5E,EAAE,MAAM,EAAE,YAAY,EAAE;OACxB,EACL,iBAAiB,EACjB,QAAQ,EACR,kBAAkB,EAClB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,GACzB;AAED,eAAe,YAAY,CAAC"}
|
package/package.json
CHANGED
package/resources/index.d.ts
CHANGED
|
@@ -4,16 +4,18 @@ export { CheckoutSessions, type CheckoutSessionRequest, type CheckoutSessionResp
|
|
|
4
4
|
export { CustomersDefaultPageNumberPagination, Customers, type Customer, type CustomerPortalSession, type CustomerCreateParams, type CustomerUpdateParams, type CustomerListParams, } from "./customers/customers.js";
|
|
5
5
|
export { DiscountsDefaultPageNumberPagination, Discounts, type Discount, type DiscountType, type DiscountCreateParams, type DiscountUpdateParams, type DiscountListParams, } from "./discounts.js";
|
|
6
6
|
export { DisputeListResponsesDefaultPageNumberPagination, Disputes, type Dispute, type DisputeStage, type DisputeStatus, type GetDispute, type DisputeListResponse, type DisputeListParams, } from "./disputes.js";
|
|
7
|
+
export { EventsDefaultPageNumberPagination, UsageEvents, type Event, type EventInput, type UsageEventIngestResponse, type UsageEventListParams, type UsageEventIngestParams, } from "./usage-events.js";
|
|
7
8
|
export { Invoices } from "./invoices/invoices.js";
|
|
8
9
|
export { LicenseKeyInstancesDefaultPageNumberPagination, LicenseKeyInstances, type LicenseKeyInstance, type LicenseKeyInstanceUpdateParams, type LicenseKeyInstanceListParams, } from "./license-key-instances.js";
|
|
9
10
|
export { LicenseKeysDefaultPageNumberPagination, LicenseKeys, type LicenseKey, type LicenseKeyStatus, type LicenseKeyUpdateParams, type LicenseKeyListParams, } from "./license-keys.js";
|
|
10
11
|
export { Licenses, type LicenseValidateResponse, type LicenseActivateParams, type LicenseDeactivateParams, type LicenseValidateParams, } from "./licenses.js";
|
|
12
|
+
export { MetersDefaultPageNumberPagination, Meters, type Meter, type MeterAggregation, type MeterFilter, type MeterCreateParams, type MeterListParams, } from "./meters.js";
|
|
11
13
|
export { Misc, type CountryCode, type Currency, type TaxCategory, type MiscListSupportedCountriesResponse, } from "./misc.js";
|
|
12
14
|
export { PaymentListResponsesDefaultPageNumberPagination, Payments, type AttachExistingCustomer, type BillingAddress, type CreateNewCustomer, type CustomerLimitedDetails, type CustomerRequest, type IntentStatus, type NewCustomer, type OneTimeProductCartItem, type Payment, type PaymentMethodTypes, type PaymentCreateResponse, type PaymentListResponse, type PaymentRetrieveLineItemsResponse, type PaymentCreateParams, type PaymentListParams, } from "./payments.js";
|
|
13
15
|
export { PayoutListResponsesDefaultPageNumberPagination, Payouts, type PayoutListResponse, type PayoutListParams, } from "./payouts.js";
|
|
14
|
-
export { ProductListResponsesDefaultPageNumberPagination, Products, type LicenseKeyDuration, type Price, type Product, type ProductListResponse, type ProductUpdateFilesResponse, type ProductCreateParams, type ProductUpdateParams, type ProductListParams, type ProductUpdateFilesParams, } from "./products/products.js";
|
|
16
|
+
export { ProductListResponsesDefaultPageNumberPagination, Products, type AddMeterToPrice, type LicenseKeyDuration, type Price, type Product, type ProductListResponse, type ProductUpdateFilesResponse, type ProductCreateParams, type ProductUpdateParams, type ProductListParams, type ProductUpdateFilesParams, } from "./products/products.js";
|
|
15
17
|
export { RefundsDefaultPageNumberPagination, Refunds, type Refund, type RefundStatus, type RefundCreateParams, type RefundListParams, } from "./refunds.js";
|
|
16
|
-
export { SubscriptionListResponsesDefaultPageNumberPagination, Subscriptions, type AddonCartResponseItem, type AttachAddon, type OnDemandSubscription, type Subscription, type SubscriptionStatus, type TimeInterval, type SubscriptionCreateResponse, type SubscriptionListResponse, type SubscriptionChargeResponse, type SubscriptionCreateParams, type SubscriptionUpdateParams, type SubscriptionListParams, type SubscriptionChangePlanParams, type SubscriptionChargeParams, } from "./subscriptions.js";
|
|
18
|
+
export { SubscriptionListResponsesDefaultPageNumberPagination, SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination, Subscriptions, type AddonCartResponseItem, type AttachAddon, type OnDemandSubscription, type Subscription, type SubscriptionStatus, type TimeInterval, type SubscriptionCreateResponse, type SubscriptionListResponse, type SubscriptionChargeResponse, type SubscriptionRetrieveUsageHistoryResponse, type SubscriptionCreateParams, type SubscriptionUpdateParams, type SubscriptionListParams, type SubscriptionChangePlanParams, type SubscriptionChargeParams, type SubscriptionRetrieveUsageHistoryParams, } from "./subscriptions.js";
|
|
17
19
|
export { WebhookDetailsCursorPagePagination, Webhooks, type WebhookDetails, type WebhookRetrieveSecretResponse, type WebhookCreateParams, type WebhookUpdateParams, type WebhookListParams, } from "./webhooks/webhooks.js";
|
|
18
20
|
export { WebhookEvents, type WebhookEventType, type WebhookPayload } from "./webhook-events.js";
|
|
19
21
|
//# sourceMappingURL=index.d.ts.map
|
package/resources/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,yCAAyC,EACzC,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,GACvB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,GACjC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,oCAAoC,EACpC,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,qBAAqB,EAC1B,KAA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,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,gCAAgC,EACrC,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,8CAA8C,EAC9C,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,+CAA+C,EAC/C,QAAQ,EACR,KAAK,kBAAkB,EACvB,KAAK,KAAK,EACV,KAAK,OAAO,EACZ,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kCAAkC,EAClC,OAAO,EACP,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,oDAAoD,EACpD,aAAa,EACb,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,yCAAyC,EACzC,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,iBAAiB,EACtB,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O,EACL,oDAAoD,EACpD,oEAAoE,EACpE,aAAa,EACb,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wCAAwC,EAC7C,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,sCAAsC,GAC5C,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,kCAAkC,EAClC,QAAQ,EACR,KAAK,cAAc,EACnB,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
package/resources/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.WebhookEvents = exports.Webhooks = exports.WebhookDetailsCursorPagePagination = exports.Subscriptions = exports.SubscriptionListResponsesDefaultPageNumberPagination = exports.Refunds = exports.RefundsDefaultPageNumberPagination = exports.Products = exports.ProductListResponsesDefaultPageNumberPagination = exports.Payouts = exports.PayoutListResponsesDefaultPageNumberPagination = exports.Payments = exports.PaymentListResponsesDefaultPageNumberPagination = exports.Misc = exports.Licenses = exports.LicenseKeys = exports.LicenseKeysDefaultPageNumberPagination = exports.LicenseKeyInstances = exports.LicenseKeyInstancesDefaultPageNumberPagination = exports.Invoices = exports.Disputes = exports.DisputeListResponsesDefaultPageNumberPagination = exports.Discounts = exports.DiscountsDefaultPageNumberPagination = exports.Customers = exports.CustomersDefaultPageNumberPagination = exports.CheckoutSessions = exports.Brands = exports.Addons = exports.AddonResponsesDefaultPageNumberPagination = void 0;
|
|
4
|
+
exports.WebhookEvents = exports.Webhooks = exports.WebhookDetailsCursorPagePagination = exports.Subscriptions = exports.SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination = exports.SubscriptionListResponsesDefaultPageNumberPagination = exports.Refunds = exports.RefundsDefaultPageNumberPagination = exports.Products = exports.ProductListResponsesDefaultPageNumberPagination = exports.Payouts = exports.PayoutListResponsesDefaultPageNumberPagination = exports.Payments = exports.PaymentListResponsesDefaultPageNumberPagination = exports.Misc = exports.Meters = exports.MetersDefaultPageNumberPagination = exports.Licenses = exports.LicenseKeys = exports.LicenseKeysDefaultPageNumberPagination = exports.LicenseKeyInstances = exports.LicenseKeyInstancesDefaultPageNumberPagination = exports.Invoices = exports.UsageEvents = exports.EventsDefaultPageNumberPagination = exports.Disputes = exports.DisputeListResponsesDefaultPageNumberPagination = exports.Discounts = exports.DiscountsDefaultPageNumberPagination = exports.Customers = exports.CustomersDefaultPageNumberPagination = exports.CheckoutSessions = exports.Brands = exports.Addons = exports.AddonResponsesDefaultPageNumberPagination = void 0;
|
|
5
5
|
var addons_1 = require("./addons.js");
|
|
6
6
|
Object.defineProperty(exports, "AddonResponsesDefaultPageNumberPagination", { enumerable: true, get: function () { return addons_1.AddonResponsesDefaultPageNumberPagination; } });
|
|
7
7
|
Object.defineProperty(exports, "Addons", { enumerable: true, get: function () { return addons_1.Addons; } });
|
|
@@ -18,6 +18,9 @@ Object.defineProperty(exports, "Discounts", { enumerable: true, get: function ()
|
|
|
18
18
|
var disputes_1 = require("./disputes.js");
|
|
19
19
|
Object.defineProperty(exports, "DisputeListResponsesDefaultPageNumberPagination", { enumerable: true, get: function () { return disputes_1.DisputeListResponsesDefaultPageNumberPagination; } });
|
|
20
20
|
Object.defineProperty(exports, "Disputes", { enumerable: true, get: function () { return disputes_1.Disputes; } });
|
|
21
|
+
var usage_events_1 = require("./usage-events.js");
|
|
22
|
+
Object.defineProperty(exports, "EventsDefaultPageNumberPagination", { enumerable: true, get: function () { return usage_events_1.EventsDefaultPageNumberPagination; } });
|
|
23
|
+
Object.defineProperty(exports, "UsageEvents", { enumerable: true, get: function () { return usage_events_1.UsageEvents; } });
|
|
21
24
|
var invoices_1 = require("./invoices/invoices.js");
|
|
22
25
|
Object.defineProperty(exports, "Invoices", { enumerable: true, get: function () { return invoices_1.Invoices; } });
|
|
23
26
|
var license_key_instances_1 = require("./license-key-instances.js");
|
|
@@ -28,6 +31,9 @@ Object.defineProperty(exports, "LicenseKeysDefaultPageNumberPagination", { enume
|
|
|
28
31
|
Object.defineProperty(exports, "LicenseKeys", { enumerable: true, get: function () { return license_keys_1.LicenseKeys; } });
|
|
29
32
|
var licenses_1 = require("./licenses.js");
|
|
30
33
|
Object.defineProperty(exports, "Licenses", { enumerable: true, get: function () { return licenses_1.Licenses; } });
|
|
34
|
+
var meters_1 = require("./meters.js");
|
|
35
|
+
Object.defineProperty(exports, "MetersDefaultPageNumberPagination", { enumerable: true, get: function () { return meters_1.MetersDefaultPageNumberPagination; } });
|
|
36
|
+
Object.defineProperty(exports, "Meters", { enumerable: true, get: function () { return meters_1.Meters; } });
|
|
31
37
|
var misc_1 = require("./misc.js");
|
|
32
38
|
Object.defineProperty(exports, "Misc", { enumerable: true, get: function () { return misc_1.Misc; } });
|
|
33
39
|
var payments_1 = require("./payments.js");
|
|
@@ -44,6 +50,7 @@ Object.defineProperty(exports, "RefundsDefaultPageNumberPagination", { enumerabl
|
|
|
44
50
|
Object.defineProperty(exports, "Refunds", { enumerable: true, get: function () { return refunds_1.Refunds; } });
|
|
45
51
|
var subscriptions_1 = require("./subscriptions.js");
|
|
46
52
|
Object.defineProperty(exports, "SubscriptionListResponsesDefaultPageNumberPagination", { enumerable: true, get: function () { return subscriptions_1.SubscriptionListResponsesDefaultPageNumberPagination; } });
|
|
53
|
+
Object.defineProperty(exports, "SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination", { enumerable: true, get: function () { return subscriptions_1.SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination; } });
|
|
47
54
|
Object.defineProperty(exports, "Subscriptions", { enumerable: true, get: function () { return subscriptions_1.Subscriptions; } });
|
|
48
55
|
var webhooks_1 = require("./webhooks/webhooks.js");
|
|
49
56
|
Object.defineProperty(exports, "WebhookDetailsCursorPagePagination", { enumerable: true, get: function () { return webhooks_1.WebhookDetailsCursorPagePagination; } });
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAQkB;AAPhB,mIAAA,yCAAyC,OAAA;AACzC,gGAAA,MAAM,OAAA;AAOR,sCAOkB;AANhB,gGAAA,MAAM,OAAA;AAOR,4DAK6B;AAJ3B,qHAAA,gBAAgB,OAAA;AAKlB,sDAQ+B;AAP7B,iIAAA,oCAAoC,OAAA;AACpC,sGAAA,SAAS,OAAA;AAOX,4CAQqB;AAPnB,iIAAA,oCAAoC,OAAA;AACpC,sGAAA,SAAS,OAAA;AAOX,0CASoB;AARlB,2IAAA,+CAA+C,OAAA;AAC/C,oGAAA,QAAQ,OAAA;AAQV,mDAA+C;AAAtC,oGAAA,QAAQ,OAAA;AACjB,oEAMiC;AAL/B,uJAAA,8CAA8C,OAAA;AAC9C,4HAAA,mBAAmB,OAAA;AAKrB,kDAOwB;AANtB,sIAAA,sCAAsC,OAAA;AACtC,2GAAA,WAAW,OAAA;AAMb,0CAMoB;AALlB,oGAAA,QAAQ,OAAA;AAMV,kCAMgB;AALd,4FAAA,IAAI,OAAA;AAMN,0CAkBoB;AAjBlB,2IAAA,+CAA+C,OAAA;AAC/C,oGAAA,QAAQ,OAAA;AAiBV,wCAKmB;AAJjB,yIAAA,8CAA8C,OAAA;AAC9C,k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AACpE,8GAAA,aAAa,OAAA;AAkBf,mDAQ6B;AAP3B,8HAAA,kCAAkC,OAAA;AAClC,oGAAA,QAAQ,OAAA;AAOV,sDAA6F;AAApF,+GAAA,aAAa,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -5,16 +5,18 @@ export { CheckoutSessions, } from "./checkout-sessions.mjs";
|
|
|
5
5
|
export { CustomersDefaultPageNumberPagination, Customers, } from "./customers/customers.mjs";
|
|
6
6
|
export { DiscountsDefaultPageNumberPagination, Discounts, } from "./discounts.mjs";
|
|
7
7
|
export { DisputeListResponsesDefaultPageNumberPagination, Disputes, } from "./disputes.mjs";
|
|
8
|
+
export { EventsDefaultPageNumberPagination, UsageEvents, } from "./usage-events.mjs";
|
|
8
9
|
export { Invoices } from "./invoices/invoices.mjs";
|
|
9
10
|
export { LicenseKeyInstancesDefaultPageNumberPagination, LicenseKeyInstances, } from "./license-key-instances.mjs";
|
|
10
11
|
export { LicenseKeysDefaultPageNumberPagination, LicenseKeys, } from "./license-keys.mjs";
|
|
11
12
|
export { Licenses, } from "./licenses.mjs";
|
|
13
|
+
export { MetersDefaultPageNumberPagination, Meters, } from "./meters.mjs";
|
|
12
14
|
export { Misc, } from "./misc.mjs";
|
|
13
15
|
export { PaymentListResponsesDefaultPageNumberPagination, Payments, } from "./payments.mjs";
|
|
14
16
|
export { PayoutListResponsesDefaultPageNumberPagination, Payouts, } from "./payouts.mjs";
|
|
15
17
|
export { ProductListResponsesDefaultPageNumberPagination, Products, } from "./products/products.mjs";
|
|
16
18
|
export { RefundsDefaultPageNumberPagination, Refunds, } from "./refunds.mjs";
|
|
17
|
-
export { SubscriptionListResponsesDefaultPageNumberPagination, Subscriptions, } from "./subscriptions.mjs";
|
|
19
|
+
export { SubscriptionListResponsesDefaultPageNumberPagination, SubscriptionRetrieveUsageHistoryResponsesDefaultPageNumberPagination, Subscriptions, } from "./subscriptions.mjs";
|
|
18
20
|
export { WebhookDetailsCursorPagePagination, Webhooks, } from "./webhooks/webhooks.mjs";
|
|
19
21
|
export { WebhookEvents } from "./webhook-events.mjs";
|
|
20
22
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,yCAAyC,EACzC,MAAM,GAMP;OACM,EACL,MAAM,GAMP;OACM,EACL,gBAAgB,GAIjB;OACM,EACL,oCAAoC,EACpC,SAAS,GAMV;OACM,EACL,oCAAoC,EACpC,SAAS,GAMV;OACM,EACL,+CAA+C,EAC/C,QAAQ,GAOT;OACM,EAAE,QAAQ,EAAE;OACZ,EACL,8CAA8C,EAC9C,mBAAmB,GAIpB;OACM,EACL,sCAAsC,EACtC,WAAW,GAKZ;OACM,EACL,QAAQ,GAKT;OACM,EACL,IAAI,GAKL;OACM,EACL,+CAA+C,EAC/C,QAAQ,GAgBT;OACM,EACL,8CAA8C,EAC9C,OAAO,GAGR;OACM,EACL,+CAA+C,EAC/C,QAAQ,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,yCAAyC,EACzC,MAAM,GAMP;OACM,EACL,MAAM,GAMP;OACM,EACL,gBAAgB,GAIjB;OACM,EACL,oCAAoC,EACpC,SAAS,GAMV;OACM,EACL,oCAAoC,EACpC,SAAS,GAMV;OACM,EACL,+CAA+C,EAC/C,QAAQ,GAOT;OACM,EACL,iCAAiC,EACjC,WAAW,GAMZ;OACM,EAAE,QAAQ,EAAE;OACZ,EACL,8CAA8C,EAC9C,mBAAmB,GAIpB;OACM,EACL,sCAAsC,EACtC,WAAW,GAKZ;OACM,EACL,QAAQ,GAKT;OACM,EACL,iCAAiC,EACjC,MAAM,GAMP;OACM,EACL,IAAI,GAKL;OACM,EACL,+CAA+C,EAC/C,QAAQ,GAgBT;OACM,EACL,8CAA8C,EAC9C,OAAO,GAGR;OACM,EACL,+CAA+C,EAC/C,QAAQ,GAWT;OACM,EACL,kCAAkC,EAClC,OAAO,GAKR;OACM,EACL,oDAAoD,EACpD,oEAAoE,EACpE,aAAa,GAiBd;OACM,EACL,kCAAkC,EAClC,QAAQ,GAMT;OACM,EAAE,aAAa,EAA8C"}
|
|
@@ -3,5 +3,6 @@ import * as Core from "../../core.js";
|
|
|
3
3
|
import { type Response } from "../../_shims/index.js";
|
|
4
4
|
export declare class Payments extends APIResource {
|
|
5
5
|
retrieve(paymentId: string, options?: Core.RequestOptions): Core.APIPromise<Response>;
|
|
6
|
+
retrieveRefund(refundId: string, options?: Core.RequestOptions): Core.APIPromise<Response>;
|
|
6
7
|
}
|
|
7
8
|
//# sourceMappingURL=payments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../src/resources/invoices/payments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../src/resources/invoices/payments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAEnD,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;IAQrF,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;CAO3F"}
|
|
@@ -11,6 +11,13 @@ class Payments extends resource_1.APIResource {
|
|
|
11
11
|
__binaryResponse: true,
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
+
retrieveRefund(refundId, options) {
|
|
15
|
+
return this._client.get(`/invoices/refunds/${refundId}`, {
|
|
16
|
+
...options,
|
|
17
|
+
headers: { Accept: 'application/pdf', ...options?.headers },
|
|
18
|
+
__binaryResponse: true,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
14
21
|
}
|
|
15
22
|
exports.Payments = Payments;
|
|
16
23
|
//# sourceMappingURL=payments.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.js","sourceRoot":"","sources":["../../src/resources/invoices/payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAI7C,MAAa,QAAS,SAAQ,sBAAW;IACvC,QAAQ,CAAC,SAAiB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,SAAS,EAAE,EAAE;YACzD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;YAC3D,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"payments.js","sourceRoot":"","sources":["../../src/resources/invoices/payments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAI7C,MAAa,QAAS,SAAQ,sBAAW;IACvC,QAAQ,CAAC,SAAiB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,SAAS,EAAE,EAAE;YACzD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;YAC3D,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED,cAAc,CAAC,QAAgB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,QAAQ,EAAE,EAAE;YACvD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;YAC3D,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF;AAhBD,4BAgBC"}
|
|
@@ -8,5 +8,12 @@ export class Payments extends APIResource {
|
|
|
8
8
|
__binaryResponse: true,
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
+
retrieveRefund(refundId, options) {
|
|
12
|
+
return this._client.get(`/invoices/refunds/${refundId}`, {
|
|
13
|
+
...options,
|
|
14
|
+
headers: { Accept: 'application/pdf', ...options?.headers },
|
|
15
|
+
__binaryResponse: true,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
11
18
|
}
|
|
12
19
|
//# sourceMappingURL=payments.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.mjs","sourceRoot":"","sources":["../../src/resources/invoices/payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC,QAAQ,CAAC,SAAiB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,SAAS,EAAE,EAAE;YACzD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;YAC3D,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"payments.mjs","sourceRoot":"","sources":["../../src/resources/invoices/payments.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC,QAAQ,CAAC,SAAiB,EAAE,OAA6B;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,SAAS,EAAE,EAAE;YACzD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;YAC3D,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;IAED,cAAc,CAAC,QAAgB,EAAE,OAA6B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,QAAQ,EAAE,EAAE;YACvD,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;YAC3D,gBAAgB,EAAE,IAAI;SACvB,CAAC,CAAC;IACL,CAAC;CACF"}
|