[CLD-6219] Add Company Name field to Purchase Modal (#24428)
Automatic Merge
Этот коммит содержится в:
@@ -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)},
|
||||
|
||||
Ссылка в новой задаче
Block a user