#NEWLINE# def main( client , product_id , rate_card_id ) : #NEWLINE# #INDENT# base_rate_service = client . GetService ( 'BaseRateService' , version = 'v201508' ) #NEWLINE# product_base_rate = { #NEWLINE# #INDENT# 'xsi_type' : 'ProductBaseRate' , #NEWLINE# 'rateCardId' : rate_card_id , #NEWLINE# 'productId' : product_id , #NEWLINE# 'rate' : { #NEWLINE# #INDENT# 'currencyCode' : 'USD' , #NEWLINE# 'microAmount' : 2000000 , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# base_rates = base_rate_service . createBaseRates ( [ product_base_rate ] ) #NEWLINE# if base_rates : #NEWLINE# #INDENT# for base_rate in base_rates : #NEWLINE# #INDENT# print ( ( "A product base rate with ID '%s' and rate '%.2f' %s was created." % ( base_rate [ 'id' ] , base_rate [ 'rate' ] [ 'microAmount' ] , base_rate [ 'rate' ] [ 'currencyCode' ] ) ) )