-
Notifications
You must be signed in to change notification settings - Fork 1
/
billing.pb.go
9499 lines (9165 loc) · 250 KB
/
billing.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: billing.proto
package v1
import (
context "context"
encoding_binary "encoding/binary"
fmt "fmt"
v1 "github.com/arangodb-managed/apis/common/v1"
types "github.com/gogo/protobuf/types"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
io "io"
math "math"
math_bits "math/bits"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// An Invoice message describes a transaction for usage of ArangoDB Oasis.
type Invoice struct {
// System identifier of the invoice.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// URL of this resource
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// Identifier of the organization that is responsible for the payment of this invoice.
OrganizationId string `protobuf:"bytes,3,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
// Name of the organization that is responsible for the payment of this invoice.
OrganizationName string `protobuf:"bytes,4,opt,name=organization_name,json=organizationName,proto3" json:"organization_name,omitempty"`
// Identifier of the legal entity that is the sender of this invoice.
EntityId string `protobuf:"bytes,5,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
// Name of the legal entity that is the sender of this invoice.
EntityName string `protobuf:"bytes,6,opt,name=entity_name,json=entityName,proto3" json:"entity_name,omitempty"`
// Invoice number (used by accounting)
InvoiceNumber string `protobuf:"bytes,7,opt,name=invoice_number,json=invoiceNumber,proto3" json:"invoice_number,omitempty"`
// The creation date of the invoice
CreatedAt *types.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// If set, this invoice must be manually verified
// before payment can be initiated.
RequiresManualVerification bool `protobuf:"varint,11,opt,name=requires_manual_verification,json=requiresManualVerification,proto3" json:"requires_manual_verification,omitempty"`
// The last update date of the invoice.
// This applies to 'specification' only and doesn't apply to status or payments changes.
LastUpdatedAt *types.Timestamp `protobuf:"bytes,12,opt,name=last_updated_at,json=lastUpdatedAt,proto3" json:"last_updated_at,omitempty"`
// The list of email addresses that this invoice (and payments related to this invoice) will be send to.
EmailAddresses []string `protobuf:"bytes,13,rep,name=email_addresses,json=emailAddresses,proto3" json:"email_addresses,omitempty"`
// If set, this invoice is generated for an organization that is configured to use purchase orders.
PurchaseOrderBased bool `protobuf:"varint,14,opt,name=purchase_order_based,json=purchaseOrderBased,proto3" json:"purchase_order_based,omitempty"`
// The version of the invoice-builder who created the invoice.
InvoiceBuilderVersion string `protobuf:"bytes,20,opt,name=invoice_builder_version,json=invoiceBuilderVersion,proto3" json:"invoice_builder_version,omitempty"`
// All items of the invoice
Items []*Invoice_Item `protobuf:"bytes,100,rep,name=items,proto3" json:"items,omitempty"`
// Currency for all amounts
CurrencyId string `protobuf:"bytes,110,opt,name=currency_id,json=currencyId,proto3" json:"currency_id,omitempty"`
// Sum all amount for all items (excluding VAT and sales tax)
TotalAmountExclTaxes float32 `protobuf:"fixed32,111,opt,name=total_amount_excl_taxes,json=totalAmountExclTaxes,proto3" json:"total_amount_excl_taxes,omitempty"`
// VAT amount for all items (applicable for Entity GmbH)
TotalVat float32 `protobuf:"fixed32,112,opt,name=total_vat,json=totalVat,proto3" json:"total_vat,omitempty"`
// If set, the VAT reverse charge rule is applied for this invoice.
VatReverseCharge bool `protobuf:"varint,114,opt,name=vat_reverse_charge,json=vatReverseCharge,proto3" json:"vat_reverse_charge,omitempty"`
// The VAT percentage used
VatPercentageUsed float32 `protobuf:"fixed32,115,opt,name=vat_percentage_used,json=vatPercentageUsed,proto3" json:"vat_percentage_used,omitempty"`
// Sales tax amount for all items (applicable for Entity Inc.)
TotalSalesTax float32 `protobuf:"fixed32,116,opt,name=total_sales_tax,json=totalSalesTax,proto3" json:"total_sales_tax,omitempty"`
// The sales tax percentage used
SalesTaxPercentageUsed float32 `protobuf:"fixed32,117,opt,name=sales_tax_percentage_used,json=salesTaxPercentageUsed,proto3" json:"sales_tax_percentage_used,omitempty"`
// Sum of total_amount_excl_taxes + total_vat + total_sales_tax.
// This is the amount that the customer will be charged for.
TotalAmountInclTaxes float32 `protobuf:"fixed32,113,opt,name=total_amount_incl_taxes,json=totalAmountInclTaxes,proto3" json:"total_amount_incl_taxes,omitempty"`
Status *Invoice_Status `protobuf:"bytes,200,opt,name=status,proto3" json:"status,omitempty"`
// All payment attempts for this invoice, ordered by created_at.
Payments []*Invoice_Payment `protobuf:"bytes,201,rep,name=payments,proto3" json:"payments,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Invoice) Reset() { *m = Invoice{} }
func (m *Invoice) String() string { return proto.CompactTextString(m) }
func (*Invoice) ProtoMessage() {}
func (*Invoice) Descriptor() ([]byte, []int) {
return fileDescriptor_958db8ba491a6b57, []int{0}
}
func (m *Invoice) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Invoice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Invoice.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Invoice) XXX_Merge(src proto.Message) {
xxx_messageInfo_Invoice.Merge(m, src)
}
func (m *Invoice) XXX_Size() int {
return m.Size()
}
func (m *Invoice) XXX_DiscardUnknown() {
xxx_messageInfo_Invoice.DiscardUnknown(m)
}
var xxx_messageInfo_Invoice proto.InternalMessageInfo
func (m *Invoice) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Invoice) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *Invoice) GetOrganizationId() string {
if m != nil {
return m.OrganizationId
}
return ""
}
func (m *Invoice) GetOrganizationName() string {
if m != nil {
return m.OrganizationName
}
return ""
}
func (m *Invoice) GetEntityId() string {
if m != nil {
return m.EntityId
}
return ""
}
func (m *Invoice) GetEntityName() string {
if m != nil {
return m.EntityName
}
return ""
}
func (m *Invoice) GetInvoiceNumber() string {
if m != nil {
return m.InvoiceNumber
}
return ""
}
func (m *Invoice) GetCreatedAt() *types.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func (m *Invoice) GetRequiresManualVerification() bool {
if m != nil {
return m.RequiresManualVerification
}
return false
}
func (m *Invoice) GetLastUpdatedAt() *types.Timestamp {
if m != nil {
return m.LastUpdatedAt
}
return nil
}
func (m *Invoice) GetEmailAddresses() []string {
if m != nil {
return m.EmailAddresses
}
return nil
}
func (m *Invoice) GetPurchaseOrderBased() bool {
if m != nil {
return m.PurchaseOrderBased
}
return false
}
func (m *Invoice) GetInvoiceBuilderVersion() string {
if m != nil {
return m.InvoiceBuilderVersion
}
return ""
}
func (m *Invoice) GetItems() []*Invoice_Item {
if m != nil {
return m.Items
}
return nil
}
func (m *Invoice) GetCurrencyId() string {
if m != nil {
return m.CurrencyId
}
return ""
}
func (m *Invoice) GetTotalAmountExclTaxes() float32 {
if m != nil {
return m.TotalAmountExclTaxes
}
return 0
}
func (m *Invoice) GetTotalVat() float32 {
if m != nil {
return m.TotalVat
}
return 0
}
func (m *Invoice) GetVatReverseCharge() bool {
if m != nil {
return m.VatReverseCharge
}
return false
}
func (m *Invoice) GetVatPercentageUsed() float32 {
if m != nil {
return m.VatPercentageUsed
}
return 0
}
func (m *Invoice) GetTotalSalesTax() float32 {
if m != nil {
return m.TotalSalesTax
}
return 0
}
func (m *Invoice) GetSalesTaxPercentageUsed() float32 {
if m != nil {
return m.SalesTaxPercentageUsed
}
return 0
}
func (m *Invoice) GetTotalAmountInclTaxes() float32 {
if m != nil {
return m.TotalAmountInclTaxes
}
return 0
}
func (m *Invoice) GetStatus() *Invoice_Status {
if m != nil {
return m.Status
}
return nil
}
func (m *Invoice) GetPayments() []*Invoice_Payment {
if m != nil {
return m.Payments
}
return nil
}
// A single item of the invoice
type Invoice_Item struct {
// Identifiers of the UsageItems that this item covers.
UsageitemIds []string `protobuf:"bytes,4,rep,name=usageitem_ids,json=usageitemIds,proto3" json:"usageitem_ids,omitempty"`
// Amount of money (ex VAT) for this item
Amount float32 `protobuf:"fixed32,2,opt,name=amount,proto3" json:"amount,omitempty"`
// Human readable description of this item
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Invoice_Item) Reset() { *m = Invoice_Item{} }
func (m *Invoice_Item) String() string { return proto.CompactTextString(m) }
func (*Invoice_Item) ProtoMessage() {}
func (*Invoice_Item) Descriptor() ([]byte, []int) {
return fileDescriptor_958db8ba491a6b57, []int{0, 0}
}
func (m *Invoice_Item) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Invoice_Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Invoice_Item.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Invoice_Item) XXX_Merge(src proto.Message) {
xxx_messageInfo_Invoice_Item.Merge(m, src)
}
func (m *Invoice_Item) XXX_Size() int {
return m.Size()
}
func (m *Invoice_Item) XXX_DiscardUnknown() {
xxx_messageInfo_Invoice_Item.DiscardUnknown(m)
}
var xxx_messageInfo_Invoice_Item proto.InternalMessageInfo
func (m *Invoice_Item) GetUsageitemIds() []string {
if m != nil {
return m.UsageitemIds
}
return nil
}
func (m *Invoice_Item) GetAmount() float32 {
if m != nil {
return m.Amount
}
return 0
}
func (m *Invoice_Item) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
// Status of the invoice
type Invoice_Status struct {
// If set, this invoice is still being processed.
IsPending bool `protobuf:"varint,1,opt,name=is_pending,json=isPending,proto3" json:"is_pending,omitempty"`
// If set, a successful payment has been made for this invoice.
IsCompleted bool `protobuf:"varint,2,opt,name=is_completed,json=isCompleted,proto3" json:"is_completed,omitempty"`
// If set, all payment attempts for this invoice have been rejected.
IsRejected bool `protobuf:"varint,3,opt,name=is_rejected,json=isRejected,proto3" json:"is_rejected,omitempty"`
// If set, this invoice has been verified manually.
IsVerified bool `protobuf:"varint,4,opt,name=is_verified,json=isVerified,proto3" json:"is_verified,omitempty"`
// If set, this payment needs to be rebuild (by the invoice-builder service).
// If set, is_completed & is_rejected must be false.
NeedsRebuild bool `protobuf:"varint,5,opt,name=needs_rebuild,json=needsRebuild,proto3" json:"needs_rebuild,omitempty"`
// The timestamp of succesfull completion of the payment.
// This field equals the completed_at field of the last payment if
// that payment succeeded, nil otherwise.
CompletedAt *types.Timestamp `protobuf:"bytes,10,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"`
// The timestamp of rejected completion of the payment.
// This field equals the rejected_at field of the last payment if
// that payment failed, nil otherwise.
RejectedAt *types.Timestamp `protobuf:"bytes,11,opt,name=rejected_at,json=rejectedAt,proto3" json:"rejected_at,omitempty"`
// Human readable reason for the completion.
CompletionReason string `protobuf:"bytes,12,opt,name=completion_reason,json=completionReason,proto3" json:"completion_reason,omitempty"`
// Human readable reason for the rejection.
RejectionReason string `protobuf:"bytes,13,opt,name=rejection_reason,json=rejectionReason,proto3" json:"rejection_reason,omitempty"`
// Identifier of user who completed this invoice.
CompletedBy string `protobuf:"bytes,14,opt,name=completed_by,json=completedBy,proto3" json:"completed_by,omitempty"`
// Identifier of user who rejected this invoice.
RejectedBy string `protobuf:"bytes,15,opt,name=rejected_by,json=rejectedBy,proto3" json:"rejected_by,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Invoice_Status) Reset() { *m = Invoice_Status{} }
func (m *Invoice_Status) String() string { return proto.CompactTextString(m) }
func (*Invoice_Status) ProtoMessage() {}
func (*Invoice_Status) Descriptor() ([]byte, []int) {
return fileDescriptor_958db8ba491a6b57, []int{0, 1}
}
func (m *Invoice_Status) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Invoice_Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Invoice_Status.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Invoice_Status) XXX_Merge(src proto.Message) {
xxx_messageInfo_Invoice_Status.Merge(m, src)
}
func (m *Invoice_Status) XXX_Size() int {
return m.Size()
}
func (m *Invoice_Status) XXX_DiscardUnknown() {
xxx_messageInfo_Invoice_Status.DiscardUnknown(m)
}
var xxx_messageInfo_Invoice_Status proto.InternalMessageInfo
func (m *Invoice_Status) GetIsPending() bool {
if m != nil {
return m.IsPending
}
return false
}
func (m *Invoice_Status) GetIsCompleted() bool {
if m != nil {
return m.IsCompleted
}
return false
}
func (m *Invoice_Status) GetIsRejected() bool {
if m != nil {
return m.IsRejected
}
return false
}
func (m *Invoice_Status) GetIsVerified() bool {
if m != nil {
return m.IsVerified
}
return false
}
func (m *Invoice_Status) GetNeedsRebuild() bool {
if m != nil {
return m.NeedsRebuild
}
return false
}
func (m *Invoice_Status) GetCompletedAt() *types.Timestamp {
if m != nil {
return m.CompletedAt
}
return nil
}
func (m *Invoice_Status) GetRejectedAt() *types.Timestamp {
if m != nil {
return m.RejectedAt
}
return nil
}
func (m *Invoice_Status) GetCompletionReason() string {
if m != nil {
return m.CompletionReason
}
return ""
}
func (m *Invoice_Status) GetRejectionReason() string {
if m != nil {
return m.RejectionReason
}
return ""
}
func (m *Invoice_Status) GetCompletedBy() string {
if m != nil {
return m.CompletedBy
}
return ""
}
func (m *Invoice_Status) GetRejectedBy() string {
if m != nil {
return m.RejectedBy
}
return ""
}
// Payment (attempt) of the invoice
type Invoice_Payment struct {
// The timestamp of the start of the payment attempt.
CreatedAt *types.Timestamp `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
// Identifier of the payment provider that is used for this payment.
PaymentProviderId string `protobuf:"bytes,2,opt,name=payment_provider_id,json=paymentProviderId,proto3" json:"payment_provider_id,omitempty"`
// Identifier of this payment (created by payment provider)
PaymentId string `protobuf:"bytes,3,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"`
// Identifier of the payment method that is used for this payment.
PaymentMethodId string `protobuf:"bytes,4,opt,name=payment_method_id,json=paymentMethodId,proto3" json:"payment_method_id,omitempty"`
// If set, this payment is still being processed.
IsPending bool `protobuf:"varint,10,opt,name=is_pending,json=isPending,proto3" json:"is_pending,omitempty"`
// If set, this payment has been payed for succesfully.
IsCompleted bool `protobuf:"varint,11,opt,name=is_completed,json=isCompleted,proto3" json:"is_completed,omitempty"`
// If set, this payment has been rejected.
IsRejected bool `protobuf:"varint,12,opt,name=is_rejected,json=isRejected,proto3" json:"is_rejected,omitempty"`
// The timestamp of succesfull completion of the payment.
CompletedAt *types.Timestamp `protobuf:"bytes,20,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"`
// The timestamp of rejected completion of the payment.
RejectedAt *types.Timestamp `protobuf:"bytes,21,opt,name=rejected_at,json=rejectedAt,proto3" json:"rejected_at,omitempty"`
// Human readable reason for the rejection.
RejectionReason string `protobuf:"bytes,22,opt,name=rejection_reason,json=rejectionReason,proto3" json:"rejection_reason,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Invoice_Payment) Reset() { *m = Invoice_Payment{} }
func (m *Invoice_Payment) String() string { return proto.CompactTextString(m) }
func (*Invoice_Payment) ProtoMessage() {}
func (*Invoice_Payment) Descriptor() ([]byte, []int) {
return fileDescriptor_958db8ba491a6b57, []int{0, 2}
}
func (m *Invoice_Payment) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Invoice_Payment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Invoice_Payment.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Invoice_Payment) XXX_Merge(src proto.Message) {
xxx_messageInfo_Invoice_Payment.Merge(m, src)
}
func (m *Invoice_Payment) XXX_Size() int {
return m.Size()
}
func (m *Invoice_Payment) XXX_DiscardUnknown() {
xxx_messageInfo_Invoice_Payment.DiscardUnknown(m)
}
var xxx_messageInfo_Invoice_Payment proto.InternalMessageInfo
func (m *Invoice_Payment) GetCreatedAt() *types.Timestamp {
if m != nil {
return m.CreatedAt
}
return nil
}
func (m *Invoice_Payment) GetPaymentProviderId() string {
if m != nil {
return m.PaymentProviderId
}
return ""
}
func (m *Invoice_Payment) GetPaymentId() string {
if m != nil {
return m.PaymentId
}
return ""
}
func (m *Invoice_Payment) GetPaymentMethodId() string {
if m != nil {
return m.PaymentMethodId
}
return ""
}
func (m *Invoice_Payment) GetIsPending() bool {
if m != nil {
return m.IsPending
}
return false
}
func (m *Invoice_Payment) GetIsCompleted() bool {
if m != nil {
return m.IsCompleted
}
return false
}
func (m *Invoice_Payment) GetIsRejected() bool {
if m != nil {
return m.IsRejected
}
return false
}
func (m *Invoice_Payment) GetCompletedAt() *types.Timestamp {
if m != nil {
return m.CompletedAt
}
return nil
}
func (m *Invoice_Payment) GetRejectedAt() *types.Timestamp {
if m != nil {
return m.RejectedAt
}
return nil
}
func (m *Invoice_Payment) GetRejectionReason() string {
if m != nil {
return m.RejectionReason
}
return ""
}
// List of Invoices.
type InvoiceList struct {
Items []*Invoice `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InvoiceList) Reset() { *m = InvoiceList{} }
func (m *InvoiceList) String() string { return proto.CompactTextString(m) }
func (*InvoiceList) ProtoMessage() {}
func (*InvoiceList) Descriptor() ([]byte, []int) {
return fileDescriptor_958db8ba491a6b57, []int{1}
}
func (m *InvoiceList) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *InvoiceList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_InvoiceList.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *InvoiceList) XXX_Merge(src proto.Message) {
xxx_messageInfo_InvoiceList.Merge(m, src)
}
func (m *InvoiceList) XXX_Size() int {
return m.Size()
}
func (m *InvoiceList) XXX_DiscardUnknown() {
xxx_messageInfo_InvoiceList.DiscardUnknown(m)
}
var xxx_messageInfo_InvoiceList proto.InternalMessageInfo
func (m *InvoiceList) GetItems() []*Invoice {
if m != nil {
return m.Items
}
return nil
}
// Request arguments for ListInvoices
type ListInvoicesRequest struct {
// Request invoices for the organization with this id.
// This is a required field.
OrganizationId string `protobuf:"bytes,1,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
// Request invoices that are created at or after this timestamp.
// This is an optional field.
From *types.Timestamp `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
// Request invoices that are created before this timestamp.
// This is an optional field.
To *types.Timestamp `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
// Standard list options
// This is an optional field.
Options *v1.ListOptions `protobuf:"bytes,10,opt,name=options,proto3" json:"options,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ListInvoicesRequest) Reset() { *m = ListInvoicesRequest{} }
func (m *ListInvoicesRequest) String() string { return proto.CompactTextString(m) }
func (*ListInvoicesRequest) ProtoMessage() {}
func (*ListInvoicesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_958db8ba491a6b57, []int{2}
}
func (m *ListInvoicesRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ListInvoicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ListInvoicesRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ListInvoicesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ListInvoicesRequest.Merge(m, src)
}
func (m *ListInvoicesRequest) XXX_Size() int {
return m.Size()
}
func (m *ListInvoicesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ListInvoicesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ListInvoicesRequest proto.InternalMessageInfo
func (m *ListInvoicesRequest) GetOrganizationId() string {
if m != nil {
return m.OrganizationId
}
return ""
}
func (m *ListInvoicesRequest) GetFrom() *types.Timestamp {
if m != nil {
return m.From
}
return nil
}
func (m *ListInvoicesRequest) GetTo() *types.Timestamp {
if m != nil {
return m.To
}
return nil
}
func (m *ListInvoicesRequest) GetOptions() *v1.ListOptions {
if m != nil {
return m.Options
}
return nil
}
// Payment providers are services that handle payments.
type PaymentProvider struct {
// System identifier of this payment provider.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Name of the payment provider
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Description of the payment provider
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Type of payment method supported by this provider
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PaymentProvider) Reset() { *m = PaymentProvider{} }
func (m *PaymentProvider) String() string { return proto.CompactTextString(m) }
func (*PaymentProvider) ProtoMessage() {}
func (*PaymentProvider) Descriptor() ([]byte, []int) {
return fileDescriptor_958db8ba491a6b57, []int{3}
}
func (m *PaymentProvider) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PaymentProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PaymentProvider.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PaymentProvider) XXX_Merge(src proto.Message) {
xxx_messageInfo_PaymentProvider.Merge(m, src)
}
func (m *PaymentProvider) XXX_Size() int {
return m.Size()
}
func (m *PaymentProvider) XXX_DiscardUnknown() {
xxx_messageInfo_PaymentProvider.DiscardUnknown(m)
}
var xxx_messageInfo_PaymentProvider proto.InternalMessageInfo
func (m *PaymentProvider) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *PaymentProvider) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *PaymentProvider) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *PaymentProvider) GetType() string {
if m != nil {
return m.Type
}
return ""
}
// List of Payment providers
type PaymentProviderList struct {
Items []*PaymentProvider `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PaymentProviderList) Reset() { *m = PaymentProviderList{} }
func (m *PaymentProviderList) String() string { return proto.CompactTextString(m) }
func (*PaymentProviderList) ProtoMessage() {}
func (*PaymentProviderList) Descriptor() ([]byte, []int) {
return fileDescriptor_958db8ba491a6b57, []int{4}
}
func (m *PaymentProviderList) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PaymentProviderList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PaymentProviderList.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PaymentProviderList) XXX_Merge(src proto.Message) {
xxx_messageInfo_PaymentProviderList.Merge(m, src)
}
func (m *PaymentProviderList) XXX_Size() int {
return m.Size()
}
func (m *PaymentProviderList) XXX_DiscardUnknown() {
xxx_messageInfo_PaymentProviderList.DiscardUnknown(m)
}
var xxx_messageInfo_PaymentProviderList proto.InternalMessageInfo
func (m *PaymentProviderList) GetItems() []*PaymentProvider {
if m != nil {
return m.Items
}
return nil
}
// Request arguments for PreparePaymentMethod.
type PreparePaymentMethodRequest struct {
// ID of the provider to prepare
ProviderId string `protobuf:"bytes,1,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"`
// ID of the organization that will own the future payment method
OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PreparePaymentMethodRequest) Reset() { *m = PreparePaymentMethodRequest{} }
func (m *PreparePaymentMethodRequest) String() string { return proto.CompactTextString(m) }
func (*PreparePaymentMethodRequest) ProtoMessage() {}
func (*PreparePaymentMethodRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_958db8ba491a6b57, []int{5}
}
func (m *PreparePaymentMethodRequest) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PreparePaymentMethodRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PreparePaymentMethodRequest.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PreparePaymentMethodRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PreparePaymentMethodRequest.Merge(m, src)
}
func (m *PreparePaymentMethodRequest) XXX_Size() int {
return m.Size()
}
func (m *PreparePaymentMethodRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PreparePaymentMethodRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PreparePaymentMethodRequest proto.InternalMessageInfo
func (m *PreparePaymentMethodRequest) GetProviderId() string {
if m != nil {
return m.ProviderId
}
return ""
}
func (m *PreparePaymentMethodRequest) GetOrganizationId() string {
if m != nil {
return m.OrganizationId
}
return ""
}
// Response data for PreparePaymentMethod.
type PreparedPaymentMethod struct {
// ID of the provider of the future payment method
ProviderId string `protobuf:"bytes,1,opt,name=provider_id,json=providerId,proto3" json:"provider_id,omitempty"`
// ID of the organization that will own the future payment method
OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
// Token (semantics depends on payment provider)
Token string `protobuf:"bytes,11,opt,name=token,proto3" json:"token,omitempty"`
// URL of custom script to load to create the payment method
ScriptUrl string `protobuf:"bytes,12,opt,name=script_url,json=scriptUrl,proto3" json:"script_url,omitempty"`
// Signature used to verify the consistency of the data in this message.
Signature string `protobuf:"bytes,101,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PreparedPaymentMethod) Reset() { *m = PreparedPaymentMethod{} }
func (m *PreparedPaymentMethod) String() string { return proto.CompactTextString(m) }
func (*PreparedPaymentMethod) ProtoMessage() {}
func (*PreparedPaymentMethod) Descriptor() ([]byte, []int) {
return fileDescriptor_958db8ba491a6b57, []int{6}
}
func (m *PreparedPaymentMethod) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *PreparedPaymentMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_PreparedPaymentMethod.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *PreparedPaymentMethod) XXX_Merge(src proto.Message) {
xxx_messageInfo_PreparedPaymentMethod.Merge(m, src)
}
func (m *PreparedPaymentMethod) XXX_Size() int {
return m.Size()
}
func (m *PreparedPaymentMethod) XXX_DiscardUnknown() {
xxx_messageInfo_PreparedPaymentMethod.DiscardUnknown(m)
}
var xxx_messageInfo_PreparedPaymentMethod proto.InternalMessageInfo
func (m *PreparedPaymentMethod) GetProviderId() string {
if m != nil {
return m.ProviderId
}
return ""
}
func (m *PreparedPaymentMethod) GetOrganizationId() string {
if m != nil {