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)
def unarchive(id, env=None, headers=None): return request.send('post', request.uri_path("coupons", id, "unarchive"), None, env, headers)
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)
def transactions_for_invoice(id, params=None, env=None): return request.send('get', request.uri_path("invoices",id,"transactions"), params, env)
def gift_subscription(params, env=None, headers=None): return request.send('post', request.uri_path("estimates", "gift_subscription"), params, env, headers)
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)
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)
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)
def transactions_for_customer(id, params=None, env=None): return request.send('get', request.uri_path("customers",id,"transactions"), params, env)
def renewal_estimate(id, params=None, env=None, headers=None): return request.send( 'get', request.uri_path("subscriptions", id, "renewal_estimate"), params, env, headers)
def record_payment(id, params, env=None): return request.send('post', request.uri_path("invoices",id,"record_payment"), params, env)
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)
def copy(params, env=None, headers=None): return request.send('post', request.uri_path("coupons", "copy"), params, env, headers)
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)
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)
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)
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)
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)
def list(params=None, env=None, headers=None): return request.send_list_request('get', request.uri_path("coupons"), params, env, headers)
def list(params=None, env=None): return request.send('get', request.uri_path("transactions"), params, env)
def retrieve(id, env=None, headers=None): return request.send('get', request.uri_path("coupons", id), None, env, headers)
def transactions_for_subscription(id, params=None, env=None): return request.send('get', request.uri_path("subscriptions",id,"transactions"), params, env)
def update(id, params=None, env=None, headers=None): return request.send('post', request.uri_path("coupons", id), params, env, headers)
def retrieve(id, env=None): return request.send('get', request.uri_path("transactions",id), None, env)
def delete(id, env=None, headers=None): return request.send('post', request.uri_path("coupons", id, "delete"), None, env, headers)
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)