Hi Matt,
we'll have the fully functional get_price API in about a month (~20 Sep)
on a production system: it will both support all reg_types and return
appropriate errors for when an operation is not currently supported (e.g.
.tv transfers).
Vlad Jebelev
OpenSRS developer
On Tue, 21 Aug 2001, Matt Prigge wrote:
> Vlad,
> Thanks for the explaination! If it doesnt take a long time to make the
> 'renew' and 'transfer' reg_types work correctly, Id love to see that. If the
> only thing that has to be dealt with on the client side as far as error
> checking goes is making sure that the number of years is valid for whatever
> domain it is, thats perfectly acceptable. If you can keep me/us up to date
> when and if this change is incorporated, thatd be fantastic.
>
> Thanks!
> -Matt
>
>
> ----- Original Message -----
> From: "Vladimir Jebelev" <[EMAIL PROTECTED]>
> To: "Matt Prigge" <[EMAIL PROTECTED]>
> Cc: "Charles Daminato" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, August 21, 2001 6:31 PM
> Subject: Re: get_price API Question
>
>
> > Hi Matt,
> >
> > On Tue, 21 Aug 2001, Matt Prigge wrote:
> >
> > > Is there any reason (aside from time/money/etc) that it couldnt be
> modified
> > > to work for all domains? It seems like this could be very useful (which
> > is
> > > the reason I initially asked about it). From what Ive seen it is
> _fairly_
> > > accurate. It just doesnt seem to take into account the initial
> registration
> > > period requirements. Maybe theres more wrong with it than I've seen
> though.
> > >
> >
> > You are right, officially it's only supposed to work with the .tv domains
> > and only for the initial price, as that was the initial business
> > requirement. It was implemented to support all domains though as it seemed
> > that this could be useful for resellers - as a not documented feature. One
> > known incostistency is that it may return you a valid price for something
> > that is not actually supported by OpenSRS at this time, for example .tv
> > renewals or .uk domain for 1 year. The other is that if a domain is taken,
> > if will not give you a price back - even though you specified 'transfer'
> > or 'renewal' as reg_type - this is why reg_type parameter was never
> > published. We can easily fix the latter it as long as there is a demand
> > for this feature.
> >
> > The command syntax is:
> > { action => 'get_price',
> > object => 'domain',
> > attributes => {
> > domain => 'domain.com',
> > [ period => 3, ]
> > [ reg_type => 'renewal' ]
> > }
> >
> > If not specified, period defaults to 1 year, reg_type defaults to 'new'
> > (could also be 'transfer' or 'renewal').
> >
> >
> > Vlad Jebelev
> > OpenSRS developer
> >
>
>