Sha256: bbab50fe4f3a86ab52e0f93518c79e592e430fc6049a9178f5b294dd53fc5286
Contents?: true
Size: 783 Bytes
Versions: 5
Compression:
Stored size: 783 Bytes
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module GiftCards # A gift card represents a single gift card owned by a customer, including the # remaining balance, gift card code, and whether or not it is active. class Card < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List include Stripe::APIOperations::Save OBJECT_NAME = "gift_cards.card" # Validates a gift card code, returning the matching gift card object if it exists. def self.validate(params = {}, opts = {}) request_stripe_object( method: :post, path: "/v1/gift_cards/cards/validate", params: params, opts: opts ) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems