예제 #1
0
    def update_subscription(**kw):
        """
        update a payment subscription

        arguments: same as create_subscription plus
            subscription_id: required
        """
        return ('ARBUpdateSubscriptionRequest', kw,
                x.subscriptionId(kw['subscription_id']),
                xml.subscription(**kw))
예제 #2
0
파일: arb.py 프로젝트: 465060874/screenbird
    def create_subscription(**kw):
        """
        create a payment subscription

        arguments:
            REQUIRED:
                interval_unit: L{DAYS_INTERVAL} or L{MONTHS_INTERVAL}
                interval_length: up to 3 digits, 1-12 for months, 7-365 for days
                start_date: YYYY-MM-DD of type L{unicode}
                amount: L{float} or L{decimal.Decimal}
                profile_type: L{CREDIT_CARD} (default) or L{BANK}
                card_number: L{unicode} or L{int}, required with CREDIT_CARD
                expiration_date: YYYY-MM, required with CREDIT_CARD
                routing_number: 9 digits, required with BANK
                account_number: 5 to 17 digits, required with BANK
                name_on_account: required with BANK
                bill_first_name
                bill_last_name


            OPTIONAL or CONDITIONAL:
                subscription_name: unique name for the subscription
                total_occurrences: up to 4 digits, default 9999
                trial_occurrences: up to 4 digits
                trial_amount: L{float} or L{decimal.Decimal}, must
                              be provided when trial_occurrences is set
                invoice_number:
                description:
                customer_type: L{INDIVIDUAL} or L{BUSINESS}
                customer_id:
                customer_email:
                phone:
                fax:
                driver_number: customer driving license number
                driver_state: license state
                driver_birth: date of birth on the license
                tax_id:
                account_type: L{ACCOUNT_CHECKING} or L{ACCOUNT_SAVINGS}
                        or L{ACCOUNT_BUSINESS_CHECKING}, only with BANK
                bank_name:
                echeck_type: L{ECHECK_CCD} or L{ECHECK_TEL} or
                    L{ECHECK_PPD} or L{ECHECK_WEB}, only with BANK

                ship_first_name:
                ship_last_name:
                bill_company, ship_company:
                bill_address, ship_address:
                bill_city, ship_city:
                bill_state, ship_state:
                bill_zip, ship_zip:
                bill_country, ship_country:
                ship_phone:
                ship_fax:
        """
        return 'ARBCreateSubscriptionRequest', kw, xml.subscription(**kw)
예제 #3
0
    def create_subscription(**kw):
        """
        create a payment subscription

        arguments:
            REQUIRED:
                interval_unit: L{DAYS_INTERVAL} or L{MONTHS_INTERVAL}
                interval_length: up to 3 digits, 1-12 for months, 7-365 for days
                start_date: YYYY-MM-DD of type L{unicode}
                amount: L{float} or L{decimal.Decimal}
                profile_type: L{CREDIT_CARD} (default) or L{BANK}
                card_number: L{unicode} or L{int}, required with CREDIT_CARD
                expiration_date: YYYY-MM, required with CREDIT_CARD
                routing_number: 9 digits, required with BANK
                account_number: 5 to 17 digits, required with BANK
                name_on_account: required with BANK
                bill_first_name
                bill_last_name


            OPTIONAL or CONDITIONAL:
                subscription_name: unique name for the subscription
                total_occurrences: up to 4 digits, default 9999
                trial_occurrences: up to 4 digits
                trial_amount: L{float} or L{decimal.Decimal}, must
                              be provided when trial_occurrences is set
                invoice_number:
                description:
                customer_type: L{INDIVIDUAL} or L{BUSINESS}
                customer_id:
                customer_email:
                phone:
                fax:
                driver_number: customer driving license number
                driver_state: license state
                driver_birth: date of birth on the license
                tax_id:
                account_type: L{ACCOUNT_CHECKING} or L{ACCOUNT_SAVINGS}
                        or L{ACCOUNT_BUSINESS_CHECKING}, only with BANK
                bank_name:
                echeck_type: L{ECHECK_CCD} or L{ECHECK_TEL} or
                    L{ECHECK_PPD} or L{ECHECK_WEB}, only with BANK

                ship_first_name:
                ship_last_name:
                bill_company, ship_company:
                bill_address, ship_address:
                bill_city, ship_city:
                bill_state, ship_state:
                bill_zip, ship_zip:
                bill_country, ship_country:
                ship_phone:
                ship_fax:
        """
        return 'ARBCreateSubscriptionRequest', kw, xml.subscription(**kw)
예제 #4
0
파일: arb.py 프로젝트: 465060874/screenbird
    def update_subscription(**kw):
        """
        update a payment subscription

        arguments: same as create_subscription plus
            subscription_id: required
        """
        return ('ARBUpdateSubscriptionRequest', kw,
            x.subscriptionId(kw['subscription_id']),
            xml.subscription(**kw)
        )