orb-billing 1.27.0 → 1.28.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/CHANGELOG.md +14 -0
- package/core.d.ts +0 -10
- package/core.d.ts.map +1 -1
- package/core.js +1 -13
- package/core.js.map +1 -1
- package/core.mjs +0 -11
- package/core.mjs.map +1 -1
- package/package.json +1 -1
- package/resource.d.ts +1 -7
- package/resource.d.ts.map +1 -1
- package/resource.js +1 -7
- package/resource.js.map +1 -1
- package/resource.mjs +1 -7
- package/resource.mjs.map +1 -1
- package/resources/coupons/coupons.d.ts.map +1 -1
- package/resources/coupons/coupons.js +5 -5
- package/resources/coupons/coupons.js.map +1 -1
- package/resources/coupons/coupons.mjs +5 -5
- package/resources/coupons/coupons.mjs.map +1 -1
- package/resources/coupons/subscriptions.d.ts.map +1 -1
- package/resources/coupons/subscriptions.js +4 -1
- package/resources/coupons/subscriptions.js.map +1 -1
- package/resources/coupons/subscriptions.mjs +4 -1
- package/resources/coupons/subscriptions.mjs.map +1 -1
- package/resources/credit-notes.js +2 -2
- package/resources/credit-notes.js.map +1 -1
- package/resources/credit-notes.mjs +2 -2
- package/resources/credit-notes.mjs.map +1 -1
- package/resources/customers/balance-transactions.js +2 -2
- package/resources/customers/balance-transactions.js.map +1 -1
- package/resources/customers/balance-transactions.mjs +2 -2
- package/resources/customers/balance-transactions.mjs.map +1 -1
- package/resources/customers/costs.d.ts.map +1 -1
- package/resources/customers/costs.js +5 -2
- package/resources/customers/costs.js.map +1 -1
- package/resources/customers/costs.mjs +5 -2
- package/resources/customers/costs.mjs.map +1 -1
- package/resources/customers/credits/credits.d.ts.map +1 -1
- package/resources/customers/credits/credits.js +3 -3
- package/resources/customers/credits/credits.js.map +1 -1
- package/resources/customers/credits/credits.mjs +3 -3
- package/resources/customers/credits/credits.mjs.map +1 -1
- package/resources/customers/credits/ledger.d.ts +132 -20
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/customers/credits/ledger.js +4 -4
- package/resources/customers/credits/ledger.js.map +1 -1
- package/resources/customers/credits/ledger.mjs +4 -4
- package/resources/customers/credits/ledger.mjs.map +1 -1
- package/resources/customers/customers.d.ts +11 -10
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js +12 -12
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +12 -12
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/customers/usage.js +2 -2
- package/resources/customers/usage.js.map +1 -1
- package/resources/customers/usage.mjs +2 -2
- package/resources/customers/usage.mjs.map +1 -1
- package/resources/events/backfills.js +5 -5
- package/resources/events/backfills.js.map +1 -1
- package/resources/events/backfills.mjs +5 -5
- package/resources/events/backfills.mjs.map +1 -1
- package/resources/events/events.d.ts.map +1 -1
- package/resources/events/events.js +5 -5
- package/resources/events/events.js.map +1 -1
- package/resources/events/events.mjs +5 -5
- package/resources/events/events.mjs.map +1 -1
- package/resources/invoice-line-items.js +1 -1
- package/resources/invoice-line-items.js.map +1 -1
- package/resources/invoice-line-items.mjs +1 -1
- package/resources/invoice-line-items.mjs.map +1 -1
- package/resources/invoices.d.ts +10 -2
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js +7 -7
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs +7 -7
- package/resources/invoices.mjs.map +1 -1
- package/resources/items.js +3 -3
- package/resources/items.js.map +1 -1
- package/resources/items.mjs +3 -3
- package/resources/items.mjs.map +1 -1
- package/resources/metrics.d.ts +14 -3
- package/resources/metrics.d.ts.map +1 -1
- package/resources/metrics.js +3 -3
- package/resources/metrics.js.map +1 -1
- package/resources/metrics.mjs +3 -3
- package/resources/metrics.mjs.map +1 -1
- package/resources/plans/external-plan-id.d.ts +4 -1
- package/resources/plans/external-plan-id.d.ts.map +1 -1
- package/resources/plans/external-plan-id.js +2 -2
- package/resources/plans/external-plan-id.js.map +1 -1
- package/resources/plans/external-plan-id.mjs +2 -2
- package/resources/plans/external-plan-id.mjs.map +1 -1
- package/resources/plans/plans.d.ts +13 -3
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js +5 -5
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs +5 -5
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/external-price-id.js +1 -1
- package/resources/prices/external-price-id.js.map +1 -1
- package/resources/prices/external-price-id.mjs +1 -1
- package/resources/prices/external-price-id.mjs.map +1 -1
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js +4 -4
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs +4 -4
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/subscriptions.d.ts +7 -4
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js +17 -14
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs +17 -14
- package/resources/subscriptions.mjs.map +1 -1
- package/resources/top-level.js +1 -1
- package/resources/top-level.js.map +1 -1
- package/resources/top-level.mjs +1 -1
- package/resources/top-level.mjs.map +1 -1
- package/src/core.ts +0 -21
- package/src/resource.ts +3 -16
- package/src/resources/coupons/coupons.ts +5 -5
- package/src/resources/coupons/subscriptions.ts +4 -1
- package/src/resources/credit-notes.ts +2 -2
- package/src/resources/customers/balance-transactions.ts +2 -2
- package/src/resources/customers/costs.ts +5 -2
- package/src/resources/customers/credits/credits.ts +3 -3
- package/src/resources/customers/credits/ledger.ts +136 -24
- package/src/resources/customers/customers.ts +22 -21
- package/src/resources/customers/usage.ts +2 -2
- package/src/resources/events/backfills.ts +5 -5
- package/src/resources/events/events.ts +5 -5
- package/src/resources/invoice-line-items.ts +1 -1
- package/src/resources/invoices.ts +17 -9
- package/src/resources/items.ts +3 -3
- package/src/resources/metrics.ts +17 -6
- package/src/resources/plans/external-plan-id.ts +6 -3
- package/src/resources/plans/plans.ts +18 -8
- package/src/resources/prices/external-price-id.ts +1 -1
- package/src/resources/prices/prices.ts +4 -4
- package/src/resources/subscriptions.ts +24 -18
- package/src/resources/top-level.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -411,7 +411,7 @@ export class Subscriptions extends APIResource {
|
|
|
411
411
|
if (isRequestOptions(body)) {
|
|
412
412
|
return this.create({}, body);
|
|
413
413
|
}
|
|
414
|
-
return this.post('/subscriptions', { body, ...options });
|
|
414
|
+
return this._client.post('/subscriptions', { body, ...options });
|
|
415
415
|
}
|
|
416
416
|
|
|
417
417
|
/**
|
|
@@ -435,7 +435,7 @@ export class Subscriptions extends APIResource {
|
|
|
435
435
|
if (isRequestOptions(query)) {
|
|
436
436
|
return this.list({}, query);
|
|
437
437
|
}
|
|
438
|
-
return this.getAPIList('/subscriptions', SubscriptionsPage, { query, ...options });
|
|
438
|
+
return this._client.getAPIList('/subscriptions', SubscriptionsPage, { query, ...options });
|
|
439
439
|
}
|
|
440
440
|
|
|
441
441
|
/**
|
|
@@ -506,7 +506,7 @@ export class Subscriptions extends APIResource {
|
|
|
506
506
|
body: SubscriptionCancelParams,
|
|
507
507
|
options?: Core.RequestOptions,
|
|
508
508
|
): Core.APIPromise<Subscription> {
|
|
509
|
-
return this.post(`/subscriptions/${subscriptionId}/cancel`, { body, ...options });
|
|
509
|
+
return this._client.post(`/subscriptions/${subscriptionId}/cancel`, { body, ...options });
|
|
510
510
|
}
|
|
511
511
|
|
|
512
512
|
/**
|
|
@@ -514,7 +514,7 @@ export class Subscriptions extends APIResource {
|
|
|
514
514
|
* given an identifier.
|
|
515
515
|
*/
|
|
516
516
|
fetch(subscriptionId: string, options?: Core.RequestOptions): Core.APIPromise<Subscription> {
|
|
517
|
-
return this.get(`/subscriptions/${subscriptionId}`, options);
|
|
517
|
+
return this._client.get(`/subscriptions/${subscriptionId}`, options);
|
|
518
518
|
}
|
|
519
519
|
|
|
520
520
|
/**
|
|
@@ -546,7 +546,7 @@ export class Subscriptions extends APIResource {
|
|
|
546
546
|
if (isRequestOptions(query)) {
|
|
547
547
|
return this.fetchCosts(subscriptionId, {}, query);
|
|
548
548
|
}
|
|
549
|
-
return this.get(`/subscriptions/${subscriptionId}/costs`, { query, ...options });
|
|
549
|
+
return this._client.get(`/subscriptions/${subscriptionId}/costs`, { query, ...options });
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
/**
|
|
@@ -572,7 +572,7 @@ export class Subscriptions extends APIResource {
|
|
|
572
572
|
if (isRequestOptions(query)) {
|
|
573
573
|
return this.fetchSchedule(subscriptionId, {}, query);
|
|
574
574
|
}
|
|
575
|
-
return this.getAPIList(
|
|
575
|
+
return this._client.getAPIList(
|
|
576
576
|
`/subscriptions/${subscriptionId}/schedule`,
|
|
577
577
|
SubscriptionFetchScheduleResponsesPage,
|
|
578
578
|
{ query, ...options },
|
|
@@ -789,7 +789,7 @@ export class Subscriptions extends APIResource {
|
|
|
789
789
|
if (isRequestOptions(query)) {
|
|
790
790
|
return this.fetchUsage(subscriptionId, {}, query);
|
|
791
791
|
}
|
|
792
|
-
return this.get(`/subscriptions/${subscriptionId}/usage`, { query, ...options });
|
|
792
|
+
return this._client.get(`/subscriptions/${subscriptionId}/usage`, { query, ...options });
|
|
793
793
|
}
|
|
794
794
|
|
|
795
795
|
/**
|
|
@@ -865,7 +865,7 @@ export class Subscriptions extends APIResource {
|
|
|
865
865
|
if (isRequestOptions(body)) {
|
|
866
866
|
return this.priceIntervals(subscriptionId, {}, body);
|
|
867
867
|
}
|
|
868
|
-
return this.post(`/subscriptions/${subscriptionId}/price_intervals`, { body, ...options });
|
|
868
|
+
return this._client.post(`/subscriptions/${subscriptionId}/price_intervals`, { body, ...options });
|
|
869
869
|
}
|
|
870
870
|
|
|
871
871
|
/**
|
|
@@ -914,7 +914,7 @@ export class Subscriptions extends APIResource {
|
|
|
914
914
|
body: SubscriptionSchedulePlanChangeParams,
|
|
915
915
|
options?: Core.RequestOptions,
|
|
916
916
|
): Core.APIPromise<Subscription> {
|
|
917
|
-
return this.post(`/subscriptions/${subscriptionId}/schedule_plan_change`, { body, ...options });
|
|
917
|
+
return this._client.post(`/subscriptions/${subscriptionId}/schedule_plan_change`, { body, ...options });
|
|
918
918
|
}
|
|
919
919
|
|
|
920
920
|
/**
|
|
@@ -935,7 +935,7 @@ export class Subscriptions extends APIResource {
|
|
|
935
935
|
if (isRequestOptions(body)) {
|
|
936
936
|
return this.triggerPhase(subscriptionId, {}, body);
|
|
937
937
|
}
|
|
938
|
-
return this.post(`/subscriptions/${subscriptionId}/trigger_phase`, { body, ...options });
|
|
938
|
+
return this._client.post(`/subscriptions/${subscriptionId}/trigger_phase`, { body, ...options });
|
|
939
939
|
}
|
|
940
940
|
|
|
941
941
|
/**
|
|
@@ -950,7 +950,7 @@ export class Subscriptions extends APIResource {
|
|
|
950
950
|
subscriptionId: string,
|
|
951
951
|
options?: Core.RequestOptions,
|
|
952
952
|
): Core.APIPromise<Subscription> {
|
|
953
|
-
return this.post(`/subscriptions/${subscriptionId}/unschedule_cancellation`, options);
|
|
953
|
+
return this._client.post(`/subscriptions/${subscriptionId}/unschedule_cancellation`, options);
|
|
954
954
|
}
|
|
955
955
|
|
|
956
956
|
/**
|
|
@@ -964,7 +964,7 @@ export class Subscriptions extends APIResource {
|
|
|
964
964
|
body: SubscriptionUnscheduleFixedFeeQuantityUpdatesParams,
|
|
965
965
|
options?: Core.RequestOptions,
|
|
966
966
|
): Core.APIPromise<Subscription> {
|
|
967
|
-
return this.post(`/subscriptions/${subscriptionId}/unschedule_fixed_fee_quantity_updates`, {
|
|
967
|
+
return this._client.post(`/subscriptions/${subscriptionId}/unschedule_fixed_fee_quantity_updates`, {
|
|
968
968
|
body,
|
|
969
969
|
...options,
|
|
970
970
|
});
|
|
@@ -978,7 +978,7 @@ export class Subscriptions extends APIResource {
|
|
|
978
978
|
subscriptionId: string,
|
|
979
979
|
options?: Core.RequestOptions,
|
|
980
980
|
): Core.APIPromise<Subscription> {
|
|
981
|
-
return this.post(`/subscriptions/${subscriptionId}/unschedule_pending_plan_changes`, options);
|
|
981
|
+
return this._client.post(`/subscriptions/${subscriptionId}/unschedule_pending_plan_changes`, options);
|
|
982
982
|
}
|
|
983
983
|
|
|
984
984
|
/**
|
|
@@ -1002,7 +1002,10 @@ export class Subscriptions extends APIResource {
|
|
|
1002
1002
|
body: SubscriptionUpdateFixedFeeQuantityParams,
|
|
1003
1003
|
options?: Core.RequestOptions,
|
|
1004
1004
|
): Core.APIPromise<Subscription> {
|
|
1005
|
-
return this.post(`/subscriptions/${subscriptionId}/update_fixed_fee_quantity`, {
|
|
1005
|
+
return this._client.post(`/subscriptions/${subscriptionId}/update_fixed_fee_quantity`, {
|
|
1006
|
+
body,
|
|
1007
|
+
...options,
|
|
1008
|
+
});
|
|
1006
1009
|
}
|
|
1007
1010
|
}
|
|
1008
1011
|
|
|
@@ -1124,10 +1127,10 @@ export interface Subscription {
|
|
|
1124
1127
|
maximum_intervals: Array<Subscription.MaximumInterval>;
|
|
1125
1128
|
|
|
1126
1129
|
/**
|
|
1127
|
-
* User specified key-value pairs. If
|
|
1128
|
-
*
|
|
1130
|
+
* User specified key-value pairs. If not provided, this defaults to an empty
|
|
1131
|
+
* dictionary.
|
|
1129
1132
|
*/
|
|
1130
|
-
metadata:
|
|
1133
|
+
metadata: Record<string, string>;
|
|
1131
1134
|
|
|
1132
1135
|
/**
|
|
1133
1136
|
* The minimum intervals for this subscription.
|
|
@@ -2087,7 +2090,10 @@ export interface SubscriptionCreateParams {
|
|
|
2087
2090
|
|
|
2088
2091
|
invoicing_threshold?: string | null;
|
|
2089
2092
|
|
|
2090
|
-
|
|
2093
|
+
/**
|
|
2094
|
+
* User-specified key/value pairs for the resource.
|
|
2095
|
+
*/
|
|
2096
|
+
metadata?: Record<string, string | null> | null;
|
|
2091
2097
|
|
|
2092
2098
|
net_terms?: number | null;
|
|
2093
2099
|
|
|
@@ -14,7 +14,7 @@ export class TopLevel extends APIResource {
|
|
|
14
14
|
* This API does not have any side-effects or return any Orb resources.
|
|
15
15
|
*/
|
|
16
16
|
ping(options?: Core.RequestOptions): Core.APIPromise<TopLevelPingResponse> {
|
|
17
|
-
return this.get('/ping', options);
|
|
17
|
+
return this._client.get('/ping', options);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.28.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.28.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.28.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|