def get_profile(**kw): """get a user's profile arguments: customer_profile_id: required """ return ('getCustomerProfileRequest', kw, x.customerProfileId(kw['customer_profile_id']))
def delete_profile(**kw): """delete one's profile arguments: customer_profile_id: required """ return ('deleteCustomerProfileRequest', kw, x.customerProfileId(kw['customer_profile_id']))
def delete_profile(**kw): """delete one's profile arguments: customer_profile_id: required """ return ('deleteCustomerProfileRequest', kw, x.customerProfileId(kw['customer_profile_id']) )
def get_profile(**kw): """get a user's profile arguments: customer_profile_id: required """ return ('getCustomerProfileRequest', kw, x.customerProfileId(kw['customer_profile_id']) )
def get_shipping_address(**kw): """get a user's shipping address arguments: customer_profile_id: required customer_address_id: required """ return ('getCustomerShippingAddressRequest', kw, x.customerProfileId(kw['customer_profile_id']), x.customerAddressId(kw['customer_address_id']))
def delete_shipping_address(**kw): """delete one of user's shipping addresses arguments: customer_profile_id: required customer_address_id: required """ return ('deleteCustomerShippingAddressRequest', kw, x.customerProfileId(kw['customer_profile_id']), x.customerAddressId(kw['customer_address_id']))
def delete_payment_profile(**kw): """delete one of user's payment profiles arguments: customer_profile_id: required customer_payment_profile_id: required """ return ('deleteCustomerPaymentProfileRequest', kw, x.customerProfileId(kw['customer_profile_id']), x.customerPaymentProfileId(kw['customer_payment_profile_id']))
def delete_shipping_address(**kw): """delete one of user's shipping addresses arguments: customer_profile_id: required customer_address_id: required """ return ('deleteCustomerShippingAddressRequest', kw, x.customerProfileId(kw['customer_profile_id']), x.customerAddressId(kw['customer_address_id']) )
def get_shipping_address(**kw): """get a user's shipping address arguments: customer_profile_id: required customer_address_id: required """ return ('getCustomerShippingAddressRequest', kw, x.customerProfileId(kw['customer_profile_id']), x.customerAddressId(kw['customer_address_id']) )
def delete_payment_profile(**kw): """delete one of user's payment profiles arguments: customer_profile_id: required customer_payment_profile_id: required """ return ('deleteCustomerPaymentProfileRequest', kw, x.customerProfileId(kw['customer_profile_id']), x.customerPaymentProfileId(kw['customer_payment_profile_id']) )
def create_shipping_address(**kw): """add to a user's profile a new shipping address arguments: REQUIRED: customer_profile_id: L{unicode} or L{int} all the arguments above starting with 'ship_' can be provided here with the same name. """ return ('createCustomerShippingAddressRequest', kw, x.customerProfileId(kw['customer_profile_id']), xml.address_2('ship_', **kw))
def create_shipping_address(**kw): """add to a user's profile a new shipping address arguments: REQUIRED: customer_profile_id: L{unicode} or L{int} all the arguments above starting with 'ship_' can be provided here with the same name. """ return ('createCustomerShippingAddressRequest', kw, x.customerProfileId(kw['customer_profile_id']), xml.address_2('ship_', **kw) )
def update_shipping_address(**kw): """update user's shipping address arguments: customer_profile_id: required and the same arguments for shipping_address with the addition of an extra argument called customer_address_id added for each shipping_address that you intend to change. """ return ('updateCustomerShippingAddressRequest', kw, x.customerProfileId(kw['customer_profile_id']), xml.update_address(**kw))
def update_profile(**kw): """update basic user's information arguments: customer_id: optional description: optional email: optional customer_profile_id: required """ return ('updateCustomerProfileRequest', kw, x.profile(x.merchantCustomerId(kw.get('customer_id')), x.description(kw.get('description')), x.email(kw.get('email')), x.customerProfileId(kw['customer_profile_id'])))
def update_payment_profile(**kw): """update user's payment profile arguments: customer_profile_id: required and the same arguments for payment_profiles with the addition of an extra argument called customer_payment_profile_id added for each payment_profile that you intend to change. """ return ('updateCustomerPaymentProfileRequest', kw, x.customerProfileId(kw['customer_profile_id']), xml.update_paymentProfile(**kw))
def validate_payment_profile(**kw): """validate a user's payment profile arguments: customer_profile_id: required customer_payment_profile_id: required customer_address_id: required validation_mode: L{VALIDATION_TEST} or L{VALIDATION_LIVE} or L{VALIDATION_NONE}, default L{VALIDATION_NONE} """ return ('validateCustomerPaymentProfileRequest', kw, x.customerProfileId(kw['customer_profile_id']), x.customerPaymentProfileId(kw['customer_payment_profile_id']), x.customerShippingAddressId(kw['customer_address_id']), x.validationMode(kw.get('validation_mode', VALIDATION_NONE)))
def update_shipping_address(**kw): """update user's shipping address arguments: customer_profile_id: required and the same arguments for shipping_address with the addition of an extra argument called customer_address_id added for each shipping_address that you intend to change. """ return ('updateCustomerShippingAddressRequest', kw, x.customerProfileId(kw['customer_profile_id']), xml.update_address(**kw) )
def update_payment_profile(**kw): """update user's payment profile arguments: customer_profile_id: required and the same arguments for payment_profiles with the addition of an extra argument called customer_payment_profile_id added for each payment_profile that you intend to change. """ return ('updateCustomerPaymentProfileRequest', kw, x.customerProfileId(kw['customer_profile_id']), xml.update_paymentProfile(**kw) )
def validate_payment_profile(**kw): """validate a user's payment profile arguments: customer_profile_id: required customer_payment_profile_id: required customer_address_id: required validation_mode: L{VALIDATION_TEST} or L{VALIDATION_LIVE} or L{VALIDATION_NONE}, default L{VALIDATION_NONE} """ return ('validateCustomerPaymentProfileRequest', kw, x.customerProfileId(kw['customer_profile_id']), x.customerPaymentProfileId(kw['customer_payment_profile_id']), x.customerShippingAddressId(kw.get('customer_address_id')), x.validationMode(kw.get('validation_mode', VALIDATION_NONE)) )
def update_profile(**kw): """update basic user's information arguments: customer_id: optional description: optional email: optional customer_profile_id: required """ return ('updateCustomerProfileRequest', kw, x.profile( x.merchantCustomerId(kw.get('customer_id')), x.description(kw.get('description')), x.email(kw.get('email')), x.customerProfileId(kw['customer_profile_id']) ) )
def create_payment_profile(**kw): """add to a user's profile a new payment profile arguments: REQUIRED: customer_profile_id: L{unicode} or L{int} all the arguments for payment_profiles (above) should be provided as arguments to this method call validation_mode: L{VALIDATION_TEST}, L{VALIDATION_LIVE}, L{VALIDATION_NONE}, the different level of validation will try to run and immediately void 0.01 transactions on live or test environment, L{VALIDATION_NONE} will skip this test. By default it's L{VALIDATION_NONE} """ return ('createCustomerPaymentProfileRequest', kw, x.customerProfileId(kw['customer_profile_id']), xml.paymentProfile(**kw), x.validationMode(kw.get('validation_mode', VALIDATION_NONE)) # none, testMode, liveMode )
def create_payment_profile(**kw): """add to a user's profile a new payment profile arguments: REQUIRED: customer_profile_id: L{unicode} or L{int} all the arguments for payment_profiles (above) should be provided as arguments to this method call validation_mode: L{VALIDATION_TEST}, L{VALIDATION_LIVE}, L{VALIDATION_NONE}, the different level of validation will try to run and immediately void 0.01 transactions on live or test environment, L{VALIDATION_NONE} will skip this test. By default it's L{VALIDATION_NONE} """ return ( 'createCustomerPaymentProfileRequest', kw, x.customerProfileId(kw['customer_profile_id']), xml.paymentProfile(**kw), x.validationMode( kw.get('validation_mode', VALIDATION_NONE)) # none, testMode, liveMode )