Add a new offer change

REST: POST /telephony/{billingAccount}/service/{serviceName}/offerChange
@param offer [required] The future offer
@param billingAccount [required] The name of your billingAccount
@param serviceName [required]
346309
public void billingAccount_service_serviceName_offerChange_POST(String billingAccount, String serviceName, String offer) throws IOException {
		String qPath = "/telephony/{billingAccount}/service/{serviceName}/offerChange";
		StringBuilder sb = path(qPath, billingAccount, serviceName);
		HashMap<String, Object>o = new HashMap<String, Object>();
		addBody(o, "offer", offer);
		exec(qPath, "POST", sb.toString(), o);
	}
1287728
public void billingAccount_voicemail_serviceName_settings_PUT(String billingAccount, String serviceName, OvhVoicemailProperties body) throws IOException {
		String qPath = "/telephony/{billingAccount}/voicemail/{serviceName}/settings";
		StringBuilder sb = path(qPath, billingAccount, serviceName);
		exec(qPath, "PUT", sb.toString(), body);
	}
542248
public void setCommercePriceListAccountRelService(
		com.liferay.commerce.price.list.service.CommercePriceListAccountRelService commercePriceListAccountRelService) {
		this.commercePriceListAccountRelService = commercePriceListAccountRelService;
	}
652481
public void billingAccount_fax_serviceName_settings_PUT(String billingAccount, String serviceName, OvhFaxProperties body) throws IOException {
		String qPath = "/telephony/{billingAccount}/fax/{serviceName}/settings";
		StringBuilder sb = path(qPath, billingAccount, serviceName);
		exec(qPath, "PUT", sb.toString(), body);
	}
182511
async def update_offer(self, **params):
		
		logging.debug("\n\n -- Update offer. ")
		if params.get("message"):
			params = json.loads(params.get("message", "{}"))
		
		if not params:
			return {"error":400, "reason":"Missed required fields"}

		# Check if required fields exists
		txid = params.get("txid")
		coinid = params.get("coinid").upper()

		try:
			coinid = coinid.replace("TEST", "")
		except:
			pass

		# Try to find offer with account id and cid
		database = client[coinid]
		offer_db = database[settings.OFFER]
		offer = await offer_db.find_one({"txid":txid})
		logging.debug("\n\n -- Try to get offer. ")
		logging.debug(offer)
		if not offer:
			return {"error":404, 
					"reason":"Offer with txid %s not found" % txid }

		# Update offer
		await offer_db.find_one_and_update(
							{"txid":txid}, {"$set":{"confirmed":1}})

		# Get updated offer
		updated = await offer_db.find_one({"txid":txid})

		return {i:updated[i] for i in updated if i != "_id"}
582719
def addService(self, moduleName, serviceName, service):
        
        serviceIdentifier = "{}.{}".format(moduleName, serviceName)
        if serviceIdentifier not in self._services:
            self._services[serviceIdentifier] = service
        else:
            message = "Application - addService() - " \
                      "A service with the identifier {} already exists." \
                      .format(serviceIdentifier)
            raise Exception(message)
1179185
public void billingAccount_miniPabx_serviceName_hunting_PUT(String billingAccount, String serviceName, OvhMiniPabxHunting body) throws IOException {
		String qPath = "/telephony/{billingAccount}/miniPabx/{serviceName}/hunting";
		StringBuilder sb = path(qPath, billingAccount, serviceName);
		exec(qPath, "PUT", sb.toString(), body);
	}
937679
void addPendingChange(String key, String value) {
        this.addPendingChange(key, JsonValue.valueOf(value));
    }
964041
public void removeServiceInstanceChangeListener(String serviceName, ServiceInstanceChangeListener listener) {
        ServiceInstanceUtils.validateServiceName(serviceName);
        if (listener == null) {
            throw new ServiceException(ErrorCode.SERVICE_DIRECTORY_NULL_ARGUMENT_ERROR,
                    ErrorCode.SERVICE_DIRECTORY_NULL_ARGUMENT_ERROR.getMessageTemplate(),
                    "ServiceInstanceChangeListener");
        }
        List<InstanceChangeListener<ModelServiceInstance>> list = changeListenerMap.get(serviceName);
        if (list != null) {
            boolean found = false;
            for (InstanceChangeListener<ModelServiceInstance> l : list) {
                if (l instanceof ServiceInstanceChangeListenerAdapter
                        && ((ServiceInstanceChangeListenerAdapter) l).getAdapter() == listener) {
                    list.remove(l);
                    found = true;
                    break;
                }
            }
            if (!found) {
                LOGGER.error(ErrorCode.SERVICE_INSTANCE_LISTENER_DOES_NOT_EXIST.getMessageTemplate());
            }
            if (list.isEmpty()) {
                changeListenerMap.remove(serviceName);
            }
        } else {
            LOGGER.error(String.format(ErrorCode.SERVICE_DOES_NOT_EXIST.getMessageTemplate(), serviceName));
        }

    }
1227334
public void billingAccount_ddi_serviceName_PUT(String billingAccount, String serviceName, OvhDdi body) throws IOException {
		String qPath = "/telephony/{billingAccount}/ddi/{serviceName}";
		StringBuilder sb = path(qPath, billingAccount, serviceName);
		exec(qPath, "PUT", sb.toString(), body);
	}
1308124
public boolean addReference(ServiceReference<T> reference) {
        if (reference == null)
            return false;

        ConcurrentServiceReferenceElement<T> element = new ConcurrentServiceReferenceElement<T>(referenceName, reference);

        synchronized (elementMap) {
            ConcurrentServiceReferenceElement<T> oldElement = elementMap.put(reference, element);
            if (oldElement != null) {
                if (!element.getRanking().equals(oldElement.getRanking())) {
                    elementSetUnsorted = true;
                }
                return true;
            }

            elementSet.add(element);
        }
        return false;
    }
58130
public void billingAccount_PUT(String billingAccount, OvhBillingAccount body) throws IOException {
		String qPath = "/telephony/{billingAccount}";
		StringBuilder sb = path(qPath, billingAccount);
		exec(qPath, "PUT", sb.toString(), body);
	}
1101049
public void addChange(String valuePath, String attributeName, int valueIndex, ChangeType changeType) {

        if (ChangeType.value.equals(changeType)) {
            if (m_changeTimer != null) {
                if (!m_changeTimer.matches(valuePath, attributeName, valueIndex)) {
                    // only in case the change properties of the timer do not match the current change,
                    // add the last change and start a new timer
                    m_changeTimer.cancel();
                    m_changeTimer.run();
                    m_changeTimer = new ChangeTimer(valuePath, attributeName, valueIndex, changeType);
                    m_changeTimer.schedule(CHANGE_TIMER_DELAY);
                }
            } else {
                m_changeTimer = new ChangeTimer(valuePath, attributeName, valueIndex, changeType);
                m_changeTimer.schedule(CHANGE_TIMER_DELAY);
            }
        } else {
            if (m_changeTimer != null) {
                m_changeTimer.cancel();
                m_changeTimer.run();
            }
            internalAddChange(valuePath, attributeName, valueIndex, changeType);
        }
    }
1200116
def ReplaceOffer(self, offer_link, offer):
        
        CosmosClient.__ValidateResource(offer)
        path = base.GetPathFromLink(offer_link)
        offer_id = base.GetResourceIdOrFullNameFromLink(offer_link)
        return self.Replace(offer, path, 'offers', offer_id, None, None)
464358
public void modifyServiceProvider(final Map<String, Object> changedValues) {
        AddressTemplate template = SERVICE_PROVIDER_TEMPLATE.replaceWildcards(federation, serviceProvider);
        modify(template, serviceProvider, changedValues);
    }
348625
public void billingAccount_miniPabx_serviceName_PUT(String billingAccount, String serviceName, OvhMiniPabx body) throws IOException {
		String qPath = "/telephony/{billingAccount}/miniPabx/{serviceName}";
		StringBuilder sb = path(qPath, billingAccount, serviceName);
		exec(qPath, "PUT", sb.toString(), body);
	}
131482
public ArrayList<OvhLinePhoneAssociable> billingAccount_line_serviceName_listAssociablePhones_GET(String billingAccount, String serviceName) throws IOException {
		String qPath = "/telephony/{billingAccount}/line/{serviceName}/listAssociablePhones";
		StringBuilder sb = path(qPath, billingAccount, serviceName);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, t6);
	}