Git Product home page Git Product logo

Comments (3)

KaiSchwarz-cnic avatar KaiSchwarz-cnic commented on August 15, 2024

Hi @erichuang2015

Thanks for working with our SDK. Prices are only returned in case of aftermarket domains / specific premium domains.
Reason: The price itself depends on given price by the aftermarket platform or the registry itself and can not calculated by using the price relations assigned to you.

In this API response you get CLASS "PREMIUM_DOMUTS_BB+" returned. That's the base to use for price estimation.

COMMAND = StatusUser

The above command returns your account balance + currency and further more the prices assigned to you. RELATIONTYPE and RELATIONVALUE are the keys and values identifying all your price.
In your case: Get all RELATIONTYPEs matching PRICE_CLASS_DOMAIN_PREMIUM_DONUTS_BB+_*

e.g.

PRICE_CLASS_DOMAIN_PREMIUM_DONUTS_BB+_SETUP
PRICE_CLASS_DOMAIN_PREMIUM_DONUTS_BB+_ANNUAL
PRICE_CLASS_DOMAIN_PREMIUM_DONUTS_BB+_CURRENCY
etc.

price = PRICE_CLASS_DOMAIN_PREMIUM_DONUTS_BB+_SETUP + ( x * PRICE_CLASS_DOMAIN_PREMIUM_DONUTS_BB+_ANNUAL)

where 'x' is the registration term. e.g. 1 = 1Y, 2 = 2Y etc.
NOTE: this just calculates the price using the currency provided in RELATIONVALUE at index of PRICE_CLASS_DOMAIN_PREMIUM_DONUTS_BB+_CURRENCY

You probably have to change it into you account currency given by statususer command.
Have an eye on command "QueryExchangeRates" to get latest ECB exchange rates for calculation.

COMMAND = QueryDomainOptions
WIDE = 1
DOMAIN0 = premium.guru

Might help you to identify allowed registration periods. You can identify it under ZONEREGISTRATIONPERIODS.

We know that a library helping to calculate prices would be very helpful, this is in discussion. But actually we cannot provide you an ETA for it nor if that module will ever be realized.
But your request shows us the need for this.

Let me know if I can further support you.

Thanks so much
Kai

from rtldev-middleware-python-sdk.

erichuang2015 avatar erichuang2015 commented on August 15, 2024

Thanks Kai

Yes, I think it is great demand for price query. As you know, new gtld hold different price tiers and they vary a lot, it is good to have this lib for some pre checks.

from rtldev-middleware-python-sdk.

KaiSchwarz-cnic avatar KaiSchwarz-cnic commented on August 15, 2024

No Problem, you're welcome. In general our price relation system is flexible enough. We just cannot expect a customer to know how to calculate prices as described above (and this wasn't the complete guide). Internally we already have a solution for our web platform that we provide to endcustomers and resellers. But having a solution for people who want to create their own frontend on top of our API, would also be a very good idea. This part is imo a blocker - I'll keep you posted on this topic.

As workaround (not sure if this is applicable for you):

COMMAND = AddDomain
DOMAIN = premium.guru
// ... additional parameters like nameservers and contacts etc.
PERIOD = 1Y
ORDER = CREATE

ORDER = CREATE just add the domain to your shopping cart and returns an ORDERID in response.
Use ORDER = REPLACE together with ORDERID = ... and the updated command to get the order item updated with changes (e.g. if you want to change contacts or nameservers).

COMMAND = QueryOrderList

... returns the contents of your shopping cart including prices.

... and to execute one of your orders:

COMMAND = ExecuteOrder
ORDERID = ....

Let me know if I can further support you.

Thanks so much
Kai

from rtldev-middleware-python-sdk.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.