orb-billing
Advanced tools
Comparing version 4.51.0 to 4.52.0
{ | ||
"name": "orb-billing", | ||
"version": "4.51.0", | ||
"version": "4.52.0", | ||
"description": "The official TypeScript library for the Orb API", | ||
@@ -5,0 +5,0 @@ "author": "Orb <team@withorb.com>", |
@@ -122,2 +122,27 @@ "use strict"; | ||
/** | ||
* Sync Orb's payment methods for the customer with their gateway. | ||
* | ||
* This method can be called before taking an action that may cause the customer to | ||
* be charged, ensuring that the most up-to-date payment method is charged. | ||
* | ||
* **Note**: This functionality is currently only available for Stripe. | ||
*/ | ||
syncPaymentMethodsFromGateway(externalCustomerId, options) { | ||
return this._client.post(`/customers/external_customer_id/${externalCustomerId}/sync_payment_methods_from_gateway`, { ...options, headers: { Accept: '*/*', ...options?.headers } }); | ||
} | ||
/** | ||
* Sync Orb's payment methods for the customer with their gateway. | ||
* | ||
* This method can be called before taking an action that may cause the customer to | ||
* be charged, ensuring that the most up-to-date payment method is charged. | ||
* | ||
* **Note**: This functionality is currently only available for Stripe. | ||
*/ | ||
syncPaymentMethodsFromGatewayByExternalCustomerId(customerId, options) { | ||
return this._client.post(`/customers/${customerId}/sync_payment_methods_from_gateway`, { | ||
...options, | ||
headers: { Accept: '*/*', ...options?.headers }, | ||
}); | ||
} | ||
/** | ||
* This endpoint is used to update customer details given an `external_customer_id` | ||
@@ -124,0 +149,0 @@ * (see [Customer ID Aliases](/events-and-metrics/customer-aliases)). Note that the |
@@ -1,1 +0,1 @@ | ||
export const VERSION = '4.51.0'; // x-release-please-version | ||
export const VERSION = '4.52.0'; // x-release-please-version |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "4.51.0"; | ||
export declare const VERSION = "4.52.0"; | ||
//# sourceMappingURL=version.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.VERSION = '4.51.0'; // x-release-please-version | ||
exports.VERSION = '4.52.0'; // x-release-please-version | ||
//# sourceMappingURL=version.js.map |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
4351241
84070