def switch_gateway_account(id, params, env=None, headers=None):
     return request.send(
         'post',
         request.uri_path("payment_sources", id, "switch_gateway_account"),
         params, env, headers)
 def delete(id, env=None, headers=None):
     return request.send('post',
                         request.uri_path("payment_sources", id, "delete"),
                         None, env, headers)
 def retrieve(id, env=None, headers=None):
     return request.send('get', request.uri_path("item_families", id), None,
                         env, headers)
 def update(id, params=None, env=None, headers=None):
     return request.send('post', request.uri_path("item_families", id),
                         params, env, headers)
 def retrieve(id, env=None, headers=None):
     return request.send('get', request.uri_path("time_machines",id), None, env, headers)
Beispiel #6
0
 def unarchive(id, env=None, headers=None):
     return request.send('post', request.uri_path("coupons", id,
                                                  "unarchive"), None, env,
                         headers)
Beispiel #7
0
 def create_sub_for_customer_estimate(id, params, env=None, headers=None):
     return request.send(
         'get',
         request.uri_path("customers", id, "create_subscription_estimate"),
         params, env, headers)
Beispiel #8
0
 def transactions_for_invoice(id, params=None, env=None):
     return request.send('get', request.uri_path("invoices",id,"transactions"), params, env)
Beispiel #9
0
 def gift_subscription(params, env=None, headers=None):
     return request.send('post',
                         request.uri_path("estimates", "gift_subscription"),
                         params, env, headers)
Beispiel #10
0
 def create_invoice_for_items(params, env=None, headers=None):
     return request.send(
         'post', request.uri_path("estimates", "create_invoice_for_items"),
         params, env, headers)
Beispiel #11
0
 def resume_subscription(id, params=None, env=None, headers=None):
     return request.send(
         'post',
         request.uri_path("subscriptions", id,
                          "resume_subscription_estimate"), params, env,
         headers)
 def travel_forward(id, params=None, env=None, headers=None):
     return request.send('post', request.uri_path("time_machines",id,"travel_forward"), params, env, headers)
 def start_afresh(id, params=None, env=None, headers=None):
     return request.send('post', request.uri_path("time_machines",id,"start_afresh"), params, env, headers)
 def archive(id, env=None, headers=None):
     return request.send('post', request.uri_path("coupon_codes",id,"archive"), None, env, headers)
Beispiel #15
0
 def update_subscription_for_items(params, env=None, headers=None):
     return request.send(
         'post',
         request.uri_path("estimates", "update_subscription_for_items"),
         params, env, headers)
Beispiel #16
0
 def transactions_for_customer(id, params=None, env=None):
     return request.send('get', request.uri_path("customers",id,"transactions"), params, env)
Beispiel #17
0
 def renewal_estimate(id, params=None, env=None, headers=None):
     return request.send(
         'get', request.uri_path("subscriptions", id, "renewal_estimate"),
         params, env, headers)
Beispiel #18
0
 def record_payment(id, params, env=None):
     return request.send('post', request.uri_path("invoices",id,"record_payment"), params, env)
Beispiel #19
0
 def regenerate_invoice_estimate(id, params=None, env=None, headers=None):
     return request.send(
         'post',
         request.uri_path("subscriptions", id,
                          "regenerate_invoice_estimate"), params, env,
         headers)
Beispiel #20
0
 def copy(params, env=None, headers=None):
     return request.send('post', request.uri_path("coupons", "copy"),
                         params, env, headers)
Beispiel #21
0
 def upcoming_invoices_estimate(id, env=None, headers=None):
     return request.send(
         'get',
         request.uri_path("customers", id, "upcoming_invoices_estimate"),
         None, env, headers)
 def create(params, env=None, headers=None):
     return request.send('post', request.uri_path("item_families"), params,
                         env, headers)
Beispiel #23
0
 def change_term_end(id, params, env=None, headers=None):
     return request.send(
         'post',
         request.uri_path("subscriptions", id, "change_term_end_estimate"),
         params, env, headers)
 def list(params=None, env=None, headers=None):
     return request.send_list_request('get',
                                      request.uri_path("item_families"),
                                      params, env, headers)
Beispiel #25
0
 def cancel_subscription_for_items(id, params=None, env=None, headers=None):
     return request.send(
         'post',
         request.uri_path("subscriptions", id,
                          "cancel_subscription_for_items_estimate"), params,
         env, headers)
 def delete(id, env=None, headers=None):
     return request.send('post',
                         request.uri_path("item_families", id, "delete"),
                         None, env, headers)
Beispiel #27
0
 def create_for_items(params, env=None, headers=None):
     return request.send('post',
                         request.uri_path("coupons", "create_for_items"),
                         params, env, headers)
 def export_payment_source(id, params, env=None, headers=None):
     return request.send(
         'post',
         request.uri_path("payment_sources", id, "export_payment_source"),
         params, env, headers)
Beispiel #29
0
 def update_for_items(id, params, env=None, headers=None):
     return request.send(
         'post', request.uri_path("coupons", id, "update_for_items"),
         params, env, headers)
 def list(params=None, env=None, headers=None):
     return request.send_list_request('get', request.uri_path("coupon_codes"), params, env, headers)
Beispiel #31
0
 def list(params=None, env=None, headers=None):
     return request.send_list_request('get', request.uri_path("coupons"),
                                      params, env, headers)
Beispiel #32
0
 def list(params=None, env=None):
     return request.send('get', request.uri_path("transactions"), params, env)
Beispiel #33
0
 def retrieve(id, env=None, headers=None):
     return request.send('get', request.uri_path("coupons", id), None, env,
                         headers)
Beispiel #34
0
 def transactions_for_subscription(id, params=None, env=None):
     return request.send('get', request.uri_path("subscriptions",id,"transactions"), params, env)
Beispiel #35
0
 def update(id, params=None, env=None, headers=None):
     return request.send('post', request.uri_path("coupons", id), params,
                         env, headers)
Beispiel #36
0
 def retrieve(id, env=None):
     return request.send('get', request.uri_path("transactions",id), None, env)
Beispiel #37
0
 def delete(id, env=None, headers=None):
     return request.send('post', request.uri_path("coupons", id, "delete"),
                         None, env, headers)
Beispiel #38
0
 def refund(id, params=None, env=None):
     return request.send('post', request.uri_path("transactions",id,"refund"), params, env)
 def remove_coupons(id, params=None, env=None, headers=None):
     return request.send(
         'post', request.uri_path("subscriptions", id, "remove_coupons"),
         params, env, headers)