Class: DeliveryFivePostClient::Models::API::V1::PartnerGetReceiptsResponse::Receipt
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- DeliveryFivePostClient::Models::API::V1::PartnerGetReceiptsResponse::Receipt
- Defined in:
- lib/delivery_five_post_client/models/api/v1/partner_get_receipts_response.rb
Defined Under Namespace
Classes: Receipt
Instance Attribute Summary collapse
-
#order_id ⇒ String
UUID в формате v4 / UUID in v4 format.
-
#receipts ⇒ Array<DeliveryFivePostClient::Models::API::V1::PartnerGetReceiptsResponse::Receipt::Receipt>
Массив чеков / Array of receipts.
Instance Method Summary collapse
-
#initialize(receipts:) ⇒ Object
constructor
Ответ с чеками / Get receipts response.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(receipts:) ⇒ Object
Ответ с чеками / Get receipts response
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/delivery_five_post_client/models/api/v1/partner_get_receipts_response.rb', line 21 class Receipt < DeliveryFivePostClient::Internal::Type::BaseModel # @!attribute order_id # UUID в формате v4 / UUID in v4 format # # @return [String] required :order_id, String, api_name: :orderId # @!attribute receipts # Массив чеков / Array of receipts # # @return [Array<DeliveryFivePostClient::Models::API::V1::PartnerGetReceiptsResponse::Receipt::Receipt>] required :receipts, -> { DeliveryFivePostClient::Internal::Type::ArrayOf[DeliveryFivePostClient::Models::API::V1::PartnerGetReceiptsResponse::Receipt::Receipt] } # @!method initialize(order_id:, receipts:) # Чеки заказа / Order receipts # # @param order_id [String] UUID в формате v4 / UUID in v4 format # # @param receipts [Array<DeliveryFivePostClient::Models::API::V1::PartnerGetReceiptsResponse::Receipt::Receipt>] Массив чеков / Array of receipts class Receipt < DeliveryFivePostClient::Internal::Type::BaseModel # @!attribute fiscal_data # Фискальные данные чека / Fiscal data of receipt # # @return [DeliveryFivePostClient::Models::API::V1::PartnerGetReceiptsResponse::Receipt::Receipt::FiscalData] required :fiscal_data, -> { DeliveryFivePostClient::Models::API::V1::PartnerGetReceiptsResponse::Receipt::Receipt::FiscalData }, api_name: :fiscalData # @!attribute type # Тип чека / Receipt type # # @return [Symbol, DeliveryFivePostClient::Models::API::V1::PartnerGetReceiptsResponse::Receipt::Receipt::Type] required :type, enum: -> { DeliveryFivePostClient::Models::API::V1::PartnerGetReceiptsResponse::Receipt::Receipt::Type } # @!attribute url # URL для скачивания чека / Receipt download URL # # @return [String] required :url, String # @!method initialize(fiscal_data:, type:, url:) # Информация о чеке / Receipt information # # @param fiscal_data [DeliveryFivePostClient::Models::API::V1::PartnerGetReceiptsResponse::Receipt::Receipt::FiscalData] Фискальные данные чека / Fiscal data of receipt # # @param type [Symbol, DeliveryFivePostClient::Models::API::V1::PartnerGetReceiptsResponse::Receipt::Receipt::Type] Тип чека / Receipt type # # @param url [String] URL для скачивания чека / Receipt download URL # @see DeliveryFivePostClient::Models::API::V1::PartnerGetReceiptsResponse::Receipt::Receipt#fiscal_data class FiscalData < DeliveryFivePostClient::Internal::Type::BaseModel # @!attribute fiscal_document_number # Номер фискального документа / Fiscal document number # # @return [String] required :fiscal_document_number, String, api_name: :fiscalDocumentNumber # @!attribute fiscal_sign # Фискальный признак / Fiscal sign # # @return [String] required :fiscal_sign, String, api_name: :fiscalSign # @!attribute fiscal_storage_number # Номер фискального накопителя / Fiscal storage number # # @return [String] required :fiscal_storage_number, String, api_name: :fiscalStorageNumber # @!method initialize(fiscal_document_number:, fiscal_sign:, fiscal_storage_number:) # Фискальные данные чека / Fiscal data of receipt # # @param fiscal_document_number [String] Номер фискального документа / Fiscal document number # # @param fiscal_sign [String] Фискальный признак / Fiscal sign # # @param fiscal_storage_number [String] Номер фискального накопителя / Fiscal storage number end # Тип чека / Receipt type # # @see DeliveryFivePostClient::Models::API::V1::PartnerGetReceiptsResponse::Receipt::Receipt#type module Type extend DeliveryFivePostClient::Internal::Type::Enum PAYMENT = :PAYMENT REFUND = :REFUND # @!method self.values # @return [Array<Symbol>] end end end |
Instance Attribute Details
#order_id ⇒ String
UUID в формате v4 / UUID in v4 format
26 |
# File 'lib/delivery_five_post_client/models/api/v1/partner_get_receipts_response.rb', line 26 required :order_id, String, api_name: :orderId |
#receipts ⇒ Array<DeliveryFivePostClient::Models::API::V1::PartnerGetReceiptsResponse::Receipt::Receipt>
Массив чеков / Array of receipts
32 33 |
# File 'lib/delivery_five_post_client/models/api/v1/partner_get_receipts_response.rb', line 32 required :receipts, -> { DeliveryFivePostClient::Internal::Type::ArrayOf[DeliveryFivePostClient::Models::API::V1::PartnerGetReceiptsResponse::Receipt::Receipt] } |