[CLD-6219] Add Company Name field to Purchase Modal (#24428)

Automatic Merge
Этот коммит содержится в:
Nick Misasi
2023-09-06 16:27:35 -04:00
коммит произвёл GitHub
родитель b540ed5d30
Коммит fcfcbd9909
8 изменённых файлов: 259 добавлений и 286 удалений

Просмотреть файл

@@ -3870,7 +3870,7 @@ export default class Client4 {
);
}
subscribeCloudProduct = (productId: string, shippingAddress?: Address, seats = 0, downgradeFeedback?: Feedback) => {
subscribeCloudProduct = (productId: string, shippingAddress?: Address, seats = 0, downgradeFeedback?: Feedback, customerPatch?: CloudCustomerPatch) => {
const body = {
product_id: productId,
seats,
@@ -3879,6 +3879,10 @@ export default class Client4 {
if (shippingAddress) {
body.shipping_address = shippingAddress;
}
if (customerPatch) {
body.customer = customerPatch;
}
return this.doFetch<Subscription>(
`${this.getCloudRoute()}/subscription`,
{method: 'put', body: JSON.stringify(body)},