|
| 1 | +# frozen_string_literal: true |
| 2 | + |
| 3 | +module Lithic |
| 4 | + module Models |
| 5 | + # @see Lithic::Resources::Cards#web_provision |
| 6 | + class CardWebProvisionResponse < Lithic::Internal::Type::BaseModel |
| 7 | + # @!attribute jws |
| 8 | + # JWS object required for handoff to Apple's script. |
| 9 | + # |
| 10 | + # @return [Lithic::Models::CardWebProvisionResponse::Jws, nil] |
| 11 | + optional :jws, -> { Lithic::Models::CardWebProvisionResponse::Jws } |
| 12 | + |
| 13 | + # @!attribute state |
| 14 | + # A unique identifier for the JWS object. |
| 15 | + # |
| 16 | + # @return [String, nil] |
| 17 | + optional :state, String |
| 18 | + |
| 19 | + # @!method initialize(jws: nil, state: nil) |
| 20 | + # @param jws [Lithic::Models::CardWebProvisionResponse::Jws] JWS object required for handoff to Apple's script. |
| 21 | + # |
| 22 | + # @param state [String] A unique identifier for the JWS object. |
| 23 | + |
| 24 | + # @see Lithic::Models::CardWebProvisionResponse#jws |
| 25 | + class Jws < Lithic::Internal::Type::BaseModel |
| 26 | + # @!attribute header |
| 27 | + # JWS unprotected headers containing header parameters that aren't |
| 28 | + # integrity-protected by the JWS signature. |
| 29 | + # |
| 30 | + # @return [Lithic::Models::CardWebProvisionResponse::Jws::Header, nil] |
| 31 | + optional :header, -> { Lithic::Models::CardWebProvisionResponse::Jws::Header } |
| 32 | + |
| 33 | + # @!attribute payload |
| 34 | + # Base64url encoded JSON object containing the provisioning payload. |
| 35 | + # |
| 36 | + # @return [String, nil] |
| 37 | + optional :payload, String |
| 38 | + |
| 39 | + # @!attribute protected |
| 40 | + # Base64url encoded JWS protected headers containing the header parameters that |
| 41 | + # are integrity-protected by the JWS signature. |
| 42 | + # |
| 43 | + # @return [String, nil] |
| 44 | + optional :protected, String |
| 45 | + |
| 46 | + # @!attribute signature |
| 47 | + # Base64url encoded signature of the JWS object. |
| 48 | + # |
| 49 | + # @return [String, nil] |
| 50 | + optional :signature, String |
| 51 | + |
| 52 | + # @!method initialize(header: nil, payload: nil, protected: nil, signature: nil) |
| 53 | + # Some parameter documentations has been truncated, see |
| 54 | + # {Lithic::Models::CardWebProvisionResponse::Jws} for more details. |
| 55 | + # |
| 56 | + # JWS object required for handoff to Apple's script. |
| 57 | + # |
| 58 | + # @param header [Lithic::Models::CardWebProvisionResponse::Jws::Header] JWS unprotected headers containing header parameters that aren't integrity-prote |
| 59 | + # |
| 60 | + # @param payload [String] Base64url encoded JSON object containing the provisioning payload. |
| 61 | + # |
| 62 | + # @param protected [String] Base64url encoded JWS protected headers containing the header parameters that ar |
| 63 | + # |
| 64 | + # @param signature [String] Base64url encoded signature of the JWS object. |
| 65 | + |
| 66 | + # @see Lithic::Models::CardWebProvisionResponse::Jws#header |
| 67 | + class Header < Lithic::Internal::Type::BaseModel |
| 68 | + # @!attribute kid |
| 69 | + # The ID for the JWS Public Key of the key pair used to generate the signature. |
| 70 | + # |
| 71 | + # @return [String, nil] |
| 72 | + optional :kid, String |
| 73 | + |
| 74 | + # @!method initialize(kid: nil) |
| 75 | + # JWS unprotected headers containing header parameters that aren't |
| 76 | + # integrity-protected by the JWS signature. |
| 77 | + # |
| 78 | + # @param kid [String] The ID for the JWS Public Key of the key pair used to generate the signature. |
| 79 | + end |
| 80 | + end |
| 81 | + end |
| 82 | + end |
| 83 | +end |
0 commit comments