Sha256: d10d61cbacc532757924a6a9f79d53e7347f6f82f12379299eff1f76b6f354d9
Contents?: true
Size: 619 Bytes
Versions: 14
Compression:
Stored size: 619 Bytes
Contents
require "gerencianet" require "date" require_relative "./credentials" options = { client_id: CREDENTIALS::CLIENT_ID, client_secret: CREDENTIALS::CLIENT_SECRET, sandbox: true } tomorrow = Date.today + 1 body = { expire_at: tomorrow.strftime, items: [{ name: "Carnet Item 1", value: 1000, amount: 2 }], customer: { name: "Gorbadoc Oldbuck", email: "oldbuck@gerencianet.com.br", cpf: "04267484171", birth: "1977-01-15", phone_number: "5144916523" }, repeats: 12, split_items: false } gerencianet = Gerencianet.new(options) puts gerencianet.create_carnet(body: body)
Version data entries
14 entries across 14 versions & 1 rubygems