Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: first_invoice_offset type #83

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg/preapproval/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func TestCreate(t *testing.T) {
},
NextPaymentDate: parseDate("2024-03-06T18:10:01.000-04:00"),
PaymentMethodID: "",
FirstInvoiceOffset: "",
FirstInvoiceOffset: 0,
},
wantErr: "",
},
Expand Down Expand Up @@ -210,7 +210,7 @@ func TestGet(t *testing.T) {
},
NextPaymentDate: parseDate("2024-03-06T18:10:01.000-04:00"),
PaymentMethodID: "",
FirstInvoiceOffset: "",
FirstInvoiceOffset: 0,
},
wantErr: "",
},
Expand Down Expand Up @@ -428,7 +428,7 @@ func TestUpdate(t *testing.T) {
},
NextPaymentDate: parseDate("2024-03-06T18:10:01.000-04:00"),
PaymentMethodID: "",
FirstInvoiceOffset: "",
FirstInvoiceOffset: 0,
},
wantErr: "",
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/preapproval/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type Response struct {
InitPoint string `json:"init_point"`
SandboxInitPoint string `json:"sandbox_init_point"`
PaymentMethodID string `json:"payment_method_id"`
FirstInvoiceOffset string `json:"first_invoice_offset"`
FirstInvoiceOffset int `json:"first_invoice_offset"`
BackURL string `json:"back_url"`
PreapprovalPlanID string `json:"preapproval_plan_id"`
PayerFirstName string `json:"payer_first_name"`
Expand Down
Loading