Sha256: 8a6540574e806d95c52d8e6fa06493d02531c09c9ff4e93cc9280d27f8adcc1c
Contents?: true
Size: 937 Bytes
Versions: 8
Compression:
Stored size: 937 Bytes
Contents
# frozen_string_literal: true module LedgerSync module Ledgers 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) optional(:subsidiary).maybe(:hash, Types::Reference) 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 end
Version data entries
8 entries across 8 versions & 1 rubygems