示例#1
0
 def retrieve_payment_method(self,
                             payment_method,
                             idempotency_key=None,
                             **params):
     return self._request(
         "get",
         "/v1/customers/{customer}/payment_methods/{payment_method}".format(
             customer=util.sanitize_id(self.get("id")),
             payment_method=util.sanitize_id(payment_method),
         ),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#2
0
 def approve(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/reviews/{review}/approve".format(
             review=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#3
0
 def reverse(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/payouts/{payout}/reverse".format(
             payout=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#4
0
 def list_line_items(self, idempotency_key=None, **params):
     return self._request(
         "get",
         "/v1/quotes/{quote}/line_items".format(
             quote=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#5
0
 def expire(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/checkout/sessions/{session}/expire".format(
             session=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#6
0
 def verify_microdeposits(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/setup_intents/{intent}/verify_microdeposits".format(
             intent=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#7
0
 def mark_uncollectible(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/invoices/{invoice}/mark_uncollectible".format(
             invoice=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#8
0
 def process_setup_intent(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/terminal/readers/{reader}/process_setup_intent".format(
             reader=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#9
0
 def update_features(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/treasury/financial_accounts/{financial_account}/features".
         format(financial_account=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#10
0
 def reopen(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/orders/{id}/reopen".format(
             id=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#11
0
 def delete_discount(self, idempotency_key=None, **params):
     return self._request(
         "delete",
         "/v1/customers/{customer}/discount".format(
             customer=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#12
0
 def create_funding_instructions(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/customers/{customer}/funding_instructions".format(
             customer=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#13
0
 def fund_cash_balance(self, idempotency_key=None, **params):
     return self.resource._request(
         "post",
         "/v1/test_helpers/customers/{customer}/fund_cash_balance".
         format(customer=util.sanitize_id(self.resource.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#14
0
 def list_payment_methods(self, idempotency_key=None, **params):
     return self._request(
         "get",
         "/v1/customers/{customer}/payment_methods".format(
             customer=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#15
0
 def present_payment_method(self, idempotency_key=None, **params):
     return self.resource._request(
         "post",
         "/v1/test_helpers/terminal/readers/{reader}/present_payment_method"
         .format(reader=util.sanitize_id(self.resource.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#16
0
 def return_card(self, idempotency_key=None, **params):
     return self.resource._request(
         "post",
         "/v1/test_helpers/issuing/cards/{card}/shipping/return".format(
             card=util.sanitize_id(self.resource.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#17
0
 def cancel_action(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/terminal/readers/{reader}/cancel_action".format(
             reader=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#18
0
 def decline(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/issuing/authorizations/{authorization}/decline".format(
             authorization=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
 def release(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/subscription_schedules/{schedule}/release".format(
             schedule=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#20
0
 def redact(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/identity/verification_sessions/{session}/redact".format(
             session=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#21
0
 def void_invoice(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/invoices/{invoice}/void".format(
             invoice=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#22
0
 def close(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/disputes/{dispute}/close".format(
             dispute=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#23
0
 def confirm(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/setup_intents/{intent}/confirm".format(
             intent=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#24
0
 def cancel(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/refunds/{refund}/cancel".format(
             refund=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#25
0
 def list_line_items(self, idempotency_key=None, **params):
     return self._request(
         "get",
         "/v1/checkout/sessions/{session}/line_items".format(
             session=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#26
0
 def expire(self, idempotency_key=None, **params):
     return self.resource._request(
         "post",
         "/v1/test_helpers/refunds/{refund}/expire".format(
             refund=util.sanitize_id(self.resource.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#27
0
 def finalize_quote(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/quotes/{quote}/finalize".format(
             quote=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#28
0
 def set_reader_display(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/terminal/readers/{reader}/set_reader_display".format(
             reader=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#29
0
 def refund(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/application_fees/{id}/refunds".format(
             id=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )
示例#30
0
 def verify(self, idempotency_key=None, **params):
     return self._request(
         "post",
         "/v1/sources/{source}/verify".format(
             source=util.sanitize_id(self.get("id"))),
         idempotency_key=idempotency_key,
         params=params,
     )