class Multiwoven::Integrations::Destination::Stripe::Client
def process_records(records, stream)
def process_records(records, stream) write_success = 0 write_failure = 0 properties = stream.json_schema[:properties] records.each do |record_object| record = extract_data(record_object, properties) klass = @client.const_get(stream.name) klass.send(@action, record) write_success += 1 rescue StandardError => e handle_exception(e, { context: "STRIPE:CRM:WRITE:EXCEPTION", type: "error", sync_id: @sync_config.sync_id, sync_run_id: @sync_config.sync_run_id }) write_failure += 1 end tracking_message(write_success, write_failure) end