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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )
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, )