예제 #1
0
파일: cim.py 프로젝트: CrabbyPete/brightmap
    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']))
예제 #2
0
파일: cim.py 프로젝트: CrabbyPete/brightmap
    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']))
예제 #3
0
파일: cim.py 프로젝트: cinquemb/authorize
    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'])
        )
예제 #4
0
파일: cim.py 프로젝트: cinquemb/authorize
    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'])
        )
예제 #5
0
파일: cim.py 프로젝트: CrabbyPete/brightmap
    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)))
예제 #6
0
파일: cim.py 프로젝트: cinquemb/authorize
    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))
        )