Exemple #1
0
    def get_payment_profile(**kw):
        """get a user's payment profile

        arguments:
            customer_profile_id: required
            customer_payment_profile_id: required
        """
        return ('getCustomerPaymentProfileRequest', kw,
                x.customerProfileId(kw['customer_profile_id']),
                x.customerPaymentProfileId(kw['customer_payment_profile_id']))
Exemple #2
0
    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']))
Exemple #3
0
    def get_payment_profile(**kw):
        """get a user's payment profile

        arguments:
            customer_profile_id: required
            customer_payment_profile_id: required
        """
        return ('getCustomerPaymentProfileRequest', kw,
            x.customerProfileId(kw['customer_profile_id']),
            x.customerPaymentProfileId(kw['customer_payment_profile_id'])
        )
Exemple #4
0
    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'])
        )
Exemple #5
0
    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)))
Exemple #6
0
    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))
        )