Sha256: cc4e339a84bc50484b17d6811330c89794e6688bfaa1d3524bd85ab45599e5aa
Contents?: true
Size: 795 Bytes
Versions: 1
Compression:
Stored size: 795 Bytes
Contents
# frozen_string_literal: true module LedgerSync module Stripe class Customer module Operations class Delete < Stripe::Operation::Delete class Contract < LedgerSync::Ledgers::Contract params do required(:external_id).maybe(:string) required(:ledger_id).filled(:string) required(:email).maybe(:string) required(:name).maybe(:string) required(:phone_number).maybe(:string) end end private def operate stripe_customer = ::Stripe::Customer.delete(resource.ledger_id) success( resource: resource, response: stripe_customer ) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ledger_sync-stripe-0.1.0 | lib/ledger_sync/stripe/customer/operations/delete.rb |