ó FRTc@sªddlZddlZddlmZddlmZddlmZddlZdgZ dZ d„Z d „Z d „Z d „Zd „Zdefd „ƒYZdS(iÿÿÿÿN(tAWSQueryConnection(tResponseErrorFactory(tResponseFactoryt FPSConnectiontactiontresponsecCs1x*tD]"}t||t||dƒƒqW|S(N(tdecorated_attrstsetattrtgetattrtNone(tfuncttotattr((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytadd_attrs_from$s  cs‡fd†}|S(NcsC‡‡fd†}djˆjdjˆƒƒ|_tˆd|ƒS(Ncsyxft|jˆƒD]R}|j|ƒ}t|dt|ƒƒ||d>sis OR t+s{0} requires {1} argument(s)RtMethod(R!RRRRtKeyError(RRthasgrouptgtmessage(R tgroups(Rs@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyR=s+s OR R$s{0} Required: {1}R (RRRR (R RR(R)(R*(R s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyR;s +  ((R*R((R*s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytrequires9scs4‡fd†}djˆjƒ|_tˆd|ƒS(Ncs#|jdtjƒƒˆ||ŽS(NtCallerReference(t setdefaulttuuidtuuid4(RR(R (s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyRNss2{0} Uses CallerReference, defaults to uuid.uuid4()R (RRR (R R((R s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytneeds_caller_referenceLscs‡fd†}|S(Ncs²djˆp'ttjˆjjdƒƒƒ‰tˆƒ‰ttj j ˆdƒrnt tj j ˆdƒ‰n‡‡‡fd†}ˆˆ|_ |_ dj ˆˆjƒ|_|S(Ntt_tResponsecsˆ|ˆˆ||ŽS(N((RRR(RR R(s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyR^ssFPS {0} API call {1}(RtmapRt capitalizet__name__tsplitRthasattrtbototfpsRRRRR(R R(tapi(RR Rs@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyRXs-  ((R;R((R;s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyt api_actionVs cBsUeZdZeZdZd„Zd„Zee dƒe ddddgƒe ƒd „ƒƒƒƒZ e d gƒe ƒd „ƒƒZ e d gƒe ƒd „ƒƒZe d gƒe ƒd„ƒƒZe ƒd„ƒZe dgƒe ƒd„ƒƒZe ƒd„ƒZe ƒd„ƒZee ddgƒe ƒd„ƒƒƒZee ddgƒd„ƒƒZee dƒe dddgƒe ƒd„ƒƒƒƒZee dƒe dddgƒe ƒd„ƒƒƒƒZe d gƒe ƒd„ƒƒZe dƒe d ddgƒe ƒd!„ƒƒƒZe d"ƒe d d#d$d%gƒe ƒd&„ƒƒƒZe d'gƒe ƒd(„ƒƒZe d$gd)gƒe ƒd*„ƒƒZe d+d,gƒe ƒd-„ƒƒZe ƒd.„ƒZe d)gƒe ƒd/„ƒƒZe d)gƒe ƒd0„ƒƒZ ee d1ƒe dd2dd3gƒe ƒd4„ƒƒƒƒZ!e dgƒe ƒd5„ƒƒZ"ee d6ƒe dd7d8gƒe ƒd9„ƒƒƒƒZ#e d:gƒe ƒd;„ƒƒZ$e d:gƒe ƒd<„ƒƒZ%ee d"ƒe d:gƒe ƒd=„ƒƒƒƒZ&e d)gƒe ƒd>„ƒƒZ'RS(?s 2010-08-28tUSDcOsE|jd|jƒ|_|jddƒtt|ƒj||ŽdS(NRthostsfps.sandbox.amazonaws.com(RRR-tsuperRt__init__(RRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyR@mscCsdgS(NR:((R((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyt_required_auth_capabilityrstSettlementAmounttCreditInstrumentIdsSettlementAmount.Valuet SenderTokenIdsSettlementAmount.CurrencyCodecKs|j|||ƒS(sÍ Allows a caller to initiate a transaction that atomically transfers money from a sender's payment instrument to the recipient, while decreasing corresponding debt balance. (t get_object(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyt settle_debtus t TransactionIdcKs|j|||ƒS(s: Gets the latest status of a transaction. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytget_transaction_status‚st StartDatecKs|j|||ƒS(s> Returns transactions for a given date range. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytget_account_activityŠscKs|j|||ƒS(s7 Returns all details of a transaction. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytget_transaction’scCs|j|i|ƒS(s~ Returns the total outstanding balance for all the credit instruments for the given creditor account. (RE(RRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytget_outstanding_debt_balancešstPrepaidInstrumentIdcKs|j|||ƒS(sP Returns the balance available on the given prepaid instrument. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytget_prepaid_balance¢scCs|j|i|ƒS(s’ Returns the total liability held by the given account corresponding to all the prepaid instruments owned by the account. (RE(RRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytget_total_prepaid_liabilityªscCs|j|i|ƒS(sJ Returns the account balance for an account in real time. (RE(RRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytget_account_balance²stPaymentInstructiont TokenTypecKs|j|||ƒS(s< Installs a payment instruction for caller. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytinstall_payment_instruction¹st returnURLt pipelineNamec sGd|jkrdpd}dj|ƒ}d}d}|d |ksRtdƒ‚|jidd6dd6ƒ|jd|jƒd„‰‡fd†}tg|jƒD]\}}|||ƒf^q¨ƒ} d„} djd||| | ƒgƒ} |j j | ƒ} | d|| ƒfg7} | j ƒdj||| | ƒƒS(sj Generate a signed URL for the Co-Branded service API given arguments as payload. tsandboxspayments-sandboxtpaymentssauthorize.{0}.amazon.coms/cobranded-ui/actions/startt SingleUsetMultiUset Recurringt Recipientt SetupPrepaidt SetupPostpaidt EditTokenRUsInvalid pipelineNamet HmacSHA256tsignatureMethodt2tsignatureVersiont callerKeycSs|dk rt|ƒpdS(NR1(R R(R"((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyR#Öscstjˆ|ƒddƒS(Ntsafet~(turllibtquote(R"(tsafestr(s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyR#×scSs.djg|D]\}}|d|^q ƒS(Nt&t=(R(tptktv((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyR#Úss tGETt signatureshttps://{0}{1}?{2}(RXRYRZR[R\R]R^( R>RtAssertionErrortupdateR-taws_access_key_idtsortedtitemsRt _auth_handlert sign_stringtsort( RRRVtendpointtbasetvalidpipelinest safequoteRlRmtpayloadtencodedt canonicalRo((Rhs@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytcbui_urlÂs&   7 ! tTransactionAmountsTransactionAmount.ValuesTransactionAmount.CurrencyCodecKs|j|||ƒS(sÀ Reserve API is part of the Reserve and Settle API conjunction that serve the purpose of a pay where the authorization and settlement have a timing difference. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytreserveâs cKs|j|||ƒS(sY Allows calling applications to move money from a sender to a recipient. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytpayïs cKs|j|||ƒS(sP Cancels an ongoing transaction and puts it in cancelled state. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytcancelústReserveTransactionIdcKs|j|||ƒS(s‹ The Settle API is used in conjunction with the Reserve API and is used to settle previously reserved transaction. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytsettles t RefundAmountsRefundAmount.ValueR,sRefundAmount.CurrencyCodecKs|j|||ƒS(s= Refunds a previously completed transaction. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytrefund stRecipientTokenIdcKs|j|||ƒS(s/ Returns the recipient status. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyt!get_recipient_verification_statusstTokenIdcKs|j|||ƒS(s‰ Returns the details of a particular token installed by this calling application using the subway co-branded UI. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytget_token_by_callerst UrlEndPointtHttpParameterscKs|j|||ƒS(sM Verify the signature that FPS sent in IPN or callback urls. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytverify_signature(scKs|j|||ƒS(sJ Returns a list of tokens installed on the given account. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyt get_tokens0scKs|j|||ƒS(s/ Returns the usage of a token. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytget_token_usage7scKs|j|||ƒS(sd Cancels any token installed by the calling application on its own account. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyt cancel_token?st FundingAmountsFundingAmount.ValuesFundingAmount.CurrencyCodecKs|j|||ƒS(sL Funds the prepaid balance on the given prepaid instrument. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyt fund_prepaidHs cKs|j|||ƒS(sS Returns the balance corresponding to the given credit instrument. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytget_debt_balanceSstAdjustmentAmountsAdjustmentAmount.ValuesAdjustmentAmount.CurrencyCodecKs|j|||ƒS(su Allows a creditor to write off the debt balance accumulated partially or fully at any time. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytwrite_off_debt[s tSubscriptionIdcKs|j|||ƒS(sF Returns the transactions for a given subscriptionID. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyt!get_transactions_for_subscriptiongscKs|j|||ƒS(sQ Returns the details of Subscription for a given subscriptionID. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytget_subscription_detailsoscKs=d}d|ks*d|ks*t|ƒ‚|j|||ƒS(s) Cancels a subscription. s@If you specify a RefundAmount, you must specify CallerReference.sRefundAmount.ValueR,(RpRE(RRRRR)((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytcancel_subscription_and_refundws cKs|j|||ƒS(s: Gets the payment instruction of a token. (RE(RRRR((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pytget_payment_instruction…s((R6t __module__t APIVersionRt ResponseErrorRR@RAR0R R+R<RFRHRJRKRLRNRORPRSRRR‚RƒR…R‡R‰R‹RŽRRR‘R“R”R–R˜R™RšR›(((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyRgsž                                      (sactionsresponse(RfR.tboto.connectionRtboto.fps.exceptionRtboto.fps.responseRR9t__all__RR R R+R0R<R(((s@/opt/freeware/lib/python2.7/site-packages/boto/fps/connection.pyts